]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
ad5664b19a8996435ea1e351c907a88f57f57a0a
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-06-14 Easwaran Raman <eraman@google.com>
2
3 PR rtl-optimization/44194
4 * dse.c: Include tree-flow.h
5 (insn_info): Add new field non_frame_wild_read.
6 (group_info): Add new fields escaped_n and escaped_p.
7 (kill_on_calls): New variable.
8 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
9 (dse_step0): Initialize kill_on_calls.
10 (can_escape): New function.
11 (set_usage_bits): Add additional parameter; record information
12 about escaped locations.
13 (record_store): Pass EXPR corresponding to MEM to
14 set_usage_bits.
15 (dse_step2_nospill): Set kill_on_calls based on
16 group->escaped_n and group->escaped_n.
17 (add_wild_read): Refactor into...
18 (reset_active_stores): ... New function, and
19 (free_read_records): ... New function.
20 (add_non_frame_wild_read): New function.
21 (scan_insn): Call add_non_frame_wild_read on non-const calls.
22 (scan_reads_nospill): Handle instructions with
23 non_frame_wild_read.
24 (dse_step5_nospill): Call scan_reads_nospill for instructions
25 marked as non_frame_wild_read.
26 (dse_step7): Free escaped_n, escaped_p and kill_on_calls
27 bitmaps.
28
29 2011-06-14 Joseph Myers <joseph@codesourcery.com>
30
31 * common/common-target-def.h, common/common-target.def,
32 common/common-target.h, common/config/default-common.c,
33 common/config/pa/pa-common.c: New files.
34 * Makefile.in (common_out_file, common_out_object_file,
35 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
36 (OBJS-libcommon-target): Include $(common_out_object_file).
37 (prefix.o): Update dependencies.
38 ($(common_out_object_file), common/common-target-hooks-def.h,
39 s-common-target-hooks-def-h): New.
40 (s-tm-texi): Also check timestamp on common-target.def.
41 (build/genhooks.o): Update dependencies.
42 * config.gcc (common_out_file, target_has_targetm_common): Define.
43 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
44 TARGET_ALWAYS_STRIP_DOTDOT.
45 * configure.ac (common_out_object_file): Define.
46 (common_out_file, common_out_object_file): Substitute.
47 (common): Create directory.
48 * configure: Regenerate.
49 * doc/tm.texi.in (targetm_common): Document.
50 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
51 * doc/tm.texi: Regenerate.
52 * genhooks.c (hook_array): Also include common/common-target.def.
53 * prefix.c (tm.h): Don't include.
54 (common/common-target.h): Include.
55 (ALWAYS_STRIP_DOTDOT): Don't define.
56 (update_path): Use targetm_common.always_strip_dotdot instead of
57 ALWAYS_STRIP_DOTDOT.
58 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
59
60 2011-06-14 David Li <davidxl@google.com>
61
62 * passes.c (execute_function_todo): Remove TODO_dump_func.
63 (execute_one_pass): Remove TODO_dump_func.
64 (execute_function_dump): New function.
65 * tree-vrp.c: Remove TODO_dump_func.
66 * regrename.c: Remove TODO_dump_func.
67 * fwprop.c: Remove TODO_dump_func.
68 * tree-into-ssa.c: Remove TODO_dump_func.
69 * tree-complex.c: Remove TODO_dump_func.
70 * tracer.c: Remove TODO_dump_func.
71 * tree-loop-distribution.c: Remove TODO_dump_func.
72 * postreload-gcse.c: Remove TODO_dump_func.
73 * postreload.c: Remove TODO_dump_func.
74 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
75 * tree-tailcall.c: Remove TODO_dump_func.
76 * ipa-cp.c: Remove TODO_dump_func.
77 * final.c: Remove TODO_dump_func.
78 * tree-emutls.c: Remove TODO_dump_func.
79 * omp-low.c: Remove TODO_dump_func.
80 * tree-ssa-dse.c: Remove TODO_dump_func.
81 * tree-ssa-uncprop.c: Remove TODO_dump_func.
82 * auto-inc-dec.c: Remove TODO_dump_func.
83 * reorg.c: Remove TODO_dump_func.
84 * tree-ssa-copyrename.c: Remove TODO_dump_func.
85 * tree-ssa-ccp.c: Remove TODO_dump_func.
86 * compare-elim.c: Remove TODO_dump_func.
87 * mode-switching.c: Remove TODO_dump_func.
88 * modulo-sched.c: Remove TODO_dump_func.
89 * tree-call-cdce.c: Remove TODO_dump_func.
90 * cse.c: Remove TODO_dump_func.
91 * web.c: Remove TODO_dump_func.
92 * tree-stdarg.c: Remove TODO_dump_func.
93 * lto-streamer-out.c: Remove TODO_dump_func.
94 * tree-ssa-math-opts.c: Remove TODO_dump_func.
95 * tree-ssa-dom.c: Remove TODO_dump_func.
96 * tree-nrv.c: Remove TODO_dump_func.
97 * loop-init.c: Remove TODO_dump_func.
98 * gimple-low.c: Remove TODO_dump_func.
99 * ipa-inline.c: Remove TODO_dump_func.
100 * tree-ssa-sink.c: Remove TODO_dump_func.
101 * jump.c: Remove TODO_dump_func.
102 * ifcvt.c: Remove TODO_dump_func.
103 * tree-ssa-loop.c: Remove TODO_dump_func.
104 * recog.c: Remove TODO_dump_func.
105 * dse.c: Remove TODO_dump_func.
106 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
107 * matrix-reorg.c: Remove TODO_dump_func.
108 * tree-eh.c: Remove TODO_dump_func.
109 * regmove.c: Remove TODO_dump_func.
110 * function.c: Remove TODO_dump_func.
111 * tree-vectorizer.c: Remove TODO_dump_func.
112 * ipa-split.c: Remove TODO_dump_func.
113 * gcse.c: Remove TODO_dump_func.
114 * tree-if-conv.c: Remove TODO_dump_func.
115 * init-regs.c: Remove TODO_dump_func.
116 * tree-ssa-phiopt.c: Remove TODO_dump_func.
117 * implicit-zee.c: Remove TODO_dump_func.
118 * lower-subreg.c: Remove TODO_dump_func.
119 * bt-load.c: Remove TODO_dump_func.
120 * tree-dfa.c: Remove TODO_dump_func.
121 * except.c: Remove TODO_dump_func.
122 * emit-rtl.c: Remove TODO_dump_func.
123 * store-motion.c: Remove TODO_dump_func.
124 * cfgexpand.c: Remove TODO_dump_func.
125 * tree-cfgcleanup.c: Remove TODO_dump_func.
126 * cfgcleanup.c: Remove TODO_dump_func.
127 * tree-ssa-pre.c: Remove TODO_dump_func.
128 * tree-sra.c: Remove TODO_dump_func.
129 * tree-mudflap.c: Remove TODO_dump_func.
130 * tree-ssa-copy.c: Remove TODO_dump_func.
131 * cfglayout.c: Remove TODO_dump_func.
132 * tree-ssa-forwprop.c: Remove TODO_dump_func.
133 * tree-ssa-dce.c: Remove TODO_dump_func.
134 * ira.c: Remove TODO_dump_func.
135 * tree-ssa.c: Remove TODO_dump_func.
136 * integrate.c: Remove TODO_dump_func.
137 * tree-optimize.c: Remove TODO_dump_func.
138 * tree-ssa-phiprop.c: Remove TODO_dump_func.
139 * tree-object-size.c: Remove TODO_dump_func.
140 * combine.c: Remove TODO_dump_func.
141 * bb-reorder.c: Remove TODO_dump_func.
142 * cprop.c: Remove TODO_dump_func.
143 * var-tracking.c: Remove TODO_dump_func.
144 * tree-profile.c: Remove TODO_dump_func.
145 * tree-vect-generic.c: Remove TODO_dump_func.
146 * reg-stack.c: Remove TODO_dump_func.
147 * sched-rgn.c: Remove TODO_dump_func.
148 * tree-ssa-structalias.c: Remove TODO_dump_func.
149 * tree-switch-conversion.c: Remove TODO_dump_func.
150 * tree-cfg.c: Remove TODO_dump_func.
151 * tree-ssa-reassoc.c: Remove TODO_dump_func.
152 * combine-stack-adj.c: Remove TODO_dump_func.
153 * dce.c: Remove TODO_dump_func.
154 * tree-ssanames.c: Remove TODO_dump_func.
155 * regcprop.c: Remove TODO_dump_func.
156
157 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
158
159 PR middle-end/47364
160 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
161 and properly handle result not in Pmode.
162
163 2011-06-14 Robert Millan <rmh@gnu.org>
164
165 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
166 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
167 `config/linux.h'.
168
169 * config/i386/kfreebsd-gnu64.h: New file.
170 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
171 with `i386/kfreebsd-gnu64.h'.
172
173 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
174 (GNU_USER_LINK_EMULATION64): New macros.
175 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
176 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
177 of hardcoding `elf_i386' and `elf_x86_64'.
178
179 2011-06-14 Nick Clifton <nickc@redhat.com>
180
181 PR target/49403
182 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
183
184 PR target/49402
185 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
186
187 2011-06-14 Jakub Jelinek <jakub@redhat.com>
188
189 PR fortran/49103
190 * tree.h (DECL_NONSHAREABLE): Define.
191 (struct tree_decl_common): Change decl_common_unused to
192 decl_nonshareable_flag.
193 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
194 Ignore vars with DECL_NONSHAREABLE bit set.
195 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
196 on stores to automatic aggregate vars.
197
198 PR rtl-optimization/49390
199 Revert:
200 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
201
202 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
203 MEM_ALIAS_SET.
204
205 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
206 Tom de Vries <tom@codesourcery.com>
207
208 PR target/45098
209 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
210 Document changed semantics.
211 (max_stmt_executions, max_stmt_executions_int): Declare.
212 * tree-data-ref.c (estimated_loop_iterations)
213 (estimated_loop_iterations_int): Move functions...
214 * tree-ssa-loop-niter.c (estimated_loop_iterations)
215 (estimated_loop_iterations_int): here.
216 (record_estimate): Change nb_iterations_upper_bound and
217 nb_iterations_estimate semantics.
218 (max_stmt_executions, max_stmt_executions_int): New function.
219 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
220 (max_stmt_executions_tree): this.
221 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
222 estimated_loop_iterations_tree.
223 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
224 max_stmt_executions_int instead of estimated_loop_iterations_int.
225 * predict.c (predict_loops): Idem.
226 * tree-parloops.c (parallelize_loops): Idem.
227 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
228 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
229 (init_omega_for_ddr_1): Idem.
230 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
231 (loop_prefetch_arrays): Idem
232 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
233 max_stmt_executions instead of estimated_loop_iterations.
234 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
235 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
236 instead of nb_iterations_upper_bound.
237
238 2011-06-13 Jan Hubicka <jh@suse.cz>
239
240 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
241
242 2011-06-14 Richard Henderson <rth@redhat.com>
243
244 PR debug/48459
245 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
246 (based_loc_descr): Assert it's true.
247 (compute_frame_pointer_to_fb_displacement): Set it, rather than
248 aborting immediately.
249
250 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
251 Mingfeng Wu <mingfeng@faraday-tech.com>
252
253 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
254
255 2011-06-13 Jan Hubicka <jh@suse.cz>
256
257 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
258
259 2011-06-13 Jan Hubicka <jh@suse.cz>
260
261 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
262 similarly to DECL_COMDAT.
263 * cgraphunit.c (cgraph_analyze_function): Likewise.
264 * ipa.c (function_and_variable_visibility): Likewise.
265
266 2011-06-13 Jan Hubicka <jh@suse.cz>
267
268 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
269 BINFO_VIRTUALS when streaming for ltrans unit.
270
271 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
272
273 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
274 (movdi_internal64): Same.
275
276 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
277
278 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
279 a set of similar patterns, where the MATCH_OPERAND for the function
280 argument is replaced with individual references to hardware registers.
281 (save_fpregs_<mode>): Ditto
282 (restore_gpregs_<mode>): Ditto
283 (return_and_restore_gpregs_<mode>): Ditto
284 (return_and_restore_fpregs_<mode>): Ditto
285 (return_and_restore_fpregs_aix_<mode>): Ditto
286
287 2011-06-13 Jan Hubicka <jh@suse.cz>
288
289 * ipa-utils.c (postorder_stack): New structure.
290 (ipa_reverse_postorder): Handle aliases.
291
292 2011-06-13 Jan Hubicka <jh@suse.cz>
293
294 * ipa-inline.c (reset_edge_caches): Walk aliases.
295 (update_caller_keys): Do not test inlinability of aliases.
296 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
297 (do_estimate_growth): Fix typo.
298
299 2011-06-13 Jan Hubicka <jh@suse.cz>
300
301 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
302 (can_remove_node_now_p): ... here; handle same comdat groups.
303 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
304 (inline_call): Update use of can_remove_node_now_p.
305
306 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
307
308 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
309 condition to disallow non-identical memory locations.
310 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
311 preference to bit manipulation instructions.
312
313 2011-06-13 Jan Hubicka <jh@suse.cz>
314
315 * cgraph.c (cgraph_for_node_thunks_and_aliases,
316 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
317 (nonremovable_p): New function.
318 (cgraph_can_remove_if_no_direct_calls_p): New function.
319 (used_from_object_file_p): New functoin.
320 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
321 references from aliases.
322 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
323 * ipa-inline.c (check_caller_edge): New function.
324 (want_inline_function_called_once_p): Use it; accept aliases called
325 once, too.
326 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
327
328 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
329
330 PR target/48454
331 * config/arm/neon.md (vec_pack_trunc): Set the lengths
332 correctly for the case with Quad vectors.
333
334 2011-06-13 Jakub Jelinek <jakub@redhat.com>
335 Ira Rosen <ira.rosen@linaro.org>
336
337 PR tree-optimization/49352
338 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
339 all, make sure loop_use_stmt after the loop is a def stmt of a used
340 SSA_NAME that is the only one defined inside of the loop. Don't
341 check for COND_EXPR and GIMPLE_BINARY_RHS.
342 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
343 check_reduction is true.
344
345 2011-06-11 Jan Hubicka <jh@suse.cz>
346
347 PR middle-end/49373
348 * ipa.c (cgraph_externally_visible_p): Check resolution info.
349
350 2011-06-11 Jan Hubicka <jh@suse.cz>
351
352 PR middle-end/48836
353 * ipa-inline-transform.c: Include tree-pass.h
354 (inline_transform): Set TODO_update_ssa_only_virtuals.
355 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
356
357 2011-06-11 Jan Hubicka <jh@suse.cz>
358
359 PR middle-end/49378
360 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
361 aliases and thunks.
362
363 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
364
365 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
366 Take number of iterations to peel into account for equally frequent
367 misalignment values.
368
369 2011-06-11 Jan Hubicka <jh@suse.cz>
370
371 * lto-streamer-out.c (produce_symtab): Stream out the newly represented
372 aliases.
373
374 2011-06-11 Jan Hubicka <jh@suse.cz>
375
376 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting varying
377 args.
378 (ipa_update_after_lto_read): Likewise.
379 (ipa_write_node_info): Do not sream call_with_var_arguments.
380 (ipa_read_node_info): Likewise.
381
382 2011-06-11 Jan Hubicka <jh@suse.cz>
383
384 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
385
386 2011-06-11 Jan Hubicka <jh@suse.cz>
387
388 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
389 (lto_symtab_resolve_can_prevail_p): Likewise.
390 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
391 * cgraph.c (same_body_aliases_done): New global var.
392 (cgraph_same_body_alias_1): Rename to ...
393 (cgraph_create_function_alias): ... this one; reorg to new
394 representation.
395 (cgraph_same_body_alias): Use cgraph_create_function_alias;
396 record references when asked to.
397 (cgraph_add_thunk): Fix formating.
398 (cgraph_get_node): Kill same body alias code.
399 (cgraph_node_for_asm): Likewise.
400 (cgraph_remove_same_body_alias): Remove.
401 (cgraph_remove_node): Kill same body alias code.
402 (cgraph_mark_address_taken_node): Mark also the aliased function
403 as having address taken.
404 (dump_cgraph_node): Dump same body aliases.
405 (cgraph_for_node_thunks_and_aliases): Update for new alias
406 representation.
407 (cgraph_for_node_and_aliases): Likewise.
408 * cgraph.h (same_body): Kll pointer.
409 (same_body_alias): Update comment.
410 (same_body_aliases_done): Declare.
411 (cgraph_remove_same_body_alias): Remove declaration.
412 (cgraph_create_function_alias): Declare.
413 (cgraph_process_same_body_aliases): Declare.
414 (cgraph_function_with_gimple_body_p): Check for alias.
415 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
416 (cgraph_alias_aliased_node): New function.
417 (cgraph_function_node): Update for new aliases.
418 (cgraph_function_or_thunk_node): Likewise.
419 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
420 (inline_call): Remove dead aliases.
421 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
422 name hack for same body aliases.
423 (clone_of_p): Look through aliases.
424 (verify_cgraph_node): Verify aliases.
425 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
426 (cgraph_process_same_body_aliases): New function.
427 (process_function_and_variable_attributes): Disable weakref warning on
428 alias.
429 (cgraph_analyze_functions): Handle aliases.
430 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
431 (assemble_thunks): Rename to ...
432 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
433 (cgraph_expand_function): Remove alias output code.
434 (cgraph_output_in_order): Skip aliases.
435 (cgraph_preserve_function_body_p): Aliases don't need preserving.
436 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
437 (ipa_record_reference): Do not assert on alias references.
438 (ipa_ref_has_aliases_p): New function.
439 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
440 (ipa_ref_has_aliases_p): Declare.
441 * lto-cgraph.c (lto_output_node): Handle aliases.
442 (input_node): Likewise.
443 * lto-streamer-out.c (lto_output): Skip aliases.
444 (produce_symtab): Kill same_body_alias code.
445 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
446 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
447 * ipa-inline.c (update_caller_keys): Walk aliases.
448 (inline_small_functions): Fix thinko in previous patch.
449 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
450 (function_and_variable_visibility): Do not walk same body aliases.
451 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
452 (ipa_pta_execute): Use it.
453
454 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
455
456 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
457 (*vec_dupv2df): Rename from vec_dupv2df.
458 (vec_dupv2df): New expander.
459
460 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
461
462 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
463
464 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
465
466 * config/i386/i386.md: Use default value in "isa" attribute.
467 * config/i386/sse.md: Ditto.
468 * config/i386/mmx.md: Ditto.
469
470 2011-06-10 Wei Guozhi <carrot@google.com>
471
472 PR target/45335
473 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
474 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
475 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
476 related peephole2.
477 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
478 related peephole2.
479 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
480 (arm_legitimate_ldrd_p): New prototype.
481 (arm_output_ldrd): New prototype.
482 * config/arm/arm.c (arm_check_ldrd_operands): New function.
483 (arm_legitimate_ldrd_p): New function.
484 (arm_output_ldrd): New function.
485
486 2011-06-10 David Li <davidxl@google.com>
487
488 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
489 * passes.c (passr_eq): New function.
490 (create_pass_tab): New function.
491 (pass_traverse): New function.
492 (dump_one_pass): New function.
493 (dump_pass_list): New function.
494 (dump_passes): New function.
495
496 2011-06-10 Jan Hubicka <jh@suse.cz>
497
498 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
499 setting the nothrow flag.
500 * ipa-reference.c (propagate): Skip aliases.
501 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
502 (propagate_nothrow): Skip aliases; do not update cgraph.
503 (local_pure_const): Do not update cgraph.
504 * tree-profile.c (tree_profiling): Do fixup_cfg.
505
506 2011-06-10 Jan Hubicka <jh@suse.cz>
507
508 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
509 (cgraph_local_node_p): ... here; handle aliases.
510 (has_addr_references_p): Break out from ...;
511 (cgraph_remove_unreachable_nodes) ... here.
512
513 2011-06-10 Jan Hubicka <jh@suse.cz>
514
515 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
516 * common.opt (flag_inline_functions_called_once): Do not
517 initialize to 1.
518
519 2011-06-10 Jan Hubicka <jh@suse.cz>
520
521 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
522 (ipcp_initialize_node_lattices): Do not deal with aliases;
523 Do not try to propagate through thunks.
524 (ipcp_change_tops_to_bottom): Do not deal with aliases.
525
526 2011-06-10 Jan Hubicka <jh@suse.cz>
527
528 * ipa-prop.c (ipa_write_node_info): Stream jump functions
529 for indirect calls.
530 (ipa_read_node_info): Likewise.
531
532 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
533
534 PR lto/49302
535 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
536 (build_and_insert_call): Likewise.
537 (build_and_insert_ref): New.
538 (gimple_expand_builtin_pow): Minor cleanup.
539 (gimple_expand_builtin_cabs): New.
540 (execute_cse_sincos): Add case for BUILT_IN_CABS.
541
542 2011-06-10 Jan Hubicka <jh@suse.cz>
543
544 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
545 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
546 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
547 (ipcp_propagate_stage): Skip aliases when propagating.
548 (ipcp_need_redirect_p): Skip aliases.
549 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
550 collect_callers_of_node.
551 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
552 for aliases.
553 (ipa_compute_jump_functions): Look through aliases.
554
555 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
556
557 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
558
559 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
560
561 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
562 Adjust comments.
563 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
564
565 2011-06-10 Jan Hubicka <jh@suse.cz>
566
567 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
568 Update call of gimple_get_virt_method_for_binfo.
569 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
570 refuse_thunks parameter.
571 (gimple_fold_call): Update.
572 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
573
574 2011-06-10 Jan Hubicka <jh@suse.cz>
575
576 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
577 (not_all_callers_have_enough_arguments_p): ... this one; turn into
578 worker for cgraph_for_node_and_aliases.
579 (convert_callers_for_node): Break out from ...
580 (convert_callers): ... here.
581 (modify_function): Use collect_callers_of_node.
582 (ipa_early_sra): Use cgraph_for_node_and_aliases.
583
584 2011-06-10 Richard Guenther <rguenther@suse.de>
585
586 PR tree-optimization/49361
587 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
588 when not already in gimple form.
589
590 2011-06-10 Richard Guenther <rguenther@suse.de>
591
592 PR bootstrap/49344
593 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
594 FOR_EACH_PHI_OR_STMT_USE.
595
596 2011-06-10 Jan Hubicka <jh@suse.cz>
597
598 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
599 (clone_inlined_nodes): ... here.
600 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
601 to real destination prior inlining.
602 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
603 can_early_inline_edge_p, want_early_inline_function_p,
604 want_early_inline_function_p, want_inline_small_function_p,
605 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
606 edge_badness, update_all_callee_keys, lookup_recursive_calls,
607 add_new_edges_to_heap, inline_small_functions, flatten_function,
608 inline_always_inline_functions, early_inline_small_functions): Use
609 cgraph_function_or_thunk_node.
610 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
611 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
612 (do_estimate_edge_growth_1): Break out from ...
613 (do_estimate_growth) ... here; walk aliases.
614 (inline_generate_summary): Skip aliases.
615
616 2011-06-10 Richard Guenther <rguenther@suse.de>
617
618 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
619 forward when combining, visit inserted stmts when a stmt was changed.
620
621 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
622
623 * tree.h (error_operand_p): Add.
624 * dbxout.c (dbxout_type_fields): Use the latter.
625 * c-decl.c (add_stmt): Likewise.
626 * gimplify.c (omp_add_variable, omp_notice_variable,
627 gimplify_scan_omp_clauses): Likewise.
628
629 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
630
631 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
632 when a value is actually passed in regs.
633
634 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
635 Laurent Rougé <laurent.rouge@menta.fr>
636
637 * doc/invoke.texi (SPARC options): Add -mflat.
638 * config/sparc/sparc.opt: Likewise.
639 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
640 (sparc_flat_expand_prologue): Declare.
641 (sparc_flat_expand_epilogue): Likewise.
642 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
643 (CPP_ENDIAN_SPEC): Replace with...
644 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
645 (CPP_SPEC): Adjust to above change.
646 (EXTRA_SPECS): Likewise.
647 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
648 (INCOMING_REGNO): Likewise.
649 (OUTGOING_REGNO): Likewise.
650 (LOCAL_REGNO): Likewise.
651 (SETUP_FRAME_ADDRESSES): Likewise.
652 (FIXED_REGISTERS): Set 0 for %fp.
653 (CALL_USED_REGISTERS): Likewise.
654 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
655 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
656 (RETURN_ADDR_REGNUM): Define.
657 (RETURN_ADDR_RTX): Use it.
658 (INCOMING_RETURN_ADDR_REGNUM): Define.
659 (INCOMING_RETURN_ADDR_RTX): Use it.
660 (DWARF_FRAME_RETURN_COLUMN): Likewise.
661 (EH_RETURN_REGNUM): Define.
662 (EH_RETURN_STACKADJ_RTX): Use it.
663 (EH_RETURN_HANDLER_RTX): Delete.
664 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
665 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
666 Delete.
667 (struct machine_function): Add frame_size, apparent_frame_size,
668 frame_base_reg, frame_base_offset, n_global_fp_regs and
669 save_local_in_regs_p fields.
670 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
671 sparc_frame_base_offset, sparc_n_global_fp_regs,
672 sparc_save_local_in_regs_p): New macros.
673 (sparc_option_override): Error out if -fcall-saved-REG is specified
674 for Out registers.
675 (eligible_for_restore_insn): Fix formatting.
676 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
677 (eligible_for_sibcall_delay): Likewise.
678 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
679 (sparc_legitimate_address_p): Adjust to above change.
680 (save_global_or_fp_reg_p): New predicate.
681 (return_addr_reg_needed_p): Likewise.
682 (save_local_or_in_reg_p): Likewise.
683 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
684 (SORR_SAVE, SORR_RESTORE): Delete.
685 (sorr_pred_t): New typedef.
686 (sorr_act_t): New enum.
687 (save_or_restore_regs): Rename to...
688 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
689 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
690 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
691 mechanism. Add CFI information for double-word saves in 32-bit mode.
692 (emit_adjust_base_to_offset): New function extracted from...
693 (emit_save_or_restore_regs): ...this. Rename the rest to...
694 (emit_save_or_restore_regs_global_fp_regs): ...this.
695 (emit_save_or_restore_regs_local_in_regs): New function.
696 (gen_create_flat_frame_[123]): New functions.
697 (sparc_expand_prologue): Use SIZE local variable. Adjust.
698 (sparc_flat_expand_prologue): New function.
699 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
700 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
701 (sparc_flat_expand_epilogue): New function.
702 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
703 (output_return): Likewise.
704 (output_sibcall): Likewise.
705 (sparc_output_mi_thunk): Likewise.
706 (sparc_frame_pointer_required): Likewise.
707 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
708 function optimization.
709 * config/sparc/sparc.md (flat): New attribute.
710 (prologue): Add TARGET_FLAT handling.
711 (save_register_window): Disable if TARGET_FLAT.
712 (create_flat_frame_[123]): New patterns.
713 (epilogue): Add TARGET_FLAT handling.
714 (sibcall_epilogue): Likewise.
715 (eh_return): New expander.
716 (eh_return_internal): New insn and splitter.
717 (return_internal): Add TARGET_FLAT handling.
718 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
719 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
720 (nonlocal_goto): Add TARGET_FLAT handling.
721 * config/sparc/t-elf: Add -mflat multilib.
722 * config/sparc/t-leon: Likewise.
723
724 2011-06-10 Jan Hubicka <jh@suse.cz>
725
726 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
727 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
728 (self_recursive_p): Use cgraph_function_node.
729 (propagate_pure_const): Likewise.
730 (propagate_nothrow): Likewise.
731 * ipa-reference.c (ipa_reference_get_not_read_global): Use
732 cgraph_function_node.
733 (propagate_bits): Likewise.
734 (propagate): Likewise.
735
736 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
737 Richard Earnshaw <rearnsha@arm.com>
738
739 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
740 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
741 (*thumb2_movdi_vfp): Delete.
742 (*arm_movdi_vfp_cortexa8): Delete.
743 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
744 (*movdi_vfp_cortexa8): Likewise.
745
746 2011-06-10 Richard Guenther <rguenther@suse.de>
747
748 * stor-layout.c (initialize_sizetypes): Give names to all
749 sizetype kinds.
750
751 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
752
753 PR tree-optimization/49318
754 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
755 irrelevant pattern statements.
756
757 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
758
759 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
760
761 PR bootstrap/49354
762 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
763 to last assignment.
764
765 2011-06-09 Jan Hubicka <jh@suse.cz>
766
767 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
768 do not recompute reachable flag.
769 (cgraph_finalize_function, cgraph_analyze_functions): Set
770 redefined_extern_inline here.
771
772 2011-06-09 Jan Hubicka <jh@suse.cz>
773
774 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
775 (cgraph_only_called_directly_p): ... this one; bring offline.
776 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
777 varpool_used_from_object_file_p): Drop names from the declaratoin.
778 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
779 collect_callers_of_node): New.
780 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
781 (cgraph_edge_recursive_p): Use cgraph_function_node.
782 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
783 (cgraph_node_cannot_be_local_p_1): Break out from ...
784 (cgraph_node_can_be_local_p): ... here; walk aliases.
785 (cgraph_for_node_thunks_and_aliases): New function.
786 (cgraph_for_node_and_aliases): New function.
787 (cgraph_make_node_local_1): Break out from ...
788 (cgraph_make_node_local) ... here; use
789 cgraph_for_node_thunks_and_aliases.
790 (cgraph_set_nothrow_flag_1): Break out from ...
791 (cgraph_set_nothrow_flag) ... here;
792 use cgraph_for_node_thunks_and_aliases.
793 (cgraph_set_const_flag_1): Break out from ...
794 (cgraph_set_const_flag) ... here;
795 use cgraph_for_node_thunks_and_aliases.
796 (cgraph_set_pure_flag_1): Break out from ...
797 (cgraph_set_pure_flag) ... here;
798 use cgraph_for_node_thunks_and_aliases.
799 (cgraph_propagate_frequency_1): Break out from ...
800 (cgraph_propagate_frequency) ... here; use
801 cgraph_for_node_thunks_and_aliases.
802 (cgraph_used_from_object_file_p): Do not care about aliases.
803 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
804 New functions.
805 (collect_callers_of_node_1, collect_callers_of_node): New functions.
806
807 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
808
809 PR rtl-optimization/49154
810 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
811 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
812 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
813 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
814 * config/cris/cris.h (cris_register_move_cost): Remove
815 !TARGET_V32 code. Tweak comments.
816
817 2011-06-09 Jan Hubicka <jh@suse.cz>
818
819 * cgraphbuild.c (record_eh_tables): Mark personality function as having
820 address taken.
821
822 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
823
824 PR rtl-optimization/49154
825 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
826 is a matching slot in the hashtable, assign it to classes_ptr.
827
828 PR rtl-optimization/49154
829 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
830 register classes.
831 * doc/tm.texi: Regenerate.
832
833 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
834
835 PR target/49307
836 * config/sh/sh.md (UNSPEC_CHKADD): New.
837 (chk_guard_add): New define_insn_and_split.
838 (symGOT_load): Use chk_guard_add instead of blockage.
839
840 2011-06-09 Kai Tietz <ktietz@redhat.com>
841
842 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
843
844 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
845
846 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
847
848 2011-06-09 Wei Guozhi <carrot@google.com>
849
850 PR target/46975
851 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
852 (peephole2 for conditional move): Generate 16 bit instructions.
853
854 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
855
856 * config/i386/i386.md (*movdi_internal_rex64): Merge
857 alternatives 6 and 8.
858
859 2011-06-09 David Li <davidxl@google.com>
860
861 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
862 * passes.c (passr_eq): New function.
863 (create_pass_tab): New function.
864 (pass_traverse): New function.
865 (dump_one_pass): New function.
866 (dump_pass_list): New function.
867 (dump_passes): New function.
868
869 2011-06-09 David Li <davidxl@google.com>
870
871 * tree-complex.c (tree_lower_complex): Gate cleanup.
872 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
873 (execute_optimize_stdarg): Ditto.
874 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
875 (execute_cleanup_eh_1): Ditto.
876 (execute_cleanup_eh): Ditto.
877 * gcse.c (gate_rtl_pre): Ditto.
878 (execute_rtl_pre): Ditto.
879 * except.c (finish_eh_generation): Ditto.
880 (convert_to_eh_region_ranges): Ditto.
881 * cprop.c (one_cprop_pass): Ditto.
882
883 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
884
885 PR target/48673
886 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
887 in all basic blocks.
888
889 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
890
891 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
892 (HAVE_ENABLE_EXECUTE_STACK): Define.
893 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
894 (HAVE_ENABLE_EXECUTE_STACK): Define.
895 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
896 (HAVE_ENABLE_EXECUTE_STACK): Define.
897 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
898 (ENABLE_EXECUTE_STACK): Remove.
899 (HAVE_ENABLE_EXECUTE_STACK): Define.
900 [IN_LIBGCC2]: Don't include <windows.h>.
901 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
902 (HAVE_ENABLE_EXECUTE_STACK): Define.
903 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
904 (HAVE_ENABLE_EXECUTE_STACK): Define.
905 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
906 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
907 (HAVE_ENABLE_EXECUTE_STACK): Define.
908 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
909 (HAVE_ENABLE_EXECUTE_STACK): Define.
910 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
911 (HAVE_ENABLE_EXECUTE_STACK): Define.
912 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
913 (HAVE_ENABLE_EXECUTE_STACK): Define.
914 * config/alpha/alpha.c (alpha_trampoline_init): Test
915 HAVE_ENABLE_EXECUTE_STACK.
916 * config/i386/i386.c (ix86_trampoline_init): Likewise.
917 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
918 (sparc64_initialize_trampoline): Likewise.
919 * libgcc2.c [L_enable_execute_stack]: Remove.
920 * system.h (ENABLE_EXECUTE_STACK): Poison.
921 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
922 * doc/tm.texi: Regenerate.
923 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
924
925 2011-06-09 Jakub Jelinek <jakub@redhat.com>
926
927 PR middle-end/49308
928 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
929 variable. After resetting and rescanning insn continue with previous
930 statement.
931
932 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
933
934 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
935 (gcc_cv_ld_hidden): Likewise.
936 * configure: Regenerate.
937 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
938 (ix86_stack_protect_fail): Mark unused.
939 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
940 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
941 [TARGET_MACHO]: Don't define.
942 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
943 (TARGET_STACK_PROTECT_FAIL): Likewise.
944 (rs6000_stack_protect_fail): Mark unused.
945 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
946 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
947
948 2011-06-08 Andi Kleen <ak@linux.intel.com>
949
950 * varasm.c (get_section): Print location of other conflict
951 for section conflicts.
952
953 2011-06-08 Andi Kleen <ak@linux.intel.com>
954
955 * config/i386/driver-i386.c (host_detect_local_cpu):
956 Add model 0x2d Intel CPU.
957
958 2011-06-08 Andi Kleen <ak@linux.intel.com>
959
960 * reginfo.c (global_regs_decl): Add.
961 (globalize_reg): Add decl parameter. Compute location. Pass location
962 to warnings and add inform. Store decl in global_regs_decl.
963 * rtl.h (globalize_reg): Update prototype.
964 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
965
966 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
967
968 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
969
970 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
971
972 PR target/49305
973 * config/sh/predicates.md (general_movsrc_operand): Check
974 mode for memory with indexed address for QI and HImode.
975 (general_movdst_operand): Likewise.
976
977 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
978
979 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
980
981 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
982
983 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
984 (num_ssa_operands): Likewise.
985 (op_iter_init_phiuse): Forward-declare.
986 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
987
988 2011-06-08 Nick Clifton <nickc@redhat.com>
989
990 * doc/invoke.texi (ARM Options): Update description of
991 -mthumb-interwork.
992
993 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
994
995 * config/i386/driver-i386.c (host_detect_local_cpu): Support
996 unknown Intel family 0x6 CPUs.
997
998 2011-06-08 Martin Jambor <mjambor@suse.cz>
999
1000 * tree-sra.c (mark_rw_status): Removed.
1001 (analyze_access_subtree): New parameter parent instead of
1002 mark_read and mark_write, propagate from that.
1003
1004 2011-06-08 Julian Brown <julian@codesourcery.com>
1005
1006 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
1007 for double-precision helper functions in hard-float mode if only
1008 single-precision arithmetic is supported in hardware.
1009
1010 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
1011
1012 PR rtl-optimization/49303
1013 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
1014 code_motion_path_driver returned 0 or 1.
1015 (sel_region_finish): Clear h_d_i_d.
1016
1017 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1018
1019 * config/sh/sh.c (prepare_move_operands): Set pic register
1020 appropriately for global and local dynamic tls models even
1021 if flag_pic is unset.
1022
1023 2011-06-07 Jason Merrill <jason@redhat.com>
1024
1025 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
1026
1027 2011-06-07 Xinliang David Li <davidxl@google.com>
1028 * passes.c (enable_disable_pass): Handle assembler name.
1029 (is_pass_explicitly_enabled_or_disabled): Ditto.
1030
1031 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1032
1033 PR tree-optimization/48497
1034 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
1035
1036 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1037
1038 PR tree-optimization/46728
1039 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
1040 to use gimple_val_nonnegative_real_p.
1041 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
1042 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
1043
1044 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
1045
1046 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
1047
1048 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
1049
1050 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
1051 constant vectors.
1052
1053 2011-06-07 Richard Guenther <rguenther@suse.de>
1054
1055 * stor-layout.c (initialize_sizetypes): Initialize all
1056 sizetypes based on target definitions.
1057 (set_sizetype): Remove.
1058 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
1059 * tree.h (set_sizetype): Remove.
1060
1061 2011-06-07 Nick Clifton <nickc@redhat.com>
1062
1063 * config.gcc: Unify V850 architecture options and add support for
1064 newer V850 architectures.
1065 * config/v850/t-v850e: Delete.
1066
1067 2011-06-07 Richard Guenther <rguenther@suse.de>
1068
1069 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
1070 Call set_sizetype from here.
1071
1072 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
1073
1074 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
1075 (*maddhisi4tb, *maddhisi4tt): New define_insns.
1076
1077 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
1078 Andrew Stubbs <ams@codesourcery.com>
1079
1080 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
1081 multiplies.
1082 * doc/md.texi (Canonicalization of Instructions): Document widening
1083 multiply canonicalization.
1084
1085 2011-06-07 Jakub Jelinek <jakub@redhat.com>
1086
1087 PR gcov-profile/49299
1088 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
1089
1090 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
1091
1092 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
1093 a pointer.
1094 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
1095 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
1096 vect_recog_pow_pattern): Likewise.
1097 (vect_pattern_recog_1): Remove declaration.
1098 (widened_name_p): Remove declaration. Add new argument to specify
1099 whether to check that both types are either signed or unsigned.
1100 (vect_recog_widen_mult_pattern): Update documentation. Handle
1101 unsigned patterns and multiplication by constants.
1102 (vect_pattern_recog_1): Update vect_recog_func references. Use
1103 statement information from the statement returned from pattern
1104 detection functions.
1105 (vect_pattern_recog): Update vect_recog_func reference.
1106 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
1107 multiplication by a constant use the type of the other operand.
1108
1109 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
1110
1111 PR rtl-optimization/49145
1112 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
1113
1114 2011-06-06 Jakub Jelinek <jakub@redhat.com>
1115
1116 PR debug/49262
1117 * dwarf2out.c (native_encode_initializer): Decrement count in each
1118 iteration.
1119
1120 PR debug/49294
1121 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
1122 non-MODE_INT modes.
1123
1124 PR c++/49264
1125 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
1126 if stmt folded into nothing.
1127 * tree-inline.c (fold_marked_statements): If a builtin at the end of
1128 a bb folded into nothing, just update cgraph edges and move to next bb.
1129 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
1130 to be NULL. Don't compute count and frequency if new_call is NULL.
1131
1132 2011-06-04 Diego Novillo <dnovillo@google.com>
1133
1134 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
1135 (cgraph.o): Likewise.
1136 (cgraphunit.o): Likewise.
1137 * cgraphunit.c: Include lto-streamer.h
1138 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
1139 if LTO is enabled.
1140 * lto-streamer-in.c (unpack_value_fields): Call
1141 streamer_hooks.unpack_value_fields if set.
1142 (lto_materialize_tree): For unhandled nodes, first try to
1143 call lto_streamer_hooks.alloc_tree, if it exists.
1144 (lto_input_ts_decl_common_tree_pointers): Move reading of
1145 DECL_INITIAL to lto_streamer_read_tree.
1146 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
1147 (lto_streamer_read_tree): New.
1148 (lto_reader_init): Rename from lto_init_reader.
1149 Move initialization code to lto/lto.c.
1150 * lto-streamer-out.c (pack_value_fields): Call
1151 streamer_hooks.pack_value_fields if set.
1152 (lto_output_tree_ref): For tree nodes that are not normally indexable,
1153 call streamer_hooks.indexable_with_decls_p before giving up.
1154 (lto_output_ts_decl_common_tree_pointers): Move handling
1155 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
1156 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
1157 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
1158 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
1159 (lto_streamer_write_tree): New.
1160 (lto_output): Call lto_streamer_init directly.
1161 (lto_writer_init): Remove.
1162 * lto-streamer.c (streamer_hooks): New.
1163 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
1164 instead of lto_preload_common_nodes.
1165 (lto_is_streamable): Move from lto-streamer.h
1166 (lto_streamer_hooks_init): New.
1167 (streamer_hooks): New.
1168 (streamer_hooks_init): New.
1169 * lto-streamer.h (struct output_block): Forward declare.
1170 (struct lto_input_block): Likewise.
1171 (struct data_in): Likewise.
1172 (struct bitpack_d): Likewise.
1173 (struct streamer_hooks): Declare.
1174 (streamer_hooks): Declare.
1175 (lto_streamer_hooks_init): Declare.
1176 (lto_streamer_write_tree): Declare.
1177 (lto_streamer_read_tree): Declare.
1178 (streamer_hooks_init): Declare.
1179 (lto_is_streamable): Move to lto-streamer.c
1180
1181 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1182
1183 * longlong.h (smul_ppmm): The resulting register pair contains the
1184 higher order word first.
1185
1186 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1187
1188 PR tree-optimization/46728
1189 * builtins.c (powi_table): Remove.
1190 (powi_lookup_cost): Remove.
1191 (powi_cost): Remove.
1192 (expand_powi_1): Remove.
1193 (expand_powi): Remove.
1194 (expand_builtin_pow_root): Remove.
1195 (expand_builtin_pow): Remove.
1196 (expand_builtin_powi): Eliminate handling of constant exponent.
1197 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
1198
1199 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1200
1201 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
1202
1203 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1204
1205 * dce.c (reset_unmarked_insns_debug_uses): New.
1206 (delete_unmarked_insns): Skip debug insns.
1207 (prescan_insns_for_dce): Likewise.
1208 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
1209 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
1210 active reg can be found.
1211 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
1212 (convert_regs_1): Use it.
1213
1214 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1215
1216 * tree-pretty-print.c (dump_function_header): Add flags.
1217 Don't dump decl_uid with nouid.
1218 * tree-pretty-print.h (dump_function_header): Adjust.
1219 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
1220 * passes.c (pass_init_dump_file): Pass dump_flags on.
1221 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
1222
1223 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
1224
1225 PR bootstrap/49270
1226 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
1227
1228 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
1229
1230 PR tree-optimization/49243
1231 * calls.c (setjmp_call_p): Also check if fndecl has the
1232 returns_twice attribute.
1233
1234 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1235
1236 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
1237 -ffast-math etc.
1238
1239 2011-06-06 Richard Henderson <rth@redhat.com>
1240 Georg-Johann Lay <avr@gjlay.de>
1241
1242 PR target/42210
1243 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
1244 New predicates.
1245 * config/avr/avr.md ("insv"): New insn expander.
1246 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
1247 "*insv.not.io", "*insv.reg"): New insns.
1248
1249 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
1250
1251 PR target/49285
1252 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
1253 to nonimmediate_operand from memory_operand for the operand that is to
1254 be forced to memory by the expander. Lose the constraints.
1255
1256 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
1257
1258 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
1259 EH return when delayed branches are disabled.
1260
1261 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
1262
1263 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
1264 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
1265 calculation.
1266 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
1267 Simplify MODE_V1DF and MODE_V2SF handling.
1268 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
1269 Simplify MODE_SF handling.
1270
1271 2011-06-04 Jan Hubicka <jh@suse.cz>
1272
1273 PR tree-optimization/48893
1274 PR tree-optimization/49091
1275 PR tree-optimization/49179
1276 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
1277 Bounds check.
1278
1279 2011-06-04 Jan Hubicka <jh@suse.cz>
1280
1281 PR lto/48954
1282 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
1283 bitmaps.
1284
1285 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
1286
1287 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
1288
1289 2011-06-04 Jakub Jelinek <jakub@redhat.com>
1290
1291 PR target/49281
1292 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
1293 to be strictly smaller than 1 << shiftcount.
1294
1295 2011-06-04 Jan Hubicka <jh@suse.cz>
1296
1297 PR tree-optimize/48929
1298 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
1299 of empty predicate.
1300
1301 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
1302
1303 PR debug/48333
1304 * calls.c (emit_call_1): Prefer the __builtin declaration of
1305 builtin functions.
1306
1307 2011-06-03 Diego Novillo <dnovillo@google.com>
1308
1309 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
1310 (lto_input_tree_pointers): Likewise.
1311 * lto-streamer-out.c (pack_value_fields): Likewise.
1312 (lto_output_tree_pointers): Likewise.
1313 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
1314 and OPTIMIZATION_NODE.
1315
1316 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1317
1318 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
1319 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
1320 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
1321 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
1322 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
1323 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
1324 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
1325 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
1326 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
1327 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
1328 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
1329 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
1330 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
1331 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
1332 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
1333 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
1334 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
1335 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
1336 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
1337 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
1338 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
1339 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
1340 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
1341 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
1342 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
1343 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
1344 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
1345 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
1346 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
1347 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
1348 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
1349 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
1350 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
1351 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
1352 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
1353 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
1354 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
1355 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
1356 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
1357 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
1358 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
1359 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
1360 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
1361 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
1362 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
1363 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
1364 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
1365 * system.h (MD_UNWIND_SUPPORT): Poison.
1366 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
1367 * doc/tm.texi: Regenerate.
1368 * unwind-dw2.c: Include md-unwind-support.h instead of
1369 MD_UNWIND_SUPPORT.
1370 * config/ia64/unwind-ia64.c: Likewise.
1371 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
1372
1373 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
1374
1375 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
1376
1377 2011-06-03 Richard Henderson <rth@redhat.com>
1378 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1379
1380 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
1381 (sigill_hdlr): Correct insn, insn size.
1382 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
1383
1384 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1385
1386 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
1387 t-slibgcc-dummy.
1388 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
1389 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
1390 * config/mips/t-iris: Remove.
1391 * config/mips/t-irix6: New file.
1392 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
1393
1394 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1395
1396 * Makefile.in (LIB2ADDEHDEP): Remove.
1397 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
1398 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
1399 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
1400 * config/t-darwin (LIB2ADDEHDEP): Remove.
1401 * config/t-freebsd (LIB2ADDEHDEP): Remove.
1402 * config/t-linux (LIB2ADDEHDEP): Remove.
1403
1404 2011-06-03 Diego Novillo <dnovillo@google.com>
1405
1406 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
1407 (lto_register_var_decl_in_symtab): Likewise.
1408 (lto_register_function_decl_in_symtab): Likewise.
1409 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
1410 logic to uniquify_nodes.
1411
1412 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1413
1414 * config/alpha/t-osf5: Remove.
1415 * config/alpha/t-osf-pthread: Remove.
1416 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
1417 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
1418
1419 2011-06-03 Julian Brown <julian@codesourcery.com>
1420
1421 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
1422 (strongarm1110): Use strongarm tuning.
1423 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
1424 * config/arm/arm.c (arm_strongarm_tune): New.
1425 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1426 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
1427 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
1428 setting, using previous defaults or 1 for Cortex-A5.
1429 (arm_option_override): Set max_insns_skipped from current tuning.
1430
1431 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
1432
1433 * doc/install.texi (Options specification): Document --with-specs.
1434
1435 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1436
1437 * config/arm/neon.md (orndi3_neon): Actually split it.
1438
1439 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1440
1441 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
1442 * var-tracking.c (reverse_op): Limite recurse depth to 5.
1443
1444 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
1445
1446 PR debug/47590
1447 * target.def (delay_sched2, delay_vartrack): New.
1448 * doc/tm.texi.in: Update.
1449 * doc/tm.texi: Rebuild.
1450 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
1451 * var-tracking.c (gate_handle_var_tracking): Likewise.
1452 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
1453 (bfin_flag_var_tracking): Drop.
1454 (output_file_start): Don't save and override flag_var_tracking.
1455 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
1456 (bfin_reorg): Test original variables.
1457 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1458 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
1459 (ia64_flag_var_tracking): Drop.
1460 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1461 (ia64_file_start): Don't save and override flag_var_tracking.
1462 (ia64_override_options_after_change): Ditto
1463 flag_schedule_insns_after_reload.
1464 (ia64_reorg): Test original variables.
1465 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
1466 (picochip_flag_var_tracking): Drop.
1467 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
1468 (picochip_option_override): Don't save and override
1469 flag_schedule_insns_after_reload.
1470 (picochip_asm_file_start): Ditto flag_var_tracking.
1471 (picochip_reorg): Test original variables.
1472 * config/spu/spu.c (spu_flag_var_tracking): Drop.
1473 (TARGET_DELAY_VARTRACK): Define.
1474 (spu_var_tracking): New.
1475 (spu_machine_dependent_reorg): Call it.
1476 (asm_file_start): Don't save and override flag_var_tracking.
1477
1478 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
1479
1480 PR target/49163
1481 * config/sh/predicates.md (general_movsrc_operand): Return 0
1482 for memory and memory subreg of which address is an invalid
1483 indexed address for QI and HImode.
1484 (general_movdst_operand): Likewise.
1485
1486 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1487
1488 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
1489 edges only, when there is a non-local label in the function.
1490 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
1491
1492 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1493
1494 * config/i386/constraints.md (Y3): New register constraint.
1495 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
1496 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
1497 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
1498 *sse2_interleave_lowv2df.
1499
1500 2011-06-02 Julian Brown <julian@codesourcery.com>
1501
1502 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
1503 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
1504 (arm_cortex_a5_tune): New.
1505
1506 2011-06-02 Julian Brown <julian@codesourcery.com>
1507
1508 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
1509 * config/arm/arm.c (arm_default_branch_cost): New.
1510 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
1511 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
1512 (arm_fa726_tune): Set branch_cost field using
1513 arm_default_branch_cost.
1514 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
1515 current_tune structure.
1516 * dojump.c (tm_p.h): Include file.
1517
1518 2011-06-02 Julian Brown <julian@codesourcery.com>
1519
1520 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
1521 tuning.
1522 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
1523 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
1524 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
1525 field.
1526 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1527 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
1528 (arm_fa726te_tune): Add prefer_constant_pool setting.
1529 (arm_v6t2_tune, arm_cortex_tune): New.
1530 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
1531 prefer_constant_pool setting.
1532
1533 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
1534
1535 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
1536 switch statement.
1537 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
1538 (*movdf_internal) <case 6,7,8>: Ditto.
1539
1540 * config/i386/constraints.md (Y4): New register constraint.
1541 * config/i386/sse.md (vec_set<mode>_0): Merge with
1542 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
1543 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
1544 *vec_extractv2di_1_sse.
1545 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
1546 and *vec_concatv2di_rex64_sse.
1547
1548 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
1549
1550 PR target/48807
1551 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
1552 of cgraph_local_info for null before attempting to use it.
1553
1554 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
1557 (current_function_dynamic_alloc_count): Delete.
1558 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
1559 (expand_builtin_nonlocal_goto): Remove obsolete comment.
1560 (expand_builtin_update_setjmp_buf): Remove dead code.
1561 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
1562 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
1563 support.
1564 * function.c (instantiate_virtual_regs): Likewise.
1565 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
1566 for a block with a single abnormal incoming edge.
1567 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
1568 (SETJMP_VIA_SAVE_AREA): Delete.
1569 * config/sparc/sparc-protos.h (load_got_register): Declare.
1570 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
1571 (load_got_register): Make global.
1572 (sparc_frame_pointer_required): Add 'static'.
1573 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
1574 (sparc_builtin_setjmp_frame_value): New function.
1575 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
1576 (save_stack_nonlocal): New expander.
1577 (restore_stack_nonlocal): Likewise.
1578 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
1579 (nonlocal_goto_internal): New insn.
1580 (goto_handler_and_restore): Delete.
1581 (builtin_setjmp_setup): Likewise.
1582 (do_builtin_setjmp_setup): Likewise.
1583 (setjmp): Likewise.
1584 (builtin_setjmp_receiver): New expander.
1585
1586 2011-06-01 David Li <davidxl@google.com>
1587
1588 PR middle-end/49261
1589 * tree-pretty-print.c (dump_function_header): Format cleanup.
1590
1591 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
1592
1593 PR target/49238
1594 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
1595 needed when original operands are used for msw_skip comparison.
1596
1597 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1598
1599 PR debug/49250
1600 * var-tracking.c (add_uses, add_stores): Don't call
1601 cselib_subst_to_values on ENTRY_VALUE.
1602
1603 2011-06-01 Diego Novillo <dnovillo@google.com>
1604
1605 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
1606 output_record_start with LTO_null instead of output_zero.
1607 (lto_output_ts_binfo_tree_pointers): Likewise.
1608 (lto_output_tree): Likewise.
1609 (output_eh_try_list): Likewise.
1610 (output_eh_region): Likewise.
1611 (output_eh_lp): Likewise.
1612 (output_eh_regions): Likewise.
1613 (output_bb): Likewise.
1614 (output_function): Likewise.
1615 (output_unreferenced_globals): Likewise.
1616 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
1617 instead of NUM_TREE_CODES.
1618 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
1619 (lto_output_int_in_range): Change << to >> when shifting VAL.
1620
1621 2011-06-01 Diego Novillo <dnovillo@google.com>
1622
1623 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
1624 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
1625
1626 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1627
1628 PR target/45074
1629 * optabs.h (valid_multiword_target_p): Declare.
1630 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
1631 doing multi-word operations.
1632 * optabs.c (expand_binop): Likewise.
1633 (expand_doubleword_bswap): Likewise.
1634 (expand_absneg_bit): Likewise.
1635 (expand_unop): Likewise.
1636 (expand_copysign_bit): Likewise.
1637 (multiword_target_p): New function.
1638
1639 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1640
1641 PR rtl-optimization/48830
1642 PR rtl-optimization/48808
1643 PR rtl-optimization/48792
1644 * reload.c (push_reload): Check contains_reg_of_mode.
1645 * reload1.c (strip_paradoxical_subreg): New function.
1646 (gen_reload_chain_without_interm_reg_p): Use it to handle
1647 paradoxical subregs.
1648 (emit_output_reload_insns, gen_reload): Likewise.
1649
1650 2011-06-01 David Li <davidxl@google.com>
1651
1652 * predict.c : Change pass name
1653 * ipa.c: Ditto.
1654 * dce.c: Ditto.
1655 * tree-profile.c: Ditto.
1656 * except.c: Ditto.
1657
1658 2011-06-01 David Li <davidxl@google.com>
1659
1660 * tree-pretty-print.c (dump_function_header): New function.
1661 * final.c (rest_of_clean_state): Use header dumper.
1662 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
1663 * passes.c (pass_init_dump_file): Use header dumper.
1664
1665 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1666
1667 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
1668 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
1669 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
1670 New functions.
1671 (mem_loc_descriptor): Use them.
1672
1673 * var-tracking.c (create_entry_value): New function.
1674 (vt_add_function_parameter): Use it.
1675
1676 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1677
1678 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
1679 Include <signal.h>, <ucontext.h>.
1680 (sigill_caught): Define.
1681 (sigill_hdlr): New function.
1682 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
1683 insns can be executed.
1684 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
1685 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
1686
1687 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1688
1689 * config/t-slibgcc-darwin: Move to ...
1690 * config/t-slibgcc-dummy: ... this. Clarify comments.
1691 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
1692 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
1693 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
1694 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
1695 Remove i386/t-crtstuff from tmake_file.
1696 (i[34567]86-*-solaris2*): Remove t-svr4,
1697 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
1698 t-slibgcc-dummy.
1699 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
1700 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
1701 sparc/t-crtfm from tmake_file.
1702 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
1703 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
1704 Remove extra_parts.
1705 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
1706 * config/i386/t-nwld (SHLIB_LINK): Remove.
1707 * config/i386/t-rtems-i386: Rename to ...
1708 * config/i386/t-rtems: ... this.
1709 ($(T)crti.o, $(T)crtn.o): Remove.
1710 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
1711 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
1712 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
1713 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
1714 EXTRA_MULTILIB_PARTS): Remove.
1715 * config/sparc/t-sol2-64: Likewise.
1716 * config/sparc/t-sol2: Remove.
1717 * config/sparc/t-crtin: Remove.
1718 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
1719 * config/i386/gmon-sol2.c: Remove.
1720 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
1721 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
1722 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
1723 * config/i386/sol2-gc1.asm: Remove.
1724 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
1725 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
1726 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
1727 * config/t-slibgcc-sld: Remove.
1728
1729 2011-06-01 Jakub Jelinek <jakub@redhat.com>
1730
1731 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
1732 base_type_for_mode with op_mode instead of mode.
1733
1734 2011-06-01 Paul Brook <paul@cpodesourcery.com>
1735
1736 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
1737 Cortex-A15.
1738 * config/arm/arm-tune.md: Regenerate.
1739 * config/arm/arm-tables.opt: Regenerate.
1740 * config/arm/arm.c (FL_DIV): Rename...
1741 (FL_THUMB_DIV): ... to this.
1742 (FL_ARM_DIV): Define.
1743 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1744 (arm_arch_hwdiv): Remove.
1745 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1746 (arm_issue_rate): Add cortexr5.
1747 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1748 __ARM_ARCH_EXT_IDIV__.
1749 (TARGET_IDIV): Define.
1750 (arm_arch_hwdiv): Remove.
1751 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1752 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1753 (divsi3, udivsi3): New patterns.
1754 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1755 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1756
1757 2011-06-01 Martin Jambor <mjambor@suse.cz>
1758
1759 * ipa-utils.c (ipa_dfs_info): New field scc_no.
1760 * ipa-utils.c (searchc): Set scc_no.
1761
1762 2011-06-01 Martin Jambor <mjambor@suse.cz>
1763
1764 * ipa-utils.c (searchc_env): New field allow_overwritable.
1765 (searchc): do not ignore edges to overwritable nodes if indicated
1766 by env->allow_overwritable.
1767 (ipa_reduced_postorder): Set env.allow_overwritable.
1768
1769 2011-06-01 Richard Guenther <rguenther@suse.de>
1770
1771 * tree.c (free_lang_data): Do not reset boolean_type_node nor
1772 char_type_node.
1773 * lto-streamer.c (lto_record_common_node): Take node pointer,
1774 do not register types.
1775 (lto_preload_common_nodes): Explicitly skip preloading nodes
1776 that differ between frontends.
1777
1778 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1779
1780 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1781 NON_FLOAT_REGS.
1782
1783 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
1784
1785 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1786 parameter value for dump. Dump cost on outermost call only.
1787 (rs6000_memory_move_cost): Dump cost on outermost call only.
1788
1789 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1790
1791 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1792 DW_OP_GNU_convert ops.
1793
1794 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1795 cselib_preserve_constants.
1796 (cselib_lookup_1): If cselib_preserve_constants,
1797 a new VALUE is being created for REG and there is a VALUE for the
1798 same register in wider mode, add another loc with lowpart SUBREG of
1799 the wider VALUE.
1800 (cselib_subst_to_values): Handle ENTRY_VALUE.
1801 * var-tracking.c (replace_expr_with_values): Return NULL for
1802 ENTRY_VALUE too.
1803 * dwarf2out.c (convert_descriptor_to_signed): New function.
1804 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1805 instead of two shifts.
1806 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1807 the right mode if needed.
1808 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1809 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1810 convert_descriptor_to_signed.
1811 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1812 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1813
1814 PR target/48688
1815 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1816
1817 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1818
1819 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1820 of X87MODEI12 and SWI48x instead of SSEMODEI24.
1821 (SWI248x): New mode iterator, rename from X87MODEI.
1822 (X87MODEI): Remove mode iterator.
1823 (X87MODEI12): Ditto.
1824 (SSEMODEI24): Ditto.
1825
1826 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1827
1828 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1829 * doc/invoke.texi: Document max-vartrack-expr-depth.
1830 * var-tracking.c (EXPR_DEPTH): New.
1831 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1832
1833 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1834
1835 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1836 * config/i386/sse.md: Add n to negated FMA pattern names.
1837
1838 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1839
1840 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1841
1842 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
1843
1844 * gengtype-state.c (read_state_params_structs): Initialize previous.
1845
1846 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1847
1848 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1849 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1850
1851 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
1852
1853 * config/i386/i386.md (*movtf_internal): Avoid allocating general
1854 registers. Penalize F*r->o alternative to prevent partial memory
1855 stalls. Slightly penalize *roF->*r alternative. Generate SSE
1856 CONST_DOUBLE immediates when optimizing function for size. Do not move
1857 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1858 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1859 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1860 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1861 alternatives.
1862 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1863
1864 (fp_register_operand splitters): Use fp_register_operand
1865 constraint. Do not use FP_REG_P in insn condition.
1866 (any_fp_register_operand splitters): Use any_fp_register_operand
1867 constraint. Do not use ANY_FP_REG_P in insn condition.
1868
1869 2011-05-31 Jan Hubicka <jh@suse.cz>
1870
1871 * cgraph.h (cgraph_inline_failed_t): Give enum a name
1872 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1873 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1874 (lto_output_edge): Use output_enum and var_len_unsigned.
1875 (lto_output_varpool_node): Likewise.
1876 (input_overwrite_node): Do not take resolution parameter;
1877 extract it from a bitpack.
1878 (input_node): Do not read resolution; use input_enum and
1879 var_len_unsigned.
1880 (input_varpool_node): Likewise.
1881 (input_edge): Likewise.
1882 (input_cgraph_1): Likewise.
1883
1884 2011-05-31 Richard Guenther <rguenther@suse.de>
1885
1886 * gimple.c (gimple_register_canonical_type): Do not register
1887 any types via gimple_register_type.
1888
1889 2011-05-31 Jan Hubicka <jh@suse.cz>
1890
1891 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1892 of thunks.
1893
1894 2011-05-31 Jakub Jelinek <jakub@redhat.com>
1895
1896 PR rtl-optimization/49235
1897 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1898 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1899
1900 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
1901
1902 PR tree-optimization/49093
1903 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1904 data references.
1905
1906 2011-05-31 Dodji Seketeli <dodji@redhat.com>
1907
1908 PR debug/49047
1909 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1910 for concrete functions containing the code of cloned functions.
1911
1912 2011-05-31 Richard Guenther <rguenther@suse.de>
1913
1914 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1915 to ...
1916 (forward_propagate_into_comparison_1): ... this.
1917 (forward_propagate_comparison): Rename to ...
1918 (forward_propagate_into_comparison): ... this. Split out
1919 real forward propagation code to ...
1920 (forward_propagate_comparison): ... this.
1921 (forward_propagate_into_gimple_cond): Remove looping.
1922 (forward_propagate_into_cond): Likewise.
1923 (simplify_not_neg_expr): Return whether we have done something.
1924 (simplify_gimple_switch): Likewise.
1925 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1926 (ssa_forward_propagate_and_combine): ... this. Re-structure
1927 to do a forward forward-propagation walk on BBs and a backward
1928 stmt combining walk on BBs. Consistently re-scan changed statements.
1929 (pass_forwprop): Adjust.
1930
1931 2011-05-30 Ian Lance Taylor <iant@google.com>
1932
1933 * godump.c (go_format_type): Correct length of name added to
1934 obstack for anonymous field.
1935
1936 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
1937
1938 PR target/49186
1939 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1940 part of the second operand is 0.
1941
1942 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
1943
1944 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1945 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
1946 to memory for !TARGET_MEMORY_MISMATCH_STALL.
1947 (*movdf_internal_rex64): Do not penalize F->r alternative.
1948 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1949 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
1950 when optimizing function for size. Do not move CONST_DOUBLEs
1951 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1952 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
1953 SUBREGs. Do not check for MEM_P operands in the insn condition,
1954 check for ANY_FP_REGNO_P instead.
1955 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1956 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1957 function for speed.
1958 * config/i386/i386.c (ix86_option_override_internal): Do not
1959 set TARGET_INTEGER_DFMODE_MOVES here.
1960
1961 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
1962
1963 PR target/49168
1964 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1965
1966 2011-05-30 Jakub Jelinek <jakub@redhat.com>
1967
1968 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1969 DW_TAG_rvalue_reference_type even for
1970 -gdwarf-4 -fno-debug-types-section.
1971
1972 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1973
1974 PR tree-optimization/46728
1975 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1976 (build_and_insert_binop): New.
1977 (gimple_expand_builtin_pow): Reorder args for
1978 build_and_insert_call; use build_and_insert_binop; add more
1979 optimizations for fractional exponents.
1980
1981 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
1982
1983 PR bootstrap/49190
1984
1985 Revert:
1986 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
1987
1988 * tree.h (struct tree_identifier): Inherit from tree_typed, not
1989 tree_common.
1990 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1991 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1992 TS_BASE instead of TS_COMMON.
1993 * varasm.c (assemble_name): Remove assert.
1994
1995 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
1996
1997 * config.gcc: Keep obselete list sorted.
1998
1999 2011-05-30 Jakub Jelinek <jakub@redhat.com>
2000 Eric Botcazou <ebotcazou@adacore.com>
2001
2002 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
2003 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
2004 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
2005 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
2006 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
2007
2008 2011-05-30 Richard Guenther <rguenther@suse.de>
2009
2010 * gimple.c (gimple_types_compatible_p_1): Compare record
2011 and union type members properly.
2012
2013 2011-05-30 Richard Guenther <rguenther@suse.de>
2014
2015 PR tree-optimization/49210
2016 * ipa-split.c (split_function): Care for the case where the call
2017 result is not trivially convertible to the result holding variable.
2018
2019 2011-05-30 Richard Guenther <rguenther@suse.de>
2020
2021 PR tree-optimization/49218
2022 * tree-vrp.c (adjust_range_with_scev): Properly check whether
2023 overflow occured.
2024
2025 2011-05-30 Richard Guenther <rguenther@suse.de>
2026
2027 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
2028 New function split out from ...
2029 (forward_propagate_into_gimple_cond): ... here. Adjust.
2030 (forward_propagate_into_cond): Likewise.
2031 (forward_propagate_comparison): Also propagate into
2032 comparisons on assignment RHS. Change return value to
2033 behave similar to forward_propagate_into_cond.
2034 (tree_ssa_forward_propagate_single_use_vars): Handle
2035 strict-overflow warnings properly for forward_propagate_comparison.
2036
2037 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2038
2039 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
2040 from plugin linker.
2041 * configure: Regenerate.
2042
2043 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
2044
2045 PR tree-optimization/49199
2046 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
2047 non-reduction operands are either defined in the loop or by induction.
2048
2049 2011-05-29 Xinliang David Li <davidxl@google.com>
2050
2051 * opts-global.c (handle_common_deferred_options): Handle new options.
2052 * passes.c (register_one_dump_file): Call register_pass_name.
2053 (execute_one_pass): Check explicit enable/disable flag.
2054 (passr_hash): New function.
2055 (passr_eq): Ditto.
2056 (register_pass_name): Ditto.
2057 (get_pass_by_name): Ditto.
2058 (pass_hash): Ditto.
2059 (pass_eq): Ditto.
2060 (enable_pass): Ditto.
2061 (disable_pass): Ditto.
2062 (is_pass_explicitly_enabled_or_disabled): Ditto.
2063
2064 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
2065
2066 * config/i386/i386.md (*movoi_internal_avx): Use
2067 standard_sse_constant_opcode for alternative 0.
2068 (*movti_internal_sse): Ditto.
2069 (*movti_internal_rex64): Use standard_sse_constant_opcode for
2070 alternative 2.
2071 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
2072 sselog1 type moves.
2073 (*movsi_internal): Ditto.
2074 (*movdi_internal): Ditto. Add ssecvt type moves.
2075
2076 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
2077
2078 PR target/48830
2079 * rtlanal.c (simplify_subreg_regno): Adjust comment.
2080
2081 2011-05-29 Jakub Jelinek <jakub@redhat.com>
2082
2083 PR rtl-optimization/49095
2084 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
2085 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
2086
2087 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2088
2089 PR target/43995
2090 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
2091 recurse_p argument. Only follow register copies if it is set,
2092 and prevent mips_find_pic_call_symbol from recursing.
2093 (mips_find_pic_call_symbol): Add a recurse_p argument.
2094 Pass it to mips_pic_call_symbol_from_set.
2095 (mips_annotate_pic_calls): Update accordingly.
2096
2097 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
2098
2099 * emit-rtl.c (try_split): Use a loop to search for
2100 NOTE_INSN_CALL_ARG_LOCATIONs.
2101
2102 2011-05-29 Richard Guenther <rguenther@suse.de>
2103
2104 PR tree-optimization/49217
2105 * ipa-pure-const.c (propagate_pure_const): Fix typos.
2106
2107 2011-05-28 Jan Hubicka <jh@suse.cz>
2108
2109 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
2110 length.
2111 (string_slot_free): Remove
2112 (create_output_block): Initialize obstack.
2113 (destroy_output_block): Free obstack.
2114 (lto_string_index): Add PERSISTENT parameter; do not duplicate
2115 the string unless it needs to be added into the hash.
2116 (lto_output_string_with_length): Add persistent attribute;
2117 handle NULL strings.
2118 (lto_output_string): Add PERSISTENT parameter.
2119 (output_string_cst, output_identifier): Simplify.
2120 (lto_output_location_bitpack): Update.
2121 (lto_output_builtin_tree): Update.
2122 * lto-streamer.h (struct output_block): Add obstack.
2123 (lto_output_string, lto_output_string_with_length): Remove
2124 declarations; functions are static now.
2125
2126 2011-05-28 Jan Hubicka <jh@suse.cz>
2127
2128 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
2129 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
2130 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
2131 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
2132 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
2133 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
2134 unpack_ts_decl_with_vis_value_fields,
2135 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
2136 lto_get_builtin_tree): Use enum and variable length i/o.
2137 * basic-block.h (profile_status_d): Add PROFILE_LAST.
2138 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
2139 New functions.
2140 (bp_pack_enum, bp_unpack_enum): New macros.
2141
2142 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2143
2144 * genrecog.c: Remove redundant forward declarations.
2145
2146 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2147
2148 * config.gcc: Deprecate mips*-*-openbsd*.
2149
2150 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
2151
2152 PR bootstrap/49195
2153 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
2154 for match_op_dup.
2155
2156 2011-05-27 Andrew Pinski <pinskia@gmail.com>
2157
2158 PR middle-end/48981
2159 * gengtype.c (vec_prefix_type): New function.
2160 (note_def_vec): Use vec_prefix_type and change the length
2161 attribute to be based on the prefix.
2162 * vec.c: Include coretypes.h before vec.h.
2163 (struct vec_prefix): Remove.
2164 (vec_gc_p_reserve): Change the offsetof to sizeof.
2165 (vec_gc_p_reserve_exact): Likewise.
2166 (vec_heap_p_reserve): Likewise.
2167 (vec_heap_p_reserve_exact): Likewise.
2168 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
2169 (vec_stack_p_reserve): Change the offsetof to sizeof.
2170 (vec_stack_p_reserve_exact): Likewise.
2171 * vec.h (struct vec_prefix): New struct definition.
2172 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
2173 (VEC_T_GTY(T,B)): Likewise.
2174 (DEF_VEC_FUNC_P(T)): Use prefix field.
2175 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
2176 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
2177
2178 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2179
2180 PR tree-optimization/46728
2181 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
2182 (powi_as_mults): Add gimple_set_location.
2183 (build_and_insert_call): New.
2184 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
2185 0.5, 0.25, 0.75, 1./3., or 1./6.
2186
2187 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
2188
2189 * doc/contrib.texi: Update copyright years.
2190 (Contributors): Add Zdenek Sojka.
2191
2192 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
2193
2194 * c-decl.c (c_push_function_context): Copy the current statement
2195 list stack.
2196 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
2197 (finish_struct): Call building_stmt_list_p instead of checking
2198 cur_stmt_list.
2199 * c-parser.c (c_parser_postfix_expression): Likewise.
2200 * c-typeck.c (c_end_compound_stmt): Likewise.
2201 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
2202 * tree-iterator.c (stmt_list_cache): Change to a VEC.
2203 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
2204 (free_stmt_list): Likewise.
2205 * tree.h (struct tree_statement_list): Include typed_tree instead
2206 of tree_common.
2207 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
2208 as TS_TYPED instead of TS_COMMON.
2209
2210 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2211 Uros Bizjak <ubizjak@gmail.com>
2212
2213 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
2214 (HAVE_AS_IX86_TLSGDPTL): Define.
2215 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
2216 (HAVE_AS_IX86_TLSLDMPLT): Define.
2217 * configure: Regenerate.
2218 * config.in: Regenerate.
2219 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
2220 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
2221 TARGET_SUN_TLS, use @tlsgdplt or @plt.
2222 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
2223 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
2224 @tlsldmplt or @plt.
2225 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
2226
2227 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2228
2229 * sched-int.h (struct _haifa_deps_insn_data): New members cond
2230 and reverse_cond.
2231 (INSN_COND, INSN_REVERSE_COND): New macros.
2232 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
2233 once.
2234 (sched_get_condition_with_rev): Cache the results, and look them up
2235 if possible.
2236 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
2237 are clobbered by the current insn.
2238 * target.def (exposed_pipline): New sched data hook.
2239 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
2240 * doc/tm.texi: Regenerate.
2241
2242 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2243
2244 PR tree-optimization/49170
2245 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
2246 sincos or cexp.
2247
2248 2011-05-27 Richard Guenther <rguenther@suse.de>
2249
2250 PR middle-end/49189
2251 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
2252 of comparisons.
2253
2254 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
2255
2256 * haifa-sched.c (sched_scan_info): Remove.
2257 (schedule_block): Call sched_extend_luids rather than sched_init_luids
2258 with NULL args.
2259 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
2260 Remove functions.
2261 (sched_scan): Remove.
2262 (sched_extend_luids): Renamed from luids_extend_insn and no longer
2263 static. All callers changed.
2264 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
2265 static. All callers changed.
2266 (sched_init_luids): Remove all arguments except the first. All
2267 callers changed. Don't use sched_scan.
2268 (haifa_init_h_i_d): Likewise.
2269 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
2270 manually rather than using sched_init_luids. Likewise with
2271 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
2272 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
2273 rather than sched_init_luids with NULL args.
2274 * sel-sched-ir.c (new_insns): Remove variable.
2275 (sched_scan): New static function, previously in haifa-sched.c. Remove
2276 all arguments but the first two; all callers changed.
2277 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
2278 rather than sched_init_luids.
2279 (sel_init_bbs): Remove second argument. All callers changed.
2280 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
2281 with NULL arguments.
2282 (create_insn_rtx_from_pattern): Likewise.
2283 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
2284 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
2285 (sched_init_insn_luid, sched_extend_luids): Declare.
2286 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
2287 declarations.
2288
2289 2011-05-27 Richard Guenther <rguenther@suse.de>
2290
2291 PR middle-end/49177
2292 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
2293 A CMP B ? (T) true : (T) false for non-integral types T again.
2294
2295 2011-05-27 Jan Hubicka <jh@suse.cz>
2296
2297 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
2298 so 0 means NULL string.
2299 (lto_output_string_with_length): ... here.
2300 (lto_output_string, output_string_cst, output_identifier): Update
2301 handling of NULL strings.
2302 (lto_output_location_bitpack): New function.
2303 (lto_output_location): Use it.
2304 (lto_output_tree_ref): Use output_record_start.
2305 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
2306 len values.
2307 * lto-streamer-in.c (string_for_index): Break out from ...; offset
2308 values by 1.
2309 (input_string_internal): ... here;
2310 (input_string_cst, input_identifier, lto_input_string): Update handling
2311 of NULL strings.
2312 (lto_input_location_bitpack): New function
2313 (lto_input_location): Use it.
2314 (unpack_ts_type_common_value_fields): Pack align & alias in var len
2315 values.
2316 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
2317 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
2318 (bp_pack_value): Sanity check the value range.
2319 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
2320 New functions.
2321 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
2322 New functions.
2323
2324 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
2325
2326 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
2327 call_arg_location instructions down the floor.
2328
2329 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
2330
2331 PR rtl-optimization/49154
2332 * ira.c (setup_pressure_classes): Process class without sublcasses
2333 as a candidate for pressure classes.
2334
2335 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
2336
2337 PR rtl-optimization/48575
2338 * genrecog.c (position_type): New enum.
2339 (position): New structure.
2340 (decision): Use position structure instead of a string.
2341 (root_pos, peep2_insn_pos_list): New variables.
2342 (next_position, compare_positions): New functions.
2343 (new_decision): Use position structures instead of strings.
2344 (maybe_both_true): Likewise.
2345 (change_state): Likewise.
2346 (write_tree): Likewise.
2347 (make_insn_sequence): Likewise.
2348
2349 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2350
2351 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
2352 TS_BASE instead of TS_COMMON.
2353 (find_decls_types_r): Check for TS_TYPED structure before looking at
2354 TREE_TYPE.
2355 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
2356 Add chain field.
2357 (BLOCK_CHAIN): Use new chain field.
2358
2359 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
2360
2361 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
2362 moves expensive on Power7 also.
2363
2364 2011-05-26 Richard Guenther <rguenther@suse.de>
2365
2366 * fold-const.c (fold_unary_loc): Remove bogus code.
2367
2368 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
2369
2370 * tree.h (struct tree_identifier): Inherit from tree_typed, not
2371 tree_common.
2372 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
2373 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
2374 TS_BASE instead of TS_COMMON.
2375 * varasm.c (assemble_name): Remove assert.
2376
2377 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2378
2379 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
2380 substituted first.
2381 * libgcc-std.ver: Delete file.
2382
2383 2011-05-26 Richard Guenther <rguenther@suse.de>
2384
2385 PR tree-optimization/48702
2386 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
2387 only when we know the base address is within bounds.
2388 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
2389 assume the base address of TARGET_MEM_REFs is in bounds.
2390
2391 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2392
2393 PR target/49099
2394 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
2395 declaration in TARGET_SOLARIS.
2396
2397 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
2398
2399 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
2400 The instruction is then expanded explicitly.
2401 (supported_compare): Callable instruction.
2402 (compare): Likewise.
2403
2404 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2405
2406 PR c++/49165
2407 * gimplify.c (shortcut_cond_r): Don't special case
2408 COND_EXPRs if they have void type on one of their arms.
2409
2410 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
2411
2412 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
2413 to reduce duplication, and to achieve a slightly more logical order
2414 of operations.
2415
2416 2011-05-26 Jakub Jelinek <jakub@redhat.com>
2417
2418 PR tree-optimization/49161
2419 * tree-vrp.c (struct case_info): New type.
2420 (compare_case_labels): Sort case_info structs instead of
2421 trees, and not primarily by CASE_LABEL uids but by
2422 label_for_block indexes.
2423 (find_switch_asserts): Put case labels into struct case_info
2424 array instead of TREE_VEC, adjust sorting, compare label_for_block
2425 values instead of CASE_LABELs.
2426
2427 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2428
2429 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
2430 ("orndi3_neon"): Likewise.
2431 ("bic<mode>3_neon"): Likewise.
2432
2433 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
2434
2435 PR tree-optimization/49038
2436 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
2437 Ensure at least one epilogue iteration if required by data
2438 accesses with gaps.
2439 * tree-vectorizer.h (struct _loop_vec_info): Add new field
2440 to mark loops that require peeling for gaps.
2441 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
2442 (vect_get_known_peeling_cost): Take peeling for gaps into
2443 account.
2444 (vect_transform_loop): Generate epilogue if required by data
2445 access with gaps.
2446 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
2447 loop as requiring an epilogue if there are gaps in the end of
2448 the strided group.
2449
2450 2011-05-25 Ian Lance Taylor <iant@google.com>
2451
2452 * godump.c (go_format_type): Output the first field with a usable
2453 Go type, if any.
2454
2455 2011-05-25 Ian Lance Taylor <iant@google.com>
2456
2457 * godump.c (go_format_type): Check for invalid type names, pointer
2458 target types, and struct field types.
2459
2460 2011-05-25 Jason Merrill <jason@redhat.com>
2461
2462 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
2463
2464 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
2465
2466 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
2467
2468 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2469
2470 * config/i386/i386.md (*movqi_extv_1)): Put back
2471 "register_operand" check in "type" calculation.
2472 (*movqi_extzv_2): Likewise.
2473
2474 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2475
2476 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
2477
2478 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2479
2480 PR bootstrap/49160
2481 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
2482 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
2483 __divxc3, __divtc3): Wrap definitions in #ifndef.
2484
2485 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2486
2487 PR target/49142
2488 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
2489 "register_operand" check and replace q_regs_operand with
2490 QIreg_operand in "type" calculation.
2491 (*movqi_extv_1): Likewise.
2492 (*movqi_extzv_2_rex64): Likewise.
2493 (*movqi_extzv_2): Likewise.
2494
2495 * config/i386/predicates.md (QIreg_operand): New.
2496
2497 2011-05-25 Richard Guenther <rguenther@suse.de>
2498
2499 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
2500 type-based offset disambiguation, streamline MEM_REF and
2501 TARGET_MEM_REF handling.
2502
2503 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
2504
2505 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
2506 (bdesc_special_args): Add pause intrinsic.
2507
2508 * config/i386/i386.md (UNSPEC_PAUSE): New.
2509 (pause): Likewise.
2510 (*pause): Likewise.
2511 * config/i386/ia32intrin.h (__pause): Likewise.
2512
2513 * doc/extend.texi (X86 Built-in Functions): Add documentation for
2514 pause intrinsic.
2515
2516 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2517
2518 PR tree-optimization/46728
2519 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
2520 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
2521
2522 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
2523
2524 * tree.h (struct tree_exp): Inherit from struct tree_typed.
2525 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
2526 instead of TS_COMMON.
2527
2528 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
2529
2530 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
2531 LIBGCC2_GNU_PREFIX is defined.
2532 (__N): New macro.
2533 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
2534 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
2535 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
2536 __clz_tab): Define using __N.
2537 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
2538 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
2539 * target.def (libfunc_gnu_prefix): New hook.
2540 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
2541 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
2542 * doc/tm.texi: Regenerate.
2543 * system.h (LIBGCC2_GNU_PREFIX): Poison.
2544 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
2545 account.
2546 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
2547 (init_optabs): Likewise for the bswap libfuncs.
2548 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
2549 and divide.
2550 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
2551 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
2552 * libgcc-std.ver: Remove.
2553 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
2554 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
2555 libgcc-std.ver.
2556 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2557 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
2558 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
2559 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
2560 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
2561 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2562 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
2563 * config/fixed-bit.h (FIXED_OP): Define differently depending on
2564 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
2565 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
2566
2567 2011-05-25 Jan Hubicka <jh@suse.cz>
2568
2569 * lto-streamer-out.c (output_record_start): Use lto_output_enum
2570 (lto_output_tree): Use output_record_start.
2571 * lto-streamer-in.c (input_record_start): Use lto_input_enum
2572 (lto_get_pickled_tree): Use input_record_start.
2573 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
2574 (lto_value_range_error): New function.
2575 * lto-streamer.h (lto_value_range_error): Declare.
2576 (lto_output_int_in_range, lto_input_int_in_range): New functions.
2577 (lto_output_enum, lto_input_enum): New macros.
2578
2579 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
2580
2581 * common.opt (flag_stack_usage_info): New variable.
2582 (-Wstack-usage): New option.
2583 * doc/invoke.texi (Warning options): Document -Wstack-usage.
2584 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
2585 <OPT_fstack_usage>: Likewise.
2586 * toplev.c (output_stack_usage): Handle -Wstack-usage.
2587 * calls.c (expand_call): Test flag_stack_usage_info variable instead
2588 of flag_stack_usage.
2589 (emit_library_call_value_1): Likewise.
2590 * explow.c (allocate_dynamic_stack_space): Likewise.
2591 * function.c (instantiate_virtual_regs ): Likewise.
2592 (prepare_function_start): Likewise.
2593 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
2594 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
2595 * config/arm/arm.c (arm_expand_prologue): Likewise.
2596 (thumb1_expand_prologue): Likewise.
2597 * config/avr/avr.c (expand_prologue): Likewise.
2598 * config/i386/i386.c (ix86_expand_prologue): Likewise.
2599 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
2600 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
2601 * config/mips/mips.c (mips_expand_prologue): Likewise.
2602 * config/pa/pa.c (hppa_expand_prologue): Likewise.
2603 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
2604 * config/s390/s390.c (s390_emit_prologue): Likewise.
2605 * config/sh/sh.c (sh_expand_prologue): Likewise.
2606 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
2607 * config/spu/spu.c (spu_expand_prologue): Likewise.
2608
2609 2011-05-25 Richard Guenther <rguenther@suse.de>
2610
2611 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
2612 (gimple_canonical_types_compatible_p): Likewise.
2613
2614 2011-05-25 Jan Hubicka <jh@suse.cz>
2615
2616 PR middle-end/49062
2617 * ipa.c (function_and_variable_visibility): Only add to same
2618 comdat group list if DECL_ONE_ONLY.
2619
2620 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
2621
2622 PR rtl-optimization/49014
2623 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
2624
2625 2011-05-25 Jakub Jelinek <jakub@redhat.com>
2626
2627 PR target/49128
2628 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2629
2630 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2631
2632 PR rtl-optimization/48757
2633 * ira-build.c (loop_with_eh_edge_p): Rename to
2634 loop_with_complex_edge_p, check edges on complexity, make function
2635 conditional.
2636 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
2637 conditional.
2638
2639 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2640
2641 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
2642 force flag_ira_share_save_slots to 0.
2643
2644 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2645
2646 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
2647 (vt_initialize): Set PROLOGUE_BB unconditionally.
2648 Add block comment about CFA_BASE_RTX machinery.
2649 Reset FP_CFA_OFFSET to -1 on all invalid paths.
2650 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
2651
2652 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
2653
2654 PR objc/48187
2655 * c-parser.c (c_parser_objc_class_instance_variables): More robust
2656 parsing of syntax error in ObjC instance variable lists. In
2657 particular, avoid an infinite loop if there is a stray ']'.
2658 Updated error message.
2659
2660 2011-05-24 Ian Lance Taylor <iant@google.com>
2661
2662 * godump.c (go_define): Don't accept a string immediately after
2663 another operand.
2664
2665 2011-05-24 Ian Lance Taylor <iant@google.com>
2666
2667 * godump.c (struct godump_container): Add invalid_hash field.
2668 (go_format_type): Return false if type is found in invalid_hash.
2669 (go_output_typedef): Add invalid type to invalid_hash.
2670 (go_finish): Create and delete invalid_hash.
2671
2672 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2673
2674 PR tree-optimization/46728
2675 * tree-ssa-math-opts.c (powi_table): New.
2676 (powi_lookup_cost): New.
2677 (powi_cost): New.
2678 (powi_as_mults_1): New.
2679 (powi_as_mults): New.
2680 (gimple_expand_builtin_powi): New.
2681 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
2682 (gate_cse_sincos): Remove sincos/cexp restriction.
2683
2684 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2685
2686 PR target/3746
2687 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
2688 mips-tdump native.
2689 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
2690 * mips-tdump.c: Likewise.
2691
2692 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
2693
2694 PR target/49128
2695 * config/i386/driver-i386.c (host_detect_local_cpu): Always
2696 add -mno-XXX. Handle FMA.
2697
2698 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2699
2700 PR rtl-optimization/48633
2701 * ira-build.c (loop_with_eh_edge_p): New function.
2702 (mark_loops_for_removal): Use it.
2703
2704 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
2705
2706 PR rtl-optimization/48971
2707 * ira.c (setup_pressure_classes): Don't check register move cost
2708 for classes with one registers. Don't add pressure class if there
2709 is a pressure class with the same available hard registers.
2710 Check contains_reg_of_mode. Fix a typo in collecting
2711 temp_hard_regset. Ignore hard registers not belonging to a class.
2712
2713 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
2714
2715 PR target/49133
2716 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
2717
2718 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
2719 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2720
2721 PR gcov-profile/48845
2722 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
2723
2724 2011-05-24 Richard Guenther <rguenther@suse.de>
2725
2726 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
2727 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
2728 (gimple_types_compatible_p_1): Adjust.
2729 (iterative_hash_canonical_type): Do not bother about complete vs.
2730 incomplete types.
2731 (gimple_canonical_types_compatible_p): Likewise.
2732
2733 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2734
2735 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
2736
2737 2011-05-24 Richard Guenther <rguenther@suse.de>
2738
2739 PR bootstrap/49078
2740 * gimple.c (gimple_register_canonical_type): Revert
2741 previous change.
2742 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2743 does not for a tree for the case where it matters. Cache
2744 pointer-type alias-sets.
2745
2746 2011-05-24 Joseph Myers <joseph@codesourcery.com>
2747
2748 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2749 (OBJS): Remove options.o, opts-common.o and prefix.o.
2750 (OBJS-libcommon-target): New.
2751 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2752 (BACKEND): Include libcommon-target.a.
2753 (MOSTLYCLEANFILES): Include libcommon-target.a.
2754 (libcommon-target.a): New.
2755 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2756 prefix.o.
2757
2758 2011-05-23 Joseph Myers <joseph@codesourcery.com>
2759
2760 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
2761 parts of output shared with the driver.
2762 * optc-gen.awk: Don't generate parts of output not shared with the
2763 driver.
2764 * opth-gen.awk: Remove GCC_DRIVER conditionals.
2765 * doc/options.texi (SourcerInclude): Mention options-save.c.
2766 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2767 (OBJS): Add options-save.o.
2768 (options-save.c, options-save.o): New.
2769 (options.o): Update dependencies.
2770 (gcc-options.o): Remove.
2771 (mostlyclean): Remove options-save.c.
2772
2773 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2774
2775 PR debug/49032
2776 * dbxout.c: Include cgraph.h.
2777 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2778 and without value expr, return NULL if no varpool node exists for
2779 it or if it is not needed.
2780 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2781
2782 PR c/49120
2783 * c-decl.c (start_decl): Convert expr to void_type_node.
2784
2785 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
2786
2787 PR rtl-optimization/48826
2788 * emit-rtl.c (try_split): When splitting a call that is followed
2789 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2790
2791 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2792
2793 * cfgexpand.c (expand_debug_expr): For unused non-addressable
2794 parameters passed in memory prefer using DECL_INCOMING_RTL over
2795 the pseudos it will be copied into.
2796
2797 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
2798
2799 PR target/47315
2800 * config/i386/i386.c (ix86_option_override_internal): Save the
2801 initial options after checking vzeroupper.
2802
2803 2011-05-23 David Li <davidxl@google.com>
2804
2805 PR tree-optimization/48988
2806 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2807 Initialize has_valid_pred for each pred chain.
2808
2809 2011-05-23 Richard Guenther <rguenther@suse.de>
2810
2811 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2812 (iterative_hash_gimple_type): Always hash type names.
2813
2814 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
2815
2816 * c-typeck.c (build_function_call_vec): Tweak call to
2817 check_function_arguments.
2818
2819 2011-05-23 Richard Guenther <rguenther@suse.de>
2820
2821 PR tree-optimization/49115
2822 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2823 is not necessarily carried out, do not claim it kills the ref.
2824 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2825
2826 2011-05-23 Richard Guenther <rguenther@suse.de>
2827
2828 PR middle-end/15419
2829 * builtins.c (fold_builtin_memory_op): Be less restrictive about
2830 what pointer types we accept for folding.
2831
2832 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2833
2834 * gthr-gnat.c: Remove.
2835 * gthr-gnat.h: Remove.
2836 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2837 * config/t-freebsd (LIB2ADDEH): Likewise.
2838 * config/t-linux (LIB2ADDEH): Likewise.
2839 * config/t-sol2 (LIB2ADDEH): Likewise.
2840 * config/ia64/t-vms (LIB2ADDEH): Likewise.
2841 * configure.ac (target_thread_file): Remove gnat handling.
2842 * configure: Regenerate.
2843 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2844
2845 2011-05-23 Tristan Gingold <gingold@adacore.com>
2846 Eric Botcazou <ebotcazou@adacore.com>
2847
2848 * gcov.c (create_file_names): If no object directory is specified,
2849 keep the directory of the file.
2850
2851 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2852
2853 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2854 * configure: Regenerate.
2855
2856 2011-05-23 Jakub Jelinek <jakub@redhat.com>
2857
2858 PR middle-end/48973
2859 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2860 failed and the comparison has a single bit signed type, use
2861 constm1_rtx instead of const1_rtx for true value.
2862 (do_store_flag): If ops->type is single bit signed type, disable
2863 signel bit test optimization and pass -1 instead of 1 as last
2864 parameter to emit_store_flag_force.
2865
2866 2011-05-23 Tom de Vries <tom@codesourcery.com>
2867
2868 PR target/45098
2869 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2870 function.
2871 (infer_loop_bounds_from_undefined): Use new function.
2872
2873 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2874
2875 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2876 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
2877 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2878 and -O0 otherwise.
2879 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2880
2881 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2882
2883 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2884 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2885 returns true.
2886
2887 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2888
2889 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2890
2891 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2892
2893 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2894 UNSPEC_MOVE_PIC pattern.
2895
2896 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
2897
2898 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2899 (sparc-*-rtems*): Likewise.
2900 (sparc64-*-elf*): Likewise.
2901 (sparc64-*-rtems*): Likewise.
2902 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
2903 * config/sparc/t-crtin: New file.
2904 * config/sparc/t-sol2 (crti.o): Delete rule.
2905 (crtn.o): Likewise.
2906 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2907 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2908 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2909 (ENDFILE_SPEC): Add crtn.o.
2910
2911 2011-05-22 Tom de Vries <tom@codesourcery.com>
2912
2913 PR middle-end/48689
2914 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2915 CODE_CONTAINS_STRUCT (TS_COMMON).
2916
2917 2011-05-22 Jakub Jelinek <jakub@redhat.com>
2918
2919 PR middle-end/49029
2920 * expmed.c (extract_fixed_bit_field): Test whether target can be used
2921 only after deciding which mode to use.
2922
2923 2011-05-22 Tom de Vries <tom@codesourcery.com>
2924
2925 PR target/45098
2926 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2927 for call to get_shiftadd_cost.
2928
2929 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
2930
2931 PR target/49104
2932 * config/i386/cpuid.h (bit_MMXEXT): New define.
2933
2934 2011-05-22 Nick Clifton <nickc@redhat.com>
2935
2936 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2937 initialisation of non-existant args[2] element. Use args[] array
2938 not arg[] array to pass arguments to build_function_type_list.
2939
2940 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
2941
2942 PR tree-optimization/49087
2943 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2944
2945 2011-05-21 Jason Merrill <jason@redhat.com>
2946
2947 PR c++/49092
2948 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2949 static storage duration.
2950
2951 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2952
2953 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2954 frame pointer.
2955
2956 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
2957
2958 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2959 false if there are call-saved registers here...
2960 (sparc_can_use_return_insn_p): ...but here instead.
2961 (save_or_restore_regs): Fix thinko.
2962 (sparc_expand_prologue): Use current_function_is_leaf.
2963 (sparc_frame_pointer_required): Likewise.
2964
2965 2011-05-21 Nick Clifton <nickc@redhat.com>
2966
2967 PR target/49098
2968 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2969
2970 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
2971
2972 * gengtype.c (walk_type): Implemented "atomic" GTY option.
2973 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2974
2975 2011-05-21 Joseph Myers <joseph@codesourcery.com>
2976
2977 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
2978 * optc-gen.awk: Move common code to opt-read.awk.
2979 * opth-gen.awk: Likewise.
2980 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2981
2982 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
2983
2984 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2985
2986 2011-05-20 Tom de Vries <tom@codesourcery.com>
2987
2988 PR target/45098
2989 * tree-ssa-loop-ivopts.c: Include expmed.h.
2990 (get_shiftadd_cost): New function.
2991 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
2992
2993 2011-05-20 Jakub Jelinek <jakub@redhat.com>
2994
2995 PR bootstrap/49086
2996 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2997 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2998
2999 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3000
3001 * Makefile.in: Update comment referring to $(OBJS-common).
3002
3003 2011-05-20 Ian Lance Taylor <iant@google.com>
3004
3005 * godump.c (go_output_typedef): Put enum constants in the macro
3006 hash table to avoid duplicate Go const definitions.
3007
3008 2011-05-20 Joseph Myers <joseph@codesourcery.com>
3009
3010 * Makefile.in (LIBDEPS): Add libcommon.a.
3011 (LIBS): Likewise.
3012 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
3013 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
3014 pretty-print.o and version.o.
3015 (OBJS-libcommon): New.
3016 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
3017 (BACKEND): Add libcommon.a.
3018 (MOSTLYCLEANFILES): Likewise.
3019 (libcommon.a): New.
3020 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
3021 (cpp$(exeext)): Likewise.
3022 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
3023 pretty-print.o and input.o.
3024 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
3025 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
3026 (errors.o): Remove.
3027 (mips-tfile): Don't explicitly use version.o.
3028 (mips-tdump): Likewise.
3029 (gcov.o): Depend on $(DIAGNOSTIC_H).
3030 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
3031 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
3032 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
3033 * gcov-dump.c: Include intl.h and diagnostic.h.
3034 (main): Initialize diagnostics.
3035 * gcov.c: Include diagnostic.h.
3036 (fnotice): Remove.
3037 (main): Initialize diagnostics.
3038 * lto-wrapper.c: Include diagnostic.h.
3039 (main): Initialize diagnostics.
3040
3041 2011-05-20 Michael Matz <matz@suse.de>
3042
3043 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
3044
3045 2011-05-20 Michael Matz <matz@suse.de>
3046 Richard Guenther <rguenther@suse.de>
3047
3048 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
3049 use lto_streamer_cache_append directly instead of returning a VEC.
3050 (preload_common_node): Remove.
3051 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
3052 track seen nodes.
3053 (lto_streamer_cache_create): Call lto_preload_common_nodes.
3054
3055 2011-05-20 Richard Guenther <rguenther@suse.de>
3056
3057 PR tree-optimization/49079
3058 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
3059 MEM_REFs correctly for the trailing array access detection.
3060 Special case constants the same way as decls for overall size
3061 constraining.
3062
3063 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
3064
3065 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
3066 argument expansion.
3067
3068 2011-05-20 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR tree-optimization/49073
3071 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
3072 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
3073 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
3074
3075 2011-05-20 Richard Guenther <rguenther@suse.de>
3076
3077 PR middle-end/48849
3078 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
3079 of pointer types the same way the middle-end does.
3080
3081 2011-05-20 Richard Guenther <rguenther@suse.de>
3082
3083 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
3084 or pointer-to chains. Delay all fixup to uniquify_nodes.
3085
3086 2011-05-19 Quentin Neill <quentin.neill@amd.com>
3087
3088 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
3089 (fma4_fmaddsub): Likewise
3090
3091 2011-05-19 Jan Hubicka <jh@suse.cz>
3092
3093 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
3094 (GIMPLE_TYPE_PAIR_SIZE): New macro.
3095 (type_pair_cache): New static var.
3096 (lookup_type_pair): Use fixed sized custom hash; make inline.
3097 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
3098 calls of lookup_type_pair.
3099 (print_gimple_types_stats): Remove cache stats.
3100 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
3101 and gtc_ob.
3102
3103 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
3104
3105 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
3106 when TARGET_RDRND is active.
3107 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
3108 Generate dummy SImode target register when target is NULL.
3109
3110 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3111
3112 * config/arm/arm-fpus.def: New.
3113 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
3114 arm-fpus.def.
3115 * config/arm/arm-tables.opt: Regenerate.
3116 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
3117 (arm_option_override): Don't decode FPU name to string here.
3118 * config/arm/arm.opt (mfpu=): Use Enum.
3119 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
3120 Update dependencies.
3121
3122 2011-05-19 Joseph Myers <joseph@codesourcery.com>
3123
3124 * collect2.c: Include diagnostic.h.
3125 (fatal_perror, fatal, error, fancy_abort): Remove.
3126 (main): Set progname. Call xmalloc_set_program_name and
3127 diagnostic_initialize.
3128 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
3129 scan_libraries, resolve_lib_name): Call fatal_error instead of
3130 fatal and fatal_perror.
3131 * collect2.h (error, fatal, fatal_perror): Don't declare.
3132 * tlink.c: Include diagnostic-core.h.
3133 (recompile_files): Call fatal_error instead of fatal_perror.
3134 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
3135 pretty-print.o and input.o.
3136 (collect2.o, tlink.o): Update dependencies.
3137
3138 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3139
3140 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
3141
3142 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3143
3144 PR target/40483
3145 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
3146 COMDAT group syntax, both SPARC and x86 variants.
3147 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
3148 * configure: Regenerate.
3149 * config/sol2.h (TARGET_SOLARIS): Define.
3150 (PUSHSECTION_FORMAT): Remove.
3151 (SECTION_NAME_FORMAT): Define.
3152 * config/sol2.c: Include hashtab.h.
3153 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
3154 expansion, using SECTION_NAME_FORMAT.
3155 (solaris_comdat_htab): New variable.
3156 (struct comdat_entry): Define.
3157 (comdat_hash): New function.
3158 (comdat_eq): New function.
3159 (solaris_elf_asm_comdat_section): New function.
3160 (solaris_define_comdat_signature): New function.
3161 (solaris_code_end): New function.
3162 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
3163 (solaris_code_end): Declare.
3164 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
3165 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
3166 solaris_code_end.
3167 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
3168 Remove ATTRIBUTE_UNUSED.
3169 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
3170 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
3171 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
3172 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
3173 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
3174 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
3175 (PUSHSECTION_FORMAT): Remove.
3176 (SECTION_NAME_FORMAT): Redefine.
3177
3178 2011-05-19 Kai Tietz <ktietz@redhat.com>
3179
3180 * tree-cfg.c (verify_gimple_assign_binary): Barf on
3181 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
3182 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
3183
3184 2011-05-19 Anatoly Sokolov <aesok@post.ru>
3185 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3186
3187 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
3188
3189 2011-05-19 Richard Guenther <rguenther@suse.de>
3190
3191 PR middle-end/48985
3192 * tree-object-size.c (addr_object_size): If the pointed-to
3193 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
3194
3195 2011-05-19 Richard Guenther <rguenther@suse.de>
3196
3197 * gimple.c (gimple_types_compatible_p_1): Compare names of
3198 the types themselves.
3199 (iterative_hash_gimple_type): And hash them that way.
3200 (gimple_register_type_1): If we register a main variant properly
3201 initialize the leader to ourselves.
3202
3203 2011-05-19 Tom de Vries <tom@codesourcery.com>
3204
3205 PR target/45098
3206 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
3207 get_loop_invariant_expr_id.
3208 (get_loop_invariant_expr_id): Use get_expr_id.
3209 (parm_decl_cost): New function.
3210 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
3211 Improve bound cost estimation. Use different inv_expr_id for elim and
3212 express cases.
3213
3214 2011-05-19 Tom de Vries <tom@codesourcery.com>
3215
3216 PR target/45098
3217 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
3218 cost_base.cost == 0.
3219
3220 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
3221
3222 PR target/49002
3223 * config/i386/sse.md
3224 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
3225 load cast.
3226
3227 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3228
3229 PR tree-optimization/49039
3230 * tree-vrp.c (extract_range_from_binary_expr): For
3231 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
3232 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
3233
3234 2011-05-18 Tom de Vries <tom@codesourcery.com>
3235
3236 PR target/45098
3237 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
3238
3239 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
3240
3241 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
3242 (*tls_global_dynamic_64): Ditto.
3243 (*tls_local_dynamic_base_32_gnu): Ditto.
3244 (*tls_local_dynamic_base_64): Ditto.
3245 (tls_initial_exec_64_sun): Ditto.
3246
3247 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
3248
3249 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
3250 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
3251 bf592-none.
3252 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
3253 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
3254 * config/bfin/bfin.c (bfin_cpus): Add bf592.
3255 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3256 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
3257 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
3258 * config/bfin/elf.h (LIB_SPEC): Add bf592.
3259
3260 2011-05-18 Joseph Myers <joseph@codesourcery.com>
3261
3262 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
3263 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
3264 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
3265 target_thread_pointer, arm_structure_size_boundary, struct
3266 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
3267 struct abi_name, arm_all_abis): Remove.
3268 (arm_option_override) Don't process most enumerated option values here.
3269 Don't process target_fpe_name here. Work with integer not string for
3270 structure size boundary; use separate diagnostics for each case.
3271 * config/arm/arm.h (enum float_abi_type, enum
3272 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
3273 to arm-opts.h.
3274 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
3275 arm_structure_size_boundary): Remove.
3276 * config/arm/arm.opt (mabi=): Use Enum and Init.
3277 (arm_abi_type): New Enum and EnumValue entries.
3278 (mfloat-abi=): Use Enum and Init.
3279 (float_abi_type): New Enum and EnumValue entries.
3280 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
3281 (mfp16-format=): Use Enum and Init.
3282 (arm_fp16_format_type): New Enum and EnumValue entries.
3283 (mstructure-size-boundary=): Use UInteger and Init.
3284 (mtp=): Use Enum and Init.
3285 (arm_tp_type): New Enum and EnumValue entries.
3286
3287 2011-05-18 Richard Guenther <rguenther@suse.de>
3288
3289 PR tree-optimization/49018
3290 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
3291 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
3292 gimple_has_side_effects.
3293
3294 2011-05-18 Richard Guenther <rguenther@suse.de>
3295
3296 * gimple.c (gimple_register_type_1): New function, split out from ...
3297 (gimple_register_type): ... here. Avoid infinite recursion.
3298
3299 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3300
3301 PR tree-optimization/41881
3302 * tree-vectorizer.h (struct _loop_vec_info): Add new field
3303 reduction_chains along with a macro for its access.
3304 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
3305 (destroy_loop_vec_info): Free reduction chains.
3306 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
3307 (vect_is_slp_reduction): New function.
3308 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
3309 (vect_create_epilog_for_reduction): Support SLP reduction chains.
3310 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
3311 definition types for reduction chains.
3312 (vect_supported_load_permutation_p): Don't allow permutations for
3313 reduction chains.
3314 (vect_analyze_slp_instance): Support reduction chains.
3315 (vect_analyze_slp): Try to build SLP instance from reduction chains.
3316 (vect_get_constant_vectors): Handle reduction chains.
3317 (vect_schedule_slp_instance): Mark the first statement of the
3318 reduction chain as reduction.
3319
3320 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
3321
3322 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
3323 names for group elements access.
3324 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
3325 reduction chains as well. Remove data reference and interleaving
3326 related words from the fields names.
3327 * tree-vect-loop.c (vect_transform_loop): Use new names for group
3328 elements access.
3329 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
3330 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
3331 vect_update_interleaving_chain, vect_same_range_drs,
3332 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
3333 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
3334 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
3335 vect_analyze_group_access, vect_analyze_data_ref_access,
3336 vect_create_data_ref_ptr, vect_transform_strided_load,
3337 vect_record_strided_load_vectors): Likewise.
3338 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
3339 vect_model_load_cost, vectorizable_store, vectorizable_load,
3340 vect_remove_stores, new_stmt_vec_info): Likewise.
3341 * tree-vect-slp.c (vect_build_slp_tree,
3342 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
3343
3344 2011-05-18 Richard Guenther <rguenther@suse.de>
3345
3346 PR middle-end/48989
3347 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
3348 operand verification.
3349 (verify_gimple_assign_binary): Likewise.
3350 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
3351 to non-1-precision BOOLEAN_TYPEs.
3352
3353 2011-05-18 Tom de Vries <tom@codesourcery.com>
3354
3355 PR target/45098
3356 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
3357
3358 2011-05-18 Jakub Jelinek <jakub@redhat.com>
3359
3360 PR tree-optimization/49000
3361 * tree-ssa.c (execute_update_addresses_taken): Call
3362 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
3363 be rewritten and decl has been marked for renaming, reset
3364 the debug stmt.
3365
3366 2011-05-17 Joseph Myers <joseph@codesourcery.com>
3367
3368 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
3369 enum_opts_set when testing if attributes have set -mfpmath=.
3370
3371 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
3372
3373 * config/mips/mips.c (mips_handle_option): Remove unused variable.
3374
3375 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3376
3377 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
3378 info->entry with 0
3379 * tree-inline.c (maybe_inline_call_in_expr): Initialize
3380 id.transform_lang_insert_block with NULL.
3381
3382 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
3383
3384 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
3385 (output_fp_compare): Change args 3 and 4 to bool.
3386 (ix86_expand_call): Change arg 6 to bool.
3387 (ix86_attr_length_immediate_default): Change arg 2 to bool.
3388 (ix86_attr_length_vex_default): Change arg 3 to bool.
3389 * config/i386/i386.md: Update all uses.
3390 * config/i386/i386.c: Ditto.
3391 (ix86_flags_dependent): Change return type to bool.
3392
3393 2011-05-17 Richard Guenther <rguenther@suse.de>
3394
3395 * gimple.c (type_hash_pair_compare): Fix comparison.
3396
3397 2011-05-17 Richard Guenther <rguenther@suse.de>
3398
3399 * gimple.c (iterative_hash_gimple_type): Simplify singleton
3400 case some more, fix final hash value of the non-singleton case.
3401
3402 2011-05-17 Richard Guenther <rguenther@suse.de>
3403
3404 PR bootstrap/49013
3405 Revert
3406 2011-05-16 Richard Guenther <rguenther@suse.de>
3407
3408 * gimple.c (gimple_types_compatible_p_1): Use names of the
3409 type itself, not its main variant.
3410 (iterative_hash_gimple_type): Likewise.
3411
3412 2011-05-17 Richard Guenther <rguenther@suse.de>
3413
3414 * gimple.c (gimple_register_canonical_type): Use the main-variant
3415 leader for computing the canonical type.
3416
3417 2011-05-17 Nick Clifton <nickc@redhat.com>
3418
3419 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
3420 moves.
3421
3422 * config/rx/rx.md: Add peephole to remove redundant extensions
3423 after loads.
3424 (bitset_in_memory): Use rx_restricted_mem_operand.
3425 (bitinvert_in_memory): Likewise.
3426 (bitclr_in_memory): Likewise.
3427
3428 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
3429 Nick Clifton <nickc@redhat.com>
3430
3431 * config/rx/rx.md: Add peepholes to match a register move followed
3432 by a comparison of the moved register. Replace these with an
3433 addition of zero that does both actions in one instruction.
3434
3435 2011-05-17 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR target/48986
3438 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
3439 predicate to allow CONST_INT.
3440 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
3441
3442 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3443
3444 * opts-common.c (opt_enum_arg_to_value): New.
3445 * opts.h (opt_enum_arg_to_value): Declare.
3446 * config/i386/i386.opt (fpmath): Remove.
3447 (mfpmath=): Use Enum, Init and Save.
3448 (fpmath_unit): New Enum and EnumValue entries.
3449 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
3450 name for function fpmath state.
3451 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
3452 * config/i386/i386.c: Include diagnostic.h.
3453 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
3454 (ix86_target_string): Take enum fpmath_unit value instead of string.
3455 (ix86_debug_options): Update call to ix86_target_string.
3456 (ix86_option_override_internal): Don't process fpmath strings here.
3457 (x86_function_specific_save, ix86_function_specific_restore):
3458 Don't handle fpmath state specially.
3459 (ix86_function_specific_print): Pass fpmath state to
3460 ix86_target_string instead of printing in this function.
3461 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
3462 Handle enum attributes.
3463 (IX86_ATTR_ENUM, ix86_opt_enum): New.
3464 (ix86_valid_target_attribute_tree): Update option_strings
3465 handling. Handle fpmath as enum option.
3466 (ix86_can_inline_p): Update field names for function fpmath state.
3467 (ix86_expand_builtin): Update call to ix86_target_string.
3468 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
3469 (ix86_fpmath): Remove.
3470 * config/i386/t-i386 (i386.o): Update dependencies.
3471
3472 2011-05-16 Joseph Myers <joseph@codesourcery.com>
3473
3474 PR preprocessor/48677
3475 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
3476 from decoded_options[0], not from itself.
3477
3478 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
3479
3480 * config/i386/constraints.md (z): New constraint.
3481 * config/i386/i386.c (c): New mode attribute.
3482 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
3483 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
3484 constraint for operand 0.
3485 (*call_vzeroupper): Ditto.
3486 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
3487 (*call_rex64_ms_sysv_vzeroupper): Ditto.
3488 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
3489 Use "lzm" constraint for operand 0.
3490 (*call_pop_vzeroupper): Ditto.
3491 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
3492 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
3493 constraint for operand 0.
3494 (*sibcall_vzeroupper): Ditto.
3495 (*sibcall_rex64_ms_sysv): Ditto.
3496 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
3497 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
3498 *sibcall_pop_1. Use "Uz" constraint for operand 0.
3499 (*sibcall_pop_vzeroupper): Ditto.
3500 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
3501 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
3502 mode iterator. Use "<c>zm" constraint for operand 1.
3503 (*call_value_vzeroupper): Ditto.
3504 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
3505 for operand 1.
3506 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
3507 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
3508 *call_value_pop_1. Use "lzm" constraint for operand 1.
3509 (*call_value_pop_vzeroupper): Ditto.
3510 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
3511 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
3512 mode iterator. Use "Uz" constraint for operand 1.
3513 (*sibcall_value_vzeroupper): Ditto.
3514 (*sibcall_value_rex64_ms_sysv): Ditto.
3515 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
3516 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
3517 constraint for operand 1.
3518 (*sibcall_value_pop_vzeroupper): Ditto.
3519 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
3520 and "z" constraint for operand 2.
3521 (*tls_global_dynamic_32_gnu): Ditto.
3522 (*tls_local_dynamic_base_32_gnu): Ditto.
3523 (*tls_local_dynamic_base_64): Ditto.
3524 (*tls_local_dynamic_32_once): Ditto.
3525 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
3526 Update all callers.
3527 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
3528
3529 2011-05-16 Richard Guenther <rguenther@suse.de>
3530
3531 * gimple.c (gimple_types_compatible_p_1): Use names of the
3532 type itself, not its main variant.
3533 (iterative_hash_gimple_type): Likewise.
3534
3535 2011-05-16 Richard Guenther <rguenther@suse.de>
3536
3537 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
3538 always visit pointer target and function result and argument types.
3539
3540 2011-05-16 Jason Merrill <jason@redhat.com>
3541
3542 PR c++/48999
3543 * tree-inline.c (copy_statement_list): Put back recursion.
3544
3545 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3546
3547 PR target/27663
3548 PR target/41076
3549 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
3550 * config/avr/avr.md ("*ior<mode>qi.byte0",
3551 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
3552
3553 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
3554
3555 PR target/45099
3556 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
3557 register is needed for a function argument.
3558
3559 2011-05-16 Richard Guenther <rguenther@suse.de>
3560
3561 * gimple.c (struct type_hash_pair): New type.
3562 (type_hash_pair_compare): New function.
3563 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3564
3565 2011-05-16 Revital Eres <revital.eres@linaro.org>
3566
3567 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
3568
3569 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3570
3571 * config/i386/i386.md (floating point move splitters): Fix
3572 usage of standard_80387_constant_p.
3573 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
3574
3575 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
3576
3577 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
3578
3579 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
3580
3581 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
3582 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
3583 (tree_ssa_lim_finalize): Likewise.
3584
3585 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
3586
3587 * config/i386/constraint.md (Yd, Yx): New register constraints.
3588 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
3589 Yd conditional register constraint.
3590 (*movtf_internal): Use standard_sse_constant_opcode.
3591 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
3592 Yx conditional register constraint.
3593 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
3594 Yd conditional register constraint. Use standard_sse_constant_p to
3595 check for valid SSE constants and call standard_sse_constant_opcode to
3596 output SSE insn.
3597 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
3598 constants and call standard_sse_constant_opcode to output SSE insn.
3599 * config/i386/i386.c (ix86_option_ovverride_internal): Set
3600 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
3601 optimize_size is set.
3602 (standard_sse_constant_opcode): Output conditional AVX insn templates.
3603
3604 2011-05-14 Tobias Burnus <burnus@net-b.de>
3605
3606 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
3607
3608 2011-05-13 Martin Jambor <mjambor@suse.cz>
3609
3610 * ipa-prop.c (ipa_cst_from_jfunc): New function.
3611 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
3612 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
3613 (evaluate_conditions_for_ipcp_clone): Removed.
3614 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
3615 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
3616 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
3617
3618 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
3619
3620 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
3621 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
3622 lieu of MAY_HAVE_DEBUG_STMTS.
3623 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
3624 debug statements if !MAY_HAVE_DEBUG_STMTS.
3625
3626 2011-05-13 Martin Thuresson <martint@google.com>
3627
3628 PR gcov-profile/47793
3629 * libgcov.c (gcov_exit): Support relative profile paths.
3630 * doc/invoke.texi (-fprofile-dir): Update for above change.
3631
3632 2011-05-13 Richard Guenther <rguenther@suse.de>
3633
3634 * gimple.c (gimple_canonical_types_compatible_p): Do not use
3635 type-pair caching, do not compare hashes.
3636
3637 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
3638
3639 PR middle-end/48965
3640 * tree-cfg.c (edge_to_cases_cleanup): Return true.
3641 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
3642
3643 2011-05-13 Kai Tietz <ktietz@redhat.com>
3644
3645 * gimplify.c (gimplify_expr): Make sure operand is boolified.
3646 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
3647 compatible type for TRUTH_NOT_EXPR.
3648
3649 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
3650
3651 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
3652 (ix86_hard_regno_mode_ok): Change return value to bool. Use
3653 can_create_pseudo_p ().
3654
3655 2011-05-13 Richard Guenther <rguenther@suse.de>
3656
3657 PR lto/48978
3658 * gimple.c (iterative_hash_gimple_type): Revert change in
3659 pointer target and function result and argument hashing.
3660
3661 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
3662
3663 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
3664 (*movxf_internal_nointeger): Ditto.
3665 (*movdf_internal_rex64): Ditto.
3666 (*movdf_internal): Ditto.
3667 (*movdf_internal_nointeger): Ditto.
3668 (*movsf_internal): Ditto.
3669 (sincos splitters): Use can_create_pseudo ().
3670
3671 2011-05-13 Joseph Myers <joseph@codesourcery.com>
3672
3673 * config/i386/i386-opts.h: New.
3674 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
3675 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
3676 ix86_section_threshold): Remove.
3677 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
3678 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
3679 OPT_mbranch_cost_.
3680 (ix86_option_override_internal): Don't decode strings for options
3681 other than -march=, -mtune= and -mfpmath=. Don't allow for
3682 __attribute__ uses in remaining diagnostics for options with
3683 string arguments. Don't check for integer arguments being negative.
3684 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
3685 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
3686 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
3687 ix86_branch_cost, ix86_section_threshold): Remove.
3688 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
3689 HeaderInclude.
3690 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
3691 but not Var.
3692 (masm=): Use Enum and Init.
3693 (asm_dialect): New Enum and EnumValue entries.
3694 (mbranch-cost=): Use UInteger.
3695 (mlarge-data-threshold=): Use UInteger and Init.
3696 (mcmodel=): Use Enum and Init.
3697 (cmodel): New Enum and EnumValue entries.
3698 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
3699 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
3700 mregparm=): Use UInteger.
3701 (mstringop-strategy=): Use Enum and Init.
3702 (stringop_alg): New Enum and EnumValue entries.
3703 (mtls-dialect=): Use Enum and Init.
3704 (tls_dialect): New Enum and EnumValue entries.
3705 (mabi=): Use Enum and Init.
3706 (calling_abi): New Enum and EnumValue entries.
3707 (mveclibabi=): Use Enum and Init.
3708 (ix86_veclibabi): New Enum and EnumValue entries.
3709
3710 2011-05-13 Nick Clifton <nickc@redhat.com>
3711
3712 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
3713 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
3714
3715 2011-05-13 Kai Tietz <ktietz@redhat.com>
3716
3717 PR middle-end/48984
3718 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
3719 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
3720 (gimple_boolify): Check for cast for boolean_type_node instead for
3721 BOOLEAN_TYPE.
3722
3723 2011-05-13 Richard Guenther <rguenther@suse.de>
3724
3725 PR tree-optimization/48172
3726 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
3727 multiplying by number of iterations for equal step.
3728 (vect_create_cond_for_alias_checks): Likewise.
3729
3730 2011-05-13 Andreas Schwab <schwab@redhat.com>
3731
3732 * configure.ac: Use AS_HELP_STRING throughout.
3733 * configure: Regenerate.
3734
3735 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
3736
3737 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
3738 (ix86_emit_restore_regs_using_mov): Likewise.
3739 (ix86_emit_restore_sse_regs_using_mov): Likewise.
3740
3741 2011-05-12 Anatoly Sokolov <aesok@post.ru>
3742
3743 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3744 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3745 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3746 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3747 RTX_OK_FOR_OLO10_P): ...here.
3748 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3749 SYMBOLIC_CONST.
3750
3751 2011-05-12 Kai Tietz <ktietz@redhat.com>
3752
3753 * gimplify.c (gimple_boolify): Re-boolify expression
3754 arguments even if expression type is of kind BOOLEAN_TYPE.
3755 (gimplify_boolean_expr): Removed.
3756 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3757 and XOR. Additional take care that we keep expression's type.
3758 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3759 of TRUTH_AND|OR|XOR_EXPR.
3760
3761 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3762
3763 PR tree-optimization/48975
3764 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3765 on all bbs here and free and clear ifc_bbs at the end.
3766
3767 2011-05-12 Richard Guenther <rguenther@suse.de>
3768
3769 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3770 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
3771 until after simple checks.
3772 (gimple_types_compatible_p): Likewise.
3773 (iterative_hash_gimple_type): Always hash pointer targets
3774 and function return and argument types.
3775 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3776 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
3777 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3778 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
3779 completely in the simple compare section.
3780 (gimple_register_canonical_type): Query the cache again after
3781 registering.
3782
3783 2011-05-12 Richard Guenther <rguenther@suse.de>
3784
3785 PR tree-optimization/48172
3786 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3787 the number of iterations from the segment size calculation.
3788 (vect_create_cond_for_alias_checks): Adjust.
3789
3790 2011-05-12 Jakub Jelinek <jakub@redhat.com>
3791
3792 PR debug/48967
3793 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3794 if validate_subreg fails.
3795
3796 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
3797
3798 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3799 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3800 early.
3801
3802 2011-05-12 DJ Delorie <dj@redhat.com>
3803
3804 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3805 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3806 created builtin into rx_builtins array.
3807 (rx_builtin_decl): New function.
3808 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
3809
3810 2011-05-12 DJ Delorie <dj@redhat.com>
3811 Nick Clifton <nickc@redhat.com>
3812
3813 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3814 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3815 (rx_is_legitimate_address): Add pre-decrement and post-increment
3816 addressing in HImode and QImode. Fix test for out of range
3817 REG+INT addressing.
3818 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3819 (rx_align_for_label): Test label before extracting its usage count.
3820 (rx_adjust_insn_lengths): Fix selection of insn codes.
3821 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3822
3823 2011-05-11 Jason Merrill <jason@redhat.com>
3824
3825 * tree.c (type_hash_canon): Use struct tree_type_non_common.
3826
3827 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3828
3829 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3830 reindent the subsequent block.
3831
3832 2011-05-11 Satoru Takabayashi <satorux@google.com>
3833 Paul Pluzhnikov <ppluzhnikov@google.com>
3834
3835 * doc/install.texi (Configuration): Document --with-linker-hash-style.
3836 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3837 * config.in: Add LINKER_HASH_STYLE.
3838 * configure.ac: Add --with-linker-hash-style.
3839 * configure: Regenerate.
3840
3841 2011-05-11 Richard Guenther <rguenther@suse.de>
3842
3843 PR middle-end/48964
3844 * gimple.c (iterative_hash_canonical_type): Fix typo.
3845
3846 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
3847
3848 * config/i386/i386.c (legitimize_tls_address)
3849 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3850 expanders directly for TARGET_GNU2_TLS. Determine pic and
3851 __tls_get_addr symbol reference here. Update call to
3852 gen_tls_global_dynamic_{32,64} for added arguments.
3853 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3854 expanders directly for TARGET_GNU2_TLS. Determine
3855 __tls_get_addr symbol reference here. Update call to
3856 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
3857 unique UNSPEC REG_EQUIV to libcall block.
3858 (ix86_tls_get_addr): Declare static.
3859 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3860 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3861 Do not determine pic and __tls_get_addr symbol reference here. Do not
3862 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3863 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3864 (tls_global_dynamic_64): Add operand 2. Do not determine
3865 __tls_get_addr symbol reference here. Do not call
3866 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3867 (tls_local_dynamic_base64): Ditto for operand 1.
3868
3869 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
3870
3871 * function.c (expand_function_start): Initialize stack_check_probe_note
3872 only if the generic stack checking mechanism is used.
3873
3874 2011-05-11 Richard Guenther <rguenther@suse.de>
3875
3876 PR tree-optimization/15256
3877 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3878 (A & B) | C, combine (A op CST1) op CST2.
3879 (tree_ssa_forward_propagate_single_use_vars): Only bother to
3880 visit assigns that have uses.
3881
3882 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
3883
3884 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3885 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3886 (unpack_ts_type_common_value_fields): ...this. Update comment.
3887 (unpack_value_fields): Adjust for renaming.
3888 (lto_input_ts_type_tree_pointers): Split into...
3889 (lto_input_ts_type_common_tree_pointer): ...this and...
3890 (lto_input_ts_type_non_common_tree_pointers): ...this.
3891 (lto_input_tree_pointers): Adjust for above split.
3892 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3893 (pack_ts_type_common_value_fields): ...this. Update comment.
3894 (lto_output_ts_type_tree_pointers): Split into...
3895 (lto_output_ts_type_common_tree_pointers): ...this and...
3896 (lto_output_ts_type_non_common_tree_pointers): ...this.
3897 (lto_output_tree_pointers): Adjust for above split.
3898 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3899 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3900 * stor-layout.c (vector_type_mode): Adjust location of mode field.
3901 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3902 Define.
3903 (struct tree_type): Split into...
3904 (struct tree_type_common: ...this and...
3905 (struct tree_type_with_lang_specific): ...this and...
3906 (struct tree_type_non_common): ...this. Adjust accessor macros
3907 accordingly.
3908 (TYPE_VALUES_RAW): Define.
3909 (union tree_node): Update for above changes.
3910 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3911 TS_TYPE_NON_COMMON.
3912 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3913 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3914 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3915 * treestructu.def (TS_TYPE): Remove.
3916 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3917 Define.
3918
3919 2011-05-11 Jakub Jelinek <jakub@redhat.com>
3920
3921 PR debug/48159
3922 * tree-ssa.c (reset_debug_uses): New function.
3923 * tree-flow.h (reset_debug_uses): New prototype.
3924 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3925 * tree-loop-distribution.c (generate_loops_for_partition): Call
3926 reset_debug_uses on the stmts that will be removed. Keep around
3927 all debug stmts, don't count them as bits in partition bitmap.
3928 (generate_builtin): Don't count debug stmts or labels as bits in
3929 partition bitmap.
3930
3931 2011-05-11 Richard Guenther <rguenther@suse.de>
3932
3933 * gimple.c (gimple_type_hash_1): Merge with ...
3934 (gimple_type_hash): ... this.
3935 (gtc_visit): Remove mode parameter and simplify accordingly.
3936 (gimple_types_compatible_p_1): Likewise.
3937 (gimple_types_compatible_p): Likewise.
3938 (iterative_hash_gimple_type): Likewise.
3939 (visit): Likewise.
3940 (gimple_type_eq): Adjust.
3941
3942 2011-05-11 Revital Eres <revital.eres@linaro.org>
3943
3944 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3945 enters the branch create an anti edge in the opposite direction
3946 to prevent the creation of reg-moves.
3947 * modulo-sched.c: Adjust comment to reflect the fact we are
3948 scheduling closing branch.
3949 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3950 (stage_count): New field in struct partial_schedule.
3951 (calculate_stage_count): New function.
3952 (normalize_sched_times): Rename to reset_sched_times and handle
3953 incrementing the sched time of the nodes by a constant value
3954 passed as parameter.
3955 (duplicate_insns_of_cycles): Skip closing branch.
3956 (sms_schedule_by_order): Schedule closing branch.
3957 (ps_insn_find_column): Handle closing branch.
3958 (sms_schedule): Call reset_sched_times and adjust the code to
3959 support scheduling of the closing branch.
3960 (ps_insert_empty_row): Update calls to normalize_sched_times
3961 and rotate_partial_schedule functions.
3962
3963 2011-05-11 Richard Guenther <rguenther@suse.de>
3964
3965 PR middle-end/48953
3966 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3967
3968 2011-05-11 Joseph Myers <joseph@codesourcery.com>
3969
3970 * opts.c (finish_options): Move warning settings from process_options.
3971 * toplev.c (process_options): Move warning settings to finish_options.
3972
3973 2011-05-11 Richard Guenther <rguenther@suse.de>
3974
3975 PR tree-optimization/18041
3976 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3977 (simplify_bitwise_binary): ... this. Handle operand conversions
3978 by applying them to the result instead.
3979 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
3980
3981 2011-05-11 Richard Guenther <rguenther@suse.de>
3982
3983 * gimple.c (gimple_canonical_types_compatible_p): Split out
3984 from gimple_types_compatible_p and friends. Do not recurse
3985 to pointed-to types.
3986 (gimple_canonical_type_eq): Use it.
3987 (iterative_hash_canonical_type): Split out from
3988 iterative_hash_gimple_type and friends. Do not recurse
3989 to pointed-to types.
3990 (gimple_canonical_type_hash): Use it, allocate the hash here.
3991
3992 2011-05-11 Revital Eres <revital.eres@linaro.org>
3993
3994 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3995 recognizing doloop.
3996
3997 2011-05-11 Revital Eres <revital.eres@linaro.org>
3998
3999 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4000 instead of PREV_INSN.
4001
4002 2011-05-11 Revital Eres <revital.eres@linaro.org>
4003
4004 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
4005 * loop-doloop.c (doloop_condition_get): Likewise.
4006 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
4007 (doloop_end): New.
4008 * config/arm/arm.md (*addsi3_compare0): Remove "*".
4009
4010 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
4011
4012 * tree.def (CASE_LABEL_EXPR): Add an operand.
4013 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
4014
4015 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4016
4017 * c-decl.c (c_override_global_bindings_to_false): Remove.
4018 (global_bindings_p): Don't check
4019 c_override_global_bindings_to_false.
4020 * c-tree.h (c_override_global_bindings_to_false): Remove.
4021 * c-typeck.c (composite_type): Don't set
4022 c_override_global_bindings_to_false.
4023
4024 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4025
4026 PR target/48857, 48495
4027 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
4028 (VSX_MODE): Ditto.
4029 (VSX_MOVE_MODE): Ditto.
4030 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
4031 VSX vector types. Add V2DImode.
4032 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
4033 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
4034 (MODES_TIEABLE_P): Ditto.
4035
4036 * config/rs6000/rs6000.c (rs6000_emit_move): Use
4037 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
4038 VSX_VECTOR_MODE.
4039 (init_cumulative_args): Ditto.
4040 (rs6000_function_arg_boundary): Ditto.
4041 (rs6000_function_arg_advance_1): Ditto.
4042 (rs6000_function_arg): Ditto.
4043 (rs6000_function_ok_for_sibcall): Ditto.
4044 (emit_frame_save): Ditto.
4045 (rs6000_function_value): Ditto.
4046 (rs6000_libcall_value): Ditto.
4047
4048 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4049
4050 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4051 i386/darwin-lib.h to $libgcc_tm_file.
4052 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
4053
4054 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4055
4056 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
4057
4058 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4059
4060 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
4061 * config/rs6000/rs6000-tables.opt: New file (generated).
4062 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
4063 rs6000/rs6000-tables.opt to extra_options.
4064 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
4065 * config/rs6000/rs6000.c (rs6000_select): Remove.
4066 (processor_target_table): Move contents to rs6000-cpus.def.
4067 (darwin_rs6000_override_options): Check
4068 global_options_set.x_rs6000_cpu_index instead of
4069 rs6000_select[1].string.
4070 (rs6000_option_override_internal): Likewise.
4071 (rs6000_handle_option): Don't assert that global structures are in
4072 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
4073 (rs6000_default_cpu): New variable.
4074 (rs6000_file_start): Set it instead of local default_cpu. Check
4075 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
4076 global_options_set.x_rs6000_tune_index instead of rs6000_select.
4077 (rs6000_darwin_file_start): Check rs6000_default_cpu and
4078 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
4079 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
4080 rs6000_select): Remove.
4081 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
4082 Remove.
4083 (mcpu=, mtune=): Use Var, Init, Enum and Save.
4084 * config/rs6000/t-rs6000
4085 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
4086 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4087 global_options_set.x_rs6000_cpu_index instead of
4088 rs6000_select[1].string.
4089 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4090 global_options_set.x_rs6000_cpu_index instead of
4091 rs6000_select[1].string.
4092
4093 2011-05-10 Joseph Myers <joseph@codesourcery.com>
4094
4095 * config.gcc (libgcc_tm_file): Define instead of including files
4096 from ../../libgcc/config/ in tm_file.
4097 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
4098 * configure: Regenerate.
4099 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
4100 libgcc_tm.h, cs-libgcc_tm.h): New.
4101 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
4102 (clean): Remove libgcc_tm.h.
4103 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
4104 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
4105 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
4106
4107 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
4108
4109 PR target/48896
4110 * config/avr/avr.c (avr_ret_register): Return unsigned int
4111 instead of int.
4112 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
4113 it to avr_libcall_value.
4114 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
4115 expand_expr.
4116 (avr_expand_binop_builtin): Ditto.
4117 (avr_expand_unop_builtin): Ditto.
4118
4119 2011-05-10 DJ Delorie <dj@redhat.com>
4120
4121 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
4122 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
4123 * config/rx/rx.c (rx_align_for_label): Add label and
4124 uses_threshold parameters. Do not align when the label is not
4125 used enough.
4126 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
4127
4128 2011-05-10 Richard Guenther <rguenther@suse.de>
4129
4130 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
4131 a series of conversions and apply foldings similar to what
4132 fold-const does.
4133 (tree_ssa_forward_propagate_single_use_vars): Call it.
4134
4135 2011-05-10 Jakub Jelinek <jakub@redhat.com>
4136
4137 PR tree-optimization/48611
4138 PR tree-optimization/48794
4139 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
4140 referenced from RESX or EH_DISPATCH arguments.
4141
4142 PR debug/48928
4143 * dfp.c (decimal_to_decnumber): Handle conversion from
4144 dconst{1,2,m1,half}.
4145
4146 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4147
4148 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
4149 for !flag_prefer_avx128.
4150 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
4151
4152 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4153
4154 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
4155 (fold_ternary_loc): Use expr_location_or.
4156
4157 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
4158
4159 PR debug/48853
4160 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
4161 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
4162 Pmode and mem_mode is not VOIDmode.
4163
4164 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
4165
4166 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
4167 TYPE_QUAL_RESTRICT): Convert to enum.
4168
4169 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4170
4171 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
4172 (const_pow2_1_to_8_operand): Ditto.
4173 (const_pow2_1_to_128_operand): Ditto.
4174 (const_pow2_1_to_32768_operand): Ditto.
4175 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
4176 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
4177 in insn constraint to check integer value of operand 3.
4178 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
4179
4180 (PINSR_MODE): New mode iterator.
4181 (sse2p4_1): New mode attribute.
4182 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
4183 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
4184 iterator. Use const_int_operand instead of
4185 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
4186 exact_log2 in insn constraint to check integer value of operand 3.
4187
4188 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4189
4190 * config/i386/sse.md (blendbits): Remove mode attribute.
4191 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
4192 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
4193 Check integer value of operand 3 in insn constraint.
4194
4195 2011-05-09 Richard Guenther <rguenther@suse.de>
4196
4197 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
4198 for diagnostics.
4199 (lto_symtab_merge): Likewise. Do not register types here.
4200 (lto_symtab_merge_decls_2): Likewise.
4201 (lto_symtab_merge_decls_1): Likewise.
4202 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
4203 * gimple.c (enum gtc_mode): Declare.
4204 (gimple_types_compatible_p): Make static.
4205
4206 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4207
4208 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
4209 temporary register to match Pmode.
4210
4211 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4212
4213 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
4214 and *vec_concatv4si_1_avx.
4215
4216 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
4217
4218 PR rtl-optimization/48927
4219 * ira-conflicts.c (commutative_constraint_p): Use
4220 recog_data.alternative_enabled_p to disable alternatives where
4221 "enabled" attribute is false.
4222 (get_dup_num): Ditto.
4223 * ira-lives.c (single_reg_class): Ditto.
4224 (ira_implicitly_set_insn_hard_regs): Ditto.
4225
4226 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
4227
4228 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
4229 (dataflow_set_preserve_mem_locs): Likewise.
4230
4231 2011-05-09 Philipp Thomas <pth@suse.de>
4232
4233 * config/mep/mep.c (mep_validate_vliw): Syntax description
4234 should not be translated.
4235
4236 2011-05-09 Joseph Myers <joseph@codesourcery.com>
4237
4238 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
4239 * config/mips/mips-tables.opt: New file (generated).
4240 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
4241 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
4242 MIPS_ARCH_OPTION_NATIVE): Define.
4243 * config/mips/mips.c (mips_cpu_info_table): Move contents to
4244 mips-cpus.def.
4245 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
4246 mips_parse_cpu): Remove.
4247 (mips_cpu_info_from_opt, mips_default_arch): New.
4248 (mips_handle_option): Don't assert that global structures are in
4249 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
4250 (mips_option_override): Use new variables and functions to set
4251 state of these options. Use strcmp to check for individual CPU names.
4252 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
4253 definition.
4254 * config/mips/mips.opt (march=): Use ToLower and Enum.
4255 (mips): Use ToLower, Enum and Var.
4256 (mtune=): Use ToLower and Enum.
4257 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
4258
4259 2011-05-08 Jan Hubicka <jh@suse.cz>
4260
4261 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
4262 Arrange type pairs to be UID ordered.
4263 (gimple_lookup_type_leader): Make inline.
4264
4265 2011-05-09 Nick Clifton <nickc@redhat.com>
4266
4267 PR target/48899
4268 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
4269 PROCESSOR_DEFAULT.
4270
4271 PR target/48897
4272 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
4273 variable 's'.
4274
4275 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
4276
4277 * combine.c (simplify_comparison): Abstract out parts into...
4278 (simplify_compare_const): ... new function.
4279 (try_combine): Generalize parallel arithmetic/compare combining
4280 to call simplify_compare_const() and CANONICALIZE_COMPARE().
4281
4282 2011-05-08 Jan Hubicka <jh@suse.cz>
4283
4284 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
4285 (cgraph_create_virtual_clone): Call hooks once virtual clone
4286 is finished.
4287 * cgraph.h (cgraph_clone_node): Update prototype.
4288 * ipa-cp.c (ipcp_estimate_growth): Use
4289 estimate_ipcp_clone_size_and_time.
4290 * ipa-inline-transform.c (clone_inlined_nodes): Update.
4291 * lto-cgraph.c (input_node): Update.
4292 * ipa-inline.c (recursive_inlining): Update.
4293 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
4294 (evaluate_conditions_for_known_args): Break out from ...
4295 (evaluate_conditions_for_edge): ... here.
4296 (evaluate_conditions_for_ipcp_clone): New function.
4297 (inline_node_duplication_hook): Update clone summary based
4298 on parameter map.
4299 (estimate_callee_size_and_time): Rename to ...
4300 (estimate_node_size_and_time): take NODE instead of EDGE;
4301 take POSSIBLE_TRUTHS as argument.
4302 (estimate_callee_size_and_time): Update.
4303 (estimate_ipcp_clone_size_and_time): New function.
4304 (do_estimate_edge_time): Update.
4305
4306 2011-05-08 Richard Guenther <rguenther@suse.de>
4307
4308 PR middle-end/48908
4309 PR middle-end/48905
4310 * expmed.c (expand_shift_1): Compute adjusted constant shift
4311 amount manually.
4312
4313 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4314
4315 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
4316
4317 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
4318
4319 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
4320
4321 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
4322
4323 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
4324
4325 2011-05-07 Jan Hubicka <jh@suse.cz>
4326
4327 * ipa-inline-transform.c (inline_call): Account when program size
4328 decreases.
4329 * ipa-inline.c (relative_time_benefit): New function.
4330 (edge_badness): Reorganize to be power 2 based; fix thinko when
4331 computing badness for negative growth; update comments to match
4332 reality; better dumps.
4333
4334 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
4335
4336 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
4337 type to bool and adjust comment.
4338 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
4339 (fold_mathfn_compare): Remove calls to global_bindings_p.
4340 (fold_inf_compare): Likewise.
4341 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
4342 * c-tree.h (global_bindings_p): Adjust prototype.
4343 * c-decl.c (global_bindings_p): Return bool and simplify.
4344
4345 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
4346
4347 PR tree-optimization/48837
4348 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
4349 when accumulator transformation is performed.
4350
4351 2011-05-06 Jan Hubicka <jh@suse.cz>
4352
4353 * i386.h (ix86_tune_indices): Add
4354 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
4355 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
4356 * i386.c (initial_ix86_tune_features): Add
4357 X86_SOFTARE_PREFETCHING_BENEFICIAL.
4358 (software_prefetching_beneficial_p): Remove predicate.
4359 (ix86_option_override_internal): Use new macro.
4360
4361 2011-05-06 Jan Hubicka <jh@suse.cz>
4362
4363 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
4364
4365 2011-05-06 Jan Hubicka <jh@suse.cz>
4366
4367 * cgraph.c (cgraph_add_thunk): Create real function node instead
4368 of alias node; finalize it and mark needed/reachale; arrange visibility
4369 to be right and add it into the corresponding same comdat group list.
4370 (dump_cgraph_node): Dump thunks.
4371 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
4372 cgraph_function_with_gimple_body_p,
4373 cgraph_first_function_with_gimple_body,
4374 cgraph_next_function_with_gimple_body): New functions.
4375 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
4376 New macros.
4377 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
4378 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4379 * cgraphunit.c (cgraph_finalize_function): Only look into possible
4380 devirtualization when optimizing.
4381 (verify_cgraph_node): Verify thunks.
4382 (cgraph_analyze_function): Analyze thunks.
4383 (cgraph_mark_functions_to_output): Output thunks only in combination
4384 with function they are assigned to.
4385 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
4386 alias into normal node.
4387 (assemble_thunks): New functoin.
4388 (cgraph_expand_function): Use it.
4389 * lto-cgraph.c (lto_output_node): Stream thunks.
4390 (input_overwrite_node): Stream in thunks.
4391 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
4392 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
4393 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
4394 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
4395 (inline_analyze_function): Do not care about thunk jump functions.
4396 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
4397 * ipa-prop.c (ipa_prop_write_jump_functions): Use
4398 cgraph_function_with_gimple_body_p.
4399 * passes.c (do_per_function_toporder): Use
4400 cgraph_function_with_gimple_body_p.
4401 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
4402 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
4403 (function_called_by_processed_nodes_p): Likewise.
4404
4405 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4406
4407 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
4408 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
4409 entries.
4410 (mabi=): Replace with separate entries for mabi=altivec,
4411 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
4412 mabi=ieeelongdouble and mabi=ibmlongdouble.
4413 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
4414 check for -mabi=spe without SPE ABI support here.
4415 (rs6000_handle_option): Replace OPT_mabi_ handling with
4416 OPT_mabi_altivec and OPT_mabi_spe handling.
4417
4418 2011-05-06 Cary Coutant <ccoutant@google.com>
4419
4420 * dwarf2out.c (contains_subprogram_definition): New function.
4421 (should_move_die_to_comdat): Call it.
4422
4423 2011-05-06 Jeff Law <law@redhat.com>
4424
4425 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
4426 remove_ctrl_stmt_and_useless_edges.
4427 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
4428 (fixup_template_block, thread_single_edge): Likewise.
4429 (mark_threaded_blocks): Use THREAD_TARGET.
4430
4431 2011-05-06 Alan Modra <amodra@gmail.com>
4432
4433 PR target/48900
4434 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
4435 const0_rtx as the arg to the dummy __tls_get_addr libcall.
4436
4437 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4438
4439 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
4440 constraint modifier to "r".
4441
4442 2011-05-06 Joseph Myers <joseph@codesourcery.com>
4443
4444 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
4445 fall through for OPT_mcmodel_.
4446
4447 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4448
4449 * config/s390/s390.c (s390_asm_trampoline_template): Comment
4450 instruction sizes.
4451 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
4452
4453 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4454
4455 PR target/47930
4456 * config/arm/arm.opt (marm): Document it.
4457 (mthumb): Reject negative variant.
4458
4459 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
4460
4461 PR target/48898
4462 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4463 Fix typo in "ccvt" variable name.
4464
4465 2011-05-06 Tristan Gingold <gingold@adacore.com>
4466
4467 PR target/48895
4468 * config/vms/vms-ar.c (main): Remove cwd variable.
4469
4470 2011-05-06 Jakub Jelinek <jakub@redhat.com>
4471
4472 PR debug/48902
4473 * var-tracking.c (prepare_call_arguments): Move else before #endif.
4474
4475 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
4476
4477 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
4478 * gimplify.c (gimplify_switch_expr): Likewise.
4479 * omp-low.c (expand_omp_sections): Likewise.
4480 * tree-eh.c (lower_try_finally_switch): Likewise.
4481 (lower_eh_dispatch): Likewise.
4482 * tree.h (build_case_label): Declare.
4483 * tree.c (build_case_label): Define.
4484
4485 2011-05-05 Jason Merrill <jason@redhat.com>
4486
4487 PR c++/40975
4488 * tree-inline.c (copy_tree_r): Use copy_statement_list.
4489 (copy_statement_list): Don't recurse.
4490 * stor-layout.c (copy_self_referential_tree_r): Don't allow
4491 STATEMENT_LIST.
4492
4493 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4494
4495 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
4496 through from -mfpu= handling.
4497 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
4498
4499 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
4500
4501 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
4502 POST_MODIFY.
4503
4504 2011-05-05 Steve Ellcey <sje@cup.hp.com>
4505
4506 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
4507 for 11.31.
4508 (hppa[12]*-*-hpux11*): Ditto.
4509 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
4510 * config/ia64/hpux-unix2003.h: New.
4511 * config/pa/pa-hpux1131.opt: New.
4512 * config/pa/pa-hpux1131.h: New.
4513 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
4514 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4515 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
4516
4517 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR debug/48853
4520 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
4521 instead of mode as 3rd argument to recursive call.
4522 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
4523 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
4524 VOIDmode.
4525 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
4526 don't give up if mode is Pmode and mem_mode is not VOIDmode.
4527 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
4528 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
4529
4530 2011-05-05 Julian Brown <julian@codesourcery.com>
4531
4532 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
4533 parenthesis in D-register case.
4534
4535 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4536
4537 * opt-functions.awk (var_type_struct): Handle Enum options.
4538 * optc-gen.awk: Don't check range of variables of character type.
4539 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
4540 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
4541 rs6000_sdata_name, rs6000_explicit_options): Remove.
4542 (rs6000_option_override_internal): Check for -malign-power here.
4543 Use global_options_set instead of rs6000_explicit_options.
4544 (rs6000_parse_fpu_option): Remove.
4545 (rs6000_handle_option): Access variables via opts and opts_set
4546 pointers. Use error_at and warning_at. Add fall-through
4547 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
4548 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
4549 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
4550 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
4551 here. Don't use rs6000_parse_fpu_option.
4552 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
4553 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
4554 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
4555 (mrecip=): Use Var.
4556 (mspe): Use Var and Save.
4557 (mtraceback=): Use Enum and Var.
4558 (rs6000_traceback_type): New Enum and EnumValue entries.
4559 (mfloat-gprs=): Use Enum, Var and Save.
4560 (rs6000_float_gprs): New Enum and EnumValue entries.
4561 (mlong-double-): use Var and Save.
4562 (msched-costly-dep=, minsert-sched-nops=): Use Var.
4563 (malign-): Use Enum and Var.
4564 (rs6000_alignment_flags): New Enum and EnumValue entries.
4565 (mfpu=): Use Enum.
4566 (fpu_type_t): New Enum and EnumValue entries.
4567 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4568 global_options_set instead of rs6000_explicit_options.
4569 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4570 global_options_set instead of rs6000_explicit_options.
4571 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4572 global_options_set instead of rs6000_explicit_options.
4573 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
4574 global_options_set instead of rs6000_explicit_options.
4575 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
4576 global_options_set instead of rs6000_explicit_options.
4577 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4578 global_options_set instead of rs6000_explicit_options.
4579 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
4580 definition.
4581 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4582 global_options_set instead of rs6000_explicit_options.
4583 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
4584 (rs6000_cmodel): New Enum and EnumValue entries.
4585 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
4586 global_options_set instead of rs6000_explicit_options.
4587 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
4588 (mtls-size=): Use Enum and Var.
4589 (rs6000_tls_size): New Enum and EnumValue entries.
4590
4591 2011-05-05 Michael Matz <matz@suse.de>
4592
4593 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
4594 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
4595 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
4596 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
4597 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
4598 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
4599 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
4600 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
4601 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
4602 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
4603 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
4604 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
4605 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
4606 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
4607 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
4608 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
4609
4610 2011-05-05 Richard Guenther <rguenther@suse.de>
4611
4612 * expmed.c (expand_variable_shift): Rename to ...
4613 (expand_shift_1): ... this. Take an expanded shift amount.
4614 For rotates recurse directly not building trees for the shift amount.
4615 (expand_variable_shift): Wrap around expand_shift_1.
4616 (expand_shift): Adjust.
4617
4618 2011-05-05 Jakub Jelinek <jakub@redhat.com>
4619
4620 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
4621
4622 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
4623
4624 * tree.h (get_pending_sizes): Remove prototype.
4625 (put_pending_size): Likewise.
4626 (put_pending_sizes): Likewise.
4627 * stor-layout.c (pending_sizes): Delete.
4628 (get_pending_sizes): Likewise.
4629 (put_pending_size): Likewise.
4630 (put_pending_sizes): Likewise.
4631 (variable_size): Do not call put_pending_size and tidy up.
4632 * function.h (struct function): Remove dont_save_pending_sizes_p.
4633 * lto-streamer-in.c (input_function): Do not stream it.
4634 * lto-streamer-out.c (output_function): Likewise.
4635 * tree-inline.c (initialize_cfun): Do not copy it.
4636 * c-decl.c (store_parm_decls): Do not set it.
4637 * omp-low.c (create_task_copyfn): Likewise.
4638 * tree-optimize.c (tree_rest_of_compilation): Likewise.
4639
4640 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
4641
4642 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
4643 conditions.
4644 (*movdf_internal): Ditto.
4645 (*movdf_internal_nointeger): Ditto.
4646 (*movsf_internal): Ditto.
4647
4648 2011-05-05 Joseph Myers <joseph@codesourcery.com>
4649
4650 * c-decl.c (finish_decl): Don't call get_pending_sizes.
4651 (grokparm): Add parameter expr. Pass it to grokdeclarator.
4652 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
4653 (c_variable_size): Remove.
4654 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
4655 call put_pending_sizes.
4656 (get_parm_info): Add parameter expr. Use it to set
4657 arg_info->pending_sizes.
4658 (store_parm_decls): Use arg_info->pending_sizes instead or calling
4659 get_pending_sizes.
4660 * c-parser.c (c_parser_parms_declarator): Update call to
4661 c_parser_parms_list_declarator.
4662 (c_parser_parms_list_declarator): Take parameter expr. Update
4663 call to push_parm_decl. Update recursive call. Don't call
4664 get_pending_sizes. Update calls to get_parm_info.
4665 (c_parser_objc_method_definition): Update calls to
4666 c_parser_objc_method_decl and objc_start_method_definition.
4667 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
4668 (c_parser_objc_method_decl): Add parameter expr. Update call to
4669 grokparm.
4670 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
4671 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
4672 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
4673
4674 2011-05-05 Michael Hope <michael.hope@linaro.org>
4675
4676 PR pch/45979
4677 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
4678 __ARM_EABI__ hosts.
4679
4680 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4681
4682 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
4683 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
4684 (spu_output_mi_thunk): New function.
4685
4686 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4687
4688 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
4689 targetm.asm_out.print_operand.
4690 * config/sol2.c: Include target.h.
4691
4692 2011-05-04 Jan Hubicka <jh@suse.cz>
4693
4694 * ipa-inline.c (reset_edge_caches): New function.
4695 (update_caller_keys): Add check_inlinablity_for; do not
4696 reset edge caches; remove now unnecesary loop.
4697 (update_callee_keys): Add comments; reset node_growth_cache of callee.
4698 (update_all_callee_keys): Likewise.
4699 (inline_small_functions): Sanity check cache; update code
4700 recomputing it.
4701
4702 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
4703
4704 PR rtl-optimization/47612
4705 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
4706 as the last insn of the sequence to be moved.
4707
4708 2011-05-04 Tobias Burnus <burnus@net-b.de>
4709
4710 PR fortran/48864
4711 * doc/invoke.texi (Ofast): Document that it
4712 enables Fortran's -fno-protect-parens.
4713
4714 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4715
4716 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
4717
4718 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
4719
4720 * stor-layout.c (variable_size): Do not issue errors.
4721
4722 2011-05-04 Richard Guenther <rguenther@suse.de>
4723
4724 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
4725 for array-ref indices.
4726 (tree_coverage_counter_addr): Likewise.
4727 (build_fn_info_type): Use size_int for index types.
4728 (build_gcov_info): Likewise.
4729
4730 2011-05-04 Richard Guenther <rguenther@suse.de>
4731
4732 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
4733 to build_int_cst.
4734 * c-typeck.c (really_start_incremental_init): Use bitsize_int
4735 for constructor indices.
4736 (push_init_level): Likewise.
4737
4738 2011-05-04 Richard Guenther <rguenther@suse.de>
4739
4740 * explow.c (promote_mode): Move variable declarations before code.
4741
4742 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
4743
4744 * tree.h (build_function_type_array): Declare.
4745 (build_varargs_function_type_array): Declare.
4746 (build_function_type_vec, build_varargs_function_type_vec): Define.
4747 * tree.c (build_function_type_array_1): New function.
4748 (build_function_type_array): New function.
4749 (build_varargs_function_type_array): New function.
4750
4751 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
4752
4753 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4754 before setting STMT_VINFO_TYPE.
4755
4756 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4757
4758 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4759 instead of spu_pass_by_reference.
4760
4761 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4762
4763 * calls.c (emit_library_call_value_1): Invoke
4764 promote_function_mode hook on libcall arguments.
4765 * explow.c (promote_function_mode, promote_mode): Handle TYPE
4766 argument being NULL.
4767 * targhooks.c (default_promote_function_mode): Lisewise.
4768 * config/s390/s390.c (s390_promote_function_mode): Likewise.
4769 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4770
4771 * doc/tm.texi: Document that TYPE argument might be NULL.
4772
4773 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4774
4775 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4776
4777 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4778
4779 From Bernd Schmidt
4780 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4781
4782 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4783
4784 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4785 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4786 Move ...
4787 * mips-tfile.c: ... here.
4788 Don't include coretypes.h, tm.h, filenames.h.
4789 (saber_stop): Remove definition and all calls.
4790 [__SABER__]: Remove.
4791 (__LINE__): Remove default.
4792 (Size_t, Ptrdiff_t): Remove definitions.
4793 Replace by size_t, ptrdiff_t.
4794 [!MIPS_DEBUGGING_INFO]: Remove.
4795 (SHASH_SIZE, THASH_SIZE): Remove defaults.
4796 (progname): Add const.
4797 (STATIC): Remove.
4798 Replace all uses by static.
4799 (ALIGN_SYMTABLE_OFFSET): Remove default.
4800 * mips-tdump.c: Don't include coretypes.h, tm.h.
4801 Remove !MIPS_IS_STAB guard.
4802 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4803 $(TM_H), filenames.h dependencies.
4804 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4805
4806 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4807
4808 From Jie Zhang
4809 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4810 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4811
4812 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4813
4814 From Bernd Schmidt
4815 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4816 account and save/restore RETS.
4817 (PROFILE_BEFORE_PROLOGUE): Define.
4818 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
4819 the push insn to use predecrement.
4820
4821 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
4822
4823 From Jie Zhang
4824 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4825
4826 2011-05-04 Nick Clifton <nickc@redhat.com>
4827
4828 * config/mn10300/mn10300.c: Include cfgloop.h.
4829 (DUMP): New macro.
4830 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
4831 Lcc or a FLcc insn into the instruction stream.
4832 (mn10300_block_contains_call): New function. Returns true if the
4833 given basic block contains a CALL insn.
4834 (mn10300_loop_contains_call_insn): New function. Returns true if
4835 the given loop contains a CALL insn.
4836 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
4837 to use the SETLB and Lcc or FLcc insns.
4838 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4839 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4840 * config/mn10300/mn10300.opt (msetlb): New option. Used to
4841 disable the SETLB optimization.
4842 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4843 __SETLB__ or __NO_SETLB__.
4844 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4845 (movsf_internal): Handle MDR register.
4846 (cmpsi): Make visible.
4847 (setlb): New pattern.
4848 (Lcc): New pattern.
4849 (FLcc): New pattern.
4850
4851 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
4852
4853 PR target/48860
4854 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4855 for reg<->xmm moves.
4856 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4857 (vec_concatv2di_rex64_sse): Ditto.
4858 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4859 (*vec_extractv2di_1_rex64): Ditto.
4860
4861 Revert:
4862 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
4863
4864 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4865 reg<->xmm moves.
4866 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4867
4868 2011-05-04 Richard Guenther <rguenther@suse.de>
4869
4870 * tree.h (int_const_binop): Remove notrunc argument.
4871 * fold-const.c (int_const_binop): Remove notrunc argument. Always
4872 create integer constants that are properly truncated.
4873 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4874 (const_binop): Remove zero notrunc argument to int_const_binop.
4875 (size_binop_loc): Likewise.
4876 (fold_div_compare): Likewise.
4877 (maybe_canonicalize_comparison_1): Likewise.
4878 (fold_comparison): Likewise.
4879 (fold_binary_loc): Likewise.
4880 (multiple_of_p): Likewise.
4881 * expr.c (store_constructor): Likewise.
4882 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4883 (maybe_fold_stmt_addition): Likewise.
4884 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4885 * stor-layout.c (layout_type): Likewise.
4886 * tree-data-ref.c (tree_fold_divides_p): Likewise.
4887 * tree-sra.c (build_ref_for_offset): Likewise.
4888 (build_user_friendly_ref_for_offset): Likewise.
4889 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4890 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4891 * tree-ssa-loop-niter.c (inverse): Likewise.
4892 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4893 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4894 * tree-switch-conversion.c (check_range): Likewise.
4895 (build_constructors): Likewise.
4896 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4897 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4898 (extract_range_from_assert): Likewise.
4899 (vrp_int_const_binop): Likewise.
4900 (extract_range_from_binary_expr): Likewise.
4901 (extract_range_from_unary_expr): Likewise.
4902 (check_array_ref): Likewise.
4903 (find_case_label_range): Likewise.
4904 (simplify_div_or_mod_using_ranges): Likewise.
4905 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4906 comparing case labels for merging.
4907
4908 2011-05-03 Mark Wielaard <mjw@redhat.com>
4909
4910 * dwarf2out.c (debug_str_hash_forced): Removed.
4911 (gen_label_for_indirect_string): Removed.
4912 (get_debug_string_label): Removed.
4913 (AT_string_form): Generate label directly.
4914 (output_indirect_string): Test indirect_string_node for
4915 DW_FORM_strp instead of checking label and refcount.
4916 (prune_indirect_string): Removed.
4917 (prune_unused_types): Don't check debug_str_hash_forced or
4918 call prune_indirect_string.
4919
4920 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4921
4922 PR other/48093
4923 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4924
4925 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
4926
4927 PR debug/47994
4928 PR debug/47919
4929 * combine.c (try_combine): Skip debug insns at m_split tests.
4930
4931 2011-04-26 Mark Wielaard <mjw@redhat.com>
4932
4933 PR42288
4934 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4935 when info_section_emitted.
4936
4937 2011-05-03 Joseph Myers <joseph@codesourcery.com>
4938
4939 * config/mips/mips-opts.h: New.
4940 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4941 to mips-opts.h.
4942 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4943 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4944 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
4945 via opts pointer.
4946 * config/mips/mips.h (enum mips_code_readable_setting): Move to
4947 mips-opts.h.
4948 (mips_abi, mips_code_readable): Don't declare.
4949 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4950 (mabi=): Use Enum and Var.
4951 (mips_abi): New Enum and EnumValue entries.
4952 (mcode-readable=): Use Enum and Var.
4953 (mips_code_readable_setting): New Enum and EnumValue entries.
4954 (mr10k-cache-barrier=): Use Enum and Var.
4955 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4956
4957 2011-05-03 Jan Hubicka <jh@suse.cz>
4958
4959 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4960 replace hash by pointer map.
4961 (cgraph_node_set_element_def, cgraph_node_set_element,
4962 const_cgraph_node_set_element, varpool_node_set_element_def,
4963 varpool_node_set_element, const_varpool_node_set_element): Remove.
4964 (free_cgraph_node_set, free_varpool_node_set): New function.
4965 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4966 * tree-emutls.c: Free varpool node set.
4967 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4968 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4969 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4970 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4971 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4972 Move here from ipa.c; implement using pointer_map
4973 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4974 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4975 debug_cgraph_node_set, varpool_node_set_new,
4976 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4977 dump_varpool_node_set, debug_varpool_node_set):
4978 Move to ipa-uitls.c.
4979 * passes.c (ipa_write_summaries): Update.
4980
4981 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4982
4983 From Mike Frysinger:
4984 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4985 bf542/bf544/bf547/bf548/bf549.
4986
4987 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
4988
4989 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4990
4991 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
4992
4993 From Bernd Schmidt:
4994 * config/bfin/bfin.md (MOVCC): New mode_macro.
4995 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4996 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
4997 comments from generated assembly.
4998
4999 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5000
5001 From Bernd Schmidt
5002 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
5003 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
5004 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
5005 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
5006 * config/bfin/lib1funcs.asm (___muldi3): New function.
5007
5008 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5009
5010 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
5011 build_function_type_list instead of build_function_type.
5012 Rearrange initialization of `args' to do so.
5013
5014 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5015
5016 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
5017 instead of build_function_type.
5018
5019 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5020
5021 * config/rs6000/rs6000.c (spe_init_builtins): Call
5022 build_function_type_list instead of build_function_type.
5023 (paired_init_builtins, altivec_init_builtins): Likewise.
5024 (builtin_function_type): Likewise.
5025
5026 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5027
5028 * config/sh/sh.c (sh_media_init_builtins): Call
5029 build_function_type_list instead of build_function_type.
5030
5031 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5032
5033 * config/sparc/sparc.c (sparc_file_end): Call
5034 build_function_type_list instead of build_function_type.
5035
5036 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5037
5038 * config/alpha/alpha.c (alpha_init_builtins): Call
5039 build_function_type_list instead of build_function_type.
5040
5041 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5042
5043 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
5044 build_function_type_list instead of build_function_type.
5045
5046 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5047
5048 * config/iq2000/i2000.c (iq2000_init_builtins): Call
5049 build_function_type_list instead of build_function_type.
5050 Delete `endlink' variable.
5051
5052 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5053
5054 * config/avr/avr.c (avr_init_builtins): Call
5055 build_function_type_list instead of build_function_type.
5056
5057 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5058
5059 * config/picochip/picochip.c (picochip_init_builtins): Call
5060 build_function_type_list instead of build_function_type.
5061 Delete `endlink' variable.
5062
5063 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
5064
5065 * config/bfin/bfin.c (bfin_init_builtins): Call
5066 build_function_type_list instead of build_function_type.
5067
5068 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5069
5070 From Bernd Schmidt
5071 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
5072 that's not CONST_INT. Seemingly redundant check is due to PR39768.
5073
5074 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5075
5076 From Jie Zhang:
5077 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
5078 libbffastfp overrides libgcc when -mfast-fp.
5079
5080 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5081
5082 Originally from Bernd Schmidt
5083 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
5084 * config/bfin/bfin.c (override_options): Test it and error if
5085 TARGET_FDPIC.
5086
5087 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
5088
5089 Originally From Bernd Schmidt
5090 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
5091 FD-PIC.
5092
5093 2011-05-03 Jeff Law <law@redhat.com>
5094
5095 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
5096 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
5097 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
5098 than accessing AUX field directly. Free the AUX field before
5099 clearing it.
5100 (thread_block, thread_through_loop_header): Likewise.
5101 (thread_single_edge, mark_threaded_blocks): Likewise.
5102 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
5103 (register_jump_thread): Do not attempt to thread to a NULL edge.
5104
5105 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5106
5107 * function.c (init_function_start): Call decide_function_section.
5108 * varasm.c (decide_function_section): New function.
5109 (assemble_start_function): When not using
5110 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
5111 or first_function_block_is_cold.
5112 * rtl.h (decide_function_section): Declare.
5113
5114 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
5115 Jakub Jelinek <jakub@redhat.com>
5116
5117 PR target/48774
5118 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
5119 only succeed if req_mode is the same as set_mode.
5120
5121 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
5122
5123 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
5124 * genemit.c (gen_exp): Handle RETURN.
5125 * emit-rtl.c (verify_rtx_sharing): Likewise.
5126 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
5127 * rtl.c (copy_rtx): RETURN is shared.
5128 * rtl.h (enum global_rtl_index): Add GR_RETURN.
5129 (ret_rtx): New.
5130 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
5131 * config/s390/s390.c (s390_emit_epilogue): Likewise.
5132 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
5133 * config/cris/cris.c (cris_expand_return): Likewise.
5134 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
5135 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
5136 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
5137 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
5138 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
5139 Likewise.
5140 * config/v850/v850.c (expand_epilogue): Likewise.
5141 * config/bfin/bfin.c (bfin_expand_call): Likewise.
5142 * config/arm/arm.md (epilogue): Likewise.
5143 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
5144 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
5145 variable to ret_reg.
5146
5147 2011-05-03 Richard Guenther <rguenther@suse.de>
5148
5149 PR lto/48846
5150 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
5151 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
5152 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
5153
5154 2011-05-03 Richard Guenther <rguenther@suse.de>
5155
5156 * c-decl.c (grokdeclarator): Instead of looking at
5157 TREE_OVERFLOW check if the constant fits in the index type.
5158
5159 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5160
5161 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
5162 (vec_store_lanes<mode><mode>): Likewise.
5163
5164 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5165
5166 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
5167 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
5168 convert_optab_index values.
5169 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
5170 * genopinit.c (optabs): Initialize the new optabs.
5171 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
5172 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
5173 (expand_STORE_LANES): New functions.
5174 * tree.h (build_array_type_nelts): Declare.
5175 * tree.c (build_array_type_nelts): New function.
5176 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
5177 (vect_model_load_cost): Likewise.
5178 (vect_store_lanes_supported, vect_load_lanes_supported)
5179 (vect_record_strided_load_vectors): Declare.
5180 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
5181 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
5182 (vect_transform_strided_load): Split out statement recording into...
5183 (vect_record_strided_load_vectors): ...this new function.
5184 * tree-vect-stmts.c (create_vector_array, read_vector_array)
5185 (write_vector_array, create_array_ref): New functions.
5186 (vect_model_store_cost): Add store_lanes_p argument.
5187 (vect_model_load_cost): Add load_lanes_p argument.
5188 (vectorizable_store): Try to use store-lanes functions for
5189 interleaved stores.
5190 (vectorizable_load): Likewise load-lanes and loads.
5191 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
5192 to vect_model_store_cost.
5193 (vect_build_slp_tree): Likewise vect_model_load_cost.
5194
5195 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
5196
5197 * hooks.h (hook_bool_mode_uhwi_false): Declare.
5198 * hooks.c (hook_bool_mode_uhwi_false): New function.
5199 * target.def (array_mode_supported_p): New hook.
5200 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
5201 * doc/tm.texi: Regenerate.
5202 * stor-layout.c (mode_for_array): New function.
5203 (layout_type): Use it.
5204 * config/arm/arm.c (arm_array_mode_supported_p): New function.
5205 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
5206
5207 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
5208
5209 PR target/48723
5210 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
5211 for -fstack-check if the size to allocate is negative.
5212
5213 2011-05-02 Lawrence Crowl <crowl@google.com>
5214
5215 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
5216 (timevar_cond_start): New for starting a timer only when it is not
5217 already running.
5218 (timevar_cond_stop): New for stopping a timer when it was not already
5219 running.
5220
5221 * timevar.c (timevar_stop): Enable start/stop timers to start again.
5222 (timevar_cond_start): New as above.
5223 (timevar_cond_stop): New as above.
5224
5225 * timevar.def: Add start/stop timers for compiler phases,
5226 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
5227 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
5228 and TV_PHASE_FINALIZE.
5229 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
5230 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
5231 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
5232 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
5233 Make unused TV_OVERLOAD into a start/stop timer.
5234
5235 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
5236 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
5237 to indicate that they are start/stop timers.
5238
5239 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
5240 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
5241 Move initialization to do_compile.
5242 (do_compile): Add initialization from above.
5243 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
5244
5245 * c-decl.c (c_write_global_declarations): Add start/stop of
5246 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
5247
5248 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
5249 or TV_PARSE_INLINE, as appropriate.
5250 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
5251 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
5252
5253 2011-05-02 Jason Merrill <jason@redhat.com>
5254
5255 PR c++/40975
5256 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
5257
5258 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
5259
5260 PR c/35445
5261 * c-decl.c (finish_decl): Only create a composite if the types are
5262 compatible.
5263
5264 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5265
5266 * config/fr30/fr30-protos.h (Mmode): Don't define.
5267 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
5268 definition where used.
5269 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
5270 define. Expand definitions where used.
5271 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
5272 Expand definitions where used.
5273 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
5274 rx_function_arg, rx_function_arg_advance,
5275 rx_function_arg_boundary): Expand definitions of those macros.
5276 * config/v850/v850-protos.h (Mmode): Don't define. Expand
5277 definition where used.
5278
5279 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5280
5281 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
5282 reg<->xmm moves.
5283 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
5284 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
5285 with *movv2sf_internal_rex64_avx.
5286 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
5287 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
5288 Use %v prefix in insn mnemonic to handle TARGET_AVX.
5289 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
5290 "vex" in "prefix" attribute calculation.
5291 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
5292
5293 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
5294
5295 PR target/47951
5296 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
5297 inputs match the output.
5298
5299 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
5300
5301 PR target/47955
5302 * config/m68k/m68k.c (m68k_expand_prologue): Set
5303 current_function_static_stack_size.
5304
5305 2011-05-02 Jan Hubicka <jh@suse.cz>
5306
5307 * lto-streamer.c (lto_streamer_cache_insert_1,
5308 lto_streamer_cache_lookup, lto_streamer_cache_create,
5309 lto_streamer_cache_delete): Use pointer map instead of hashtable.
5310 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
5311
5312 2011-05-02 Joseph Myers <joseph@codesourcery.com>
5313
5314 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
5315 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
5316 config/m68k/t-opts: New files.
5317 * config/m68k/m68k-tables.opt: New file (generated).
5318 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
5319 extra_options and m68k/t-opts to tmake_file.
5320 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
5321 (all_isas): Initialize using m68k-isas.def.
5322 (all_microarchs): Initialize using m68k-microarchs.def.
5323 (m68k_find_selection): Remove.
5324 (m68k_handle_option): Don't assert that global structures are in
5325 use. Use error_at. Access variables via opts pointer. Don't
5326 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
5327 directly for -m68020-40 and -m68020-60.
5328 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
5329 m68k_tune_entry here.
5330 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
5331 to m68k-opts.h.
5332 (m68k_library_id_string): Remove declaration.
5333 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
5334 (m68k_library_id_string): New Variable.
5335 (march=, mcpu=, mtune=): Use Enum and Var.
5336
5337 2011-05-02 Richard Guenther <rguenther@suse.de>
5338
5339 * varasm.c (output_constructor_regular_field): Compute zero-based
5340 index with double-ints. Make sure to ICE instead of producing
5341 wrong code.
5342 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
5343 in asserts. Properly use a signed type.
5344
5345 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
5346
5347 * config/i386/sse.md (V): New mode iterator.
5348 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
5349 TARGET_SSE2.
5350 (V_256): Rename from AVX256MODE.
5351 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
5352 condition to all users.
5353 (VF1): Ditto.
5354 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
5355 condition to all users.
5356 (VF_128): Make V4SF mode unconditional.
5357 (VF_256): Rename from AVX256MODEF2P.
5358 (VI4F_128): Rename from SSEMODE4S.
5359 (VI8F_128): Rename from SSEMODE2D.
5360 (VI4F_256): Rename from AVX256MODE8P.
5361 (VI8F_256): Rename from AVX256MODE4P.
5362 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
5363 (ssescalarmodesuffix): Remove SF and DF modes.
5364 (SSEMODE124): Remove.
5365 (SSEMODE1248): Ditto.
5366 (SSEMODEF2P): Ditto.
5367 (AVXMODEF2P): Ditto.
5368 (AVXMODEFDP): Ditto.
5369 (AVXMODEFSP): Ditto.
5370 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
5371 unconditional.
5372 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
5373 unconditional.
5374 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
5375 xop_pcmov_<mode>256. Use V mode iterator.
5376
5377 Adjust RTX patterns globally for renamed mode attributes.
5378
5379 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5380
5381 * haifa-sched.c (sched_emit_insn): Emit insn before first
5382 non-scheduled insn. Inform back-end about new insn. Add
5383 new insn to scheduled_insns list.
5384
5385 2011-05-02 Richard Guenther <rguenther@suse.de>
5386
5387 PR tree-optimization/48822
5388 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
5389 (process_scc): Indicate which iteration we start.
5390
5391 2011-05-02 Jan Hubicka <jh@suse.cz>
5392
5393 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
5394 (lto_section_overrun): New.
5395 * lto-section-out.c (append_block): Rename to ...
5396 (lto_append_block): ... this one; export.
5397 (lto_output_1_stream): Move lto lto-streamer.h
5398 (lto_output_data_stream): Update.
5399 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
5400 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
5401 functions.
5402
5403 2011-05-02 Richard Guenther <rguenther@suse.de>
5404
5405 * tree.c (tree_code_counts): New global array.
5406 (record_node_allocation_statistics): Count individual tree codes.
5407 (dump_tree_statistics): Dump individual code stats.
5408
5409 2011-05-01 Jan Hubicka <jh@suse.cz>
5410
5411 * ipa-inline.c (caller_growth_limits): Fix thinko when
5412 looking for largest stack frame.
5413 * ipa-inline.h (dump_inline_summary): Declare.
5414 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
5415 on stack usage.
5416 (dump_inline_summary): Export.
5417 (debug_inline_summary): Declare as DEBUG_FUNCTION.
5418
5419 2011-05-01 Anatoly Sokolov <aesok@post.ru>
5420
5421 * reginfo.c (memory_move_cost): Change rclass argument type form
5422 'enum reg_class' to reg_class_t.
5423 * reload.h (memory_move_cost): Update prototype.
5424 * postreload.c reload_cse_simplify_set): Change type dclass var to
5425 reg_class_t.
5426 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
5427 Update prototype.
5428 (ira_allocate_and_set_costs): Change aclass argument type form
5429 'enum reg_class' to reg_class_t.
5430 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
5431 Change aclass argument type to reg_class_t.
5432 (update_conflict_hard_reg_costs): Change type aclass and pref vars
5433 to reg_class_t.
5434 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
5435 memory_move_cost call.
5436
5437 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
5438 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
5439 Change type tmp var to reg_class_t.
5440
5441 2011-04-30 Jan Hubicka <jh@suse.cz>
5442
5443 * ipa-inline.c (can_inline_edge_p): Disregard limits when
5444 inlining into function with flatten attribute.
5445 (want_inline_small_function_p): Be more realistic about inlining
5446 cold calls where callee size grows.
5447
5448 2011-04-30 Jan Hubicka <jh@suse.cz>
5449
5450 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
5451 flags.
5452
5453 2011-04-30 Anatoly Sokolov <aesok@post.ru>
5454
5455 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
5456 PRINT_OPERAND_PUNCT_VALID_P): Remove.
5457 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
5458 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
5459 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5460 (print_operand): Rename to...
5461 (sparc_print_operand): ...this. Make static. Adjust
5462 sparc_print_operand function call.
5463 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
5464 functions.
5465
5466 2011-04-30 Jan Hubicka <jh@suse.cz>
5467
5468 PR middle-end/48752
5469 * ipa-inline.c (early_inliner): Disable when doing late
5470 addition of function.
5471
5472 2011-04-30 Jakub Jelinek <jakub@redhat.com>
5473
5474 * dwarf2out.c (get_address_mode): New inline.
5475 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
5476 if not dwarf_strict emit
5477 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
5478 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
5479 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
5480 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
5481 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
5482 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
5483 mem_loc_descriptor callers.
5484 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5485 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
5486 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
5487 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
5488 (base_types): New variable.
5489 (get_base_type_offset, calc_base_type_die_sizes,
5490 base_type_for_mode, mark_base_types, base_type_cmp,
5491 move_marked_base_types): New functions.
5492 (calc_die_sizes): Assert that die_offset is 0 or equal to
5493 next_die_offset.
5494 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
5495 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
5496 callers. If not dwarf_strict, call mem_loc_descriptor even for
5497 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
5498 (gen_subprogram_die): Don't give up on call site parameters
5499 with non-integral or large integral modes. Adjust
5500 mem_loc_descriptor callers.
5501 (prune_unused_types): Call prune_unused_types_mark on base_types
5502 vector entries.
5503 (resolve_addr): Call mark_base_types.
5504 (dwarf2out_finish): Call move_marked_base_types.
5505
5506 PR tree-optimization/48809
5507 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
5508 type.
5509 (gen_inbound_check): Don't compute index_expr - range_min in utype
5510 again, instead reuse SSA_NAME initialized in build_arrays.
5511 Remove two useless gsi_for_stmt calls.
5512
5513 2011-04-29 Jeff Law <law@redhat.com>
5514
5515 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
5516
5517 2011-04-29 Martin Jambor <mjambor@suse.cz>
5518
5519 * cgraph.h (cgraph_postorder): Remove declaration.
5520 * ipa-utils.h (ipa_free_postorder_info): Declare.
5521 (ipa_reverse_postorder): Likewise.
5522 * cgraphunit.c: Include ipa-utils.h.
5523 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
5524 * ipa-inline.c: Include ipa-utils.h.
5525 (ipa_inline): Update call to ipa_reverse_postorder.
5526 * ipa-pure-const.c (propagate_pure_const): Update call to
5527 ipa_reduced_postorder and ipa_print_order. Call
5528 ipa_free_postorder_info to clean up.
5529 (propagate_nothrow): Likewise.
5530 * ipa-reference.c (propagate): Removed a useless call to
5531 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
5532 and ipa_print_order. Call ipa_free_postorder_info to clean up.
5533 * ipa.c: Include ipa-utils.h.
5534 (ipa_profile): Update call to ipa_reverse_postorder.
5535 (cgraph_postorder): Moved to...
5536 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
5537 (ipa_utils_print_order): Renamed to ipa_print_order.
5538 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
5539 comments.
5540 (ipa_free_postorder_info): New function.
5541 * passes.c: Include ipa-utils.h.
5542 (do_per_function_toporder): Update call to ipa_reverse_postorder.
5543 (ipa_write_summaries): Likewise.
5544 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
5545 (cgraphunit.o): Likewise.
5546 (ipa.o): Likewise.
5547 (ipa-inline.o): Likewise.
5548
5549 2011-04-29 Jan Hubicka <jh@suse.cz>
5550
5551 * gcc.dg/tree-ssa/inline-10.c: New testcase.
5552 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
5553 * ipa-inline.h (clause_t): Turn into unsigned int.
5554 * ipa-inline-analysis.c (add_clause): Do more simplification.
5555 (and_predicates): Shortcut more cases.
5556 (predicates_equal_p): Move forward; check that clauses are properly
5557 ordered.
5558 (or_predicates): Shortcut more cases.
5559 (edge_execution_predicate): Rewrite as...
5560 (set_cond_stmt_execution_predicate): ... this function; handle
5561 __builtin_constant_p.
5562 (set_switch_stmt_execution_predicate): New .
5563 (compute_bb_predicates): New.
5564 (will_be_nonconstant_predicate): Update TODO.
5565 (estimate_function_body_sizes): Use compute_bb_predicates
5566 and free them later, always try to estimate if stmt is constant.
5567 (estimate_time_after_inlining, estimate_size_after_inlining):
5568 Gracefully handle optimized out edges.
5569 (read_predicate): Fix off by one error.
5570
5571 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
5572
5573 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
5574
5575 2011-04-27 Xinliang David Li <davidxl@google.com>
5576
5577 * tree-profile.c (init_ic_make_global_vars): Set
5578 tls attribute on ic vars.
5579 * coverage.c (coverage_end_function): Initialize
5580 function_list with zero.
5581
5582 2011-04-29 Richard Guenther <rguenther@suse.de>
5583
5584 * builtins.c (fold_builtin_classify_type): Use integer_type_node
5585 for the type of the result.
5586 (fold_builtin_isascii): Likewise.
5587 (fold_builtin_toascii): Use integer_type_node where appropriate.
5588 (fold_builtin_logb): Likewise.
5589 (fold_builtin_frexp): Likewise.
5590 (fold_builtin_strstr): Likewise.
5591 (fold_builtin_strpbrk): Likewise.
5592 (fold_builtin_fputs): Likewise.
5593 (fold_builtin_sprintf): Likewise.
5594 (fold_builtin_snprintf): Likewise.
5595 (fold_builtin_printf): Likewise.
5596 (do_mpfr_remquo): Use a proper type for the assigned constant.
5597 (do_mpfr_lgamma_r): Likewise.
5598 * dwarf2out.c (resolve_one_addr): Use size_int.
5599 * except.c (init_eh): Likewise.
5600 (assign_filter_values): Use integer_type_node for filter values.
5601 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
5602 indices.
5603 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
5604 for EH region numbers.
5605 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
5606 for the shift amount.
5607
5608 2011-04-29 Richard Guenther <rguenther@suse.de>
5609
5610 * expr.h (expand_shift): Rename to ...
5611 (expand_variable_shift): ... this.
5612 (expand_shift): Take a constant shift amount.
5613 * expmed.c (expand_shift): Rename to ...
5614 (expand_variable_shift): ... this.
5615 (expand_shift): New wrapper around expand_variable_shift.
5616 * expr.c (convert_move, emit_group_load_1, emit_group_store,
5617 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
5618 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
5619 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
5620 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
5621 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
5622 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
5623 emit_store_flag_1, emit_store_flag): Likewise.
5624 * builtins.c (expand_builtin_signbit): Likewise.
5625 * calls.c (load_register_parameters): Likewise.
5626 * function.c (assign_parm_setup_block): Likewise.
5627 * lower-subreg.c (resolve_shift_zext): Likewise.
5628 * optabs.c (widen_bswap, expand_abs_nojump,
5629 expand_one_cmpl_abs_nojump, expand_float): Likewise.
5630 * spu/spu.c (spu_expand_extv): Likewise.
5631 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
5632
5633 2011-04-29 Richard Guenther <rguenther@suse.de>
5634
5635 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
5636 for the remapped region number.
5637 * predict.c (build_predict_expr): Use integer_type_node for the
5638 predict kind.
5639 * fold-const.c (fold_binary_loc): Use integer_type_node for
5640 the shift amount. Use a proper type for the PLUS_EXPR operand.
5641
5642 2011-04-29 Michael Matz <matz@suse.de>
5643
5644 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
5645 other trees that just builtins.
5646 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
5647
5648 2011-04-29 Richard Guenther <rguenther@suse.de>
5649
5650 * tree-nested.c (get_trampoline_type): Use size_int.
5651 (get_nl_goto_field): Likewise.
5652 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
5653 for all indexes.
5654 (lower_eh_constructs_2): Likewise.
5655 (lower_resx): Likewise.
5656 (lower_eh_dispatch): Likewise.
5657 * tree-mudflap.c (mf_build_string): Use size_int.
5658 (mudflap_register_call): Use integer_type_node for the flag.
5659 (mudflap_enqueue_constant): Use size_int.
5660 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
5661 instead of rebuilding it.
5662
5663 2011-04-29 Richard Guenther <rguenther@suse.de>
5664
5665 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
5666 Handle OBJ_TYPE_REF.
5667 (find_func_aliases_for_call): Use it more consistently.
5668
5669 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
5670
5671 * haifa-sched.c (last_nondebug_scheduled_insn): New.
5672 (rank_for_schedule): Use it.
5673 (schedule_block): Set it.
5674
5675 2011-04-28 David Li <davidxl@google.com>
5676
5677 * tree.c (crc32_string): Use crc32_byte.
5678 (crc32_byte): New function.
5679 * tree.h (crc32_byte): New function.
5680 * gcov.c (read_graph_file): Handle new cfg_cksum.
5681 (read_count_file): Ditto.
5682 * profile.c (instrument_values): Ditto.
5683 (get_exec_counts): Ditto.
5684 (read_profile_edge_counts): Ditto.
5685 (compute_branch_probabilities): Ditto.
5686 (compute_value_histograms): Ditto.
5687 (branch_prob): Ditto.
5688 (end_branch_prob): Ditto.
5689 * coverage.c (read_counts_file): Ditto.
5690 (get_coverage_counts): Ditto.
5691 (tree_coverage_counter_addr): Ditto.
5692 (coverage_checksum_string): Ditto.
5693 (coverage_begin_output): Ditto.
5694 (coverage_end_function): Ditto.
5695 (build_fn_info_type): Ditto.
5696 (build_fn_info_value): Ditto.
5697 * libgcov.c (gcov_exit): Ditto.
5698 * gcov-dump.c (tag_function): Ditto.
5699 (compute_checksum): Remove.
5700
5701 2011-04-29 Alan Modra <amodra@gmail.com>
5702
5703 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5704 unspec plus offset. Tidy macho code.
5705
5706 2011-04-29 Martin Jambor <mjambor@suse.cz>
5707
5708 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
5709 node instead of a decl. Update all callers.
5710 * cgraph.h: Update declaration.
5711
5712 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
5713
5714 PR tree-optimization/48765
5715 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
5716 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
5717 to indicate if loop aware SLP is being used. Scan the statements
5718 and update the vectorization factor according to the type of
5719 vectorization before statement analysis.
5720 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
5721 pass it to vect_analyze_loop_operations.
5722 (vectorizable_reduction): Set number of copies to 1 in case of pure
5723 SLP statement.
5724 * tree-vect-stmts.c (vectorizable_conversion,
5725 vectorizable_assignment, vectorizable_shift,
5726 vectorizable_operation, vectorizable_type_demotion,
5727 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
5728 Likewise.
5729 (vectorizable_condition): Move the check that it is not SLP
5730 vectorization before the number of copies check.
5731 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
5732 to vectorize the loop using SLP.
5733
5734 2011-04-28 Jakub Jelinek <jakub@redhat.com>
5735
5736 PR middle-end/48597
5737 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
5738 inline asm.
5739
5740 2011-04-28 Joseph Myers <joseph@codesourcery.com>
5741
5742 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5743 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5744 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5745 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5746 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5747 linux*.h headers.
5748 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5749 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5750 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5751 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5752 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5753 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5754 REG_NAME.
5755 * config/i386/linux.h (REG_NAME): Don't define.
5756 * config/i386/linux64.h (REG_NAME): Don't define.
5757 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5758 Undefine before defining.
5759
5760 2011-04-28 Jan Hubicka <jh@suse.cz>
5761
5762 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5763 nonconstant_names array.
5764 (estimate_function_body_sizes): Build nonconstant_names array; handle
5765 BUILT_IN_CONSTANT_P.
5766
5767 2011-04-28 Richard Guenther <rguenther@suse.de>
5768
5769 PR bootstrap/48804
5770 Revert
5771 2011-04-28 Richard Guenther <rguenther@suse.de>
5772
5773 * tree-ssa-structalias.c (solve_constraints): Build succ graph
5774 as late as possible.
5775
5776 2011-04-28 Richard Guenther <rguenther@suse.de>
5777
5778 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5779 (debug_constraint): Do it here.
5780 (dump_constraints): And here.
5781 (rewrite_constraints): And here.
5782 (dump_constraint_edge): Remove.
5783 (dump_constraint_graph): Rewrite to produce DOT output.
5784 (solve_constraints): Build succ graph as late as possible.
5785 Dump constraint graphs before and after solving.
5786
5787 2011-04-28 Richard Guenther <rguenther@suse.de>
5788
5789 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5790 New function split out from ...
5791 (find_func_aliases): ... here. Call it.
5792 (find_func_aliases_for_call): Likewise.
5793
5794 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
5795
5796 * internal-fn.h (internal_fn_name_array): Declare.
5797 (internal_fn_flags_array): Likewise.
5798
5799 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5800
5801 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
5802 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5803 Move from sse.md.
5804 (ssemodefsuffix): Remove.
5805 (ssevecmodesuffix): New mode attribute.
5806 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5807 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5808 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5809 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5810 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5811 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5812 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5813 ssemodesuffix mode attribute.
5814 (float splitters): Use ssevecmodesuffix mode attribute.
5815 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5816 (sseinsmode): Rename from avxvecmode.
5817 (avxsizesuffix): Rename from avxmodesuffix.
5818 (sseintvecmode): Rename from avxpermvecmode.
5819 (ssedoublevecmode): Rename from ssedoublesizemode.
5820 (ssehalfvecmode): Rename from avxhalfvecmode.
5821 (ssescalarmode): Rename from avxscalarmode.
5822 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5823 templates for ssemodesuffix mode attribute.
5824 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5825 mode attribute.
5826
5827 Adjust RTX patterns globally for renamed mode attributes.
5828
5829 2011-04-27 Jan Hubcika <jh@suse.cz>
5830
5831 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5832 * ipa-inline-analysis.c: Include alloc-pool.h.
5833 (edge_predicate_pool): New.
5834 (trye_predicate_p): New function
5835 (false_predicate_p): New function.
5836 (add_clause): Sanity check that false clauses are "optimized";
5837 never add clauses to predicate that is already known to be false.
5838 (and_predicate): Use flase_predicate_p.
5839 (evaulate_predicate): Rename to ...
5840 (evaluate_predicate): ... this one; update all callers; assert
5841 that false is not listed among possible truths.
5842 (dump_predicate): Use true_predicate_p.
5843 (account_size_time): Use false_predicate_p.
5844 (evaulate_conditions_for_edge): Rename to ...
5845 (evaluate_conditions_for_edge) ... this one.
5846 (edge_set_predicate): New function.
5847 (inline_edge_duplication_hook): Duplicate edge predicates.
5848 (inline_edge_removal_hook): Free edge predicates.
5849 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5850 (dump_inline_summary): Update.
5851 (estimate_function_body_sizes): Set edge predicates.
5852 (estimate_calls_size_and_time): Handle predicates.
5853 (estimate_callee_size_and_time): Update.
5854 (remap_predicate): Add toplev_predicate; update comment.
5855 (remap_edge_predicates): New function.
5856 (inline_merge_summary): Compute toplev predicate; update.
5857 (read_predicate): New function.
5858 (read_inline_edge_summary): Use it.
5859 (inline_read_section): Likewise.
5860 (write_predicate): New function.
5861 (write_inline_edge_summary): Use it.
5862 (inline_write_summary): Likewise.
5863 (inline_free_summary): Free alloc pool and edge summary vec.
5864
5865 2011-04-27 Richard Guenther <rguenther@suse.de>
5866
5867 * tree-ssa-structalias.c (changed_count): Remove.
5868 (changed): Use a bitmap.
5869 (unify_nodes): Adjust.
5870 (do_sd_constraint): Likewise.
5871 (do_ds_constraint): Likewise.
5872 (do_complex_constraint): Likewise.
5873 (solve_graph): Likewise.
5874
5875 2011-04-27 Jan Hubicka <jh@suse.cz>
5876
5877 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5878
5879 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
5880
5881 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5882 (avx_vperm2f128_*_operand): Ditto.
5883 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5884 Use avx_vpermilp_parallel in insn condition.
5885 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5886 Use avx_vperm2f128_parallel in insn condition.
5887
5888 2011-04-27 Richard Guenther <rguenther@suse.de>
5889
5890 * Makefile.in (tree-ssa-structalias.o): Remove
5891 gt-tree-ssa-structalias.h dependency.
5892 (GTFILES): Remove tree-ssa-structalias.c.
5893 * tree.c (allocate_decl_uid): New function.
5894 (make_node_stat): Use it.
5895 (copy_node_stat): Likewise.
5896 * tree.h (allocate_decl_uid): Declare.
5897 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5898 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5899 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5900 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5901 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5902 (struct heapvar_map): Likewise.
5903 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5904 heapvar_insert): Likewise.
5905 (make_heapvar_for): Rename to ...
5906 (make_heapvar): ... this. Simplify.
5907 (fake_var_decl_obstack): New global var.
5908 (build_fake_var_decl): New function.
5909 (make_constraint_from_heapvar): Adjust.
5910 (handle_lhs_call): Likewise.
5911 (create_function_info_for): Likewise.
5912 (intra_create_variable_infos): Likewise.
5913 (init_alias_vars): Allocate fake_var_decl_obstack.
5914 (init_alias_heapvars, delete_alias_heapvars): Remove.
5915 (compute_points_to_sets): Do not call init_alias_heapvars.
5916 (ipa_pta_execute): Likewise.
5917 (delete_points_to_sets): Free fake_var_decl_obstack.
5918
5919 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5920
5921 * config/spu/divmovti4.c (union qword_UTItype): New data type.
5922 (si_from_UTItype, si_to_UTItype): New functions.
5923 (__udivmodti4): Use them to implement type-punning.
5924 * config/spu/multi3.c (union qword_TItype): New data type.
5925 (si_from_TItype, si_to_TItype): New functions.
5926 (__multi3): Use them to implement type-punning.
5927
5928 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5929
5930 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5931
5932 2011-04-27 Jan Hubicka <jh@suse.cz>
5933
5934 * ipa-prop.c (function_insertion_hook_holder): New holder.
5935 (ipa_add_new_function): New function.
5936 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5937 Register/deregister holder.
5938
5939 2011-04-27 Richard Guenther <rguenther@suse.de>
5940
5941 PR tree-optimization/48772
5942 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5943
5944 2011-04-27 Richard Guenther <rguenther@suse.de>
5945
5946 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5947 TARGET_MEM_REF handling.
5948
5949 2011-04-27 Nick Clifton <nickc@redhat.com>
5950
5951 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5952 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5953 (REG_CLASS_NAMES): Likewise.
5954 (REG_CLASS_CONTENTS): Likewise.
5955 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5956 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
5957 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
5958 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
5959 (EVEN_REGS): New macro. Alias for QUAD_REGS.
5960 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5961 duplicate register classes.
5962 (frv_class_likely_spilled_p): Likewise.
5963 (frv_register_move_cost): Likewise.
5964
5965 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5966 end of the regno_reg_class array.
5967
5968 2011-04-27 Jakub Jelinek <jakub@redhat.com>
5969
5970 PR c/48742
5971 * c-typeck.c (build_binary_op): Don't wrap arguments if
5972 int_operands is true.
5973
5974 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
5975
5976 PR target/48767
5977 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5978 targetm.calls.must_pass_in_stack for void type.
5979
5980 2011-04-26 Jan Hubicka <jh@suse.cz>
5981
5982 * cgraphbuild.c (build_cgraph_edges): Update call
5983 of cgraph_create_edge and cgraph_create_indirect_edge.
5984 * cgraph.c (cgraph_create_edge_including_clones,
5985 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5986 cgraph_update_edges_for_call_stmt_node): Do not take nest
5987 argument; do not initialize call_stmt_size/time.
5988 (dump_cgraph_node): Do not dump nest.
5989 (cgraph_clone_edge): Do not take loop_nest argument;
5990 do not propagate it; do not clone call_stmt_size/time.
5991 (cgraph_clone_node): Likewise.
5992 (cgraph_create_virtual_clone): Update.
5993 * cgraph.h (struct cgraph_edge): Remove
5994 call_stmt_size/call_stmt_time/loop_nest.
5995 (cgraph_create_edge, cgraph_create_indirect_edge,
5996 cgraph_create_edge_including_clones, cgraph_clone_node): Update
5997 prototype.
5998 * tree-emutls.c (gen_emutls_addr): Update.
5999 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
6000 loop_nest; handle indirect calls, too.
6001 (clone_inlined_nodes): Do not care about updating inline summaries.
6002 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
6003 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
6004 stream call_stmt_size/call_stmt_time/loop_nest.
6005 * ipa-inline.c (edge_badness): Update.
6006 (ipa_inline): dump summaries after inlining.
6007 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
6008 New.
6009 (inline_edge_summary): New function.
6010 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
6011 (inline_edge_removal_hook): Handle edge summaries.
6012 (inline_edge_duplication_hook): New hook.
6013 (inline_summary_alloc): Alloc hooks.
6014 (initialize_growth_caches): Do not register removal hooks.
6015 (free_growth_caches); Do not free removal hook.
6016 (dump_inline_edge_summary): New function.
6017 (dump_inline_summary): Use it.
6018 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
6019 (inline_update_callee_summaries): New function.
6020 (inline_merge_summary): Use it.
6021 (do_estimate_edge_time, do_estimate_edge_growth): Update.
6022 (read_inline_edge_summary): New function.
6023 (inline_read_section): Use it.
6024 (write_inline_edge_summary): New function.
6025 (inline_write_summary): Use it.
6026 (inline_free_summary): Free edge new holders.
6027 * tree-inline.c (copy_bb): Update.
6028
6029 2011-04-26 Jason Merrill <jason@redhat.com>
6030
6031 * tree-eh.c (lower_try_finally_switch): Create the label along with
6032 the CASE_LABEL_EXPR.
6033
6034 2011-04-26 David S. Miller <davem@davemloft.net>
6035 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6036
6037 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
6038 * configure: Regenerate.
6039
6040 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6041
6042 PR target/48258
6043 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
6044 reduction.
6045 (VEC_reduc): New code iterator and splitters for vector reduction.
6046 (VEC_reduc_name): Ditto.
6047 (VEC_reduc_rtx): Ditto.
6048 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
6049 (reduc_<VEC_reduc_name>_v4sf): Ditto.
6050
6051 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6052 support for extracting SF on VSX.
6053
6054 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
6055 generating xscvspdp.
6056 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
6057 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
6058 double add, minimum, maximum vector reduction.
6059 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
6060 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
6061 optimize double vector reduction.
6062 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
6063
6064 2011-04-26 Joseph Myers <joseph@codesourcery.com>
6065
6066 * config/fr30/fr30.h (inhibit_libc): Don't define.
6067 * config/m32r/m32r-protos.h: Correct comment.
6068 * config/v850/v850.h (GHS_default_section_names,
6069 GHS_current_section_names): Use tree, not union tree_node *.
6070
6071 2011-04-26 Xinliang David Li <davidxl@google.com>
6072
6073 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
6074 * c-family/c-opts.c (c_common_handle_option): Set
6075 warn_maybe_uninitialized.
6076 * opts.c (common_handle_option): Ditto.
6077 * common.opt: New option.
6078 * tree-ssa.c (warn_uninit): Add one more parameter.
6079 (warn_uninitialized_var): Pass warning code.
6080 * tree-flow.h: Interface change.
6081
6082 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6083
6084 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
6085 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
6086 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
6087
6088 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6089
6090 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
6091 * config/mips/mips.opt (mmips-tfile): Remove.
6092
6093 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
6094 mips-tdump reference to ...
6095 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
6096 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
6097 reference by Tru64 UNIX.
6098
6099 2011-04-26 Jakub Jelinek <jakub@redhat.com>
6100
6101 PR debug/48768
6102 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
6103 is error_mark_node, set value to NULL.
6104
6105 PR tree-optimization/48734
6106 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
6107 if return value from maybe_fold_*_comparsions isn't something
6108 the code is prepared to handle.
6109
6110 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
6111
6112 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
6113 mode check.
6114 (ext_QIreg_nomode_operands): Remove.
6115 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
6116 (*andsi_1): Ditto.
6117 (*andhi_1): Ditto.
6118
6119 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
6120
6121 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
6122
6123 2011-04-26 Richard Guenther <rguenther@suse.de>
6124
6125 * c-typeck.c (build_unary_op): Do not expand array-refs via
6126 pointer arithmetic. Only adjust qualifiers for function types.
6127
6128 2011-04-26 Richard Guenther <rguenther@suse.de>
6129
6130 PR middle-end/48694
6131 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
6132 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
6133 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
6134 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
6135
6136 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
6137
6138 * doc/extend.texi: Document __underlying_type.
6139
6140 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
6141
6142 * config/rs6000/titan.md (automata_option "progress"): Remove.
6143
6144 2011-04-25 Jeff Law <law@redhat.com>
6145
6146 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
6147
6148 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6149
6150 * system.h (ENUM_BITFIELD): Remove.
6151
6152 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
6153 Eric Botcazou <ebotcazou@adacore.com>
6154
6155 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
6156 for STORE_FLAG_VALUE==-1 case.
6157
6158 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
6159
6160 PR target/43804
6161 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
6162 LEGITIMATE_PIC_OPERAND_P.
6163
6164 2011-04-24 Jan Hubicka <jh@suse.cz>
6165
6166 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
6167 WPA hack.
6168 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
6169 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
6170 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
6171 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
6172 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
6173 Sanity check predicate length.
6174 (remap_predicate): Likewise; sanity check jump functions.
6175 (inline_read_section, inline_write_summary): Sanity check
6176 predicate length.
6177
6178 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6179
6180 PR other/48748
6181 * doc/extend.texi (Type Traits): Document __is_standard_layout,
6182 __is_literal_type, and __is_trivial; update throughout about
6183 possibly cv-qualified void types.
6184
6185 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
6186
6187 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
6188 testsuite and make it version agnostic.
6189
6190 2011-04-22 Jan Hubicka <jh@suse.cz>
6191
6192 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
6193
6194 2011-04-23 Jakub Jelinek <jakub@redhat.com>
6195
6196 PR c/48685
6197 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
6198 to VOID_TYPE even around MODIFY_EXPR.
6199
6200 2011-04-22 Mike Stump <mikestump@comcast.net>
6201
6202 * gensupport.c (read_md_rtx): Fix typo in comment.
6203 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
6204 comment.
6205
6206 2011-04-22 Jan Hubicka <jh@suse.cz>
6207
6208 * gengtype.c (open_base_files): Add ipa-inline.h include.
6209 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
6210 ipa-prop.c; update all uses.
6211 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
6212 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
6213 merge summary of inlined function into former caller.
6214 * ipa-inline.c (max_benefit): Remove.
6215 (edge_badness): Compensate for removal of benefits.
6216 (update_caller_keys): Use
6217 reset_node_growth_cache/reset_edge_growth_cache.
6218 (update_callee_keys): Likewise.
6219 (update_all_callee_keys): Likewise.
6220 (inline_small_functions): Do not collect max_benefit; do not reset
6221 estimated_growth; call free_growth_caches and initialize_growth_caches.
6222 * ipa-inline.h (struct condition, type clause_t, struct predicate,
6223 struct size_time_entry): New structures.
6224 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
6225 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
6226 and estimated_growth.
6227 (edge_growth_cache_entry): New structure.
6228 (node_growth_cache, edge_growth_cache): New global vars.
6229 (estimate_growth): Turn into inline.
6230 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
6231 initialize_growth_caches, free_growth_caches): Declare.
6232 (estimate_edge_growth): Rewrite.
6233 (estimate_edge_time): Implement as inline cache lookup.
6234 (reset_node_growth_cache, reset_edge_growth_cache): New inline
6235 functions.
6236 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
6237 (NUM_CONDITIONS): New constant.
6238 (predicate_conditions): New enum.
6239 (IS_NOT_CONSTANT): New constant.
6240 (edge_removal_hook_holder): New var.
6241 (node_growth_cache, edge_growth_cache): New global vars.
6242 (true_predicate, single_cond_predicate, false_predicate,
6243 not_inlined_predicate, add_condition, add_clause, and_predicates,
6244 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
6245 dump_clause, dump_predicate, account_size_time,
6246 evaulate_conditions_for_edge): New functions.
6247 (inline_summary_alloc): Move to heap.
6248 (inline_node_removal_hook): Clear condition and entry vectors.
6249 (inline_edge_removal_hook): New function.
6250 (initialize_growth_caches, free_growth_caches): New function.
6251 (dump_inline_summary): Update.
6252 (edge_execution_predicate): New function.
6253 (will_be_nonconstant_predicate): New function.
6254 (estimate_function_body_sizes): Compute BB and constantness predicates.
6255 (compute_inline_parameters): Do not clear estimated_growth.
6256 (estimate_edge_size_and_time): New function.
6257 (estimate_calls_size_and_time): New function.
6258 (estimate_callee_size_and_time): New function.
6259 (remap_predicate): New function.
6260 (inline_merge_summary): New function.
6261 (do_estimate_edge_time): New function based on...
6262 (estimate_edge_time): ... this one.
6263 (do_estimate_edge_growth): New function.
6264 (do_estimate_growth): New function based on....
6265 (estimate_growth): ... this one.
6266 (inline_analyze_function): Analyze after deciding on jump functions.
6267 (inline_read_section): New function.
6268 (inline_read_summary): Use it.
6269 (inline_write_summary): Write all the new data.
6270 * ipa-prop.c (ipa_get_param_decl_index): Export.
6271 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
6272 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
6273 Declare.
6274 (ipa_get_lattice): Move here from ipa-cp.c
6275 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
6276 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
6277 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
6278 cgraph_edge_inlinable_p): Remove.
6279 * cgraphunit.c: Include ipainline.h
6280 (cgraph_process_new_functions): Update call of
6281 compute_inline_parameters.
6282
6283 2011-04-22 Richard Guenther <rguenther@suse.de>
6284
6285 * tree.c (build_int_cst): Properly create canonicalized integer
6286 constants.
6287 (build_int_cst_type): Remove scary comments.
6288
6289 2011-04-22 Xinliang David Li <davidxl@google.com>
6290
6291 * toplev.c (process_options): Enable -Werror=coverage-mismatch
6292 by default when -Wno-error is not specified.
6293 * opts-global.c (decode_options): Remove call to
6294 control_warning_options.
6295
6296 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6297
6298 PR tree-optimization/48717
6299 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
6300 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
6301
6302 2011-04-22 Joseph Myers <joseph@codesourcery.com>
6303
6304 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
6305 definition where used.
6306
6307 2011-04-22 Jakub Jelinek <jakub@redhat.com>
6308
6309 PR c/48716
6310 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
6311 TREE_STATIC variables declared inside of some OpenMP construct.
6312
6313 2011-04-22 Martin Jambor <mjambor@suse.cz>
6314
6315 PR middle-end/48585
6316 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
6317
6318 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
6319
6320 PR c/36750
6321 * c-typeck.c (pop_init_level): Do not warn about initializing
6322 with ` = {0}'.
6323
6324 2011-04-22 Alan Modra <amodra@gmail.com>
6325
6326 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
6327 when returning call_cookie.
6328 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
6329 pointers, to functions with no more vector args than the current
6330 function, and some non-local calls for ABI_V4.
6331 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
6332 sibcall_nonlocal_aix64): Combine to ..
6333 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
6334 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
6335 (sibcall_value_nonlocal_aix<mode>): ..likewise.
6336 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
6337 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
6338 operand.
6339 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
6340 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
6341 sibcall_value_symbolic_64): Delete.
6342
6343 2011-04-21 Xinliang David Li <davidxl@google.com>
6344
6345 * cgraph.h: Remove pid.
6346 * cgraph.c: Remove pid.
6347 * value-prof.c (init_node_map): New function.
6348 (del_node_map): New function.
6349 (find_func_by_funcdef_no): New function.
6350 (gimple_ic_transform): Call new function.
6351 * cgraphunit.c (cgraph_finalize_function): Remove pid.
6352 * function.c (get_last_funcdef_no): New function.
6353 * function.h (get_last_funcdef_no): New function.
6354 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
6355 to libgcov function.
6356 (tree-profiling): Call node map init and delete function.
6357
6358 2011-04-21 Ian Lance Taylor <iant@google.com>
6359
6360 * godump.c (go_format_type): Use exported Go name for anonymous
6361 field name.
6362
6363 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6364
6365 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
6366 Call builtin_function_type_list instead of builtin_function_type.
6367 (UNARY, BINARY, TRINARY, QUAD): Likewise.
6368
6369 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6370
6371 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
6372 build_function_type_list instead of build_function_type.
6373 Delete variable `endlink'.
6374
6375 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6376
6377 * config/s390/s390.c (s390_init_builtins): Call
6378 build_function_type_list instead of build_function_type.
6379
6380 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
6381
6382 * config/ia64/ia64.c (ia64_init_builtins): Call
6383 build_function_type_list instead of builtin_function_type.
6384
6385 2011-04-21 Easwaran Raman <eraman@google.com>
6386
6387 * cfgexpand.c (stack_var): Remove OFFSET...
6388 (add_stack_var): ...and its reference here...
6389 (expand_stack_vars): ...and here.
6390 (stack_var_cmp): Sort by descending order of size.
6391 (partition_stack_vars): Change heuristic.
6392 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6393 (dump_stack_var_partition): Add newline after each partition.
6394
6395 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
6396 Jeff Law <law@redhat.com>
6397
6398 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
6399 * gengtype.c (matching_file_name_substitute): Likewise.
6400
6401 2011-04-21 Richard Guenther <rguenther@suse.de>
6402
6403 PR lto/48703
6404 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
6405
6406 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
6407
6408 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
6409
6410 2011-04-21 Richard Guenther <rguenther@suse.de>
6411
6412 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
6413 file name.
6414
6415 2011-04-21 Richard Guenther <rguenther@suse.de>
6416
6417 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6418 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
6419 Use DECL_P, not SSA_VAR_P.
6420 (ptr_derefs_may_alias_p): Likewise.
6421 (ptr_deref_may_alias_ref_p_1): Likewise.
6422 (decl_refs_may_alias_p): Likewise.
6423 (refs_may_alias_p_1): Likewise.
6424 (ref_maybe_used_by_call_p_1): Likewise.
6425 (call_may_clobber_ref_p_1): Likewise.
6426 (indirect_ref_may_alias_decl_p): Assume indirect refrences
6427 are either MEM_REF or TARGET_MEM_REF.
6428 (indirect_refs_may_alias_p): Likewise.
6429 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
6430 for MEM_EXPR of indirect calls.
6431
6432 2011-04-21 Tristan Gingold <gingold@adacore.com>
6433
6434 * vmsdbgout.c (write_srccorr): Compute file length from the string.
6435 (dst_file_info_struct): Remove flen field.
6436 (lookup_filename): Remove code that set flen field.
6437
6438 2011-04-21 Tristan Gingold <gingold@adacore.com>
6439
6440 * config/ia64/ia64.c (ia64_start_function): Add a guard.
6441
6442 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
6443
6444 PR target/48708
6445 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
6446 vec_extract and vec_concat for non-SSE4_1 targets.
6447
6448 2011-04-21 Richard Guenther <rguenther@suse.de>
6449
6450 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
6451 return statements.
6452
6453 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6454
6455 * config/i386/cygming.h (union tree_node, TREE): Don't define or
6456 undefine.
6457 (FILE): Don't undefine.
6458
6459 2011-04-21 Joseph Myers <joseph@codesourcery.com>
6460
6461 * config/alpha/alpha.c (struct machine_function): Use rtx, not
6462 struct rtx_def *.
6463 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
6464 struct rtx_def *.
6465 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
6466 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
6467 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
6468 rtx_def *.
6469 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
6470 definitions where used.
6471 * config/microblaze/microblaze.h (struct microblaze_args): Use
6472 rtx, not struct rtx_def *.
6473 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
6474 rtx_def *.
6475 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
6476 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
6477 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
6478 not struct rtx_def *.
6479 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
6480 struct rtx_def *.
6481 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
6482 rtx_def *.
6483 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
6484
6485 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6486
6487 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
6488 operand_equal_p to compare DR_BASE_ADDRESSes.
6489 (vect_check_interleaving): Likewise.
6490
6491 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6492
6493 PR target/46329
6494 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
6495 for all Neon struct constants.
6496
6497 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6498
6499 * target.def (legitimate_constant_p): New hook.
6500 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
6501 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
6502 * doc/tm.texi: Regenerate.
6503 * hooks.h (hook_bool_mode_rtx_true): Declare.
6504 * hooks.c (hook_bool_mode_rtx_true): Define.
6505 * system.h (LEGITIMATE_CONSTANT_P): Poison.
6506 * calls.c (precompute_register_parameters): Replace uses of
6507 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
6508 (emit_library_call_value_1): Likewise.
6509 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
6510 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
6511 * ira-costs.c (scan_one_insn): Likewise.
6512 * recog.c (general_operand, immediate_operand): Likewise.
6513 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
6514 * reload1.c (init_eliminable_invariants): Likewise.
6515
6516 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
6517 mode argument.
6518 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
6519 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
6520 argument.
6521 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6522 * config/alpha/predicates.md (input_operand): Update call to
6523 alpha_legitimate_constant_p.
6524
6525 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
6526 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
6527 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
6528 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6529 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
6530 (arm_legitimate_constant_p): New functions.
6531 (arm_cannot_force_const_mem): Make static.
6532
6533 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
6534
6535 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
6536 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
6537 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
6538 instead of bfin_legitimate_constant_p.
6539 (bfin_legitimate_constant_p): Make static. Add a mode argument.
6540 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6541
6542 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
6543
6544 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
6545
6546 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
6547 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
6548 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6549 (frv_legitimate_constant_p): Make static. Add a mode argument.
6550
6551 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
6552 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
6553 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
6554
6555 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
6556 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
6557 * config/i386/i386.c (legitimate_constant_p): Rename to...
6558 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
6559 argument.
6560 (ix86_cannot_force_const_mem): Update accordingly.
6561 (ix86_legitimate_address_p): Likewise.
6562 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6563 * config/i386/i386.md: Update commentary.
6564
6565 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
6566 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
6567 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6568 (ia64_legitimate_constant_p): Make static. Add a mode argument.
6569
6570 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
6571
6572 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
6573 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
6574 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6575 (lm32_legitimate_constant_p): Make static. Add a mode argument.
6576
6577 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
6578 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
6579 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
6580
6581 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
6582 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6583 (m32r_legitimate_constant_p): New function.
6584
6585 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
6586 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
6587 LEGITIMATE_CONSTANT_P.
6588 (LEGITIMATE_CONSTANT_P): Delete.
6589 * config/m68k/m68k.c (m68k_expand_prologue): Call
6590 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
6591 (m68k_legitimate_constant_p): New function.
6592 * config/m68k/m68k.md: Update comments.
6593
6594 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
6595 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6596 (mcore_legitimate_constant_p): New function.
6597
6598 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
6599 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
6600 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
6601 Add a mode argument.
6602 (mep_legitimate_address): Update accordingly.
6603 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6604
6605 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
6606 Delete.
6607 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
6608 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
6609 static. Check OP's mode for VOIDmode.
6610 (microblaze_legitimate_constant_p): New function.
6611 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6612
6613 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
6614 * config/mips/mips.c (mips_legitimate_constant_p): New function.
6615 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
6616 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6617 * config/mips/predicates.md: Update comments.
6618
6619 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
6620 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
6621 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6622 (mmix_legitimate_constant_p): Make static, return a bool, and take
6623 a mode argument.
6624 (mmix_print_operand_address): Update accordingly.
6625
6626 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
6627 Delete.
6628 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
6629 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
6630 static. Add a mode argument.
6631 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6632
6633 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
6634
6635 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
6636 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6637 (pa_legitimate_constant_p): New function.
6638
6639 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
6640
6641 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
6642 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6643 (pdp11_legitimate_constant_p): New function.
6644
6645 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
6646 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6647 (rs6000_legitimate_constant_p): New function.
6648
6649 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
6650 (rx_legitimate_constant_p): ...this.
6651 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
6652 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
6653 (rx_legitimate_constant_p): ...this.
6654 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6655 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
6656
6657 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
6658 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
6659 * config/s390/s390.c (legitimate_constant_p): Rename to...
6660 (s390_legitimate_constant_p): ...this. Make static, return a bool,
6661 and add a mode argument.
6662 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6663
6664 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
6665
6666 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
6667 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6668 (sh_legitimate_constant_p): New function.
6669
6670 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
6671 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
6672 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6673 (legitimate_constant_p): Rename to...
6674 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
6675 argument.
6676 (constant_address_p): Update accordingly.
6677
6678 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
6679 argument and return a bool.
6680 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
6681 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6682 (spu_legitimate_constant_p): Add a mode argument and return a bool.
6683 (spu_rtx_costs): Update accordingly.
6684 * config/spu/predicates.md (vec_imm_operand): Likewise.
6685
6686 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
6687
6688 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
6689 * config/v850/v850.c (v850_legitimate_constant_p): New function.
6690 (TARGET_LEGITIMATE_CONSTANT_P): Define.
6691
6692 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
6693 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
6694 * config/vax/vax.c (legitimate_constant_p): Likewise.
6695
6696 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
6697 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
6698 (xtensa_legitimate_constant_p): New function.
6699
6700 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
6701
6702 * target.def (cannot_force_const_mem): Add a mode argument.
6703 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
6704 * doc/tm.texi: Regenerate.
6705 * hooks.h (hook_bool_mode_rtx_false): Declare.
6706 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
6707 (hook_bool_mode_const_rtx_true): Likewise.
6708 (hook_bool_mode_rtx_false): New function.
6709 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
6710 to be non-VOID. Update call to cannot_force_const_mem.
6711 (find_reloads): Update accordingly.
6712 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
6713 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
6714 argument.
6715 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
6716 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
6717 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
6718 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
6719 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
6720 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
6721 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
6722 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6723 (m68k_cannot_force_const_mem): ...this new function.
6724 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
6725 argument.
6726 (mips_const_insns, mips_legitimize_const_move): Update calls.
6727 (mips_secondary_reload_class): Likewise.
6728 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
6729 (pa_cannot_force_const_mem): ...this new function.
6730 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
6731 (rs6000_cannot_force_const_mem): ...this new function.
6732 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
6733 argument.
6734 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
6735 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
6736 to...
6737 (xtensa_cannot_force_const_mem): ...this new function.
6738
6739 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6740
6741 * config/mips/mips.c (mips16_build_function_stub): Call
6742 build_function_type_list instead of build_function_type.
6743 (mips16_build_call_stub): Likewise.
6744
6745 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6746
6747 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6748 instead of build_function_type.
6749
6750 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
6751
6752 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6753 instead of build_function_type.
6754
6755 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
6756
6757 PR target/48678
6758 * config/i386/i386.md (insv): Change operand 0 constraint to
6759 "register_operand". Change operand 1 and 2 constraint to
6760 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
6761 * config/i386/sse.md (sse4_1_pinsrb): Export.
6762 (sse2_pinsrw): Ditto.
6763 (sse4_1_pinsrd): Ditto.
6764 (sse4_1_pinsrq): Ditto.
6765 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6766 * config/i386/i386.c (ix86_expand_pinsr): New.
6767
6768 2011-04-20 Easwaran Raman <eraman@google.com>
6769
6770 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6771 containing union type only with -fstrict-aliasing.
6772
6773 2011-04-20 Jim Meyering <meyering@redhat.com>
6774
6775 Remove useless if-before-free tests.
6776 * calls.c (expand_call, save_area): Likewise.
6777 * cfgcleanup.c (try_forward_edges): Likewise.
6778 * collect2.c (collect_execute): Likewise.
6779 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6780 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6781 * coverage.c (coverage_checksum_string): Likewise.
6782 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6783 * cselib.c (cselib_init): Likewise.
6784 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6785 (df_set_clean_cfg): Likewise.
6786 * function.c (free_after_compilation): Likewise.
6787 * gcc.c (do_spec_1, main): Likewise.
6788 * gcov.c (create_file_names): Likewise.
6789 * gensupport.c (identify_predicable_attribute): Likewise.
6790 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6791 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6792 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6793 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6794 * ipa-pure-const.c (local_pure_const): Likewise.
6795 * ipa-reference.c (propagate): Likewise.
6796 * ira-costs.c (free_ira_costs): Likewise.
6797 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6798 * matrix-reorg.c (mat_free): Likewise.
6799 * prefix.c (get_key_value): Likewise.
6800 * profile.c (compute_value_histograms): Likewise.
6801 * reload1.c (free_reg_equiv): Likewise.
6802 * sched-deps.c (free_deps): Likewise.
6803 * sel-sched-ir.c (fence_clear): Likewise.
6804 * sese.c (set_rename, if_region_set_false_region): Likewise.
6805 * tree-data-ref.c (free_rdg): Likewise.
6806 * tree-eh.c (lower_try_finally): Likewise.
6807 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6808 * tree-ssa-live.c (delete_var_map): Likewise.
6809 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6810 * tree-ssa-pre.c (phi_trans_add): Likewise.
6811
6812 2011-04-20 Jakub Jelinek <jakub@redhat.com>
6813
6814 PR tree-optimization/48611
6815 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6816 beyond ERT_MUST_NOT_THROW region.
6817
6818 2011-04-20 Catherine Moore <clm@codesourcery.com>
6819
6820 * config/mips/mips.opt (mfix-24k): New.
6821 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6822 * config/mips/mips.md (length): Increase by 4 for stores if
6823 fixing 24K errata.
6824 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6825 all noreorder if fixing 24K errata.
6826 * doc/invoke.texi: Document mfix-24k.
6827
6828 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
6829
6830 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6831 quad-word modes, reduce to 9-bit index range when above 1016 limit.
6832
6833 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6834
6835 * config/arm/arm.c (arm_gen_constant): Move movw support ....
6836 (const_ok_for_op): ... to here.
6837
6838 2011-04-20 Kai Tietz <ktietz@redhat.com>
6839
6840 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6841 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6842
6843 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
6844
6845 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6846
6847 2011-04-20 Richard Guenther <rguenther@suse.de>
6848
6849 PR tree-optimization/47892
6850 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6851 are if-convertible.
6852
6853 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
6854
6855 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6856
6857 2011-04-20 Tristan Gingold <gingold@adacore.com>
6858
6859 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6860
6861 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
6862
6863 PR target/18145
6864
6865 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6866 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6867 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6868 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6869 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6870
6871 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6872 New prototype.
6873
6874 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6875 (avr_asm_named_section, avr_asm_output_aligned_common,
6876 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6877 New functions to update...
6878 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6879 (avr_asm_init_sections): Overwrite section callbacks for
6880 data_section, bss_section.
6881 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6882 from here to...
6883 (avr_file_end): ...here.
6884
6885 2011-04-20 Richard Guenther <rguenther@suse.de>
6886
6887 PR middle-end/48695
6888 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6889 objects and types here. Adjust for their offset before comparing.
6890
6891 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6892
6893 * tree-vect-stmts.c (vectorizable_store): Only chain one related
6894 statement per copy.
6895
6896 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
6897
6898 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6899 (GIMPLE_H): Include $(INTERNAL_FN_H).
6900 (OBJS-common): Add internal-fn.o.
6901 (internal-fn.o): New rule.
6902 * internal-fn.def: New file.
6903 * internal-fn.h: Likewise.
6904 * internal-fn.c: Likewise.
6905 * gimple.h: Include internal-fn.h.
6906 (GF_CALL_INTERNAL): New gf_mask.
6907 (gimple_statement_call): Put fntype into a union with a new
6908 internal_fn field.
6909 (gimple_build_call_internal): Declare.
6910 (gimple_build_call_internal_vec): Likewise.
6911 (gimple_call_same_target_p): Likewise.
6912 (gimple_call_internal_p): New function.
6913 (gimple_call_internal_fn): Likewise.
6914 (gimple_call_fntype): Return null for internal calls.
6915 (gimple_call_set_fntype): Assert that the function is not internal.
6916 (gimple_call_set_fn): Likewise.
6917 (gimple_call_set_fndecl): Likewise.
6918 (gimple_call_set_internal_fn): New function.
6919 (gimple_call_addr_fndecl): Handle null functions.
6920 (gimple_call_return_type): Likewise null types.
6921 * gimple.c (gimple_build_call_internal_1): New function.
6922 (gimple_build_call_internal): Likewise.
6923 (gimple_build_call_internal_vec): Likewise.
6924 (gimple_call_same_target_p): Likewise.
6925 (gimple_call_flags): Handle calls to internal functions.
6926 (gimple_call_fnspec): New function.
6927 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6928 (gimple_has_side_effects): Handle null functions.
6929 (gimple_rhs_has_side_effects): Likewise.
6930 (gimple_call_copy_skip_args): Handle calls to internal functions.
6931 * cfgexpand.c (expand_call_stmt): Likewise.
6932 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6933 * gimple-fold.c (gimple_fold_call): Handle null functions.
6934 (gimple_fold_stmt_to_constant_1): Don't fold
6935 calls to internal functions.
6936 * gimple-low.c (gimple_check_call_args): Handle calls to internal
6937 functions.
6938 * gimple-pretty-print.c (dump_gimple_call): Likewise.
6939 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6940 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6941 (do_warn_unused_result): Likewise.
6942 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6943 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6944 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6945 the target of a call.
6946 (initialize_hash_element): Update accordingly.
6947 (hashable_expr_equal_p): Use gimple_call_same_target_p.
6948 (iterative_hash_hashable_expr): Handle calls to internal functions.
6949 (print_expr_hash_elt): Likewise.
6950 * tree-ssa-pre.c (can_value_number_call): Likewise.
6951 (eliminate): Handle null functions.
6952 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6953 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6954 (find_func_aliases): Likewise.
6955 * value-prof.c (gimple_ic_transform): Likewise.
6956 (gimple_indirect_call_to_profile): Likewise.
6957 * lto-streamer-in.c (input_gimple_stmt): Likewise.
6958 * lto-streamer-out.c (output_gimple_stmt): Likewise.
6959
6960 2011-04-19 Jan Hubicka <jh@suse.cz>
6961
6962 * ipa-inline-transform.c (save_inline_function_body): Add comments.
6963 * ipa-inline.c (inline_small_functions): Compute summaries first,
6964 populate heap later.
6965
6966 2011-04-19 Jan Hubicka <jh@suse.cz>
6967
6968 * cgraph.h (save_inline_function_body): Remove.
6969 * ipa-inline-transform.c: New file, broke out of...
6970 * ipa-inline.c: ... this one; Update toplevel comment.
6971 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6972 make global.
6973 (update_noncloned_frequencies): Move to ipa-inline-transform.c
6974 (cgraph_mark_inline_edge): Rename to inline_call; move to
6975 ipa-inline-transform.c.
6976 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6977 move to ipa-inline-transform.c
6978 (recursive_inlining, inline_small_functions, flatten_function,
6979 ipa_inline, inline_always_inline_functions,
6980 early_inline_small_functions): Update.
6981 (inline_transform): Move to ipa-inline-transform.c.
6982 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6983 Declare.
6984 * Makefile.in (ipa-inline-transform.o): New file.
6985 * cgraphunit.c (save_inline_function_body): Move to
6986 ipa-inline-transform.c
6987
6988 2011-04-19 DJ Delorie <dj@redhat.com>
6989
6990 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6991 registers if we already know there aren't any.
6992 (m32c_emit_epilogue): Don't emit a barrier here.
6993 (m32c_emit_eh_epilogue): Likewise.
6994 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6995 operands at expand time.
6996 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6997 int" wchar type.
6998 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6999 duplicates. Provide aliases instead.
7000 * config/m32c/prologue.md (eh_return): Emit a barrier here.
7001 (eh_epilogue): Add a "(return)" here as a hint to other parts of
7002 the compiler.
7003
7004 2011-04-19 Anatoly Sokolov <aesok@post.ru>
7005
7006 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
7007 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
7008 (general_or_i64_p, sparc_register_move_cost): New function.
7009
7010 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7011
7012 * doc/install.texi (Configuration, --enable-threads): Remove mach.
7013 Add lynx, mipssde. Sort table.
7014
7015 2011-04-19 Xinliang David Li <davidxl@google.com>
7016
7017 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
7018 not negative.
7019
7020 2011-04-19 Jakub Jelinek <jakub@redhat.com>
7021
7022 PR target/48678
7023 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
7024 is a SUBREG with non-MODE_INT mode inside of it.
7025
7026 2011-04-19 Martin Jambor <mjambor@suse.cz>
7027
7028 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
7029 also according to actual contants.
7030 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
7031 (gimple_fold_call): Use it.
7032 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
7033
7034 2011-04-19 Martin Jambor <mjambor@suse.cz>
7035
7036 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
7037 non-pointer assignments.
7038
7039 2011-04-19 Martin Jambor <mjambor@suse.cz>
7040
7041 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
7042 account anc_offset and otr_type from the indirect edge info.
7043 * ipa-prop.c (get_ancestor_addr_info): New function.
7044 (compute_complex_ancestor_jump_func): Assignment analysis moved to
7045 get_ancestor_addr_info, call it.
7046 (ipa_note_param_call): Do not initialize information about polymorphic
7047 calls, return the indirect call graph edge. Remove the last
7048 parameter, adjust all callers.
7049 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
7050 parameters. Initialize polymorphic information in the indirect edge.
7051
7052 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7053
7054 PR lto/48148
7055 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
7056 the types if they have different enumeration identifiers.
7057
7058 2011-04-19 Jan Hubicka <jh@suse.cz>
7059
7060 * cgraph.h (cgraph_optimize_for_size_p): Declare.
7061 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
7062 * predict.c (cgraph_optimize_for_size_p): Break out from ...
7063 (optimize_function_for_size_p) ... here.
7064
7065 2011-04-19 Richard Guenther <rguenther@suse.de>
7066
7067 PR lto/48207
7068 * tree.c (free_lang_data): Do not reset the decl-assembler-name
7069 langhook.
7070
7071 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
7072
7073 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
7074 if DECL_NO_INLINE_WARNING_P is set on the function.
7075
7076 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
7077
7078 PR fortran/47976
7079 * reload1.c (inc_for_reload): Return void. All callers changed.
7080 (emit_input_reload_insns): Don't try to delete previous output
7081 reloads to a register, or record spill_reg_store for autoincs.
7082
7083 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
7084
7085 * gengtype.h: Updated copyright year.
7086 (struct input_file_st): Add inpisplugin field.
7087 (type_fileloc): New function.
7088 * gengtype.c
7089 (write_typed_struct_alloc_def): Add gcc_assert.
7090 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
7091 (write_typed_alloc_defns): Don't output for plugin files.
7092 (input_file_by_name): Clear inpisplugin field.
7093 (main): Set inpisplugin field for plugin files.
7094
7095 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
7096
7097 * gengtype-state.c (string_eq): New.
7098 (read_state): Use string_eq instead of strcmp when creating the
7099 state_ident_tab.
7100
7101 2011-04-19 Wei Guozhi <carrot@google.com>
7102
7103 PR target/47855
7104 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
7105 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
7106 linkage.
7107 * config/arm/constraints.md (Uu): New constraint.
7108 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
7109
7110 2011-04-19 Tristan Gingold <gingold@adacore.com>
7111
7112 * config.gcc (-*-*-*vms): Added.
7113 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
7114 definitions moved.
7115 * config/vms/vms-ld.c: New file.
7116 * config/vms/vms-ar.c: New file.
7117 * config/vms/t-vmsnative: New file.
7118
7119 2011-04-18 Xinliang David Li <davidxl@google.com>
7120
7121 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
7122
7123 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7124
7125 PR middle-end/48661
7126 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
7127 if TREE_TYPE (v) is non-NULL.
7128
7129 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
7130 gimple_get_virt_mehtod_for_binfo.
7131 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
7132 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
7133 callers.
7134 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
7135
7136 2011-04-18 Michael Matz <matz@suse.de>
7137 Steve Ellcey <sje@cup.hp.com>
7138
7139 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
7140 use its mode as source mode if it isn't VOIDmode.
7141
7142 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
7143
7144 * doc/passes.texi: Fill crossref nodes.
7145
7146 2011-04-18 Jim Meyering <meyering@redhat.com>
7147
7148 Fix doubled-word typos in comments and strings
7149 * config/alpha/vms-unwind.h: s/for for/for/
7150 * config/arm/unwind-arm.h: Likewise.
7151 * config/microblaze/microblaze.c: Likewise.
7152 * config/sh/constraints.md: s/in in/in/
7153 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
7154
7155 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
7156
7157 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
7158 (AVX_FLOAT_MODE_P): Ditto.
7159 (AVX128_VEC_FLOAT_MODE_P): Ditto.
7160 (AVX256_VEC_FLOAT_MODE_P): Ditto.
7161 (AVX_VEC_FLOAT_MODE_P): Ditto.
7162 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
7163 (UNSPEC_MASKSTORE): Ditto.
7164 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
7165 Merge from <sse>_movmsk<ssemodesuffix> and
7166 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
7167 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
7168 iterator.
7169 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
7170 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
7171 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
7172
7173 2011-04-18 Jan Hubicka <jh@suse.cz>
7174
7175 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
7176
7177 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
7178 (want_inline_function_called_once_p): Break out the logic from
7179 ipa_inline.
7180 (edge_badness): Ensure that profile is not misupdated.
7181 (lookup_recursive_calls): Prioritize by call frequencies.
7182 (inline_small_functions): Move program size estimates here;
7183 actually process whole queue even when unit growth has been
7184 met. (to properly compute inline_failed reasons and for the
7185 case unit size decrease.) Revisit comments on recursive inlining.
7186 (ipa_inline): Remove unit summary code; first inline hot calls
7187 of functions called once, cold calls next.
7188 (order, nnodes): Remove unused variables.
7189 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
7190 (GTFILES): Remove ipa-inline.c
7191 * sel-sched.c (fill_insns): Silence uninitialized var warning.
7192
7193 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7194
7195 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
7196
7197 2011-04-18 Jie Zhang <jie@codesourcery.com>
7198 Richard Earnshaw <rearnsha@arm.com>
7199
7200 * arm.c (neon_builtin_type_bits): Remove.
7201 (typedef enum neon_builtin_mode): New.
7202 (T_MAX): Don't define.
7203 (typedef enum neon_builtin_datum): Remove bits, codes[],
7204 num_vars and base_fcode. Add mode, code and fcode.
7205 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
7206 VAR10): Change accordingly.
7207 (neon_builtin_data[]): Change accordingly
7208 (arm_init_neon_builtins): Change accordingly.
7209 (neon_builtin_compare): Remove.
7210 (locate_neon_builtin_icode): Remove.
7211 (arm_expand_neon_builtin): Change accordingly.
7212
7213 * arm.h (enum arm_builtins): Move to ...
7214 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
7215
7216 * arm.c (arm_builtin_decl): Declare.
7217 (TARGET_BUILTIN_DECL): Define.
7218 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
7219 (arm_builtin_decls[]): New.
7220 (arm_init_neon_builtins): Store builtin declarations in
7221 arm_builtin_decls[].
7222 (arm_init_tls_builtins): Likewise.
7223 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
7224 (arm_builtin_decl): New.
7225
7226 2011-04-18 Richard Guenther <rguenther@suse.de>
7227
7228 * tree.c (upper_bound_in_type): Build properly canonicalized
7229 INTEGER_CSTs.
7230 (lower_bound_in_type): Likewise.
7231
7232 2011-04-18 Richard Guenther <rguenther@suse.de>
7233
7234 * gimple.h (gimple_call_addr_fndecl): New function.
7235 (gimple_call_fndecl): Use it.
7236 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
7237 for direct calls.
7238 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
7239 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
7240
7241 2011-04-18 Richard Guenther <rguenther@suse.de>
7242
7243 PR middle-end/48650
7244 * tree.c (build_string): STRING_CST is now derived from tree_typed.
7245
7246 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
7247
7248 PR lto/48492
7249 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
7250 DECL_IN_CONSTANT_POOL without RTL.
7251
7252 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
7253 Ira Rosen <ira.rosen@linaro.org>
7254
7255 PR target/48252
7256 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
7257 to match neon_vzip/vuzp/vtrn_internal.
7258 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
7259 outputs explicitly dependent on both inputs.
7260 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
7261
7262 2011-04-18 Jakub Jelinek <jakub@redhat.com>
7263
7264 PR tree-optimization/48616
7265 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
7266 whether the shift is by scalar or vector based on whether all SLP
7267 scalar stmts have the same rhs.
7268
7269 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
7270
7271 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
7272 memory operands.
7273
7274 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
7275
7276 PR target/43700
7277 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
7278 registers.
7279
7280 2011-04-17 Jan Hubicka <jh@suse.cz>
7281
7282 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7283 * cgrpahunit.c (cgraph_finalize_function): Do not set
7284 finalized_by_frontend.
7285 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7286 finalized_by_frontend.
7287
7288 2011-04-17 Jan Hubicka <jh@suse.cz>
7289
7290 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
7291 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
7292 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
7294 method.
7295 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
7296 gimple-fold.c
7297 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
7298
7299 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
7300
7301 PR lto/48538
7302 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
7303 is non-null before accessing it.
7304 (input_cgraph): Remove trailing spaces.
7305
7306 2011-04-17 Revital Eres <revital.eres@linaro.org>
7307
7308 * params.def (sms-min-sc): New param flag.
7309 * modulo-sched.c (sms_schedule): Use it.
7310 * doc/invoke.texi (sms-min-sc): Document it.
7311
7312 2011-04-17 Jan Hubicka <jh@suse.cz>
7313
7314 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
7315 present, also set gimple_call_set_cannot_inline.
7316 * ipa-inline.c: Update toplevel comment.
7317 (MAX_TIME): Remove.
7318 (cgraph_clone_inlined_nodes): Fix linebreaks.
7319 (cgraph_check_inline_limits): Restructure to ...
7320 (caller_growth_limits): ... this one; be more tolerant
7321 on growth in nested inline chains; add explanatory comment;
7322 fix stack accounting thinko introduced by previous patch.
7323 (cgraph_default_inline_p): Remove.
7324 (report_inline_failed_reason): New function.
7325 (can_inline_edge_p): New function.
7326 (can_early_inline_edge_p): New function.
7327 (leaf_node_p): Move upwards in file.
7328 (want_early_inline_function_p): New function.
7329 (want_inline_small_function_p): New function.
7330 (want_inline_self_recursive_call_p): New function.
7331 (cgraph_edge_badness): Rename to ...
7332 (edge_badness) ... this one; fix linebreaks.
7333 (update_edge_key): Update call of edge_baddness; add
7334 detailed dump about queue updates.
7335 (update_caller_keys): Use can_inline_edge_p and
7336 want_inline_small_function_p.
7337 (cgraph_decide_recursive_inlining): Rename to...
7338 (recursive_inlining): Use can_inline_edge_p and
7339 want_inline_self_recursive_call_p; simplify and remove no longer
7340 valid FIXME.
7341 (cgraph_set_inline_failed): Remove.
7342 (add_new_edges_to_heap): Use can_inline_edge_p and
7343 want_inline_small_function_p.
7344 (cgraph_decide_inlining_of_small_functions): Rename to ...
7345 (inline_small_functions): ... this one; cleanup; use
7346 can/want predicates; cleanup debug ouput; work edges till fibheap
7347 is exhausted and do not stop once unit growth is reached; remove
7348 later loop processing remaining edges.
7349 (cgraph_flatten): Rename to ...
7350 (flatten_function): ... this one; use can_inline_edge_p
7351 and can_early_inline_edge_p predicates.
7352 (cgraph_decide_inlining): Rename to ...
7353 (ipa_inline): ... this one; remove unreachable nodes before
7354 inlining functions called once; simplify the pass.
7355 (cgraph_perform_always_inlining): Rename to ...
7356 (inline_always_inline_functions): ... this one; use
7357 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
7358 (cgraph_decide_inlining_incrementally): Rename to ...
7359 (early_inline_small_functions): ... this one; simplify
7360 using new predicates; cleanup; make dumps prettier.
7361 (cgraph_early_inlining): Rename to ...
7362 (early_inliner): newer inline regular functions into always-inlines;
7363 fix updating of call stmt summaries.
7364 (pass_early_inline): Update for new names.
7365 (inline_transform): Fix formating.
7366 (gate_cgraph_decide_inlining): Rename to ...
7367 (pass_ipa_inline): ... this one.
7368 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
7369 * ipa-inline-analysis.c (dump_inline_summary): Update.
7370 (compute_inline_parameters): Do not compute disregard_inline_limits;
7371 look for mismatching arguments.
7372 (estimate_growth): Fix handlig of non-trivial self recursion.
7373 (inline_read_summary): Do not read info->disregard_inline_limits.
7374 (inline_write_summary): Do not write info->disregard_inline_limits.
7375 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
7376 and move all checks into can_inline_edge_p predicate; re-enable code
7377 comparing optimization levels.
7378 (expand_call_inline): Do not test inline_forbidden_into_p.
7379 * Makefile.in (ipa-inline.o): Update arguments.
7380
7381 2011-04-17 Revital Eres <revital.eres@linaro.org>
7382
7383 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
7384
7385 2011-04-17 Revital Eres <revital.eres@linaro.org>
7386
7387 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
7388
7389 2011-04-17 Michael Matz <matz@suse.de>
7390
7391 PR tree-optimization/48622
7392 PR lto/48645
7393 * ipa-inline-analysis.c (inline_read_summary): Read size/time
7394 in same order as they're written.
7395
7396 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7397
7398 * config/pa/predicates.md: Reorganize and simplify predicates.
7399 Eliminate duplicate code checks.
7400 (arith_operand): Rename to arith14_operand
7401 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
7402 * config/pa/pa.md: Use renamed operands.
7403 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
7404 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
7405 arith11_operand, adddi3_operand, indexed_memory_operand,
7406 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
7407 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
7408 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
7409 move_dest_operand, move_src_operand, prefetch_cc_operand,
7410 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
7411 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
7412 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
7413 div_operand, int5_operand, movb_comparison_operator,
7414 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
7415 arith_double_operand, ireg_operand, lhs_lshift_operand,
7416 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
7417 integer_store_memory_operand): Likewise.
7418 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
7419 (integer_store_memory_operand, read_only_operand,
7420 function_label_operand, borx_reg_operand,
7421 non_hard_reg_operand): Likewise.
7422 (eq_neq_comparison_operator): Delete unused operator.
7423 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
7424 function_label_operand.
7425 (emit_move_sequence): Likewise.
7426
7427 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7428
7429 * config/i386/sse.md (sseunpackmode): New mode attribute.
7430 (ssepackmode): Ditto.
7431 (vec_pack_trunc_<mode>): Macroize expander from
7432 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
7433 (vec_unpacks_lo_<mode>): Macroize expander from
7434 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7435 (vec_unpacks_hi_<mode>): Macroize expander from
7436 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7437 (vec_unpacku_lo_<mode>): Macroize expander from
7438 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7439 (vec_unpacku_hi_<mode>): Macroize expander from
7440 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
7441 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
7442 ix86_expand_sse4_unpack.
7443 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
7444
7445 2011-04-16 Jan Hubicka <jh@suse.cz>
7446
7447 * cgraphbuild.c: Include ipa-inline.h.
7448 (reset_inline_failed): Use initialize_inline_failed.
7449 * cgraph.c: Include ipa-inline.h.
7450 (cgraph_create_node_1): Do not initialize estimated_growth.
7451 (initialize_inline_failed): More to ipa-inline-analysis.c
7452 (dump_cgraph_node): Do not dump inline flags.
7453 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
7454 and disregard_inline_limits flags.
7455 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
7456 time, size, estimated_growth.
7457 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
7458 Update.
7459 * cgraphunit.c (cgraph_decide_is_function_needed): Use
7460 DECL_DISREGARD_INLINE_LIMITS.
7461 (cgraph_analyze_function): Do not initialize
7462 node->local.disregard_inline_limits.
7463 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
7464 inlinable, versionable and disregard_inline_limits.
7465 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
7466 cgraph_check_inline_limits, cgraph_default_inline_p,
7467 cgraph_edge_badness, update_caller_keys, update_callee_keys,
7468 add_new_edges_to_heap): Update.
7469 (cgraph_decide_inlining_of_small_function): Update; set
7470 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
7471 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
7472 cgraph_decide_inlining_incrementally): Update.
7473 * ipa-inline.h (inline_summary): Add inlinable, versionable,
7474 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
7475 time, size and estimated_growth parameters.
7476 (estimate_edge_growth): Update.
7477 (initialize_inline_failed): Declare.
7478 * ipa-split.c: Include ipa-inline.h
7479 (execute_split_functions): Update.
7480 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
7481 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
7482 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
7483 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
7484 estimated_growth to INT_MIN.
7485 (inline_node_duplication_hook): Likewise.
7486 (dump_inline_summary): Dump new fields.
7487 (compute_inline_parameters): Update.
7488 (estimate_edge_time, estimate_time_after_inlining,
7489 estimate_size_after_inlining, estimate_growth, inline_read_summary,
7490 inline_write_summary):
7491 (initialize_inline_failed): Move here from cgraph.c.
7492 * tree-sra.c: Include ipa-inline.h.
7493 (ipa_sra_preliminary_function_checks): Update.
7494 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
7495 ipa-inline.h.
7496
7497 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
7498
7499 * config/i386/sse.md (V16): New mode iterator.
7500 (VI1, VI8): Ditto.
7501 (AVXMODEQI, AVXMODEDI): Remove.
7502 (sse2, sse3): New mode attribute.
7503 (mov<mode>): Use V16 mode iterator.
7504 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
7505 (push<mode>1): Use V16 mode iterator.
7506 (movmisalign<mode>): Ditto.
7507 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7508 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
7509 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
7510 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
7511 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
7512 avx_movdqu<avxmodesuffix>.
7513 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
7514 *avx_movdqu<avxmodesuffix>.
7515 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
7516 avx_lddqu<avxmodesuffix>.
7517 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
7518 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
7519 avx_movnt<AVXMODEDI:mode>.
7520 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
7521 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
7522
7523 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
7524
7525 PR target/48629
7526 * haifa-sched.c (prune_ready_list, schedule_block): Use
7527 sched_pressure_p rather than flag_sched_pressure.
7528
7529 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
7530
7531 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7532 cgraph_get_node instead of cgraph_get_create_node.
7533
7534 2011-04-15 Jakub Jelinek <jakub@redhat.com>
7535
7536 * cfgexpand.c (expand_debug_expr): Use
7537 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
7538
7539 2011-04-15 Michael Matz <matz@suse.de>
7540
7541 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
7542 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
7543 * function.c (gimplify_parameters): Ditto.
7544 * gimplify.c (gimplify_vla_decl): Ditto.
7545
7546 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
7547 (gimple_call_set_alloca_for_var): New inline function.
7548 (gimple_call_alloca_for_var_p): Ditto.
7549 * gimple.c (gimple_build_call_from_tree): Remember
7550 CALL_ALLOCA_FOR_VAR_P state.
7551 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
7552
7553 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
7554 calls if they were for VLA objects.
7555
7556 2011-04-15 Martin Jambor <mjambor@suse.cz>
7557
7558 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
7559 of ADR_EXPRs.
7560
7561 2011-04-15 Martin Jambor <mjambor@suse.cz>
7562
7563 PR middle-end/48601
7564 * tree-emutls.c (lower_emutls_function_body): Call
7565 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
7566 result is non-NULL.
7567
7568 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
7569
7570 * c-decl.c (detect_field_duplicates): Call
7571 objc_detect_field_duplicates instead of objc_get_interface_ivars.
7572
7573 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
7574
7575 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
7576 * gimple.c (gimple_asm_clobbers_memory_p): Define.
7577 * ipa-pure-const.c (check_stmt): Call it.
7578 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
7579
7580 2011-04-15 Richard Guenther <rguenther@suse.de>
7581
7582 PR tree-optimization/48290
7583 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
7584 Properly decide inhibiting propagation based on the valueized
7585 operand. Do loop-closed SSA form preserving here ...
7586 (init_copy_prop): ... not here.
7587
7588 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
7589
7590 PR target/48612
7591 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
7592 (*ieee_smax<mode>3): Likewise.
7593
7594 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7595
7596 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
7597 Replace match_operand with match_dup for the third operand in
7598 these expanders.
7599
7600 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7601
7602 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
7603 to track processing of conditionals. Update all callers.
7604 (try_combine, simplify_if_then_else): Update.
7605
7606 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
7607
7608 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
7609 -fsched-pressure.
7610
7611 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
7612
7613 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
7614 instead of match_operand for operand 3.
7615
7616 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
7617
7618 * recog.h (insn_operand_data): Add an "allows_mem" field.
7619 * genoutput.c (output_operand_data): Initialize it.
7620 * optabs.c (maybe_legitimize_operand_same_code): New function.
7621 (maybe_legitimize_operand): Use it when matching the original
7622 op->value.
7623
7624 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7625
7626 * gimplify.c: Fix issues in comments throughout.
7627 (voidify_wrapper_expr): Fix long line.
7628 (build_stack_save_restore): Likewise.
7629 (gimplify_loop_expr): Likewise.
7630 (gimplify_compound_lval): Likewise.
7631 (gimplify_init_ctor_eval): Likewise.
7632 (gimplify_modify_expr_rhs): Likewise.
7633 (omp_notice_threadprivate_variable): Likewise.
7634
7635 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
7636
7637 * cfgexpand.c (expand_call_stmt): Convert the function type to the
7638 original one if this is not a builtin function.
7639
7640 2011-04-14 Jakub Jelinek <jakub@redhat.com>
7641
7642 PR target/48605
7643 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
7644 offset it as needed based on top 2 bits in operands[3], change
7645 MEM mode to SFmode and mask those 2 bits away from operands[3].
7646
7647 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7648
7649 * c-parser.c (c_parser_objc_protocol_definition): Updated for
7650 change from objc_declare_protocols() to objc_declare_protocol().
7651
7652 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
7653
7654 * config/i386/sse.md (sse4_1): New mode attribute.
7655 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
7656 avx_blend<ssemodesuffix><avxmodesuffix> and
7657 sse4_1_blend<ssemodesuffix> using VF mode iterator.
7658 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
7659 avx_blendv<ssemodesuffix><avxmodesuffix> and
7660 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
7661 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
7662 avx_dp<ssemodesuffix><avxmodesuffix> and
7663 sse4_1_dp<ssemodesuffix> using VF mode iterator.
7664 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
7665 (sse4_1_packusdw): Merge with *avx_packusdw.
7666 (sse4_1_pblendvb): Merge with *avx_pblendvb.
7667 (sse4_1_pblendw): Merge with *avx_pblendw.
7668 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
7669 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
7670 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
7671 VF mode iterator.
7672 (sse4_1_round<ssescalarmodesuffix>): Merge with
7673 *avx_round<ssescalarmodesuffix>.
7674 (aesenc): Merge with *avx_aesenc.
7675 (aesenclast): Merge with *avx_aesenclast.
7676 (aesdec): Merge with *avx_aesdec.
7677 (aesdeclast): Merge with *avx_aesdeclast.
7678 (pclmulqdq): Merge with *pclmulqdq.
7679 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
7680 New predicate.
7681 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
7682
7683 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
7684
7685 PR middle-end/48608
7686 * cfgexpand.c (get_decl_align_unit): Renamed to ...
7687 (align_local_variable): This. Update DECL_ALIGN.
7688 (add_stack_var): Updated.
7689 (expand_one_stack_var): Likewise.
7690
7691 2011-04-14 Richard Guenther <rguenther@suse.de>
7692
7693 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
7694 Remove.
7695 (dse_initialize_block_local_data, dse_leave_block,
7696 record_voperand_set, get_stmt_uid): Likewise.
7697 (dse_possible_dead_store_p): Allow any kind of killing stmt.
7698 (dse_optimize_stmt): Remove voperand set handling code.
7699 Simplify and improve to handle any kind of killing stmt.
7700 (dse_record_phi): Remove.
7701 (dse_enter_block): Simplify.
7702 (tree_ssa_dse): Likewise.
7703 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
7704
7705 2011-04-14 Jan Hubicka <jh@suse.cz>
7706
7707 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
7708 * cgraph.h (struct inline_summary): Move to ipa-inline.h
7709 (cgraph_local_info): Remove inline_summary.
7710 * ipa-cp.c: Include ipa-inline.h.
7711 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
7712 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
7713 accesor.
7714 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
7715 (input_overwrite_node): Do not set inline summary.
7716 (input_node): Do not stream inline summary.
7717 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
7718 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
7719 growth; we do not have inline parameters computed for that anyway.
7720 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
7721 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
7722 (inline_summary_t): New type and VECtor.
7723 (debug_inline_summary, dump_inline_summaries): Declare.
7724 (inline_summary): Use VOCtor.
7725 (estimate_edge_growth): Kill hack computing call stmt size directly.
7726 * lto-section-in.c (lto_section_name): Add inline section.
7727 * ipa-inline-analysis.c: Include lto-streamer.h
7728 (node_removal_hook_holder, node_duplication_hook_holder): New holders
7729 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
7730 (inline_summary_vec): Define.
7731 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
7732 dump_inline_summaries): New functions.
7733 (estimate_function_body_sizes): Properly compute size/time of outgoing
7734 calls.
7735 (compute_inline_parameters): Alloc inline_summary; do not compute
7736 size/time of incomming calls.
7737 (estimate_edge_time): Avoid missing time summary hack.
7738 (inline_read_summary): Read inline summary info.
7739 (inline_write_summary): Write inline summary info.
7740 (inline_free_summary): Free all hooks and inline summary vector.
7741 * lto-streamer.h: Add LTO_section_inline_summary section.
7742 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7743 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7744
7745 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7746
7747 * tree-vectorizer.h (vect_strided_store_supported): Add a
7748 HOST_WIDE_INT argument.
7749 (vect_strided_load_supported): Likewise.
7750 (vect_permute_store_chain): Return void.
7751 (vect_transform_strided_load): Likewise.
7752 (vect_permute_load_chain): Delete.
7753 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7754 count argument. Check that the count is a power of two.
7755 (vect_strided_load_supported): Likewise.
7756 (vect_permute_store_chain): Return void. Update after above changes.
7757 Assert that the access is supported.
7758 (vect_permute_load_chain): Likewise.
7759 (vect_transform_strided_load): Return void.
7760 * tree-vect-stmts.c (vectorizable_store): Update calls after
7761 above interface changes.
7762 (vectorizable_load): Likewise.
7763 (vect_analyze_stmt): Don't check for strided powers of two here.
7764
7765 2011-04-14 Richard Guenther <rguenther@suse.de>
7766
7767 PR tree-optimization/48590
7768 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7769 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7770 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7771 BUILT_IN_STACK_SAVE.
7772 * tree-ssa-dce.c (propagate_necessity): Handle
7773 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7774
7775 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
7776
7777 * c-parser.c (c_parser_objc_class_declaration): Updated call to
7778 objc_declare_class.
7779
7780 2011-04-14 Richard Guenther <rguenther@suse.de>
7781
7782 * tree.h (get_object_alignment_1): Declare.
7783 * builtins.c (get_object_alignment_1): Split out worker from ...
7784 (get_object_alignment): ... here.
7785 * fold-const.c (get_pointer_modulus_and_residue): Use
7786 get_object_alignment_1.
7787
7788 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7789
7790 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7791 type parameter.
7792 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7793 parameter. Generalise code to handle arrays as well as vectors.
7794 (vect_setup_realignment): Update accordingly.
7795 * tree-vect-stmts.c (vectorizable_store): Likewise.
7796 (vectorizable_load): Likewise.
7797
7798 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7799
7800 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7801 within the per-copy loop.
7802
7803 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7804
7805 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7806 in the dump file.
7807
7808 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
7809
7810 * doc/options.texi (Negative): Explicitly mention that the
7811 Negative chain must be circular.
7812
7813 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
7814
7815 * function.h (block_chainon): Declare.
7816 * function.c (block_chainon): Define.
7817
7818 2011-04-14 Anatoly Sokolov <aesok@post.ru>
7819 Eric Weddington <eric.weddington@atmel.com>
7820 Georg-Johann Lay <avr@gjlay.de>
7821
7822 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7823 New Includes
7824 (avr_init_builtins, avr_expand_builtin,
7825 avr_expand_delay_cycles, avr_expand_unop_builtin,
7826 avr_expand_binop_builtin ): New functions.
7827 (avr_builtin_id): New enum
7828 (struct avr_builtin_description): New struct
7829 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7830 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7831
7832 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7833 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7834 UNSPECV_DELAY_CYCLES): new enumeration values
7835 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7836 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7837 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7838 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7839 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7840 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7841 "fmulsu"): New insns
7842
7843 * config/avr/avr-c.c: fix line endings
7844 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7845 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7846 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7847 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7848 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7849
7850 * doc/extend.texi (AVR Built-in Functions): New node
7851 (Target Builtins): Add documentation of AVR
7852 built-in functions.
7853
7854 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
7855
7856 PR target/44643
7857 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7858 alone. Error if non-const data has attribute progmem.
7859
7860 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7861
7862 * tree.h (struct tree_constructor): Include tree_typed instead of
7863 tree_common.
7864 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7865 TS_TYPED instead of TS_COMMON.
7866
7867 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
7868
7869 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7870 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7871 (sse2_psadbw): Merge with *avx_psadbw.
7872 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7873 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7874 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7875 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7876 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7877 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7878 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7879 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7880 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7881 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7882 (ssse3_palignrti): Merge with *avx_palignrti.
7883
7884 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7885
7886 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7887 * tree-ssanames.c (fini_ssanames): VEC_free it.
7888 (make_ssa_name_fn): Update for VECness of free_ssanames.
7889 (release_ssa_name, release_dead_ssa_names): Likewise.
7890 * tree.h (struct tree_ssa_name): Include tree_typed instead of
7891 tree_common.
7892 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7893 TS_TYPED instead of TS_COMMON.
7894
7895 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7896
7897 * postreload-gcse.c (gcse_after_reload_main): Add calls to
7898 statistics_counter_event.
7899 * tree-ssa-copyrename.c (stats): Define.
7900 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
7901 statistics_counter_event.
7902 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7903 (bswap_stats, widen_mul_stats): Define.
7904 (insert_reciprocals): Increment rdivs_inserted.
7905 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
7906 rfuncs_inserted. Add calls to statistics_counter_event.
7907 (execute_cse_sincos_1): Increment inserted.
7908 (execute_cse_sincos): Zeroize sincos_stats. Add call to
7909 statistics_counter_event.
7910 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
7911 of bswap_stats. Add calls to statistics_counter_event.
7912 (convert_mult_to_widen): Increment widen_mults_inserted.
7913 (convert_plusminus_to_widen): Increment maccs_inserted.
7914 (convert_mult_to_fma): Increment fmas_inserted.
7915 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
7916 calls to statistics_counter_event.
7917
7918 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
7919
7920 PR rtl-optimization/48455
7921 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7922 `temp_costs->mem_cost'.
7923
7924 2011-04-13 Jan Hubicka <jh@suse.cz>
7925
7926 * ipa-inline.h: New file.
7927 * ipa-inline-analysis.c: New file. Broken out of ...
7928 * ipa-inline.c: ... this file; update toplevel comment;
7929 include ipa-inline.h
7930 (inline_summary): Move to ipa-inline.h
7931 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7932 ipa-inline-analysis.c.
7933 (cgraph_estimate_time_after_inlining): Rename to
7934 estiamte_time_after_inlining; move to ipa-inline-analysis.c
7935 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7936 to estimate_edge_growth.
7937 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7938 rename to estimate_size_after_inlining.
7939 (cgraph_mark_inline_edge): Update for new naming convention.
7940 (cgraph_check_inline_limits): Likewise.
7941 (cgraph_edge_badness): Likewise.
7942 (cgraph_decide_recursive_inlining): Likewise.
7943 (cgraph_decide_inlining_of_small_functions): Likewise.
7944 (cgraph_decide_inlining_incrementally): Likewise.
7945 (cgraph_estimate_growth): Rename to estimate_growth; move to
7946 ipa-inline-analysis.c.
7947 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7948 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7949 (compute_inline_parameters): Likewise.
7950 (compute_inline_parameters_for_current): Likewise.
7951 (pass_inline_parameters): Likewise.
7952 (inline_indirect_intraprocedural_analysis): Likewise.
7953 (analyze_function): Rename to inline_analyze_function; likewise.
7954 (add_new_function): Move to ipa-inline-analysis.c.
7955 (inline_generate_summary): Likewise.
7956 (inline_read_summary): Likewise.
7957 (inline_write_summary): Likewise.
7958 * Makefile.in (ipa-inline-analysis.c): New file.
7959
7960 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7961
7962 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7963 * configure: Regenerate.
7964
7965 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
7966
7967 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7968 instead of tree_common.
7969 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7970 Likewise.
7971 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7972 TS_TYPED rather than TS_COMMON.
7973 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7974
7975 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
7976
7977 PR target/45263
7978 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7979 r20 around calls of __tablejump_elpm__
7980
7981 2011-04-13 Jakub Jelinek <jakub@redhat.com>
7982
7983 PR middle-end/48591
7984 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7985 NULL.
7986 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7987
7988 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
7989
7990 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7991 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7992 (cfi_vec): New typedef.
7993 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7994 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7995 (cie_cfi_vec): New static variable.
7996 (cie_cfi_head): Delete.
7997 (add_cfi): Accept a cfi_vec * as first argument. All callers and
7998 declaration changed. Use vector rather than list operations.
7999 (new_cfi): Don't initialize the dw_cfi_next field.
8000 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
8001 rather than list operations.
8002 (lookup_cfa): Use vector rather than list operations.
8003 (output_cfis): New argument upto. Accept a cfi_vec rather than
8004 a dw_cfi_ref list head as argument. All callers changed.
8005 Iterate over the vector using upto as a maximum index.
8006 (output_all_cfis): New static function.
8007 (output_fde): Use vector rather than list operations. Use the
8008 new upto argument for output_cfis rather than manipulating a
8009 list.
8010 (dwarf2out_begin_prologue): Change initializations to match
8011 new struct members.
8012 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
8013 from the vector length rather than searching for the end of a list.
8014 Use output_all_cfis.
8015 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
8016
8017 2011-04-13 Nick Clifton <nickc@redhat.com>
8018
8019 * config/rx/rx.md (movmemsi): Do not use this pattern when
8020 volatile pointers are involved.
8021
8022 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
8023
8024 * config/i386/sse.md (pinsrbits): Remove.
8025 (sse2_packsswb): Merge with *avx_packsswb.
8026 (sse2_packssdw): Merge with *avx_packssdw.
8027 (sse2_packuswb): Merge with *avx_packuswb.
8028 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
8029 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
8030 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
8031 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
8032 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
8033 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
8034 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
8035 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
8036 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
8037 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
8038 (sse2_loadld): Merge with *avx_loadld.
8039 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
8040 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
8041 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
8042 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
8043 (vec_concatv2di): Merge with *vec_concatv2di_avx.
8044
8045 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
8046
8047 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
8048 calling TREE_CHAIN.
8049 * print-tree.c (print_node): Likewise.
8050 * tree-inline.c (copy_tree_r): Likewise.
8051 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
8052 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
8053 instead of TS_COMMON.
8054 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
8055 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
8056 (copy_node_stat): Zero TREE_CHAIN only if necessary.
8057 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
8058 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
8059 ...and these...
8060 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
8061 * tree.h: ...here.
8062 (TREE_CHAIN): Check for a TS_COMMON structure.
8063 (TREE_TYPE): Check for a TS_TYPED structure.
8064
8065 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
8066
8067 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
8068 cgraph_get_create_node instead of cgraph_node.
8069
8070 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8071
8072 * c-parser.c (c_parser_initelt): Updated call to
8073 objc_build_message_expr.
8074 (c_parser_postfix_expression): Likewise.
8075
8076 2011-04-12 Kai Tietz <ktietz@redhat.com>
8077
8078 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
8079 MASK_MS_BITFIELD_LAYOUT bit.
8080
8081 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8082
8083 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
8084 assert it is always true.
8085 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
8086 moves.
8087
8088 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
8089
8090 * c-parser.c (c_lex_one_token): Rewritten conditional used when
8091 compiling Objective-C to be more efficient.
8092
8093 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
8094
8095 * opts-common.c (decode_cmdline_options_to_array): Remove variable
8096 argv_copied.
8097
8098 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8099
8100 * recog.h, genoutput.c, optabs.c: Revert last patch.
8101
8102 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8103
8104 PR target/48090
8105 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
8106
8107 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8108
8109 * recog.h (insn_operand_data): Add an "allows_mem" field.
8110 * genoutput.c (output_operand_data): Initialize it.
8111 * optabs.c (maybe_legitimize_operand_same_code): New function.
8112 (maybe_legitimize_operand): Use it when matching the original
8113 op->value.
8114
8115 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8116
8117 * genpreds.c (process_define_predicate): Move most processing
8118 to gensupport.c. Continue to validate the expression.
8119 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
8120 (process_define_predicate): Move processing to gensupport.c.
8121 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
8122 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
8123 (compute_predicate_codes): Moved from genrecog.c. Add lineno
8124 argument.
8125 (valid_predicate_name_p): New function, split out from old
8126 genpreds.c:process_define_predicate.
8127 (process_define_predicate): New function, combining code from
8128 old genpreds.c and genrecog.c functions.
8129 (process_rtx): Call it for DEFINE_PREDICATE and
8130 DEFINE_SPECIAL_PREDICATE.
8131
8132 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
8133
8134 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
8135 size of a '%A' memory reference.
8136 (T_DREG, T_QREG): New neon_builtin_type_bits.
8137 (arm_init_neon_builtins): Assert that the load and store operands
8138 are neon_struct_operands.
8139 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
8140 (NEON_ARG_MEMORY): New builtin_arg.
8141 (neon_dereference_pointer): New function.
8142 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
8143 Handle NEON_ARG_MEMORY.
8144 (arm_expand_neon_builtin): Update after above interface changes.
8145 Use NEON_ARG_MEMORY for loads and stores.
8146 * config/arm/predicates.md (neon_struct_operand): New predicate.
8147 * config/arm/iterators.md (V_two_elem): Tweak formatting.
8148 (V_three_elem): Use BLKmode for accesses that have no associated mode.
8149 (V_four_elem): Tweak formatting.
8150 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
8151 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
8152 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
8153 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
8154 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
8155 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
8156 (neon_vst4<mode>): Replace pointer operand with a memory operand.
8157 Use %A in the output template.
8158 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
8159 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
8160 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
8161 the width of the memory access. Remove post-increment.
8162 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
8163
8164 2011-04-12 Nick Clifton <nickc@redhat.com>
8165
8166 * config/v850/v850.c (expand_prologue): Do not use the CALLT
8167 instruction for interrupt handlers if the target is the basic V850
8168 architecture.
8169 (expand_epilogue): Likewise.
8170
8171 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8172
8173 PR rtl-optimization/48549
8174 * combine.c (propagate_for_debug): Also stop after BB_END of
8175 this_basic_block. Process LAST and just stop processing after it.
8176 (combine_instructions): If last_combined_insn has been deleted,
8177 set last_combined_insn to its PREV_INSN.
8178
8179 2011-04-12 Richard Guenther <rguenther@suse.de>
8180
8181 PR tree-optimization/46076
8182 * gimple.h (struct gimple_statement_call): Add fntype field.
8183 (gimple_call_fntype): Adjust.
8184 (gimple_call_set_fntype): New function.
8185 * gimple.c (gimple_build_call_1): Set the call function type.
8186 * gimplify.c (gimplify_call_expr): Preserve the function
8187 type the frontend used for the call.
8188 (gimplify_modify_expr): Likewise.
8189 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
8190 function type.
8191 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
8192 function type.
8193 * tree-ssa.c (useless_type_conversion_p): Function pointer
8194 conversions are useless.
8195
8196 2011-04-12 Martin Jambor <mjambor@suse.cz>
8197
8198 * cgraph.h (cgraph_node): Remove function declaration.
8199 (cgraph_create_node): Declare.
8200 (cgraph_get_create_node): Likewise.
8201 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
8202 Updated all callers.
8203 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
8204 the decl does not already exist. Call cgraph_get_create_node instead
8205 of cgraph_node.
8206 (cgraph_get_create_node): New function.
8207 (cgraph_same_body_alias): Update comment.
8208 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
8209 assert it does not return NULL.
8210 (cgraph_update_edges_for_call_stmt): Likewise.
8211 (cgraph_clone_edge): Likewise.
8212 (cgraph_create_virtual_clone): Likewise.
8213 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
8214 instead of cgraph_node.
8215 (cgraph_add_new_function): Call cgraph_create_node or
8216 cgraph_get_create_node instead of cgraph_node.
8217 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
8218 instead of cgraph_node.
8219 (record_eh_tables): Likewise.
8220 (mark_address): Likewise.
8221 (mark_load): Likewise.
8222 (build_cgraph_edges): Call cgraph_get_create_node instead
8223 of cgraph_node.
8224 (rebuild_cgraph_edges): Likewise.
8225 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
8226 instead of cgraph_node.
8227 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
8228 cgraph_node.
8229 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
8230 cgraph_create_node instead of cgraph_node.
8231 * c-decl.c (finish_function): Call cgraph_get_create_node instead
8232 of cgraph_node.
8233 * lto-cgraph.c (input_node): Likewise.
8234 * lto-streamer-in.c (input_function): Likewise.
8235 * varasm.c (mark_decl_referenced): Likewise.
8236 (assemble_alias): Likewise.
8237
8238 2011-04-12 Martin Jambor <mjambor@suse.cz>
8239
8240 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
8241 instead of cgraph_node and assert it does not return NULL.
8242 * lto-streamer-in.c (lto_read_body): Likewise.
8243 * omp-low.c (new_omp_context): Likewise.
8244 (create_task_copyfn): Likewise.
8245 * tree-emutls.c (lower_emutls_function_body): Likewise.
8246 * matrix-reorg.c (transform_allocation_sites): Likewise.
8247
8248 2011-04-12 Jakub Jelinek <jakub@redhat.com>
8249
8250 PR c/48552
8251 * c-typeck.c (build_asm_expr): Error out on attempts to use
8252 void type outputs or inputs for constraints that allow reg or
8253 don't allow memory.
8254
8255 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
8256 Richard Earnshaw <rearnsha@arm.com>
8257
8258 PR target/48250
8259 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
8260 to use sign-magnitude offsets. Reject unsupported unaligned
8261 cases. Add detailed description in comments.
8262 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
8263 condition from TARGET_32BIT to TARGET_ARM.
8264
8265 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
8266
8267 * tree.h (struct typed_tree): New.
8268 (struct tree_common): Include it instead of tree_base.
8269 (TREE_TYPE): Update for new location of type field.
8270 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
8271 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
8272 (union tree_node): Add typed field.
8273 * treestruct.def (TS_TYPED): New.
8274 * lto-streamer.c (check_handled_ts_structures): Handle it.
8275 * tree.c (MARK_TS_TYPED): New macro.
8276 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
8277
8278 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
8279
8280 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
8281 (force_nonfallthru): Do not alter the loop nest if no basic block
8282 was created.
8283
8284 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8285
8286 * config/i386/sse.md (VI): New mode iterator.
8287 (SSEMODEI): Remove.
8288 (AVX256MODEI): Ditto.
8289 (AVXMODEF4P): Ditto.
8290 (avxvecpsmode): Ditto.
8291 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
8292 (sse2_andnot<mode>3): New expander.
8293 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
8294 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
8295 (<any_logic:code><mode>3): Use VI mode iterator.
8296 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
8297 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
8298 (*andnottf3): Handle AVX three-operand constraints.
8299 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
8300
8301 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8302 Robert Millan <rmh@gnu.org>
8303
8304 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
8305 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
8306 GNU_USER_DYNAMIC_LINKER64): Define.
8307 (REG_NAME): Don't undefine.
8308 (MD_UNWIND_SUPPORT): Undefine.
8309 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
8310 (REG_NAME): Don't undefine.
8311 (MD_UNWIND_SUPPORT): Undefine.
8312 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
8313
8314 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8315
8316 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
8317 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
8318
8319 2011-04-11 Xinliang David Li <davidxl@google.com>
8320
8321 * value-profile.c (check_ic_target): New function.
8322 (gimple_ic_transform): Sanity check indirect call target.
8323 * gimple-low.c (gimple_check_call_args): Interface change.
8324 (gimple_check_call_matching_types): New function.
8325 * tree-inline.c (tree_can_inline_p): Call new function.
8326
8327 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
8328
8329 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
8330 tree-pretty-print.h & realmpfr.h.
8331
8332 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
8333
8334 PR middle-end/48464
8335 * ira.c (setup_pressure_classes): Fix typo in loop condition.
8336 (setup_allocno_and_important_classes): Ditto.
8337
8338 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8339
8340 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
8341 GNU_USER_DYNAMIC_LINKER.
8342 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
8343 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8344 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
8345 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8346 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8347 GNU_USER_TARGET_OS_CPP_BUILTINS.
8348 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
8349 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8350 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8352 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
8353 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8354 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8355 GNU_USER_TARGET_OS_CPP_BUILTINS.
8356 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8357 GNU_USER_DYNAMIC_LINKER.
8358 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8359 GNU_USER_TARGET_OS_CPP_BUILTINS.
8360 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
8361 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8362 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
8363 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8364 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
8365 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
8366 GNU_USER_DYNAMIC_LINKER64): Remove.
8367 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
8368 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8369 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8370 GNU_USER_DYNAMIC_LINKER.
8371 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8372 GNU_USER_TARGET_OS_CPP_BUILTINS.
8373 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8374 GNU_USER_TARGET_OS_CPP_BUILTINS.
8375 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
8376 to GNU_USER_TARGET_OS_CPP_BUILTINS.
8377 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
8378 GNU_USER_TARGET_OS_CPP_BUILTINS.
8379 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
8380 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
8381 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8382 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
8383 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8384 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8385 GNU_USER_DYNAMIC_LINKER.
8386 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
8387 GNU_USER_TARGET_OS_CPP_BUILTINS.
8388 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
8389 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8390 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8391 GNU_USER_DYNAMIC_LINKER.
8392 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8393 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8394 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
8395 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8396 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8397 GNU_USER_DYNAMIC_LINKER.
8398 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
8399 GNU_USER_DYNAMIC_LINKERN32.
8400 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
8401 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
8402 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
8403 GNU_USER_DYNAMIC_LINKER32.
8404 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
8405 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8406 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8407 GNU_USER_DYNAMIC_LINKER.
8408 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
8409 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8410 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
8411 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8412 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8413 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
8414 GNU_USER_DYNAMIC_LINKER32.
8415 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
8416 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
8417 GNU_USER_DYNAMIC_LINKER.
8418 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
8419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8421 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
8422 GNU_USER_DYNAMIC_LINKER64.
8423 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
8424 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8425 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8426 GNU_USER_DYNAMIC_LINKER.
8427 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
8428 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8429 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
8430 GNU_USER_DYNAMIC_LINKER.
8431 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
8432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8433 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
8434 GNU_USER_DYNAMIC_LINKER32.
8435 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8436 GNU_USER_DYNAMIC_LINKER64.
8437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
8438 GNU_USER_DYNAMIC_LINKER64.
8439 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
8440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8441 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
8442 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
8443 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
8444
8445 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8446
8447 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
8448 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
8449 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
8450 GNU_USER_DYNAMIC_LINKER.
8451 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8452 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
8453 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
8454 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
8455 GNU_USER_DYNAMIC_LINKER64.
8456 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
8457 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
8458 GNU_USER_LINK_EMULATION.
8459 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
8460 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
8461 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
8462 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
8463 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
8464 CPP_SPEC, CC1_SPEC): Remove.
8465 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
8466 (GNU_USER_DYNAMIC_LINKER): Define.
8467 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
8468 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
8469 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
8470 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
8471 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
8472 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
8473 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8474 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
8475 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
8476 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
8477 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
8478 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
8479 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
8480 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
8481 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
8482 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
8483 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8484 GNU_USER_DYNAMIC_LINKER.
8485 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8486 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8487 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8488 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8489 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
8490 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
8491 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
8492 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
8493 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
8494 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
8495
8496 2011-04-11 Kai Tietz <ktietz@redhat.com>
8497
8498 PR target/9601
8499 PR target/11772
8500 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
8501 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
8502 comment.
8503 (ix86_is_msabi_thiscall): Removed.
8504 (ix86_is_type_thiscall): Likewise.
8505 (ix86_get_callcvt): New function.
8506 (ix86_comp_type_attributes): Simplify check.
8507 (ix86_function_regparm): Use ix86_get_callcvt for calling
8508 convention attribute checks.
8509 (ix86_return_pops_args): Likewise.
8510 (ix86_static_chain): Likewise.
8511 (x86_this_parameter): Likewise.
8512 (x86_output_mi_thunk): Likewise.
8513 (ix86_function_type_abi): Optimize check for types without attributes.
8514 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
8515 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
8516 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
8517 by flag-values.
8518 (IX86_BASE_CALLCVT): Helper macro.
8519 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
8520 Use ix86_get_callcvt for calling convention attribute checks and avoid
8521 symbol-decoration for stdcall in TARGET_RTD case.
8522 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
8523 Likewise.
8524 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
8525 for declaration.
8526
8527 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
8528
8529 * config/i386/sse.md (VI_128): New mode iterator.
8530 (VI12_128): Rename from SSEMODE12.
8531 (VI14_128): Rename from SSEMODE14.
8532 (VI124_128): New mode iterator.
8533 (VI24_128): Rename from SSEMODE248.
8534 (VI248_128): Rename from SSEMODE248.
8535 (SSEMODE124C8): Remove.
8536 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8537 (*sse2_<plusminus_insn><mode>3): Merge with
8538 *avx_<plusminus_insn><mode>3.
8539 (*mulv8hi3): Merge with *avx_mulv8hi3.
8540 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
8541 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
8542 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
8543 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
8544 (ashr<mode>3): Merge with *avx_ashr<mode>3.
8545 (lshr<mode>3): Merge with *avx_lshr<mode>3.
8546 (ashl<mode>3): Merge with *avx_ashl<mode>3.
8547 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
8548 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
8549 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8550 (*<smaxmin:code>v8hi3): Ditto.
8551 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
8552 (*<smaxmin:code>v16qi3): Ditto.
8553 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
8554 (*sse2_eq<mode>3): Ditto.
8555 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
8556 (*sse2_gt<mode>3): Ditto.
8557 (vcondv2di): Split out of vcond<mode>.
8558 (vconduv2di): Split out of vcondu<mode>.
8559
8560 2011-04-11 Richard Guenther <rguenther@suse.de>
8561
8562 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
8563 before calling tree_low_cst.
8564
8565 2011-04-11 Richard Guenther <rguenther@suse.de>
8566
8567 * stor-layout.c (layout_type): Compute all array index size operations
8568 in the original type.
8569 (initialize_sizetypes): Add comment.
8570 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
8571
8572 2011-04-11 Joseph Myers <joseph@codesourcery.com>
8573
8574 * common.opt (Tbss=, Tdata=, Ttext=): New options.
8575
8576 2011-04-11 Martin Jambor <mjambor@suse.cz>
8577
8578 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
8579 of cgraph_node, handle NULL return value.
8580 (cgraph_global_info): Likewise.
8581 (cgraph_rtl_info): Likewise.
8582 * tree-inline.c (estimate_num_insns): Likewise.
8583 * gimplify.c (unshare_body): Likewise.
8584 (unvisit_body): Likewise.
8585 (gimplify_body): Likewise.
8586 * predict.c (optimize_function_for_size_p): Likewise.
8587 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8588 (call_may_clobber_ref_p_1): Likewise.
8589 * varasm.c (function_section_1): Likewise.
8590 (assemble_start_function): Likewise.
8591
8592 2011-04-11 Martin Jambor <mjambor@suse.cz>
8593
8594 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
8595 of cgraph_node.
8596 * final.c (rest_of_clean_state): Likewise.
8597 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
8598 * passes.c (pass_init_dump_file): Likewise.
8599 (execute_all_ipa_transforms): Likewise.
8600 (function_called_by_processed_nodes_p): Likewise.
8601 * predict.c (maybe_hot_frequency_p): Likewise.
8602 (probably_never_executed_bb_p): Likewise.
8603 (compute_function_frequency): Likewise.
8604 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
8605 (unnest_nesting_tree_1): Likewise.
8606 (lower_nested_functions): Likewise.
8607 * tree-optimize.c (execute_fixup_cfg): Likewise.
8608 (tree_rest_of_compilation): Likewise.
8609 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
8610 * tree-sra.c (ipa_early_sra): Likewise.
8611 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
8612 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
8613 * ipa.c (record_cdtor_fn): Likewise.
8614 * ipa-inline.c (cgraph_early_inlining): Likewise.
8615 (compute_inline_parameters_for_current): Likewise.
8616 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8617 * ipa-pure-const.c (local_pure_const): Likewise.
8618 * ipa-split.c (split_function): Likewise.
8619 (execute_split_functions): Likewise.
8620 * cgraphbuild.c (build_cgraph_edges): Likewise.
8621 (rebuild_cgraph_edges): Likewise.
8622 (cgraph_rebuild_references): Likewise.
8623 (remove_cgraph_callee_edges): Likewise.
8624 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
8625 (verify_cgraph_node): Likewise.
8626 (cgraph_analyze_functions): Likewise.
8627 (cgraph_preserve_function_body_p): Likewise.
8628 (save_inline_function_body): Likewise.
8629 (save_inline_function_body): Likewise.
8630 * tree-inline.c (copy_bb): Likewise.
8631 (optimize_inline_calls): Likewise.
8632
8633 2011-04-11 Martin Jambor <mjambor@suse.cz>
8634
8635 PR tree-optimization/48195
8636 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
8637 ipa_check_create_edge_args.
8638 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
8639 ipa_check_create_edge_args.
8640 * ipa-inline.c (inline_generate_summary): Do not call
8641 ipa_check_create_node_params and ipa_check_create_edge_args.
8642 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
8643 ipa_check_create_edge_args.
8644
8645 2011-04-09 Anatoly Sokolov <aesok@post.ru>
8646
8647 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
8648 instead of loop.
8649 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
8650 * function.c (record_hard_reg_sets): Likewise.
8651 * ira.c (compute_regs_asm_clobbered): Likewise.
8652 * sched-deps.c (sched_analyze_1): Likewise.
8653 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
8654
8655 2011-04-09 Xinliang David Li <davidxl@google.com>
8656
8657 PR tree-optimization/PR48484
8658 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
8659 has_valid_pred lazily
8660
8661 2011-04-09 Duncan Sands <baldrick@free.fr>
8662
8663 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
8664
8665 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
8666
8667 * combine.c (combine_validate_cost): Adjust comments. Set registered
8668 cost of I0 to zero at the end, if any.
8669
8670 2011-04-08 Xinliang David Li <davidxl@google.com>
8671
8672 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
8673 to insane profile data.
8674
8675 2011-04-08 Xinliang David Li <davidxl@google.com>
8676
8677 * ipa-cp.c (ipcp_update_profiling): Correct
8678 negative scale factor due to insane profile data.
8679
8680 2011-04-08 Xinliang David Li <davidxl@google.com>
8681
8682 * final.c (dump_basic_block_info): New function.
8683 (final): Dump basic block.
8684 (final_scan_insn): Remove old dump.
8685
8686 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
8687
8688 PR target/47829
8689 * config.gcc (i386-*-freebsd): Disable unwind table generation for
8690 crtbegin/crtend.
8691
8692 2011-04-08 Michael Matz <matz@suse.de>
8693
8694 PR middle-end/48389
8695 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
8696 functions.
8697 (rebuild_jump_labels): Call rebuild_jump_labels_1.
8698 * rtl.h (rebuild_jump_labels_chain): Declare.
8699 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
8700 insns inserted on edges.
8701
8702 2011-04-08 Joseph Myers <joseph@codesourcery.com>
8703
8704 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
8705 * config/arm/arm-arches.def: New.
8706 * config/arm/arm-opts.h: New.
8707 * config/arm/genopt.sh: New.
8708 * config/arm/arm-tables.opt: New (generated).
8709 * config/arm/arm.c (arm_handle_option, arm_target_help,
8710 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
8711 (all_architectures): Get most table contents from arm-arches.def.
8712 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
8713 arm_selected_tune here.
8714 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
8715 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
8716 (march=, mcpu=, mtune=): Use Enum and Var.
8717 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
8718 (arm.o): Update dependencies.
8719
8720 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
8721
8722 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
8723 of header_file.
8724 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
8725 (write_typed_alloc_defns): Likewise.
8726 (main): Calls write_typed_alloc_defns with output_header.
8727
8728 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
8729
8730 PR inline-asm/48435
8731 * ira-color.c (setup_profitable_hard_regs): Add comments.
8732 Don't take prohibited hard regs into account.
8733 (setup_conflict_profitable_regs): Rename to
8734 get_conflict_profitable_regs.
8735 (check_hard_reg_p): Check prohibited hard regs.
8736
8737 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
8738
8739 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8740 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8741 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8742
8743 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8744
8745 PR target/48366
8746 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8747 move from floating point to shift amount register.
8748 (emit_move_sequence): Remove secondary reload support for floating
8749 point to shift amount amount register copies.
8750 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8751 amount register copies.
8752 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8753 register, return false if mode isn't a scalar integer mode.
8754 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8755
8756 2011-04-08 Richard Guenther <rguenther@suse.de>
8757
8758 * gimple.c (gimple_call_flags): Remove kludge.
8759
8760 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8761
8762 * sel-sched.c (sel_region_init): Move call to
8763 sel_setup_region_sched_flags after setup_current_loop_nest.
8764
8765 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
8766
8767 PR rtl-optimization/48272
8768 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8769 init_insn_reg_pressure_info. Adjust a caller.
8770 * sched-int.h (init_insn_reg_pressure_info): Declare.
8771 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8772 when sched-pressure is enabled.
8773
8774 2011-04-08 Richard Guenther <rguenther@suse.de>
8775
8776 * gimple.c (gimple_set_modified): Do not queue calls to
8777 MODIFIED_NORETURN_CALLS here ...
8778 * tree-ssa-operands.c (update_stmt_operands): ... but here.
8779
8780 2011-04-08 Richard Guenther <rguenther@suse.de>
8781
8782 PR lto/48467
8783 * toplev.c (lang_dependent_init): Do not open asm_out_file
8784 in WPA mode, nor perform debug machinery initialization.
8785 (finalize): Do not unlink asm_out_file in WPA mode.
8786
8787 2011-04-08 Richard Guenther <rguenther@suse.de>
8788
8789 * gimple.h (gimple_call_fntype): New function.
8790 (gimple_call_return_type): Use it.
8791 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8792 * gimple-low.c (gimple_check_call_args): Likewise.
8793 * gimple.c (gimple_call_flags): Likewise.
8794 (gimple_call_arg_flags): Likewise.
8795 (gimple_call_return_flags): Likewise.
8796 * tree-cfg.c (verify_gimple_call): Likewise.
8797 (do_warn_unused_result): Likewise.
8798 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8799 * value-prof.c (gimple_ic_transform): Fix fndecl check.
8800
8801 2011-04-08 Dmitry Melnik <dm@ispras.ru>
8802
8803 PR rtl-optimization/48235
8804 * sel-sched.c (code_motion_process_successors): Recompute the last
8805 insn in basic block if control flow changed.
8806 (code_motion_path_driver): Ditto. Recompute the first insn as well.
8807 Update condition for ilist_remove.
8808
8809 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8810
8811 PR rtl-optimization/48302
8812 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8813 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
8814 it to record added preheader blocks.
8815 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
8816 on to sel_add_loop_preheaders.
8817 (sel_region_init): Move call to setup_current_loop_nest after
8818 sel_init_bbs.
8819
8820 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8821
8822 PR target/48273
8823 * cfgloop.h (loop_has_exit_edges): New helper.
8824 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8825 non-clonable.
8826 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8827 that have no exit edges.
8828
8829 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
8830
8831 PR rtl-optimization/48442
8832 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
8833 all callers. Adjust assert.
8834
8835 2011-04-08 Jakub Jelinek <jakub@redhat.com>
8836
8837 PR tree-optimization/48377
8838 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8839 is_packed to true even for types with smaller TYPE_ALIGN than
8840 TYPE_SIZE.
8841
8842 2011-04-08 Richard Guenther <rguenther@suse.de>
8843
8844 PR bootstrap/48513
8845 * doc/tm.texi: Re-generate.
8846
8847 2011-04-08 Wei Guozhi <carrot@google.com>
8848
8849 PR target/47855
8850 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8851 * config/arm/arm.c (arm_attr_length_push_multi): New function.
8852 * config/arm/arm.md (*push_multi): Change the length computation to
8853 call a C function.
8854
8855 2011-04-08 Anatoly Sokolov <aesok@post.ru>
8856
8857 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8858 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8859 * doc/tm.texi: Regenerate.
8860 * system.h (ASM_OUTPUT_BSS): Poison.
8861 * varasm.c (asm_output_bss): Remove function.
8862 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8863
8864 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8865 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8866 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8867 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8868 Likewise.
8869 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8870 Likewise.
8871 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8872 Likewise.
8873 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8874
8875 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8876
8877 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8878 EnumValue lines.
8879
8880 2011-04-07 Joseph Myers <joseph@codesourcery.com>
8881
8882 * config/m68k/m68k.c (m68k_handle_option): Don't handle
8883 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8884 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8885 OPT_mcpu32.
8886 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8887 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8888 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8889 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8890 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8891 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8892 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8893 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8894 options. Don't map other m68k options manually. Don't handle
8895 old-style options as canonical.
8896 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8897 * doc/install.texi (m68k-*-*): Document binutils version requirement.
8898
8899 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
8900
8901 * basic-block.h (force_nonfallthru): Move to...
8902 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8903 (force_nonfallthru): ...here.
8904 * cfghooks.c (force_nonfallthru): New function.
8905 * cfgrtl.c (force_nonfallthru): Rename into...
8906 (rtl_force_nonfallthru): ...this.
8907 (commit_one_edge_insertion): Do not set AUX field.
8908 (commit_edge_insertions): Do not discover new basic blocks.
8909 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8910 (cfg_layout_rtl_cfg_hooks): Likewise.
8911 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8912 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
8913 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8914
8915 2011-04-07 Anatoly Sokolov <aesok@post.ru>
8916
8917 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8918 Remove macros.
8919
8920 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
8921
8922 * config/i386/sse.md: Update copyright year.
8923 (avxcvtvecmode): Remove.
8924 (sse_movhlps): Merge with *avx_movhlps.
8925 (sse_movlhps): Merge with *avx_movlhps.
8926 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8927 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8928 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8929 (sse_loadhps): Merge with *avx_loadhps.
8930 (sse_storelps): Merge with *avx_storelps.
8931 (sse_loadlps): Merge with *avx_loadlps.
8932 (sse_movss): Merge with *avx_movss.
8933 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8934 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8935 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8936 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8937 (vec_set<mode>_0): Ditto.
8938 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8939 (sse4_1_insertps): Merge with *avx_insertps.
8940 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8941 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8942 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8943 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8944 (sse2_storehpd): Merge with *avx_storehpd.
8945 (sse2_loadhpd): Merge with *avx_loadhpd.
8946 (sse2_loadlpd): Merge with *avx_loadlpd.
8947 (sse2_movsd): Merge with *avx_movsd.
8948 (*vec_concatv2df): Merge with *vec_concatv2df.
8949
8950 2011-04-07 Jakub Jelinek <jakub@redhat.com>
8951
8952 PR debug/48343
8953 * combine.c (combine_instructions): Add last_combined_insn,
8954 update it if insn is after it, pass it to all try_combine calls.
8955 (try_combine): Add last_combined_insn parameter, pass it instead of
8956 i3 to propagate_for_debug.
8957
8958 2011-04-07 Nick Clifton <nickc@redhat.com>
8959
8960 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8961 to handle MDR <-> data register transfers.
8962 (movhi_internal): Likewise.
8963
8964 2011-04-07 Alan Modra <amodra@gmail.com>
8965
8966 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8967 previous stack info.
8968
8969 2011-04-07 Tom de Vries <tom@codesourcery.com>
8970
8971 PR target/43920
8972 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
8973 flow_find_cross_jump. Swap variables to implement backward replacement.
8974 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8975
8976 2011-04-07 Tom de Vries <tom@codesourcery.com>
8977
8978 PR target/43920
8979 * cfgcleanup.c (walk_to_nondebug_insn): New function.
8980 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
8981 and bb2.
8982 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8983 src1 or src2. Redirect edges to the last basic block. Update
8984 frequency and count on multiple basic blocks in case of fallthru.
8985
8986 2011-04-07 Tom de Vries <tom@codesourcery.com>
8987
8988 PR target/43920
8989 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8990 function.
8991 (old_insns_match_p): Change return type. Replace return false/true
8992 with return dir_none/dir_both. Use can_replace_by.
8993 (flow_find_cross_jump): Add dir_p parameter. Init replacement
8994 direction from dir_p. Register replacement direction in dir, last_dir
8995 and afterlast_dir. Handle new return type of old_insns_match_p using
8996 merge_dir. Return replacement direction in dir_p.
8997 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8998 return type of old_insns_match_p.
8999 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
9000 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
9001 flow_find_cross_jump.
9002 * basic-block.h (enum replace_direction): New type.
9003 (flow_find_cross_jump): Add parameter to declaration.
9004
9005 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9006
9007 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
9008 (AVXMODEDCVTPS2DQ): Ditto.
9009 (VEC_FLOAT_MODE): Ditto.
9010 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
9011 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9012 (<any_logic:code><mode>3): Use VF mode iterator.
9013 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
9014 Use VF mode iterator.
9015 (copysign<mode>3): Use VF mode iterator.
9016 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
9017 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
9018 (*<any_logic:code><MODEF:mode>3): Merge with
9019 *avx_<any_logic:code><MODEF:mode>3.
9020 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
9021 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
9022 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
9023 (avx_cvtdq2ps<avxmodesuffix>): Remove.
9024 (sse2_cvtdq2ps): Use %v modifier.
9025 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
9026 (avx_cvtps2dq<avxmodesuffix>): Remove.
9027 (sse2_cvtps2dq): Use %v modifier.
9028 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
9029 (avx_cvttps2dq<avxmodesuffix>): Remove.
9030 (sse2_cvttps2dq): Use %v modifier.
9031 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
9032 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
9033 (sse2_cvtsd2siq): Fix insn template.
9034 (sse2_cvtsd2siq_2): Ditto.
9035 (sse2_cvttsd2siq): Ditto.
9036 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
9037 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
9038
9039 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9040
9041 * gcov-io.c: Use GCC Runtime Library Exception.
9042
9043 2011-04-06 Jakub Jelinek <jakub@redhat.com>
9044
9045 PR debug/48466
9046 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
9047 as base_reg whatever register reg has been eliminated to, instead
9048 of hardcoding STACK_POINTER_REGNUM.
9049
9050 2011-04-06 Joseph Myers <joseph@codesourcery.com>
9051
9052 * doc/tm.texi.in: Document C target hooks as separate from general
9053 target hooks.
9054 * doc/tm.texi: Regenerate.
9055 * genhooks.c (struct hook_desc): Add docname field.
9056 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
9057 docname field.
9058 (hook_array): Include c-target.def.
9059 (emit_documentation): Use docname field in output.
9060 (emit_init_macros): Take docname argument. Only emit definitions
9061 for hooks matching docname.
9062 (main): Expect additional arguments in all cases. Pass argument
9063 to emit_init_macros.
9064 * target.def: Move initial macro definitions and comments to
9065 target-hooks-macros.h.
9066 (gcc_targetcm): Move to c-family/c-target.def.
9067 * target.h (targetcm): Move declaration to c-family/c-target.h.
9068 * targhooks.c (default_handle_c_option): Move to
9069 c-family/c-opts.c.
9070 * targhooks.h (default_handle_c_option): Move declaration to
9071 c-family/c-common.h.
9072 * target-hooks-macros.h: New file.
9073 * config.gcc (target_has_targetcm): Define and use to add to
9074 c_target_objs and cxx_target_objs.
9075 * config/default-c.c: New file.
9076 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
9077 of target.h and target-def.h.
9078 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
9079 (darwin_objc_construct_string, darwin_cfstring_ref_p,
9080 darwin_check_cfstring_format_arg): Make static.
9081 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9082 TARGET_STRING_OBJECT_REF_TYPE_P,
9083 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
9084 * config/darwin-protos.h (darwin_objc_construct_string,
9085 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
9086 declare.
9087 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
9088 TARGET_STRING_OBJECT_REF_TYPE_P,
9089 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
9090 * config/t-darwin (darwin-c.o): Update dependencies.
9091 * system.h (TARGET_HAS_TARGETCM): Poison.
9092 * Makefile.in (TARGET_H): Update.
9093 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
9094 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
9095 (default-c.o): New target.
9096 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
9097 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
9098 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
9099 c-target.def.
9100 (build/genhooks.o): Update dependencies.
9101
9102 2011-04-06 Richard Guenther <rguenther@suse.de>
9103
9104 * ipa-inline.c (enum inlining_mode): Remove.
9105 (cgraph_flatten): Use some other token.
9106 (cgraph_edge_early_inlinable_p): New function, split out from ...
9107 (cgraph_perform_always_inlining): New function, split out from ...
9108 (cgraph_decide_inlining_incrementally): ... here.
9109 (cgraph_mark_inline_edge): Adjust.
9110 (cgraph_early_inlining): Re-structure.
9111 (pass_early_inline): Require SSA form.
9112
9113 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
9114 Julian Brown <julian@codesourcery.com>
9115 Mark Shinwell <shinwell@codesourcery.com>
9116
9117 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
9118 LO_REGS only for Thumb-1.
9119 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
9120 be used in short instructions when optimising for size on Thumb-2.
9121
9122 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9123
9124 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
9125 associated with user returns to be preserved.
9126
9127 2011-04-06 Tristan Gingold <gingold@adacore.com>
9128
9129 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
9130 symbol_queue_size, DBXOUT_DECR_NESTING,
9131 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
9132 if XCOFF_DEBUGGING_INFO.
9133
9134 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
9135
9136 * config/i386/i386.md (attribute isa): New.
9137 (attribute enabled): New.
9138 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
9139 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
9140 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
9141 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
9142 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
9143 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9144 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
9145 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
9146
9147 * config/i386/sse.md (VF): New mode iterator.
9148 (VF1): Ditto.
9149 (VF2): Ditto.
9150 (VF_128): Ditto.
9151 (SSEMODEF4): Remove.
9152 (attribute sse): Handle V8SF and V4DF modes.
9153 (<absneg:code><mode>2): Use VF mode iterator.
9154 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
9155 mode iterator.
9156 (<plusminus_insn><mode>3): Use VF mode iterator.
9157 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
9158 Use VF mode iterator.
9159 (<sse>_vm<plusminus_insn><mode>3): Merge with
9160 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
9161 (mul<mode>3): Use VF mode iterator.
9162 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
9163 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
9164 mode iterator.
9165 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
9166 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
9167 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
9168 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
9169 mode iterator.
9170 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
9171 Use VF1 mode iterator.
9172 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
9173 (sqrt<VF2:mode>2): New expander.
9174 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
9175 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
9176 and sqrtv2df2. Use VF mode iterator.
9177 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
9178 mode iterator.
9179 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
9180 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
9181 Use VF1 mode iterator.
9182 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
9183 (<smaxmin:code><mode>3): Use VF mode iterator.
9184 (*<smaxmin:code><mode>3_finite): Merge with
9185 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
9186 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
9187 (<sse>_vm<smaxmin:code><mode>2): Merge with
9188 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
9189 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
9190 mode iterator.
9191 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
9192 mode iterator.
9193 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
9194 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
9195 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
9196 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
9197 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
9198 VF mode iterator.
9199 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
9200 Use VF_128 mode iterator.
9201 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
9202 mode iterator.
9203 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
9204 VF_128 mode iterator.
9205 (vcond<mode>): Use VF mode iterator.
9206 * config/i386/predicates.md (sse_comparison_operator): Merge with
9207 avx_comparison_float_operator. Do not declare as special_predicate.
9208 * config/i386/i386.c (struct builtin_description): Update for renamed
9209 compare patterns.
9210 (ix86_expand_args_builtin): Ditto.
9211 (ix86_expand_sse_compare_mask): Ditto.
9212
9213 2011-04-06 Richard Guenther <rguenther@suse.de>
9214
9215 * tree-inline.c (estimate_num_insns): For calls simply account
9216 for all passed arguments and a used return value.
9217
9218 2011-04-06 Richard Guenther <rguenther@suse.de>
9219
9220 PR tree-optimization/47663
9221 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
9222 call_stmt_time fields.
9223 (cgraph_edge_inlinable_p): Declare.
9224 (cgraph_edge_recursive_p): New inline function.
9225 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
9226 (cgraph_clone_edge): Copy it.
9227 * ipa-inline.c (cgraph_estimate_edge_time): New function.
9228 Account for call stmt time.
9229 (cgraph_estimate_time_after_inlining): Take edge argument.
9230 (cgraph_estimate_edge_growth): Account call stmt size.
9231 (cgraph_estimate_size_after_inlining): Take edge argument.
9232 (cgraph_mark_inline_edge): Adjust.
9233 (cgraph_check_inline_limits): Likewise.
9234 (cgraph_recursive_inlining_p): Remove.
9235 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
9236 (cgraph_decide_recursive_inlining): Take edge argument and
9237 adjust.
9238 (cgraph_decide_inlining_of_small_functions): Do not avoid
9239 diags for recursive inlining here.
9240 (cgraph_flatten): Adjust.
9241 (cgraph_decide_inlining_incrementally): Likewise.
9242 (estimate_function_body_sizes): Remove call cost handling.
9243 (compute_inline_parameters): Initialize caller edge call costs.
9244 (cgraph_estimate_edge_growth): New function.
9245 (cgraph_estimate_growth): Use it.
9246 (cgraph_edge_badness): Likewise.
9247 (cgraph_check_inline_limits): Take an edge argument.
9248 (cgraph_decide_inlining_of_small_functions): Adjust.
9249 (cgraph_decide_inlining): Likewise.
9250 * tree-inline.c (estimate_num_insns): Only account for call
9251 return value if it is used.
9252 (expand_call_inline): Avoid diagnostics on recursive inline
9253 functions here.
9254 * lto-cgraph.c (lto_output_edge): Output edge call costs.
9255 (input_edge): Input edge call costs.
9256
9257 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9258
9259 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
9260
9261 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
9262
9263 * doc/invoke.texi (Spec Files): Fix typo.
9264
9265 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
9266
9267 * profile.c (branch_prob): Move declaration of local variable. Remove
9268 obsolete ??? comment. Expand the location explicitly instead of using
9269 the LOCATION_FILE and LOCATION_LINE macros.
9270
9271 2011-04-06 Wei Guozhi <carrot@google.com>
9272
9273 PR target/47855
9274 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
9275 (arm_cond_branch): Likewise.
9276 (arm_cond_branch_reversed): Likewise.
9277 (arm_jump): Likewise.
9278 (push_multi): Likewise.
9279 * config/arm/constraints.md (Py): New constraint.
9280
9281 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9282
9283 PR bootstrap/48471
9284 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
9285 Move these...
9286 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
9287 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
9288 #ifdef DBX_DEBUGGING_INFO.
9289
9290 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
9291
9292 PR bootstrap/48403
9293 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
9294 if old and new states differ.
9295
9296 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9297
9298 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
9299 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
9300 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
9301 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
9302 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
9303 mcfv4e): Use Alias.
9304 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
9305 ColdFire options to -mcpu= options.
9306
9307 2011-04-05 Jeff Law <law@redhat.com>
9308
9309 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
9310 check if BB is a successor of LOOP->header and return
9311 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
9312
9313 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9314
9315 * cprop.c (struct reg_use): Remove.
9316 (reg_use_table): Make an array of RTX.
9317 (find_used_regs, constprop_register, local_cprop_pass,
9318 bypass_block): Simplify users of reg_use_table.
9319 (cprop_insn): Likewise. Iterate if copy propagation succeeded
9320 on one of the uses found by find_used_regs.
9321
9322 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9323
9324 PR bootstrap/48469
9325 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
9326 declaration.
9327
9328 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9329
9330 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
9331 as an rtx.
9332 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
9333
9334 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
9335
9336 PR middle-end/48441
9337 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
9338
9339 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9340
9341 * combine.c: Include obstack.h.
9342 (struct insn_link): Define.
9343 (uid_log_links): Adjust type.
9344 (FOR_EACH_LOG_LINK): New macro.
9345 (insn_link_obstack): Declare.
9346 (alloc_insn_link): Define.
9347 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
9348 type of link variables.
9349 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
9350 (try_combine, record_promoted_values, distribute_notes): Likewise.
9351 (distribute_links): Likewise. Tweak prototype.
9352 (clear_log_links): Delete.
9353 (adjust_for_new_dest): Call alloc_insn_link.
9354 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
9355
9356 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9357
9358 * gcse.c (modify_mem_list): Convert to an array of VECs.
9359 (canon_modify_mem_list, compute_transp): Tweak formatting.
9360 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
9361 (load_killed_in_block_p): Likewise.
9362 (record_last_mem_set_info): Likewise.
9363 (clear_modify_mem_tables): Likewise.
9364
9365 2011-04-05 Tom de Vries <tom@codesourcery.com>
9366
9367 PR middle-end/48461
9368 * function.c (emit_use_return_register_into_block): Only define if
9369 HAVE_return.
9370
9371 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
9372
9373 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
9374
9375 2011-04-05 Joseph Myers <joseph@codesourcery.com>
9376
9377 * config/rx/rx-opts.h: New.
9378 * config/rx/rx.c (rx_cpu_type): Remove.
9379 (rx_handle_option): Don't assert that global structures are in
9380 use. Access variables via opts pointer. Defer most handling of
9381 OPT_mint_register_. Use error_at.
9382 (rx_option_override): Handle deferred OPT_mint_register_ here.
9383 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
9384 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
9385 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
9386 (rx_cpu_types): New Enum and EnumValue entries.
9387 (mint-register=): Use Defer and use Var accordingly.
9388
9389 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9390
9391 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
9392 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
9393 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
9394 Move these...
9395 (debug_free_queue, debug_nesting, symbol_queue_index):
9396 ...and these...
9397 * dbxout.c: ...to here. Make static.
9398
9399 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
9400
9401 * gcse.c (modify_pair): Define. Define a VEC of it.
9402 (canon_modify_mem_list): Convert to an array of VECs.
9403 (free_insn_expr_list_list): Delete.
9404 (clear_modify_mem_tables): Call VEC_free instead.
9405 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
9406 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
9407 (canon_list_insert, compute_transp): Likewise.
9408
9409 2011-04-05 Tom de Vries <tom@codesourcery.com>
9410
9411 PR target/43920
9412 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
9413 for size.
9414
9415 2011-04-05 Tom de Vries <tom@codesourcery.com>
9416
9417 PR target/43920
9418 * function.c (emit_use_return_register_into_block): New function.
9419 (thread_prologue_and_epilogue_insns): Use
9420 emit_use_return_register_into_block.
9421
9422 2011-04-05 Tom de Vries <tom@codesourcery.com>
9423
9424 PR target/43920
9425 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
9426 insn.
9427
9428 2011-04-05 Tom de Vries <tom@codesourcery.com>
9429
9430 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
9431
9432 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
9433
9434 * config/arm/arm.md (define_constants for unspec): Replace with
9435 define_c_enum.
9436 (define_constants for unspecv): Replace with define_c_enum.
9437 * config/arm/neon.md (define_constants for unspec): Replace with
9438 define_c_enum.
9439
9440 2011-04-04 Richard Henderson <rth@redhat.com>
9441
9442 PR bootstrap/48400
9443 * dwarf2out.c (output_line_info): Always emit line info from
9444 at least one section.
9445 (dwarf2out_init): Create text_section_line_info here ...
9446 (set_cur_line_info_table): ... not here.
9447
9448 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
9449
9450 PR target/48380
9451 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
9452 not called.
9453
9454 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
9455
9456 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
9457
9458 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
9459 (expr_equiv_p): Remove.
9460 (insert_set_in_table): Look at <dest, src> pair instead of expr.
9461 (hash_scan_set): Update call to insert_set_in_table.
9462 (dump_hash_table): Dump <dest, src> pair.
9463 (lookup_set): Simplify. Lookup <dest, src> pair.
9464 (compute_transp): Remove, fold heavily simplified code into...
9465 (compute_local_properties): ...here. Expect COMP and TRANSP
9466 unconditionally.
9467 (find_avail_set): Take set directly from struct expr.
9468 (find_bypass-set): Likewise.
9469 (bypass_block): Likewise.
9470 (cprop_insn): Likewise. Remove redundant INSN_P test.
9471
9472 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
9473 checks on form of COND from find_implicit_sets to here.
9474 (find_implicit_sets): Cleanup control flow. Split critical edges
9475 if it exposes implicit sets. Allocate/resize implicit_sets as
9476 necessary.
9477 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
9478 changed something. Run df_analyze after find_implicit_sets if any
9479 edges were split. Do not allocate implicit_sets here.
9480
9481 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
9482 (gcse_obstack): Renamed to cprop_obstack.
9483 (GNEW, GNEWVEC, GNEWVAR): Remove.
9484 (gmalloc): Remove.
9485 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
9486 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
9487 (gcse_alloc): Likewise, and rename to cprop_alloc.
9488 (alloc_gcse_men, free_gcse_mem): Remove.
9489 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
9490 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
9491 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
9492
9493 * cprop.c (oprs_not_set_p): Remove.
9494 (mark_set, mark_clobber): Remove.
9495 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
9496 (reg_not_set_p): New function.
9497 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
9498 (cprop_insn): Likewise.
9499 (cprop_jump): Use FOR_EACH_EDGE.
9500
9501 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
9502
9503 PR bootstrap/48403
9504 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
9505 (rank_for_schedule): Use scheduled_insns vector instead of
9506 last_scheduled_insn.
9507 (ok_for_early_queue_removal): Likewise.
9508 (queue_to_ready): Search forward in nonscheduled_insns_begin if
9509 we have a dbg_cnt.
9510 (choose_ready): Likewise.
9511 (commit_schedule): Use VEC_iterate.
9512 (schedule_block): Initialize nonscheduled_insns_begin. If we have
9513 a dbg_cnt, use it and ensure the first insn is in the ready list.
9514 (haifa_sched_init): Allocate scheduled_insns.
9515 (sched_extend_ready_list): Don't allocate it; reserve space.
9516 (haifa_sched_finish): Free it.
9517
9518 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9519
9520 * optc-gen.awk: Always remove type from Variable entry before
9521 recording in var_seen.
9522
9523 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
9524
9525 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
9526 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
9527 call to tidy_fallthru_edges.
9528
9529 2011-04-04 Joseph Myers <joseph@codesourcery.com>
9530
9531 * doc/options.texi (ToLower): Document.
9532 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
9533 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
9534 * opts.h (cl_option): Add cl_tolower field.
9535 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
9536 arguments with lowercase strings.
9537 * config/rx/rx.opt (mcpu=): Add ToLower.
9538 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
9539 argument.
9540
9541 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9542
9543 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
9544
9545 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
9546
9547 * config/vax/vax.c: Include reload.h.
9548
9549 2011-04-04 Anatoly Sokolov <aesok@post.ru>
9550
9551 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
9552 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
9553 (sparc_preferred_reload_class): New function.
9554
9555 2011-04-04 Jakub Jelinek <jakub@redhat.com>
9556
9557 PR debug/48401
9558 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9559 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
9560
9561 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
9562
9563 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
9564 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
9565
9566 2011-04-03 Anatoly Sokolov <aesok@post.ru>
9567
9568 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
9569 (ASM_OUTPUT_ALIGNED_BSS): Define.
9570
9571 2011-04-03 Michael Matz <matz@suse.de>
9572
9573 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
9574 and next_slot members.
9575 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
9576 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
9577 (lto_streamer_cache_append): Declare.
9578 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
9579 unsigned index, remove offset parameter, ensure that we append
9580 or update existing entries.
9581 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
9582 parameter, update next_slot for append.
9583 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
9584 parameter.
9585 (lto_streamer_cache_insert_at): Likewise.
9586 (lto_streamer_cache_append): New function.
9587 (lto_streamer_cache_lookup): Use unsigned index.
9588 (lto_streamer_cache_get): Likewise.
9589 (lto_record_common_node): Don't test tree_node_can_be_shared.
9590 (preload_common_node): Adjust call to lto_streamer_cache_insert.
9591 (lto_streamer_cache_delete): Don't free offsets member.
9592 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
9593 (lto_output_string_with_length): Use lto_output_data_stream.
9594 (lto_output_tree_header): Remove ix parameter, don't write it.
9595 (lto_output_builtin_tree): Likewise.
9596 (lto_write_tree): Adjust callers to above, don't track and write
9597 offset, write unsigned index.
9598 (output_unreferenced_globals): Don't emit all global vars.
9599 (write_global_references): Use unsigned indices.
9600 (lto_output_decl_state_refs): Likewise.
9601 (write_symbol): Likewise.
9602 * lto-streamer-in.c (lto_input_chain): Move earlier.
9603 (input_function): Use unsigned index.
9604 (input_alias_pairs): Don't read and then ignore all global vars.
9605 (lto_materialize_tree): Remove ix_p parameter, don't read index,
9606 don't pass it back, use lto_streamer_cache_append.
9607 (lto_register_var_decl_in_symtab): Use unsigned index.
9608 (lto_register_function_decl_in_symtab): Likewise.
9609 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
9610 index.
9611 (lto_get_builtin_tree): Don't read index, use
9612 lto_streamer_cache_append.
9613 (lto_read_tree): Adjust call to lto_materialize_tree.
9614
9615 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
9616 don't use function calls in arguments to MIN.
9617
9618 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
9619 twice.
9620
9621 * gimple.c (gimple_type_leader_entry): Mark deletable.
9622
9623 2011-04-03 Alan Modra <amodra@gmail.com>
9624
9625 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
9626
9627 2011-04-03 Michael Matz <matz@suse.de>
9628
9629 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
9630 an integer.
9631 * tree.h (tree_decl_non_common.vindex): Adjust comment.
9632
9633 2011-04-03 Michael Matz <matz@suse.de>
9634
9635 * cgraphbuild.c (record_reference): Canonicalize constructor values.
9636 * gimple-fold.c (canonicalize_constructor_val): Accept being called
9637 without function context.
9638 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
9639 current_function_decl and cfun.
9640
9641 2011-04-03 Michael Matz <matz@suse.de>
9642
9643 * tree.c (decl_init_priority_insert): Don't create entry for
9644 default priority.
9645 (decl_fini_priority_insert): Ditto.
9646 (fields_compatible_p, find_compatible_field): Remove.
9647 * tree.h (fields_compatible_p, find_compatible_field): Remove.
9648 * gimple.c (gimple_compare_field_offset): Adjust block comment.
9649
9650 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
9651
9652 * combine.c (try_combine): Remove useless local variable.
9653
9654 2011-04-03 Richard Guenther <rguenther@suse.de>
9655 Ira Rosen <ira.rosen@linaro.org>
9656
9657 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
9658 non-variable offsets and compare the remaining bases of the two
9659 accesses instead of looking for exact same data-ref.
9660
9661 2011-04-02 Kai Tietz <ktietz@redhat.com>
9662
9663 PR target/48416
9664 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
9665
9666 * i386.c (ix86_is_msabi_thiscall): New helper function.
9667 (ix86_is_type_thiscall): New helper function.
9668 (ix86_comp_type_attributes): Handle thiscall for method-functions
9669 special.
9670 (init_cumulative_args): Likewise.
9671 (find_drap_reg): Likewise.
9672 (ix86_static_chain): Likewise.
9673 (x86_this_parameter): Likewise.
9674 (x86_output_mi_thunk): Likewise.
9675
9676 2011-04-01 Olivier Hainque <hainque@adacore.com>
9677 Nicolas Setton <setton@adacore.com>
9678 Eric Botcazou <ebotcazou@adacore.com>
9679
9680 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
9681 (add_gnat_descriptive_type_attribute): New function.
9682 (gen_array_type_die): Call it.
9683 (gen_enumeration_type_die): Likewise.
9684 (gen_struct_or_union_type_die): Likewise.
9685 (modified_type_die): Likewise.
9686 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
9687 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
9688 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
9689
9690 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9691
9692 PR bootstrap/48148
9693 * dwarf2out.c (resolve_addr): Don't call force_decl_die
9694 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
9695
9696 Revert:
9697 2011-03-17 Richard Guenther <rguenther@suse.de>
9698
9699 PR bootstrap/48148
9700 * lto-cgraph.c (input_overwrite_node): Clear the abstract
9701 origin for decls in other ltrans units.
9702 (input_varpool_node): Likewise.
9703
9704 2011-04-01 Jakub Jelinek <jakub@redhat.com>
9705
9706 PR middle-end/48335
9707 * expr.c (expand_assignment): Handle all possibilities
9708 if TO_RTX is CONCAT.
9709 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
9710 (store_split_bit_field): If SUBREG_REG (op0) or
9711 op0 itself has smaller mode than word, return it
9712 for offset 0 and const0_rtx for out-of-bounds stores.
9713 If word is const0_rtx, skip it.
9714
9715 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
9716
9717 * config/h8300/h8300.c (print_operand_address): Rename to...
9718 (h8300_print_operand_address): ...this. Make static. Adjust comments.
9719 Call h8300_print_operand and h8300_print_operand_address instead of
9720 print_operand and print_operand_address. Declare.
9721 (print_operand): Renake to...
9722 (h8300_print_operand): ...this. Make static. Adjust comments.
9723 Call h8300_print_operand instead of print_operand. Declare.
9724 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
9725 (h8300_register_move_cost): Likewise.
9726 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
9727 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
9728 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
9729 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
9730 * config/h8300/h8300-protos.h (print_operand): Delete.
9731 (print_operand_address): Delete.
9732
9733 2011-04-01 Richard Henderson <rth@redhat.com>
9734
9735 PR 48400
9736 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
9737 in strict mode before dwarf4. Re-order tests to early out
9738 before switching sections.
9739
9740 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
9741
9742 * config/h8300/constraints.md: New file.
9743 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
9744 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9745 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9746 * config/h8300/predicates.md (bit_operand): Likewise.
9747 (incdec_operand): Use satisfies_constraint_M and
9748 satisfies_constraint_O. Don't use C code block.
9749 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9750 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9751 (compute_mov_length): Use satisfies_constraint_G.
9752 (fix_bit_operand): Use satisfies_constraint_U.
9753 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9754 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9755 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9756 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9757 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9758 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9759 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9760 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9761 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9762 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9763 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9764 (EXTRA_MEMORY_CONSTRAINT): Delete.
9765
9766 2011-04-01 Andrew Pinski <pinskia@gmail.com>
9767 Michael Meissner <meissner@linux.vnet.ibm.com>
9768
9769 PR target/48262
9770 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9771 operands, as per the specifications.
9772
9773 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9774 (vec_extract_evenv4sf): Ditto.
9775 (vec_extract_evenv8hi): Ditto.
9776 (vec_extract_evenv16qi): Ditto.
9777 (vec_extract_oddv4si): Ditto.
9778
9779 2011-03-31 Mark Wielaard <mjw@redhat.com>
9780
9781 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9782 high_pc attribute if the CU has no associated code. Only output
9783 DW_AT_entry_pc for CU if not generating strict dwarf and
9784 dwarf_version < 4.
9785
9786 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
9787
9788 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9789 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9790 out of ...
9791 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9792 * final.c (final_start_function): Call the new function rather
9793 than using a NULL argument for dwarf2out_frame_debug.
9794
9795 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9796 that contains the prologue.
9797
9798 * haifa-sched.c (queue_insn): New arg REASON. All callers
9799 changed. Print it in debugging output.
9800
9801 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9802
9803 * sched-ebb.c (begin_schedule_ready): Remove second argument.
9804 Split most of the code into...
9805 (begin_move_insn): ... here. New function.
9806 (ebb_sched_info): Add a pointer to it.
9807 * haifa-sched.c (scheduled_insns): New static variable.
9808 (sched_extend_ready_list): Allocate it.
9809 (schedule_block): Use it to record the order of scheduled insns.
9810 Perform RTL changes to move insns only after all scheduling
9811 decisions have been made.
9812 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9813 begin_move_insn field.
9814 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9815 * sched-int.h (struct haifa_sched_info): Remove second argument
9816 from begin_schedule_ready hook. Add new member begin_move_insn.
9817 * sched-rgn.c (begin_schedule_ready): Remove second argument.
9818 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9819
9820 * haifa-sched.c (prune_ready_list): New function, broken out of
9821 schedule_block.
9822 (schedule_block): Use it.
9823
9824 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9825
9826 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9827
9828 2011-04-01 Kai Tietz <ktietz@redhat.com>
9829
9830 * config.gcc (*-*-mingw*): Allow as option the
9831 posix threading model.
9832 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
9833 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9834 definition.
9835 (CPP_SPEC): Add pthread/no-pthread handling.
9836 (LIB_SPEC): Likewise.
9837 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9838 (LIB_SPEC): Likewise.
9839 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9840 flag to pass -pthread option for shared libgcc build.
9841 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9842 for shared libgcc build.
9843 * config/i386/t-mingw-pthread: New file.
9844 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9845 New define to enable use of library pthread by default.
9846 * config/i386/mingw.opt (pthread): New driver option.
9847 (no-pthread): New driver option.
9848 * config/i386/cygming.opt: Make sure trailing empty line is retained.
9849 * config/i386/mingw-w64.opt: Likewise.
9850
9851 2011-04-01 Gary Funck <gary@intrepid.com>
9852
9853 * c-decl.c (grokdeclarator): Fix formatting.
9854
9855 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9856
9857 * expr.c (emit_block_move_via_movmem): Use n_generator_args
9858 instead of n_operands.
9859 (set_storage_via_setmem): Likewise.
9860 * optabs.c (maybe_gen_insn): Likewise.
9861 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9862 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9863 (mips_expand_builtin_direct): Likewise.
9864 * config/spu/spu.c (expand_builtin_args): Likewise.
9865
9866 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9867
9868 * recog.h (insn_data_d): Add n_generator_args.
9869 * genoutput.c (data): Likewise.
9870 (output_insn_data): Print it.
9871 (max_opno, num_dups): Delete.
9872 (scan_operands): Just fill in "d->operand[...]".
9873 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9874
9875 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
9876
9877 * gensupport.h (pattern_stats): New structure.
9878 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9879 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9880 (max_operand_1, max_operand_vec): Delete.
9881 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9882
9883 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
9884
9885 * emit-rtl.c (emit_pattern_after_setloc): New function.
9886 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9887 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9888 (emit_pattern_after): New function.
9889 (emit_insn_after, emit_jump_insn_after): Call it.
9890 (emit_call_insn_after, emit_debug_insn_after): Likewise.
9891 (emit_pattern_before_setloc): New function.
9892 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9893 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9894 Likewise.
9895 (emit_pattern_before): New function.
9896 (emit_insn_before, emit_jump_insn_before): Call it.
9897 (emit_call_insn_before, emit_debug_insn_before): Likewise.
9898
9899 2011-03-31 Richard Henderson <rth@redhat.com>
9900
9901 * dwarf2out.c (dw_separate_line_info_ref): Remove.
9902 (dw_separate_line_info_entry): Remove.
9903 (enum dw_line_info_opcode): New.
9904 (dw_line_info_entry): Use it.
9905 (dw_line_info_table, dw_line_info_table_p): New.
9906 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9907 (line_info_table, line_info_label_num): Remove.
9908 (line_info_table_in_use): Remove.
9909 (separate_line_info_table): Remove.
9910 (separate_line_info_table_allocated): Remove.
9911 (separate_line_info_table_in_use): Remove.
9912 (LINE_INFO_TABLE_INCREMENT): Remove.
9913 (line_info_label_num): New.
9914 (cur_line_info_table): New.
9915 (text_section_line_info, cold_text_section_line_info): New.
9916 (separate_line_info): New.
9917 (SEPARATE_LINE_CODE_LABEL): Remove.
9918 (print_dwarf_line_table): Remove.
9919 (debug_dwarf): Don't dump it.
9920 (output_one_line_info_table): New.
9921 (output_line_info): Use it.
9922 (new_line_info_table): New.
9923 (set_cur_line_info_table): New.
9924 (dwarf2out_switch_text_section): Use it.
9925 (dwarf2out_begin_function): Likewise.
9926 (push_dw_line_info_entry): New.
9927 (dwarf2out_source_line): Rewrite for new line info tables.
9928 (dwarf2out_init): Remove dead initailizations.
9929
9930 2011-03-31 Joseph Myers <joseph@codesourcery.com>
9931
9932 * opts.h (cl_option): Add comments to fields. Add bit-fields for
9933 various flags.
9934 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9935 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9936 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9937 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9938 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9939 * opt-functions.awk (flag_init, switch_bit_fields): New.
9940 (switch_flags): Don't handle flags moved to bit-fields. Don't
9941 generate CL_MISSING_OK or CL_SAVE.
9942 * optc-gen.awk: Update to generate bit-field output as well as
9943 flags field.
9944 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9945 bit-field instead of CL_REJECT_DRIVER flag.
9946 * opts-common.c (generate_canonical_option,
9947 decode_cmdline_option): Use bit-fields instead of CL_* flags.
9948 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9949 instead of CL_REJECT_NEGATIVE flag.
9950 * toplev.c (print_switch_values): Use cl_report bit-field instead
9951 of CL_REPORT flag.
9952
9953 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
9954
9955 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9956 a zero minimum index only if it is redundant.
9957
9958 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
9959
9960 PR rtl-optimization/48381
9961 * ira-color.c (assign_hard_reg): Use hard reg set intersection
9962 instead of ira_class_hard_reg_index for calculating conflicting
9963 hard registers.
9964
9965 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
9966
9967 * cprop.c: Clean up hash table building.
9968 (reg_avail_info): Remove.
9969 (oprs_available_p): Remove.
9970 (record_last_reg_set_info): Remove.
9971 (record_last_set_info): Remove.
9972 (reg_available_p): New function.
9973 (gcse_constant_p): Do not treat unfolded conditions as constants.
9974 (make_set_regs_unavailable): New function.
9975 (hash_scan_set): Simplify with new reg_available_p.
9976 (compute_hash_table_work): Traverse insns stream only once.
9977 Do not compute reg_avail_info. Traverse insns in reverse order.
9978 Record implicit sets after recording explicit sets from the block.
9979
9980 2011-03-31 Michael Matz <matz@suse.de>
9981
9982 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9983
9984 2011-03-31 Anatoly Sokolov <aesok@post.ru>
9985
9986 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9987 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9988 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9989 (h8300_mode_dependent_address_p): New function.
9990 (h8300_get_index): Make static.
9991
9992 2011-03-31 Jeff Law <law@redhat.com>
9993
9994 * reload1.c (elimination_effects): Fix typo in recent change.
9995
9996 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9997 typo potentially leading to null pointer dereference.
9998
9999 * caller-save.c (new_saved_hard_reg): Eliminate return value.
10000 (setup_save_areas): Corresponding changes to avoid useless
10001 assignments.
10002
10003 * jump.c (reversed_comparison_code_parts): Avoid successive return
10004 statements when REVERSE_CONDITION is defined.
10005
10006 * expr.c (expand_assignment): Avoid useless assignments.
10007 (expand_expr_real_1): Likewise.
10008 (expand_expr_real_2): Avoid useless statements.
10009
10010 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
10011
10012 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
10013
10014 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
10015 statements.
10016
10017 * stmt.c (expand_expr_stmt): Avoid useless assignment.
10018
10019 2011-03-31 Joseph Myers <joseph@codesourcery.com>
10020
10021 PR target/47109
10022 * doc/tm.texi.in (TARGET_VERSION): Remove.
10023 * doc/tm.texi: Regenerate.
10024 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
10025 * collect2.c (main): Don't use TARGET_VERSION.
10026 * mips-tdump.c (main): Don't use TARGET_VERSION.
10027 * mips-tfile.c (main): Don't use TARGET_VERSION.
10028 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
10029 * config/rs6000/vxworksae.h: Remove.
10030 * config/alpha/alpha.h (TARGET_VERSION): Remove.
10031 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
10032 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
10033 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
10034 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10035 * config/arm/arm.h (TARGET_VERSION): Remove.
10036 * config/arm/coff.h (TARGET_VERSION): Remove.
10037 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
10038 * config/arm/elf.h (TARGET_VERSION): Remove.
10039 * config/arm/freebsd.h (TARGET_VERSION): Remove.
10040 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
10041 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
10042 * config/arm/pe.h (TARGET_VERSION): Remove.
10043 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
10044 * config/arm/semi.h (TARGET_VERSION): Remove.
10045 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
10046 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
10047 * config/arm/vxworks.h (TARGET_VERSION): Remove.
10048 * config/avr/avr.h (TARGET_VERSION): Remove.
10049 * config/bfin/bfin.h (TARGET_VERSION): Remove.
10050 * config/fr30/fr30.h (TARGET_VERSION): Remove.
10051 * config/frv/frv.h (TARGET_VERSION): Remove.
10052 * config/h8300/h8300.h (TARGET_VERSION): Remove.
10053 * config/i386/cygwin.h (TARGET_VERSION): Remove.
10054 * config/i386/darwin.h (TARGET_VERSION): Remove.
10055 * config/i386/darwin64.h (TARGET_VERSION): Remove.
10056 * config/i386/djgpp.h (TARGET_VERSION): Remove.
10057 * config/i386/freebsd.h (TARGET_VERSION): Remove.
10058 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
10059 * config/i386/gnu.h (TARGET_VERSION): Remove.
10060 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
10061 * config/i386/i386elf.h (TARGET_VERSION): Remove.
10062 * config/i386/linux.h (TARGET_VERSION): Remove.
10063 * config/i386/linux64.h (TARGET_VERSION): Remove.
10064 * config/i386/lynx.h (TARGET_VERSION): Remove.
10065 * config/i386/mingw32.h (TARGET_VERSION): Remove.
10066 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
10067 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
10068 * config/i386/netware.h (TARGET_VERSION): Remove.
10069 * config/i386/nto.h (TARGET_VERSION): Remove.
10070 * config/i386/openbsd.h (TARGET_VERSION): Remove.
10071 * config/i386/vxworks.h (TARGET_VERSION): Remove.
10072 * config/ia64/elf.h (TARGET_VERSION): Remove.
10073 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
10074 * config/ia64/hpux.h (TARGET_VERSION): Remove.
10075 * config/ia64/linux.h (TARGET_VERSION): Remove.
10076 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
10077 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
10078 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10079 * config/lm32/lm32.h (TARGET_VERSION): Remove.
10080 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
10081 * config/m32c/m32c.h (TARGET_VERSION): Remove.
10082 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
10083 * config/m32r/m32r.h (TARGET_VERSION): Remove.
10084 * config/m68k/linux.h (TARGET_VERSION): Remove.
10085 * config/m68k/m68k.h (TARGET_VERSION): Remove.
10086 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
10087 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
10088 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
10089 * config/mep/mep.h (TARGET_VERSION): Remove.
10090 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
10091 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10092 * config/mips/iris6.h (MACHINE_TYPE): Remove.
10093 * config/mips/linux.h (TARGET_VERSION): Remove.
10094 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
10095 * config/mips/vxworks.h (TARGET_VERSION): Remove.
10096 * config/mmix/mmix.h (TARGET_VERSION): Remove.
10097 * config/mn10300/linux.h (TARGET_VERSION): Remove.
10098 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
10099 * config/pa/pa.h (TARGET_VERSION): Remove.
10100 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
10101 * config/picochip/picochip.h (TARGET_VERSION): Remove.
10102 * config/rs6000/aix.h (TARGET_VERSION): Remove.
10103 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
10104 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
10105 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
10106 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
10107 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
10108 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
10109 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
10110 * config/rs6000/linux.h (TARGET_VERSION): Remove.
10111 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
10112 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
10113 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
10114 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
10115 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
10116 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
10117 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
10118 * config/s390/linux.h (TARGET_VERSION): Remove.
10119 * config/s390/s390.h (TARGET_VERSION): Remove.
10120 * config/s390/tpf.h (TARGET_VERSION): Remove.
10121 * config/score/score.h (TARGET_VERSION): Remove.
10122 * config/sh/linux.h (TARGET_VERSION): Remove.
10123 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
10124 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
10125 * config/sh/sh.h (TARGET_VERSION): Remove.
10126 * config/sh/sh64.h (TARGET_VERSION): Remove.
10127 * config/sh/superh.h (TARGET_VERSION): Remove.
10128 * config/sh/vxworks.h (TARGET_VERSION): Remove.
10129 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
10130 * config/sparc/linux.h (TARGET_VERSION): Remove.
10131 * config/sparc/linux64.h (TARGET_VERSION): Remove.
10132 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
10133 TARGET_NAME32, TARGET_NAME): Remove.
10134 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
10135 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
10136 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
10137 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
10138 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
10139 * config/spu/spu.h (TARGET_VERSION): Remove.
10140 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
10141 * config/v850/v850.h (TARGET_VERSION): Remove.
10142 * config/vax/linux.h (TARGET_VERSION): Remove.
10143 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
10144 * config/xtensa/elf.h (TARGET_VERSION): Remove.
10145 * config/xtensa/linux.h (TARGET_VERSION): Remove.
10146
10147 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
10148
10149 PR target/48142
10150 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
10151 frame-related from frame-unrelated adjustments to the stack pointer.
10152
10153 2011-03-31 Jakub Jelinek <jakub@redhat.com>
10154
10155 * common.opt (fdebug-types-section): Move earlier.
10156 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
10157
10158 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
10159
10160 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
10161 var.
10162
10163 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
10164
10165 * tree.h (CASE_CHAIN): Define.
10166 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
10167 (gimple_redirect_edge_and_branch): Likewise.
10168
10169 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10170
10171 PR middle-end/48367
10172 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
10173 calculation.
10174
10175 2011-03-30 Jeff Law <law@redhat.com>
10176
10177 * PR bootstrap/48371
10178 * reload1.c (reload): Fix botch in last change.
10179
10180 * reload.h (struct reload): Fix typo introduced in last change.
10181
10182 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10183
10184 * config/arm/arm.opt (mhard-float, msoft-float): Mark
10185 Undocumented. Remove help text.
10186 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
10187 -mhard-float.
10188
10189 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10190
10191 * doc/options.texi (NegativeAlias): Document.
10192 (Alias): Mention NegativeAlias.
10193 * opt-functions.awk: Handle NegativeAlias.
10194 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
10195 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
10196 * opts.h (CL_NEGATIVE_ALIAS): Define.
10197 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
10198 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
10199 OPT_mspe_.
10200 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
10201 Alias entries.
10202 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10203 mno-spe and mno-isel instead of mspe=no and -misel=no.
10204
10205 2011-03-29 Mark Wielaard <mjw@redhat.com>
10206
10207 * common.opt (fdebug-types-section): New flag.
10208 * doc/invoke.texi: Document new -fno-debug-types-section flag.
10209 * dwarf2out.c (use_debug_types): New define.
10210 (struct die_struct): Mark die_id with GTY desc use_debug_types.
10211 (print_die): Guard output of type unit signatures using
10212 use_debug_types.
10213 (build_abbrev_table): Replace assert of dwarf_version >= 4
10214 with assert on use_debug_types.
10215 (size_of_die): Likewise.
10216 (unmark_dies): Likewise.
10217 (value_format): Decide AT_ref_external form on use_debug_types.
10218 (output_die): Replace dwarf_version version check guard with
10219 use_debug_types where appropriate.
10220 (modified_type_die): Likewise.
10221 (gen_reference_type_die): Likewise.
10222 (dwarf2out_start_source_file): Likewise.
10223 (dwarf2out_end_source_file): Likewise.
10224 (prune_unused_types_walk_attribs): Likewise.
10225 (dwarf2out_finish): Likewise.
10226
10227 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
10228
10229 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
10230
10231 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10232
10233 PR rtl-optimization/48332
10234 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
10235 mode of input operand N and modeN to its actual mode.
10236
10237 2011-03-30 Jeff Law <law@redhat.com>
10238
10239 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
10240 define accessor macro.
10241 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
10242 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
10243 (reg_equiv_init): Likewise.
10244 (reg_equivs_size): New variable.
10245 (reg_equiv_init_size): Remove.
10246 (allocate_initial_values): Move prototype to here from....
10247 * integrate.h (allocate_initial_values): Remove prototype.
10248 * integrate.c: Include reload.h.
10249 (allocate_initial_values): Corresponding changes.
10250 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
10251 (fix_reg_equiv_init, no_equiv): Corresponding changes.
10252 (update_equiv_regs): Corresponding changes.
10253 (ira): Corresponding changes.
10254 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
10255 (push_secondary_reload): Corresponding changes.
10256 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
10257 (make_memloc, find_reloads_address): Corresponding changes.
10258 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
10259 (find_reloads_address_1): Corresponding changes.
10260 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
10261 (refers_to_regno_for_reload_p): Corresponding changes.
10262 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
10263 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
10264 * reload1.c: Include ggc.h.
10265 (grow_reg_equivs): New function.
10266 (replace_pseudos_in, reload): Corresponding changes.
10267 (calculate_needs_all_insns, alter_regs): Corresponding changes.
10268 (eliminate_regs_1, elimination_effects): Corresponding changes.
10269 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
10270 (delete_output_reload): Likewise.
10271 * caller-save.c (mark_referenced_regs): Corresponding changes.
10272 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
10273 * frv/predicates.md (frv_load_operand): Corresponding changes.
10274 * microblaze/microblaze.c (double_memory_operand): Corresponding
10275 changes.
10276 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
10277 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
10278 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
10279 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
10280 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
10281 changes.
10282 * pa/pa.c (emit_move_sequence): Corresponding changes.
10283 * vax/vax.c (nonindexed_address_p): Corresponding changes.
10284
10285 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10286
10287 PR target/47551
10288 * config/arm/arm.c (coproc_secondary_reload_class): Handle
10289 structure modes. Don't check neon_vector_mem_operand for
10290 vector or structure modes.
10291
10292 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
10293 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10294
10295 PR target/43590
10296 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
10297 operand 1 and reshuffle the operands to match.
10298 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
10299
10300 2011-03-30 Christian Schüler <cschueler@gmx.de>
10301
10302 PR driver/48208
10303 * config/c.opt (F): Added 'Driver' to -F option.
10304
10305 PR driver/48260
10306 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
10307 handler function.
10308 * config/darwin.opt: Added '-arch' option.
10309
10310 2011-03-30 Nick Clifton <nickc@redhat.com>
10311
10312 * config/rx/rx.md: Add peepholes and patterns to combine
10313 extending loads and simple arithmetic instructions.
10314 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
10315 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
10316 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
10317 modes to use pre-decrement and post-increment addressing.
10318 (rx_is_restricted_memory_address): Add range checking of REG+INT
10319 addresses.
10320 (rx_print_operand): Add support for %Q. Fix handling of %Q.
10321 (rx_memory_move_cost): Adjust cost of stores.
10322 (rx_adjust_insn_length): New function.
10323
10324 2011-03-30 Jakub Jelinek <jakub@redhat.com>
10325
10326 PR c/48305
10327 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10328 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
10329 matching arg00/arg01 types.
10330
10331 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
10332
10333 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
10334 last_location to UNKNOWN_LOCATION.
10335
10336 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
10337
10338 PR target/48349
10339 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
10340 FLOAT_SSE_REGS.
10341
10342 2011-03-30 Joseph Myers <joseph@codesourcery.com>
10343 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10344
10345 PR bootstrap/48337
10346 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
10347 Init(PROCESSOR_V7).
10348 (sparc_cpu): Likewise.
10349 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
10350 PROCESSOR_V7.
10351
10352 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10353
10354 PR target/48336
10355 PR middle-end/48342
10356 PR rtl-optimization/48345
10357 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
10358 hard regs for given mode from profitable regs when doing secondary
10359 allocation.
10360
10361 2011-03-29 Jeff Law <law@redhat.com>
10362
10363 PR bootstrap/48327
10364 * tree-ssa-threadupdate.c (struct redirection_data): Remove
10365 do_not_duplicate field.
10366 (lookup_redirection_data): Corresponding changes.
10367 (create_duplicates): Always create a template block.
10368 (redirect_edges): Remove code which reused the original block
10369 when it was going to become unreachable code.
10370 (thread_block): Don't set do_not_duplicate field.
10371
10372 2011-03-29 Joseph Myers <joseph@codesourcery.com>
10373
10374 * lto-opts.c (register_user_option_p, lto_register_user_option):
10375 Make type argument unsigned.
10376 * lto-streamer.h (lto_register_user_option): Make type argument
10377 unsigned.
10378 * opth-gen.awk: Make CL_* macros unsigned.
10379 * opts-common.c (find_opt): Make lang_mask argument unsigned.
10380 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
10381 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
10382 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
10383 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
10384 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
10385 (find_opt): Make lang_mask argument unsigned.
10386
10387 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10388
10389 PR rtl-optimization/48331
10390 PR rtl-optimization/48334
10391 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
10392 for any used algorithm.
10393
10394 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
10395
10396 * ira-conflicts.c (build_object_conflicts): Add unused attribute
10397 to parent_max.
10398
10399 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
10400
10401 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
10402 (alpha_option_override): Don't set alpha_sr_alias_set.
10403 (emit_frame_store_1): Use gen_frame_mem rather than calling
10404 set_mem_alias_set.
10405 (alpha_expand_epilogue): Ditto.
10406
10407 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
10408
10409 PR tree-optimization/48290
10410 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
10411 vectorization, check that relevant phis in the basic block after
10412 the inner loop are really inner loop's exit phis.
10413
10414 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
10415
10416 PR debug/48190
10417 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
10418 (cached_dw_loc_list_def): New structure.
10419 (cached_dw_loc_list): New typedef.
10420 (cached_dw_loc_list_table): New variable.
10421 (cached_dw_loc_list_table_hash): New function.
10422 (cached_dw_loc_list_table_eq): Likewise.
10423 (add_location_or_const_value_attribute): Take a bool cache_p.
10424 Cache the list when the parameter is true.
10425 (gen_formal_parameter_die): Update caller.
10426 (gen_variable_die): Likewise.
10427 (dwarf2out_finish): Likewise.
10428 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
10429 while generating debug info for the decl.
10430 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
10431 (dwarf2out_init): Initialize cached_dw_loc_list_table.
10432 (resolve_addr): Cache the result of resolving a chain of
10433 location lists.
10434
10435 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
10436
10437 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
10438 conflict object hard regset nodes have intersecting hard reg sets.
10439
10440 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
10441 after regstat_init_n_sets_and_refs.
10442
10443 * ira.c: Add more comments at the top.
10444 (setup_stack_reg_pressure_class, setup_pressure_classes):
10445 Add comments how we compute the register pressure classes.
10446 (setup_allocno_and_important_classes): Add more comments.
10447 (setup_class_translate_array, reorder_important_classes)
10448 (setup_reg_class_relations): Add comments.
10449
10450 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
10451 start of the file.
10452
10453 * ira-color.c: Add 2011 to the Copyright line.
10454 (assign_hard_reg): Add more comments.
10455 (improve_allocation): Ditto.
10456
10457 * ira-costs.c: Add 2011 to the Copyright line.
10458 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
10459 comments.
10460 (setup_regno_cost_classes_by_mode): Ditto.
10461
10462 Initial patches from ira-improv branch:
10463
10464 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10465
10466 * ira-build.c (ira_create_object): Remove initialization of
10467 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
10468 (ira_create_allocno): Remove initialization of
10469 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
10470 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
10471 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10472 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
10473 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
10474 Initialize ALLOCNO_ADD_DATA.
10475 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
10476 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
10477 ALLOCNO_REG.
10478 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
10479 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
10480
10481 * ira.c (ira_reallocate): Remove.
10482 (setup_pressure_classes): Call
10483 ira_init_register_move_cost_if_necessary. Use
10484 ira_register_move_cost instead of ira_get_register_move_cost.
10485 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
10486 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
10487
10488 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
10489 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
10490 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
10491 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
10492 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
10493 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
10494 Fix formatting.
10495 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
10496 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10497 (struct allocno_color_data): New.
10498 (allocno_color_data_t): New typedef.
10499 (allocno_color_data): New definition.
10500 (ALLOCNO_COLOR_DATA): New macro.
10501 (struct object_color_data): New.
10502 (object_color_data_t): New typedef.
10503 (object_color_data): New definition.
10504 (OBJECT_COLOR_DATA): New macro.
10505 (update_copy_costs, calculate_allocno_spill_cost): Call
10506 ira_init_register_move_cost_if_necessary. Use
10507 ira_register_move_cost instead of ira_get_register_move_cost.
10508 (move_spill_restore, update_curr_costs): Ditto.
10509 (allocno_spill_priority): Make it inline.
10510 (color_pass): Allocate and free allocno_color_dat and object_color_data.
10511 (struct coalesce_data, coalesce_data_t): New.
10512 (allocno_coalesce_data): New definition.
10513 (ALLOCNO_COALESCE_DATA): New macro.
10514 (merge_allocnos, coalesced_allocno_conflict_p): Use
10515 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
10516 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
10517 (coalesce_allocnos): Ditto.
10518 (setup_coalesced_allocno_costs_and_nums): Ditto.
10519 (collect_spilled_coalesced_allocnos): Ditto.
10520 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
10521 (setup_slot_coalesced_allocno_live_ranges): Ditto.
10522 (coalesce_spill_slots): Ditto.
10523 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
10524 free allocno_coalesce_data.
10525
10526 * ira-conflicts.c: Fix formatting.
10527 (process_regs_for_copy): Call
10528 ira_init_register_move_cost_if_necessary. Use
10529 ira_register_move_cost instead of ira_get_register_move_cost.
10530 (build_object_conflicts): Optimize.
10531
10532 * ira-costs.c (record_reg_classes): Optimize. Call
10533 ira_init_register_move_cost_if_necessary. Use
10534 ira_register_move_cost, ira_may_move_in_cost, and
10535 ira_may_move_out_cost instead of ira_get_register_move_cost and
10536 ira_get_may_move_cost.
10537 (record_address_regs): Ditto.
10538 (scan_one_insn): Optimize.
10539 (find_costs_and_classes): Optimize.
10540 (process_bb_node_for_hard_reg_moves): Call
10541 ira_init_register_move_cost_if_necessary. Use
10542 ira_register_move_cost instead of ira_get_register_move_cost.
10543
10544 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
10545 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
10546 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
10547 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
10548 definitions.
10549 (ira_initiate_emit_data, ira_finish_emit_data)
10550 (create_new_allocno): New functions.
10551 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
10552 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
10553 Use ira_register_move_cost instead of ira_get_register_move_cost.
10554
10555 * ira-int.h: Fix some comments.
10556 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
10557 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
10558 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
10559 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
10560 add_data.
10561 (struct ira_allocno): Make mode and aclass a bitfield. Move other
10562 bitfield after mode. Make hard_regno a short int. Make
10563 hard_regno short. Remove first_coalesced_allocno and
10564 next_coalesced_allocno. Move mem_optimized_dest_p,
10565 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
10566 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
10567 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
10568 temp, colorable_p. Add new member add_data.
10569 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
10570 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
10571 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
10572 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
10573 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
10574 (ALLOCNO_ADD_DATA): New macro.
10575 (ira_emit_data_t): New typedef.
10576 (struct ira_emit_data): New. Move mem_optimized_dest_p,
10577 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
10578 from struct ira_allocno.
10579 (ALLOCNO_EMIT_DATA): New macro.
10580 (ira_allocno_emit_data, allocno_emit_reg): New.
10581 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
10582 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
10583 (OBJECT_ADD_DATA): New macro.
10584 (ira_reallocate): Remove.
10585 (ira_initiate_emit_data, ira_finish_emit_data): New.
10586 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
10587 (ira_init_register_move_cost_if_necessary): New.
10588 (ira_object_conflict_iter_next): Merge into
10589 ira_object_conflict_iter_cond.
10590 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
10591
10592 * ira-live.c (process_single_reg_class_operands): Call
10593 ira_init_register_move_cost_if_necessary. Use
10594 ira_register_move_cost instead of ira_get_register_move_cost.
10595
10596 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
10597
10598 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
10599
10600 * ira-costs.c: Fix formatting.
10601 (cost_classes, cost_classes_num): Remove.
10602 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
10603 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
10604 (cost_classes_del, cost_classes_htab): New.
10605 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
10606 (initiate_regno_cost_classes, setup_cost_classes): New.
10607 (setup_regno_cost_classes_by_aclass): New.
10608 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
10609 (record_reg_classes): Use regno_cost_classes instead of
10610 cost_classes. Move checking opposite operand up.
10611 (record_address_regs): Use regno_cost_classes
10612 instead of cost_classes.
10613 (scan_one_insn): Ditto. Use always general register.
10614 (print_allocno_costs): Use regno_cost_classes instead of
10615 cost_classes.
10616 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
10617 (find_costs_and_classes): Set up cost classes for each registers.
10618 Use also their mode for this. Use regno_cost_classes instead of
10619 cost_classes.
10620 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
10621 cost_classes.
10622 (free_ira_costs, ira_init_costs): Don't use cost_classes.
10623 (ira_costs, ira_set_pseudo_classes): Call
10624 initiate_regno_cost_classes and finish_regno_cost_classes.
10625
10626 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
10627
10628 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
10629
10630 * target.def (ira_cover_classes): Remove.
10631
10632 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
10633
10634 * doc/tm.texi.in: Ditto.
10635
10636 * ira-conflicts.c: Remove mentioning cover classes from the file.
10637 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
10638 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
10639
10640 * targhooks.c (default_ira_cover_classes): Remove.
10641
10642 * targhooks.h (default_ira_cover_classes): Ditto.
10643
10644 * haifa-sched.c: Remove mentioning cover classes from the file.
10645 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10646 ira_pressure_classes and ira_pressure_classes_num instead of
10647 ira_reg_class_cover_size and ira_reg_class_cover. Use
10648 sched_regno_pressure_class instead of sched_regno_cover_class.
10649 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
10650 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10651
10652 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
10653 classes from the file.
10654 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
10655 (struct object_hard_regs, struct object_hard_regs_node): New.
10656 (struct ira_object): New members profitable_hard_regs,
10657 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
10658 (struct ira_allocno): Rename cover_class to aclass. Rename
10659 cover_class_cost and updated_cover_class_cost to class_cost and
10660 updated_class_cost. Remove splay_removed_p and
10661 left_conflict_size. Add new members colorable_p.
10662 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
10663 (ALLOCNO_COLORABLE_P): New macro.
10664 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
10665 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
10666 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
10667 (OBJECT_...): Rename parameter C to O.
10668 (OBJECT_PROFITABLE_HARD_REGS): New macro.
10669 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
10670 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
10671 (struct target_ira_int): New members x_ira_max_memory_move_cost,
10672 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
10673 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
10674 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
10675 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
10676 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
10677 x_ira_reg_class_subunion.
10678 (ira_max_memory_move_cost, ira_max_register_move_cost)
10679 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
10680 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
10681 (ira_important_class_nums, ira_reg_class_superunion): New macros.
10682 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
10683 (ira_reg_class_union): Rename to ira_reg_class_subunion.
10684 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10685 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10686 (ira_tune_allocno_costs_and_cover_classes): Rename to
10687 ira_tune_allocno_costs.
10688 (ira_debug_hard_regs_forest): New.
10689 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
10690 (ira_object_conflict_iter_next): Fix comments.
10691 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
10692 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
10693 cover_class to aclass.
10694 (ira_allocate_and_accumulate_costs): Ditto.
10695 (ira_allocate_and_set_or_copy_costs): Ditto.
10696
10697 * opts.c (decode_options): Remove ira_cover_class check.
10698
10699 * ira-color.c: Remove mentioning cover classes from the file. Use
10700 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
10701 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
10702 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10703 (splay-tree.h): Remove include.
10704 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
10705 before copy_freq_compare_func.
10706 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
10707 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
10708 New definitions.
10709 (hard_regs_roots, hard_regs_node_vec): Ditto.
10710 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
10711 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
10712 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
10713 (create_new_object_hard_regs_node): Ditto.
10714 (add_new_object_hard_regs_node_to_forest): Ditto.
10715 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
10716 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
10717 Ditto.
10718 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
10719 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
10720 (remove_unused_object_hard_regs_nodes): Ditto.
10721 (enumerate_object_hard_regs_nodes): Ditto.
10722 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
10723 (object_hard_regs_subnode_t): Ditto.
10724 (struct object_hard_regs_subnode): Ditto.
10725 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
10726 (setup_object_hard_regs_subnode_index): Ditto.
10727 (get_object_hard_regs_subnodes_num): Ditto.
10728 (form_object_hard_regs_nodes_forest): Ditto.
10729 (finish_object_hard_regs_nodes_tree): Ditto.
10730 (finish_object_hard_regs_nodes_forest): Ditto.
10731 (allocnos_have_intersected_live_ranges_p): Rename to
10732 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10733 (pseudos_have_intersected_live_ranges_p): Rename to
10734 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
10735 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
10736 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
10737 (update_copy_costs): Remove assert. Skip cost update if the hard
10738 reg does not belong the class.
10739 (assign_hard_reg): Process only profitable hard regs.
10740 (uncolorable_allocnos_num): Make it scalar.
10741 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10742 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10743 and ira_reg_class_max_nregs.
10744 (bucket_allocno_compare_func): Check frequency first.
10745 (sort_bucket): Add compare function as a parameter.
10746 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10747 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10748 (push_allocno_to_stack): Rewrite for checking new allocno
10749 colorability.
10750 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
10751 (push_only_colorable): Pass new parameter to sort_bucket.
10752 (push_allocno_to_spill): Remove.
10753 (allocno_spill_priority_compare): Make it inline and rewrite.
10754 (splay_tree_allocate, splay_tree_free): Remove.
10755 (allocno_spill_sort_compare): New function.
10756 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
10757 build and use splay tree. Choose first allocno in uncolorable
10758 allocno bucket to spill. Remove setting spill cost.
10759 (all_conflicting_hard_regs): Remove.
10760 (setup_allocno_available_regs_num): Check only profitable hard
10761 regs. Print info about hard regs nodes.
10762 (setup_allocno_left_conflicts_size): Remove.
10763 (put_allocno_into_bucket): Don't call
10764 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
10765 (improve_allocation): New.
10766 (color_allocnos): Call setup_profitable_hard_regs,
10767 form_object_hard_regs_nodes_forest, improve_allocation,
10768 finish_object_hard_regs_nodes_forest. Setup spill cost.
10769 (print_loop_title): Use pressure classes.
10770 (color_allocnso): Ditto.
10771 (do_coloring): Remove allocation and freeing splay_tree_node_pool
10772 and allocnos_for_spilling.
10773 (ira_sort_regnos_for_alter_reg): Don't setup members
10774 {first,next}_coalesced_allocno.
10775 (color): Remove allocating and freeing removed_splay_allocno_vec.
10776 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10777 prohibited_class_mode_regs.
10778
10779 * ira-lives.c: Remove mentioning cover classes from the file. Fix
10780 formatting.
10781 (update_allocno_pressure_excess_length): Use pressure classes.
10782 (inc_register_pressure, dec_register_pressure): Check for pressure
10783 class.
10784 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10785 pressure class. Use ira_reg_class_nregs instead of
10786 ira_reg_class_max_nregs.
10787 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10788 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10789 (single_reg_class): Use ira_reg_class_nregs instead of
10790 ira_reg_class_max_nregs.
10791 (process_bb_node_lives): Use pressure classes.
10792
10793 * ira-emit.c: Remove mentioning cover classes from the file. Use
10794 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
10795 (change_loop): Use pressure classes.
10796 (modify_move_list): Call ira_set_allocno_class instead of
10797 ira_set_allocno_cover_class.
10798
10799 * ira-build.c: Remove mentioning cover classes from the file. Use
10800 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10801 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
10802 ALLOCNO_UPDATED_CLASS_COST instead of
10803 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
10804 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10805 (ira_create_allocno): Remove initialization of
10806 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
10807 ALLOCNO_COLORABLE_P.
10808 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10809 Update conflict regs for the objects.
10810 (create_cap_allocno): Remove assert. Don't propagate
10811 ALLOCNO_AVAILABLE_REGS_NUM.
10812 (ira_free_allocno_costs): New function.
10813 (finish_allocno): Change a part of code into call of
10814 ira_free_allocno_costs.
10815 (low_pressure_loop_node_p): Use pressure classes.
10816 (object_range_compare_func): Don't compare classes.
10817 (setup_min_max_conflict_allocno_ids): Ditto.
10818
10819 * loop-invariant.c: Remove mentioning cover classes from the file.
10820 Use ira_pressure_classes and ira_pressure_classes_num instead of
10821 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
10822 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10823 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10824 Use reg_allocno_class instead of reg_cover_class.
10825 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10826 STACK_REG_COVER_CLASS.
10827 (get_regno_cover_class): Rename to get_regno_pressure_class.
10828 (move_loop_invariants): Initialize and finalize regstat.
10829
10830 * ira.c: Remove mentioning cover classes from the file. Add
10831 comments about coloring without cover classes. Use ALLOCNO_CLASS
10832 instead of ALLOCNO_COVER_CLASS. Fix formatting.
10833 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10834 setup_class_subset_and_memory_move_costs.
10835 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10836 (setup_cover_and_important_classes): Rename to
10837 setup_allocno_and_important_classes.
10838 (setup_class_translate_array): New.
10839 (setup_class_translate): Call it for allocno and pressure classes.
10840 (cover_class_order): Rename to allocno_class_order.
10841 (comp_reg_classes_func): Use ira_allocno_class_translate instead
10842 of ira_class_translate.
10843 (reorder_important_classes): Set up ira_important_class_nums.
10844 (setup_reg_class_relations): Set up ira_reg_class_superunion.
10845 (print_class_cover): Rename to print_classes. Add parameter.
10846 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10847 Print pressure classes too.
10848 (find_reg_class_closure): Rename to find_reg_classes. Don't call
10849 setup_reg_subclasses.
10850 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10851 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10852 (setup_prohibited_class_mode_regs): Use
10853 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10854 (clarify_prohibited_class_mode_regs): New function.
10855 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10856 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10857 (ira_init_once): Initialize them.
10858 (free_register_move_costs): Process them.
10859 (ira_init): Move calls of find_reg_classes and
10860 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10861 Call clarify_prohibited_class_mode_regs.
10862 (ira_no_alloc_reg): Remove.
10863 (too_high_register_pressure_p): Use pressure classes.
10864
10865 * sched-deps.c: Remove mentioning cover classes from the file.
10866 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
10867 ira_pressure_classes and ira_pressure_classes_num instead of
10868 ira_reg_class_cover_size and ira_reg_class_cover.
10869 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10870 sched_regno_pressure_class instead of sched_regno_cover_class.
10871 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
10872 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10873
10874 * ira.h: Add 2010 to Copyright.
10875 (ira_no_alloc_reg): Remove external.
10876 (struct target_ira): Rename x_ira_hard_regno_cover_class,
10877 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10878 x_ira_class_translate to x_ira_hard_regno_allocno_class,
10879 x_ira_allocno_classes_num, x_ira_allocno_classes, and
10880 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
10881 x_ira_pressure_classes, x_ira_pressure_class_translate, and
10882 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
10883 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
10884 x_ira_no_alloc_regs.
10885 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10886 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10887 ira_allocno_classes_num and ira_allocno_classes.
10888 (ira_class_translate): Rename to ira_allocno_class_translate.
10889 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10890 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10891 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10892 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10893 (ira_no_alloc_regs): New.
10894
10895 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
10896 classes from the file. Use ALLOCNO_CLASS instead of
10897 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
10898 ALLOCNO_COVER_CLASS_COST.
10899 (regno_cover_class): Rename to regno_aclass.
10900 (record_reg_classes): Use ira_reg_class_subunion instead of
10901 ira_reg_class_union.
10902 (record_address_regs): Check overflow.
10903 (scan_one_insn): Ditto.
10904 (print_allocno_costs): Print total mem cost fore regional allocation.
10905 (print_pseudo_costs): Use REG_N_REFS.
10906 (find_costs_and_classes): Use classes intersected with them on the
10907 1st pass. Check overflow. Use ira_reg_class_subunion instead of
10908 ira_reg_class_union. Use ira_allocno_class_translate and
10909 regno_aclass instead of ira_class_translate and regno_cover_class.
10910 Modify code for finding regno_aclass. Setup preferred classes for
10911 the next pass.
10912 (setup_allocno_cover_class_and_costs): Rename to
10913 setup_allocno_class_and_costs. Use regno_aclass instead of
10914 regno_cover_class. Use ira_set_allocno_class instead of
10915 ira_set_allocno_cover_class.
10916 (init_costs, finish_costs): Use regno_aclass instead of
10917 regno_cover_class.
10918 (ira_costs): Use setup_allocno_class_and_costs instead of
10919 setup_allocno_cover_class_and_costs.
10920 (ira_tune_allocno_costs_and_cover_classes): Rename to
10921 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
10922 by processing objects. Use ira_reg_class_max_nregs instead of
10923 ira_reg_class_nregs.
10924
10925 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10926
10927 * sched-int.h: Remove mentioning cover classes from the file.
10928 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10929
10930 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
10931 classes from the file.
10932 (struct reg_pref): Rename coverclass into allocnoclass.
10933 (reg_cover_class): Rename to reg_allocno_class.
10934
10935 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10936
10937 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10938
10939 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10940
10941 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10942
10943 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10944
10945 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10946
10947 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10948
10949 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10950
10951 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10952
10953 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10954
10955 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10956 (i386_ira_cover_classes): Ditto.
10957
10958 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10959
10960 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10961
10962 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10963
10964 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10965
10966 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10967
10968 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10969
10970 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10971 (mips_ira_cover_classes): Ditto.
10972
10973 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10974
10975 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10976
10977 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10978
10979 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10980
10981 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10982
10983 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10984 (IRA_COVER_CLASSES_VSX): Ditto.
10985
10986 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10987 (rs6000_ira_cover_classes): Ditto.
10988
10989 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10990
10991 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10992
10993 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10994
10995 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10996
10997 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10998
10999 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
11000
11001 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
11002
11003 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
11004
11005 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
11006
11007 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
11008
11009 2011-03-29 Jakub Jelinek <jakub@redhat.com>
11010
11011 PR debug/48253
11012 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
11013 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
11014 dw_fde_unlikely_section_end_label, cold_in_std_section,
11015 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
11016 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
11017 fields.
11018 (output_fde): Use dw_fde_second_{begin,end} if second is
11019 true, otherwise dw_fde_{begin,end}.
11020 (output_call_frame_info): Test dw_fde_second_begin != NULL
11021 instead of dw_fde_switched_sections.
11022 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
11023 fields, initialize new fields. Initialize in_std_section
11024 unconditionally from the first partition.
11025 (dwarf2out_end_epilogue): Don't override dw_fde_end when
11026 dw_fde_second_begin is non-NULL.
11027 (dwarf2out_switch_text_section): Stop initializing removed
11028 dw_fde_struct fields, initialize new fields, initialize
11029 also dw_fde_end here. Set dw_fde_switch_cfi even when
11030 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
11031 (struct var_loc_list_def): Add last_before_switch field.
11032 (arange_table, arange_table_allocated, arange_table_in_use,
11033 ARANGE_TABLE_INCREMENT, add_arange): Removed.
11034 (size_of_aranges): Count !in_std_section and !second_in_std_section
11035 hunks in fdes, instead of looking at arange_table_in_use.
11036 (output_aranges): Add aranges_length argument, don't call
11037 size_of_aranges here. Instead of using aranges_table*
11038 emit ranges for fdes when !in_std_section resp.
11039 !second_in_std_section.
11040 (dw_loc_list): Break ranges crossing section switch.
11041 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
11042 use dw_fde_second_end instead of dw_fde_end as end of last range.
11043 (gen_subprogram_die): Don't call add_arange. Use
11044 dw_fde_{begin,end} for first partition and if switched
11045 section dw_fde_second_{begin,end} for the second.
11046 (var_location_switch_text_section_1,
11047 var_location_switch_text_section): New functions.
11048 (dwarf2out_begin_function): Initialize cold_text_section even
11049 when function_section () isn't text_section.
11050 (prune_unused_types): Don't walk arange_table.
11051 (dwarf2out_finish): Don't needlessly test
11052 flag_reorder_blocks_and_partition when testing cold_text_section_used.
11053 If info_section_emitted, call size_of_aranges and if it indicates
11054 non-empty .debug_aranges, call output_aranges with the computed
11055 size. Stop using removed dw_fde_struct fields, use
11056 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
11057 for second.
11058
11059 PR debug/48203
11060 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
11061 create ENTRY_VALUE if incoming or address of incoming's MEM
11062 is a hard REG.
11063 * dwarf2out.c (mem_loc_descriptor): Don't emit
11064 DW_OP_GNU_entry_value of DW_OP_fbreg.
11065 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
11066 on ENTRY_VALUE is able to find the canonical parameter VALUE.
11067 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
11068 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
11069 ENTRY_VALUE_EXPs.
11070 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
11071 is a REG_P or MEM_P with REG_P address, compute hash directly
11072 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
11073 (preserve_only_constants): Don't clear VALUES forwaring
11074 ENTRY_VALUE to some other VALUE.
11075
11076 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
11077
11078 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
11079 instead of GEN_INT.
11080
11081 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11082
11083 * cfgexpand.c (expand_gimple_cond): Always set the source location and
11084 block before expanding the statement.
11085 (expand_gimple_stmt_1): Likewise. Set them here...
11086 (expand_gimple_stmt): ...and not here. Tidy.
11087 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
11088 unknown.
11089
11090 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11091
11092 * Makefile.in: New rule for cprop.o.
11093 * gcse.c: Move constant/copy propagation to cprop.c.
11094 (compute_local_properties): Only handle expression tables.
11095 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
11096 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
11097 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
11098 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
11099 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
11100 compute_cprop_data, find_used_regs, try_replace_reg,
11101 find_avail_set, cprop_jump, constprop_register, cprop_insn,
11102 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
11103 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
11104 find_bypass_set, reg_killed_on_edge, bypass_block,
11105 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
11106 execute_rtl_cprop, pass_rtl_cprop): Move to...
11107 * cprop.c: ...here. New file, constant/copy propagation for RTL
11108 moved from gcse.c to here with minor cleanups in duplicated code.
11109
11110 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
11111
11112 * config/i386/i386.c (flag_opts): Fix a typo in
11113 -mavx256-split-unaligned-store.
11114
11115 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11116
11117 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11118 LIBCALL_VALUE): Remove macros.
11119 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11120 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11121 (h8300_function_value, h8300_libcall_value,
11122 h8300_function_value_regno_p): New functions.
11123
11124 2011-03-28 Anatoly Sokolov <aesok@post.ru>
11125
11126 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
11127
11128 2011-03-28 Jeff Law <law@redhat.com>
11129
11130 * tree-ssa-threadupdate.c (redirect_edges): Call
11131 create_edge_and_update_destination_phis as needed.
11132 (create_edge_and_update_destination_phis): Accept new BB argument.
11133 All callers updated.
11134 (thread_block): Do not update the profile when threading around
11135 intermediate blocks.
11136 (thread_single_edge): Likewise.
11137 (determine_bb_domination_status): If BB is not a successor of the
11138 loop header, return NONDOMINATING.
11139 (register_jump_thread): Note when we register a jump thread around
11140 an intermediate block.
11141 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
11142 (thread_across_edge): Use it.
11143
11144 2011-03-28 Tristan Gingold <gingold@adacore.com>
11145
11146 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
11147 when for_return is 2.
11148
11149 2011-03-28 Jeff Law <law@redhat.com>
11150
11151 * var-tracking.c (canonicalize_values_mark): Delete unused
11152 lhs assignment.
11153 (canonicalize_values_star, set_variable_part): Likewise.
11154 (clobber_variable_part, delete_variable_part): Likewise.
11155
11156 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
11157
11158 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
11159
11160 2011-03-28 Martin Jambor <mjambor@suse.cz>
11161
11162 * tree-inline.c (expand_call_inline): Do not check that destination
11163 node is analyzed.
11164 (optimize_inline_calls): Assert that destination node is analyzed.
11165 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
11166 not call tree_lowering_passes.
11167 * cgraph.h (cgraph_analyze_function): Declare.
11168 * cgraphunit.c (cgraph_analyze_function): Make public.
11169
11170 2011-03-28 Joseph Myers <joseph@codesourcery.com>
11171
11172 * config/sparc/sparc-opts.h: New.
11173 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
11174 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
11175 (sparc_option_override): Store processor_type enumeration rather
11176 than string in cpu_default. Remove name and enumeration from
11177 cpu_table. Directly default -mcpu then default -mtune from -mcpu
11178 without using sparc_select. Use target_flags_explicit instead of
11179 fpu_option_set.
11180 * config/sparc/sparc.h (enum processor_type): Move to
11181 sparc-opts.h.
11182 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
11183 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
11184 HeaderInclude entry.
11185 (mcpu=, mtune=): Use Var and Enum.
11186 (sparc_processor_type): New Enum and EnumValue entries.
11187
11188 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11189 Iain Sandoe <iains@gcc.gnu.org>
11190
11191 PR target/48245
11192 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
11193
11194 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
11195
11196 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
11197 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
11198 Insert new statements at it in lieu of STMT.
11199 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
11200 * tree-vect-stmts.c (vectorizable_store): Likewise.
11201 (vectorizable_load): Likewise.
11202
11203 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
11204
11205 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
11206 (divtf3): Ditto.
11207 (multf3): Ditto.
11208 (subtf3): Ditto.
11209
11210 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11211
11212 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
11213 unaligned 256bit load/store.
11214 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
11215 (*avx_movdqu<avxmodesuffix>): Likewise.
11216
11217 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11218
11219 PR target/48288
11220 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
11221 * config/pa/pa.md (iordi3): Use new predicate in expander.
11222 (iorsi3): Likewise.
11223
11224 2011-03-27 Anatoly Sokolov <aesok@post.ru>
11225
11226 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
11227 FUNCTION_VALUE_REGNO_P): Remove macros.
11228 * config/mips/mips-protos.h (mips_function_value): Remove.
11229 * config/mips/mips.c (mips_function_value): Rename to...
11230 (mips_function_value_1): ... this. Make static. Handle receiving
11231 the function type in 'fn_decl_or_type' argument.
11232 (mips_function_value, mips_libcall_value,
11233 mips_function_value_regno_p): New function.
11234 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11235 TARGET_FUNCTION_VALUE_REGNO_P): Define.
11236
11237 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
11238
11239 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
11240 and -mavx256-split-unaligned-store.
11241 (ix86_option_override_internal): Split 32-byte AVX unaligned
11242 load/store by default.
11243 (ix86_avx256_split_vector_move_misalign): New.
11244 (ix86_expand_vector_move_misalign): Use it.
11245
11246 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
11247 -mavx256-split-unaligned-store.
11248
11249 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
11250 256bit load/store. Generate unaligned store on misaligned memory
11251 operand.
11252 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
11253 256bit load/store.
11254 (*avx_movdqu<avxmodesuffix>): Likewise.
11255
11256 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
11257 -mavx256-split-unaligned-store.
11258
11259 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11260
11261 PR target/38598
11262 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
11263 Update commentary.
11264
11265 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
11266
11267 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
11268 opno arguments with an expand_operand. Use create_input_operand.
11269 (mips_prepare_builtin_target): Delete.
11270 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
11271 functions.
11272 (mips_expand_builtin_direct): Use create_output_operand and
11273 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
11274 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
11275 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
11276
11277 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
11278
11279 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
11280 function.
11281 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
11282
11283 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
11284
11285 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
11286 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
11287 basic blocks and call commit_edge_insertions directly.
11288 (fixup_abnormal_edges): Move from here to...
11289 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
11290 on the edges and return whether some have actually been inserted.
11291 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
11292 compensation code.
11293
11294 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
11295
11296 PR rtl-optimization/48144
11297 * sel-sched-ir.c (merge_history_vect): Factor out from ...
11298 (merge_expr_data): ... here.
11299 (av_set_intersect): Rename to av_set_code_motion_filter.
11300 Update all callers. Call merge_history_vect when an expression
11301 is found in both sets.
11302 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
11303
11304 2011-03-26 Alan Modra <amodra@gmail.com>
11305
11306 * config/rs6000/predicates.md (word_offset_memref_op): Handle
11307 cmodel medium addresses.
11308 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
11309 64-bit gpr loads and stores.
11310 (rs6000_secondary_reload_ppc64): New function.
11311 * config/rs6000/rs6000-protos.h: Declare it.
11312 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
11313
11314 2011-03-26 Alan Modra <amodra@gmail.com>
11315
11316 PR target/47487
11317 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
11318 GNU Go in traceback table.
11319
11320 2011-03-25 Richard Henderson <rth@redhat.com>
11321
11322 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
11323 if there are exactly 6 operands.
11324 (set_storage_via_setmem): Similarly.
11325
11326 2011-03-25 Kai Tietz <ktietz@redhat.com>
11327
11328 * collect2.c (write_c_file_stat): Handle backslash
11329 as right-hand directory separator.
11330 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
11331 checking just for slash.
11332 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
11333 instead of checking for trailing slash.
11334 * gcc.c (record_temp_file): Use filename_cmp instead
11335 of strcmp.
11336 (do_spec_1): Likewise.
11337 (replace_outfile_spec_function): Likewise.
11338 (is_directory): Use filename_ncmp instead of strncmp.
11339 (print_multilib_info): Likewise.
11340 * gcov.c (find_source): Use filename_cmp instead
11341 instead of strcmp.
11342 (make_gcov_file_name): Fix order of slash/backslash
11343 checks.
11344 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
11345 (add_standard_paths): Likewise.
11346 * mips-tfile.c (saber_stop): Handle backslash.
11347 * prefix.c (update_path): Use filename_ncmp instead of
11348 strncmp.
11349 * profile.c (output_location): Use filename_cmp instead
11350 of strcmp.
11351 * read-md.c (handle_toplevel_file): Handle backslash.
11352 * tlink.c (frob_extension): Likewise.
11353 * tree-cfg.c (same_line_p): Use filename_cmp instead of
11354 strcmp.
11355 * tree-dump.c (dequeue_and_dump): Handle backslash.
11356 * tree.c (get_file_function_name): Likewise.
11357 * gengtype.c (read_input_list): Likewise.
11358 (get_file_realbasename): Likewise.
11359 (get_output_file_with_visibility): Use filename_cmp
11360 instead of strcmp.
11361
11362 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
11363
11364 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
11365 case to VFPv1.
11366
11367 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11368
11369 * fold-const.c (expr_location_or): New function.
11370 (fold_truth_not_expr): Call it.
11371
11372 2011-03-25 Jeff Law <law@redhat.com>
11373
11374 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
11375 va_end.
11376 * c-family/c-common.c (def_fn_type): Likewise.
11377 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
11378 * emit-rtl.c (gen_rtvec): Likewise.
11379 * lto/lto-lang.c (def_fn_type): Likewise.
11380
11381 2011-03-25 Richard Guenther <rguenther@suse.de>
11382
11383 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
11384 also generate copies.
11385 (fini_copy_prop): Handle constant values properly.
11386
11387 2011-03-25 Jakub Jelinek <jakub@redhat.com>
11388
11389 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
11390 mode size instead of bitsize with DWARF2_ADDR_SIZE.
11391 (hash_loc_operands, compare_loc_operands): Handle
11392 DW_OP_GNU_entry_value.
11393
11394 2011-03-25 Kai Tietz <ktietz@redhat.com>
11395
11396 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
11397 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
11398 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
11399 comment and use macro TARGET_64BIT_MS_ABI instead.
11400 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
11401 and change default behavior for 32-bit MS_ABI.
11402 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
11403 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
11404 32-bit, too.
11405 (ix86_cfun_abi): Likewise.
11406 (ix86_maybe_switch_abi): Adjust comment.
11407 (init_cumulative_args): Check for bit-ness in MS_ABI case.
11408 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
11409 instead of checking for SYSV_ABI.
11410 (ix86_nsaved_sseregs): Likewise.
11411 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
11412 to 16 bytes.
11413 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
11414 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
11415 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
11416 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
11417 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
11418
11419 2011-03-25 Richard Guenther <rguenther@suse.de>
11420
11421 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
11422 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11423 (verify_gimple): Remove.
11424 * tree-cfg.c (verify_gimple_call): Merge verification
11425 from verify_stmts.
11426 (verify_gimple_phi): Merge verification from verify_stmts.
11427 (verify_gimple_label): New function.
11428 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
11429 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
11430 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
11431 (verify_stmts): Rename to verify_gimple_in_cfg.
11432 (verify_gimple_in_cfg): New function.
11433 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
11434 * tree-ssa.c (verify_ssa): Likewise.
11435 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
11436
11437 2011-03-25 Richard Guenther <rguenther@suse.de>
11438
11439 * passes.c (init_optimization_passes): Add FRE pass after
11440 early SRA.
11441
11442 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
11443 Andrew Stubbs <ams@codesourcery.com>
11444
11445 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
11446 for Cortex-A8.
11447 (arm_movdi_vfp_cortexa8): New pattern.
11448 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
11449 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
11450 instructions when tuning for Cortex-A8. Set attribute "arch".
11451 * config/arm/arm.md: Move include arm-tune.md up a bit.
11452 (define_attr "arch"): Add "onlya8" and "nota8" values.
11453 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
11454
11455 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
11456
11457 PR bootstrap/48282
11458 Revert:
11459 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11460
11461 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11462 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11463 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11464 * passes.c (init_optimization_passes): Move
11465 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11466
11467 2011-03-25 Kai Tietz <ktietz@redhat.com>
11468
11469 * c-typeck.c (comptypes_internal): Replace target
11470 hook call of comp_type_attributes by version in tree.c file.
11471 * gimple.c (gimple_types_compatible_p_1): Likewise.
11472 * tree-ssa.c (useless_type_conversion_p): Likewise.
11473 * tree.c (build_type_attribute_qual_variant): Likewise.
11474 (attribute_value_equal): New static helper function.
11475 (comp_type_attributes): New function.
11476 (merge_attributes): Use attribute_value_equal for comparison.
11477 (attribute_list_contained): Likewise.
11478 * tree.h (comp_type_attributes): New prototype.
11479
11480 2011-03-25 Richard Guenther <rguenther@suse.de>
11481
11482 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
11483 of complex types at -O0.
11484 (verify_gimple_assign_binary): Likewise.
11485 (verify_gimple_assign_ternary): Likewise.
11486
11487 2011-03-24 Mark Wielaard <mjw@redhat.com>
11488
11489 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
11490 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
11491
11492 2011-03-24 Mark Wielaard <mjw@redhat.com>
11493
11494 PR debug/48041
11495 * dwarf2out.c (output_abbrev_section): Only write table when
11496 abbrev_die_table_in_use > 1.
11497
11498 2011-02-24 Richard Henderson <rth@redhat.com>
11499
11500 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
11501 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
11502 (alpha_expand_unaligned_load_words): Use extql.
11503 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
11504 (emit_insxl): Handle all modes for consistency.
11505
11506 2011-02-24 Richard Henderson <rth@redhat.com>
11507
11508 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
11509 (alpha_expand_unaligned_load): Likewise.
11510 (alpha_expand_unaligned_store): Likewise.
11511 (alpha_expand_unaligned_load_words): Likewise.
11512 (alpha_expand_unaligned_store_words): Likewise.
11513 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
11514 (alpha_split_lock_test_and_set_12): Likewise.
11515 (print_operand, alpha_fold_builtin_extxx): Likewise.
11516 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
11517 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
11518 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
11519 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
11520 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
11521 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
11522 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
11523 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
11524 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
11525 (extwl, extll, extql): Similarly.
11526 (inswh, inslh, insqh): Similarly.
11527 (mskbl, mskwl, mskll, mskql): Similarly.
11528 (mskwh, msklh, mskqh): Similarly.
11529
11530 2011-02-24 Richard Henderson <rth@redhat.com>
11531
11532 * config/alpha/alpha.md (attribute isa): Add er, ner.
11533 (attribute enabled): Handle them.
11534 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
11535
11536 2011-02-24 Richard Henderson <rth@redhat.com>
11537
11538 * config/alpha/alpha.md (attribute isa): Add vms.
11539 (attribute enabled): Handle it.
11540 (*movsf): Merge *movsf_{nofix,fix,nofp}.
11541 (*movdf): Merge *movdf_{nofix,fix,nofp}.
11542 (*movtf): Rename from *movtf_internal for consistency.
11543 (*movsi): Merge with *movsi_nt_vms.
11544 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
11545 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
11546 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
11547 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
11548
11549 2011-02-24 Richard Henderson <rth@redhat.com>
11550
11551 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
11552 (extendqisi2, extendhisi2): Likewise.
11553 (extendqidi2): Simplify BWX/non-BWX expansions.
11554 (extendhidi2): Similarly.
11555
11556 2011-02-24 Richard Henderson <rth@redhat.com>
11557
11558 * config/alpha/alpha.md (attribute isa): New.
11559 (attribute enabled): New.
11560 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
11561 (zero_extendqisi2, zero_extendqidi2): Similarly.
11562 (zero_extendhisi2, zero_extendhidi2): Similarly.
11563 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
11564
11565 2011-02-24 Richard Henderson <rth@redhat.com>
11566
11567 * config/alpha/predicates.md (input_operand): Revert last change;
11568 update comment to mention 32-bit VMS rather than Windows.
11569
11570 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11571
11572 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
11573 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
11574 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
11575 * passes.c (init_optimization_passes): Move
11576 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
11577
11578 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11579
11580 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
11581
11582 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11583
11584 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
11585 correctly.
11586
11587 2011-03-24 Jakub Jelinek <jakub@redhat.com>
11588
11589 PR debug/48204
11590 * simplify-rtx.c (simplify_const_unary_operation): Call
11591 real_convert when changing mode class with FLOAT_EXTEND.
11592
11593 2011-03-24 Nick Clifton <nickc@redhat.com>
11594
11595 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
11596 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11597 * config/rx/rx.c (rx_option_override): Set align_jumps,
11598 align_loops and align_labels if not set by the user.
11599 (rx_align_for_label): New function.
11600 (rx_max_skip_for_label): New function.
11601 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
11602 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
11603 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
11604 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
11605 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
11606
11607 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11608
11609 PR rtl-optimization/48263
11610 * optabs.c (expand_binop_directly): Reinstate convert_modes code
11611 and original commutative_p handling. Use maybe_gen_insn.
11612
11613 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11614
11615 * reload.c (find_reloads_subreg_address): Add address_reloaded
11616 parameter and return true there if the full address has been
11617 reloaded.
11618 (find_reloads_toplev): Pass address_reloaded flag.
11619 (find_reloads_address_1): Don't use address_reloaded parameter.
11620
11621 2011-03-24 Jeff Law <law@redhat.com>
11622
11623 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
11624 unused variable "ann".
11625 (remove_unused_locals): Likewise.
11626
11627 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
11628 statement.
11629
11630 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
11631 after it is freed.
11632
11633 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11634
11635 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
11636 for invalid symbolic addresses.
11637 (s390_secondary_reload): Don't use s390_check_symref_alignment for
11638 larl operands.
11639
11640 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11641
11642 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
11643 the argument in calls to fold_truth_not_expr.
11644
11645 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11646
11647 * tree.c (record_node_allocation_statistics): New function.
11648 (make_node_stat, copy_node_stat, build_string): Call it.
11649 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
11650 (build1_stat, build_omp_clause): Likewise.
11651
11652 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11653
11654 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
11655 last commit.
11656
11657 2011-03-24 Richard Guenther <rguenther@suse.de>
11658
11659 PR tree-optimization/48271
11660 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
11661 blocks that still exist.
11662
11663 2011-03-24 Richard Guenther <rguenther@suse.de>
11664
11665 PR tree-optimization/48270
11666 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
11667 not free datarefs before ddrs.
11668
11669 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
11670
11671 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
11672 from the address built for a reference with variable offset.
11673
11674 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
11675
11676 PR target/48237
11677 * config/i386/i386.md (*movdf_internal_rex64): Do not split
11678 alternatives that can be handled with movq or movabsq insn.
11679 (*movdf_internal): Disable for !TARGET_64BIT.
11680 (*movdf_internal_nointeger): Ditto.
11681 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
11682
11683 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
11684
11685 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11686 (FUNCTION_ARG_ADVANCE): Likewise.
11687 * tm.texi.in: Change references to them to hook references.
11688 * tm.texi: Regenerate.
11689 * targhooks.c (default_function_arg): Eliminate check for target macro.
11690 (default_function_incoming_arg): Likewise.
11691 (default_function_arg_advance): Likewise.
11692 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11693 (function_arg_advance): Likewise.
11694 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11695
11696 2011-03-24 Richard Guenther <rguenther@suse.de>
11697
11698 PR middle-end/48269
11699 * tree-object-size.c (addr_object_size): Do not double-account
11700 for MEM_REF offsets.
11701
11702 2011-03-24 Diego Novillo <dnovillo@google.com>
11703
11704 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
11705 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
11706 (lto_input_data_block): Move from lto-opts.c. Make extern.
11707 Update all users.
11708 (lto_input_string): Rename from input_string. Make extern.
11709 Update all users.
11710 * lto-streamer-out.c (lto_output_string_with_length): Rename from
11711 output_string_with_length.
11712 Output 0 to indicate a non-NULL string. Update all callers to
11713 not emit 0.
11714 (lto_output_string): Rename from output_string. Make extern.
11715 Update all users.
11716 (lto_output_decl_state_streams): Make extern.
11717 (lto_output_decl_state_refs): Make extern.
11718 * lto-streamer.h (lto_input_string): Declare.
11719 (lto_input_data_block): Declare.
11720 (lto_output_string): Declare.
11721 (lto_output_string_with_length): Declare.
11722 (lto_output_decl_state_streams): Declare.
11723 (lto_output_decl_state_refs): Declare.
11724
11725 2011-03-24 Richard Guenther <rguenther@suse.de>
11726
11727 PR tree-optimization/46562
11728 * tree.c (build_invariant_address): New function.
11729 * tree.h (build_invariant_address): Declare.
11730 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
11731 a renamed function moved ...
11732 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
11733 Take valueization callback parameter.
11734 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
11735 * gimple-fold.h: New file.
11736 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
11737 (ccp_fold, fold_const_aggregate_ref,
11738 fold_ctor_reference, fold_nonarray_ctor_reference,
11739 fold_array_ctor_reference, fold_string_cst_ctor_reference,
11740 get_base_constructor): Move ...
11741 * gimple-fold.c: ... here.
11742 (gimple_fold_stmt_to_constant_1): New function
11743 split out from ccp_fold. Take a valueization callback parameter.
11744 Valueize all operands.
11745 (gimple_fold_stmt_to_constant): New wrapper function.
11746 (fold_const_aggregate_ref_1): New function split out from
11747 fold_const_aggregate_ref. Take a valueization callback parameter.
11748 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11749 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11750 invariant POINTER_PLUS_EXPRs to invariant form.
11751 (vn_valueize): New function.
11752 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11753 * tree-vrp.c (vrp_valueize): New function.
11754 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11755 to fold statements to constants.
11756 * tree-ssa-pre.c (eliminate): Properly guard propagation of
11757 function declarations.
11758 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11759 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11760
11761 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
11762
11763 * config/h8300/predicates.md (jump_address_operand): Fix register
11764 mode check.
11765
11766 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
11767
11768 * doc/invoke.texi (max-stores-to-sink): Document.
11769 * params.h (MAX_STORES_TO_SINK): Define.
11770 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11771 if either vectorization or if-conversion is disabled.
11772 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11773 tree-vect-data-refs.c vect_equal_offsets.
11774 (dr_equal_offsets_p): New function.
11775 (find_data_references_in_bb): Remove static.
11776 * tree-data-ref.h (find_data_references_in_bb): Declare.
11777 (dr_equal_offsets_p): Likewise.
11778 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11779 (vect_drs_dependent_in_basic_block): Update calls to
11780 vect_equal_offsets.
11781 (vect_check_interleaving): Likewise.
11782 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11783 (cond_if_else_store_replacement): Rename to...
11784 (cond_if_else_store_replacement_1): ... this. Change arguments and
11785 documentation.
11786 (cond_if_else_store_replacement): New function.
11787 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11788 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11789
11790 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
11791
11792 PR target/46934
11793 * config/arm/arm.md (casesi): Use the gen_int_mode() function
11794 to subtract lower bound instead of GEN_INT().
11795
11796 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
11797
11798 PR other/48179
11799 PR other/48221
11800 PR other/48234
11801 * doc/extend.texi (Alignment): Move section to match order in TOC.
11802 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11803 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11804
11805 2011-03-23 Jeff Law <law@redhat.com>
11806
11807 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11808 before removing the edge.
11809
11810 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11811 it may have been freed by redirect_branch_edge or
11812 redirect_edge_succ_nodup.
11813
11814 2011-03-23 Richard Guenther <rguenther@suse.de>
11815
11816 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11817 (check_va_list_escapes): Likewise.
11818 (check_all_va_list_escapes): Likewise.
11819
11820 2011-03-23 Richard Guenther <rguenther@suse.de>
11821
11822 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11823 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11824 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11825 (alias.o): Likewise.
11826 (ipa-type-escape.o): Remove.
11827 (ipa-struct-reorg.o): Likewise.
11828 (GTFILES): Remove ipa-struct-reorg.c.
11829 * alias.c: Do not include ipa-type-escape.h.
11830 * tree-ssa-alias.c: Likewise.
11831 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11832 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11833 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11834 and ipa-type-escape passes.
11835 * tree-pass.h (pass_ipa_type_escape): Remove.
11836 (pass_ipa_struct_reorg): Likewise.
11837 * ipa-struct-reorg.h: Remove.
11838 * ipa-struct-reorg.c: Likewise.
11839 * ipa-type-escape.h: Likewise.
11840 * ipa-type-escape.c: Likewise.
11841 * doc/invoke.texi (-fipa-struct-reorg): Remove.
11842 (--param struct-reorg-cold-struct-ratio): Likewise.
11843 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11844 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11845 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11846
11847 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11848
11849 * config/s390/2084.md: Enable all insn reservations also for z9_ec
11850 cpu attribute value.
11851 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11852 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11853 * config/s390/s390.c (processor_flags_table): New constant array.
11854 (s390_handle_arch_option): Remove.
11855 (s390_handle_option): Remove s390_handle_arch_option invocations
11856 and OPT_mwarn_framesize_ handling.
11857 (s390_option_override): Remove s390_handle_arch_option invocation.
11858 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11859 warnings.
11860 * config/s390/s390.md (cpu attribute): Add z9_ec value.
11861 * config/s390/s390.opt (s390_tune, s390_arch)
11862 (march=): Replace s390_arch_option enum and values with
11863 processor_type. Set variable name to s390_arch. Set
11864 initialization value.
11865 (mtune=): Replace s390_arch_option with processor_type. Set
11866 variable name to s390_tune. Set initialization value.
11867
11868 2011-03-23 Julian Brown <julian@codesourcery.com>
11869
11870 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11871 accesses which are not naturally aligned.
11872
11873 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11874
11875 PR target/47553
11876 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11877
11878 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
11879
11880 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11881 parameter from "int" to "enum insn_code".
11882 (expand_operand_type): New enum.
11883 (expand_operand): New structure.
11884 (create_expand_operand): New function.
11885 (create_fixed_operand, create_output_operand): Likewise
11886 (create_input_operand, create_convert_operand_to): Likewise.
11887 (create_convert_operand_from, create_address_operand): Likewise.
11888 (create_integer_operand): Likewise.
11889 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11890 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11891 (expand_insn, expand_jump_insn): Likewise.
11892 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11893 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11894 (expand_movstr, expand_builtin___clear_cache): Likewise.
11895 (expand_builtin_lock_release): Likewise.
11896 * explow.c (allocate_dynamic_stack_space): Likewise.
11897 (probe_stack_range): Likewise. Allow check_stack to FAIL,
11898 and use the default handling in that case.
11899 * expmed.c (check_predicate_volatile_ok): Delete.
11900 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11901 (emit_cstore): Likewise.
11902 * expr.c (emit_block_move_via_movmem): Likewise.
11903 (set_storage_via_setmem, expand_assignment): Likewise.
11904 (emit_storent_insn, try_casesi): Likewise.
11905 (emit_single_push_insn): Likewise. Allow the expansion to fail.
11906 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11907 (expand_vec_shift_expr, expand_binop_directly): Likewise.
11908 (expand_twoval_unop, expand_twoval_binop): Likewise.
11909 (expand_unop_direct, emit_indirect_jump): Likewise.
11910 (emit_conditional_move, vector_compare_rtx): Likewise.
11911 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11912 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11913 (expand_sync_lock_test_and_set): Likewise.
11914 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
11915 (emit_unop_insn): Likewise.
11916 (expand_copysign_absneg): Change icode to an insn_code.
11917 (create_convert_operand_from_type): New function.
11918 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11919 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11920 (expand_insn, expand_jump_insn): Likewise.
11921 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11922 than const_int_operand for operand 2.
11923
11924 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11925
11926 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11927 if possible.
11928
11929 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11930
11931 * emit-rtl.c (emit_pattern_before_noloc): New function.
11932 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11933 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11934 (emit_pattern_after_noloc): New function.
11935 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11936 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11937
11938 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
11939
11940 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11941 (__ffsDI2): Likewise.
11942
11943 2011-03-22 Richard Henderson <rth@redhat.com>
11944
11945 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11946 of !TARGET_ABI_OPEN_VMS.
11947 (alpha_trampoline_init, alpha_start_function): Likewise.
11948 (alpha_expand_epilogue, alpha_file_start): Likewise.
11949 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11950 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11951 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11952 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11953 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11954
11955 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11956
11957 * config/s390/s390-opts.h: New.
11958 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11959 s390_arch_flags, s390_warn_framesize, s390_stack_size,
11960 s390_stack_guard): Remove.
11961 (s390_handle_arch_option): Return void. Take enum
11962 s390_arch_option value instead of string and searching array.
11963 (s390_handle_option): Don't assert that global structures are in
11964 use. Access variables via opts pointer. Use error_at. Don't use
11965 sscanf for -mstack-guard= or -mstack-size=. Update call to
11966 s390_handle_arch_option.
11967 (s390_option_override): Update call to s390_handle_arch_option.
11968 (s390_emit_prologue): Use %d format for s390_stack_size in
11969 diagnostic. Use %wd for HOST_WIDE_INT.
11970 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11971 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11972 * config/s390/s390.opt (config/s390/s390-opts.h): New
11973 HeaderInclude entry.
11974 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11975 s390_arch_flags, s390_warn_framesize): New Variable entries.
11976 (s390_arch_option): New Enum and EnumValue entries.
11977 (march=): Use Enum instead of Var.
11978 (mstack-guard=, mstack-size=): Use UInteger and Var.
11979 (mtune=): Use Enum.
11980
11981 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11982
11983 * config/score/score.c (score_handle_option): Don't assert that
11984 global structures are in use. Access target_flags via opts
11985 pointer. Use value of -march= option to determine target_flags
11986 settings.
11987 * config/score/score.opt (march=): Use Enum.
11988 (score_arch): New Enum and EnumValue entries.
11989
11990 2011-03-22 Joseph Myers <joseph@codesourcery.com>
11991
11992 * config/mep/mep.c (option_mtiny_specified): Remove.
11993 (mep_option_override): Move register handling for -mivc2 from
11994 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
11995 instead of option_mtiny_specified.
11996 (mep_handle_option): Access target_flags via opts pointer. Don't
11997 assert that global structures are in use. Defer part of -mivc2
11998 handling and move it to mep_option_override.
11999 * config/mep/mep.opt (IVC2): New Mask entry.
12000 (mivc2): Use Var and Defer instead of Mask.
12001
12002 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12003
12004 * config/v850/v850-opts.h: New.
12005 * config/v850/v850.c (small_memory): Replace with
12006 small_memory_physical_max array. Make that array static const.
12007 (v850_handle_memory_option): Take integer value of argument. Take
12008 gcc_options pointer, option text and location. Return void.
12009 Update for changes to small memory structures.
12010 (v850_handle_option): Access target_flags via opts pointer. Don't
12011 assert that global structures are in use. Update calls to
12012 v850_handle_memory_option.
12013 (v850_encode_data_area): Update references to small memory settings.
12014 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
12015 (enum small_memory_type): Move to v850-opts.h.
12016 * config/v850/v850.opt (config/v850/v850-opts.h): New
12017 HeaderInclude entry.
12018 (small_memory_max): New Variable entry.
12019 (msda): Replace by pair of options msda= and msda-. Use UInteger.
12020 (mtda, mzda): Likewise.
12021
12022 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12023
12024 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
12025 pointer. Don't assert that global structures are in use.
12026
12027 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12028
12029 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
12030 via opts pointer. Don't assert that global structures are in use.
12031
12032 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12033
12034 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
12035 (munix=93): Use Var.
12036 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
12037 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
12038 * config/pa/pa-opts.h: New.
12039 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
12040 (pa_handle_option): Don't assert that global structures are in
12041 use. Access target_flags via opts pointer. Don't handle
12042 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
12043 OPT_munix_98 here.
12044 (pa_option_override): Handle deferred OPT_mfixed_range_.
12045
12046 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12047
12048 * config/mn10300/mn10300-opts.h: New.
12049 * config/mn10300/mn10300.c (mn10300_processor,
12050 mn10300_tune_string): Remove.
12051 (mn10300_handle_option): Don't assert that global structures are
12052 in use. Access mn10300_processor via opts pointer. Don't handle
12053 OPT_mtune_ here.
12054 * config/mn10300/mn10300.h (enum processor_type): Move to
12055 mn10300-opts.h.
12056 (mn10300_processor): Remove.
12057 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
12058 HeaderInclude entry.
12059 (mn10300_processor): New Variable entry.
12060 (mtune=): Use Var.
12061
12062 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12063
12064 * config/microblaze/microblaze.c: Don't include opts.h.
12065 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
12066 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
12067 (mno-clearbss): Use Var and Warn.
12068
12069 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12070
12071 * config/m32r/m32r-opts.h: New.
12072 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
12073 (m32r_handle_option): Don't assert that global structures are in
12074 use. Access target_flags and m32r_cache_flush_func via opts
12075 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
12076 OPT_mno_flush_trap here.
12077 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
12078 include of m32r-opts.h.
12079 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
12080 HeaderInclude entry.
12081 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
12082 (mmodel=): Use Enum and Var.
12083 (m32r_model): New Enum and EnumValue entries.
12084 (mno-flush-trap): Use Var.
12085 (msdata=): Use Enum and Var.
12086 (m32r_sdata): New Enum and EnumValue entries.
12087
12088 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12089
12090 * config/m32c/m32c.c: Don't include opts.h.
12091 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
12092 m32c_handle_option): Remove.
12093 (m32c_option_override): Check global_options_set.x_target_memregs
12094 instead of target_memregs_set.
12095 * config/m32c/m32c.h (target_memregs): Remove.
12096 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
12097 variable.
12098
12099 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12100
12101 * config/iq2000/iq2000-opts.h: New.
12102 * config/iq2000/iq2000.c: Don't include opts.h.
12103 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
12104 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
12105 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
12106 HeaderInclude entry.
12107 (iq2000_tune): New Variable entry.
12108 (march=): Add comment. Use Enum.
12109 (iq2000_arch): New Enum and EnumValue entries.
12110 (mcpu=): Use Enum and Var.
12111 (iq2000_tune): New Enum and EnumValue entries.
12112
12113 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12114
12115 * config/ia64/ia64-opts.h: New.
12116 * config/ia64/ia64.c (ia64_tune): Remove.
12117 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
12118 here. Use error_at.
12119 (ia64_option_override): Handle deferred OPT_mfixed_range_.
12120 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
12121 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
12122 HeaderInclude entry.
12123 (ia64_tune): New Variable entry.
12124 (mfixed-range=): Use Defer and Var.
12125 (mtune=): Use Enum and Var.
12126 (ia64_tune): New Enum and EnumValue entries.
12127
12128 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12129
12130 * config/frv/frv-opts.h: New.
12131 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
12132 frv-opts.h.
12133 (frv_cpu_type): Remove.
12134 * config/frv/frv.c: Don't include opts.h.
12135 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
12136 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
12137 (frv_cpu_type): New Variable entry.
12138 (frv_cpu): New Enum and EnumValue entries.
12139
12140 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12141
12142 * config/cris/cris.c (cris_handle_option): Access target_flags via
12143 opts pointer. Don't assert that global structures are in use.
12144 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
12145 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
12146
12147 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12148
12149 * config/bfin/bfin-opts.h: New.
12150 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
12151 bfin_si_revision, bfin_workarounds): Remove.
12152 (bfin_cpus): Make static const.
12153 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
12154 not bfin_lib_id_given.
12155 (bfin_handle_option): Don't set bfin_lib_id_given. Access
12156 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
12157 pointer. Use error_at. Don't assert that global structures are in use.
12158 * config/bfin/bfin.h: Include bfin-opts.h.
12159 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
12160 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
12161 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
12162 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
12163 entries.
12164
12165 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12166
12167 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
12168 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
12169 or -msoft-float here.
12170 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
12171 -msoft-float and -mhard-float.
12172 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
12173 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12174 msoft-float.
12175 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
12176 -msoft-float.
12177 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
12178 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
12179 not mhard-float.
12180 (LIBGCC_SPEC): Don't handle -msoft-float.
12181 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
12182 -mhard-float.
12183 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
12184 msoft-float.
12185 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
12186 -mfloat-abi=*, not -msoft-float and -mhard-float.
12187 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
12188 -msoft-float.
12189 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
12190 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
12191 mhard-float and msoft-float.
12192 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
12193 mfloat-abi=soft in comments, not mhard-float and msoft-float.
12194 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
12195 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
12196 mhard-float.
12197 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
12198 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
12199 msoft-float.
12200 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
12201 not mhard-float.
12202 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
12203 not msoft-float.
12204
12205 2011-03-22 Richard Henderson <rth@redhat.com>
12206
12207 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
12208 TARGET_ABI_WINDOWS_NT.
12209 (alpha_output_function_end_prologue): Likewise.
12210 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
12211 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
12212 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
12213 (trap, *movsi_nt_vms): Likewise.
12214 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
12215 (*tablejump_osf_nt_internal): Remove.
12216 * config/alpha/predicates.md (input_operand): Only test Pmode.
12217
12218 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12219
12220 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
12221 via opts pointer. Use error_at. Don't assert that global
12222 structures are in use.
12223
12224 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12225
12226 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
12227 (ix86_handle_option): Access ix86_isa_flags and
12228 ix86_isa_flags_explicit via opts pointer. Don't assert that
12229 global structures are in use.
12230 (ix86_function_specific_save, ix86_function_specific_restore):
12231 Update ix86_isa_flags_explicit field name.
12232 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
12233 (ix86_isa_flags_explicit): Rename TargetSave entry to
12234 x_ix86_isa_flags_explicit.
12235
12236 2011-03-22 Richard Henderson <rth@redhat.com>
12237
12238 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
12239 (alpha_option_override, direct_return): Likewise.
12240 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
12241 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
12242 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
12243 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
12244 (alpha_expand_epilogue, alpha_end_function): Likewise.
12245 (alpha_init_libfuncs): Likewise.
12246 (struct machine_function): Remove unicosmk members.
12247 (print_operand) ['t']: Remove.
12248 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
12249 unicosmk_output_module_name, unicosmk_output_common,
12250 current_section_align, unicosmk_output_text_section_asm_op,
12251 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
12252 unicosmk_section_type_flags, unicosmk_unique_section,
12253 unicosmk_asm_named_section, unicosmk_insert_attributes,
12254 unicosmk_output_align, unicosmk_defer_case_vector,
12255 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
12256 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
12257 unicosmk_output_ssib, unicosmk_add_call_info_word,
12258 unicosmk_extern_head, unicosmk_output_default_externs,
12259 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
12260 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
12261 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
12262 * config/alpha/alpha-protos.h: Update.
12263 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
12264 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
12265 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
12266 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
12267 (*mulsi_se, mulvsi3): Likewise.
12268 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
12269 (*divmodsi_internal, call, call_value, realign): Likewise.
12270 (moddi3, umoddi3): Likewise; remove duplicate expander.
12271 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
12272 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
12273 (*movdi_nofix): Remove r/U alternative.
12274 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
12275 * config/alpha/constraints.md ("U"): Remove.
12276 * config/alpha/predicates.md (call_operand"): Don't test
12277 TARGET_ABI_UNICOSMK.
12278
12279 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12280
12281 * target.def (handle_option): Take gcc_options and
12282 cl_decoded_option pointers and location_t.
12283 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
12284 * doc/tm.texi: Regenerate.
12285 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
12286 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
12287 * lto-opts.c (lto_reissue_options): Generate option structure for
12288 targetm.handle_option call.
12289 * opts.c (target_handle_option): Update call to
12290 targetm.handle_option. Remove assertions about values now passed
12291 down to hook.
12292 * targhooks.c (default_target_handle_option): New.
12293 * targhooks.h (default_target_handle_option): Declare.
12294 * config/alpha/alpha.c: Include opts.h.
12295 (alpha_handle_option): Update to new hook interface.
12296 * config/arm/arm.c: Include opts.h.
12297 (arm_handle_option): Update to new hook interface.
12298 * config/arm/t-arm (arm.o): Update dependencies.
12299 * config/bfin/bfin.c: Include opts.h.
12300 (bfin_handle_option): Update to new hook interface.
12301 * config/cris/cris.c: Include opts.h.
12302 (cris_handle_option): Update to new hook interface.
12303 * config/frv/frv.c: Include opts.h.
12304 (frv_handle_option): Update to new hook interface.
12305 * config/i386/i386.c: Include opts.h.
12306 (ix86_handle_option): Update to new hook interface.
12307 (ix86_valid_target_attribute_inner_p): Generate option structure
12308 for call to ix86_handle_option.
12309 * config/i386/t-i386 (i386.o): Update dependencies.
12310 * config/ia64/ia64.c: Include opts.h.
12311 (ia64_handle_option): Update to new hook interface.
12312 * config/ia64/t-ia64 (ia64.o): Update dependencies.
12313 * config/iq2000/iq2000.c: Include opts.h.
12314 (iq2000_handle_option): Update to new hook interface.
12315 * config/m32c/m32c.c: Include opts.h.
12316 (m32c_handle_option): Update to new hook interface.
12317 * config/m32r/m32r.c: Include opts.h.
12318 (m32r_handle_option): Update to new hook interface.
12319 * config/m68k/m68k.c: Include opts.h.
12320 (m68k_handle_option): Update to new hook interface.
12321 * config/mep/mep.c: Include opts.h.
12322 (mep_handle_option): Update to new hook interface.
12323 * config/microblaze/microblaze.c: Include opts.h.
12324 (microblaze_handle_option): Update to new hook interface.
12325 * config/mips/mips.c: Include opts.h.
12326 (mips_handle_option): Update to new hook interface.
12327 * config/mn10300/mn10300.c: Include opts.h.
12328 (mn10300_handle_option): Update to new hook interface.
12329 * config/pa/pa.c: Include opts.h.
12330 (pa_handle_option): Update to new hook interface.
12331 * config/pdp11/pdp11.c: Include opts.h.
12332 (pdp11_handle_option): Update to new hook interface.
12333 * config/rs6000/rs6000.c: Include opts.h.
12334 (rs6000_handle_option): Update to new hook interface.
12335 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
12336 * config/rx/rx.c: Include opts.h.
12337 (rx_handle_option): Update to new hook interface.
12338 * config/s390/s390.c: Include opts.h.
12339 (s390_handle_option): Update to new hook interface.
12340 * config/score/score.c: Include opts.h.
12341 (score_handle_option): Update to new hook interface.
12342 * config/sh/sh.c: Include opts.h.
12343 (sh_handle_option): Update to new hook interface.
12344 * config/sparc/sparc.c: Include opts.h.
12345 (sparc_handle_option): Update to new hook interface.
12346 * config/v850/v850.c: Include opts.h.
12347 (v850_handle_option): Update to new hook interface.
12348
12349 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12350
12351 * gcc.c (driver_unknown_option_callback): Only permit and save
12352 unknown -Wno- options.
12353 (driver_wrong_lang_callback): Save options directly instead of via
12354 driver_unknown_option_callback.
12355
12356 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12357
12358 * combine.c (simplify_set): Try harder to find the best CC mode when
12359 simplifying a nested COMPARE on the RHS.
12360
12361 2011-03-22 Joseph Myers <joseph@codesourcery.com>
12362
12363 * config/alpha/gnu.h: Remove.
12364 * config/arc: Remove directory.
12365 * config/arm/netbsd.h: Remove.
12366 * config/arm/t-pe: Remove.
12367 * config/crx: Remove directory.
12368 * config/i386/netbsd.h: Remove.
12369 * config/m68hc11: Remove directory.
12370 * config/m68k/uclinux-oldabi.h: Remove.
12371 * config/mcore/mcore-pe.h: Remove.
12372 * config/mcore/t-mcore-pe: Remove.
12373 * config/netbsd-aout.h: Remove.
12374 * config/rs6000/gnu.h: Remove.
12375 * config/sh/sh-symbian.h: Remove.
12376 * config/sh/symbian-base.c: Remove.
12377 * config/sh/symbian-c.c: Remove.
12378 * config/sh/symbian-cxx.c: Remove.
12379 * config/sh/symbian-post.h: Remove.
12380 * config/sh/symbian-pre.h: Remove.
12381 * config/sh/t-symbian: Remove.
12382 * config/svr3.h: Remove.
12383 * config/vax/netbsd.h: Remove.
12384 * config.build: Don't handle i[34567]86-*-pe.
12385 * config.gcc: Remove handling of deprecations for most deprecated
12386 targets.
12387 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
12388 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
12389 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
12390 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
12391 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
12392 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
12393 Remove cases.
12394 * config.host: Don't handle i[34567]86-*-pe.
12395 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
12396 (ASM_SPEC32): Don't handle -mcall-gnu.
12397 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
12398 -mcall-gnu.
12399 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
12400 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
12401 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12402 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
12403 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
12404 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
12405 conditional on SYMBIAN.
12406 * configure.ac: Don't handle powerpc*-*-gnu*.
12407 * configure: Regenerate.
12408 * doc/extend.texi (interrupt attribute): Don't mention CRX.
12409 * doc/install-old.texi (m6811, m6812): Don't mention.
12410 * doc/install.texi (arc-*-elf*): Don't document multilib option.
12411 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
12412 (m68k-uclinuxoldabi): Don't mention.
12413 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
12414 Remove.
12415 (-mcall-gnu): Remove.
12416 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
12417 families): Remove constraint documentation.
12418
12419 2011-03-22 Marius Strobl <marius@FreeBSD.org>
12420
12421 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
12422 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
12423 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
12424
12425 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12426
12427 PR target/48226
12428 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
12429 vector when peeking at the next token for vector, don't expand the
12430 keywords.
12431
12432 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
12433
12434 * config/avr/avr-protos.h (expand_epilogue): Change prototype
12435 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
12436 * config/avr/avr.c (init_cumulative_args)
12437 (avr_function_arg_advance): Use it.
12438 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
12439 sibcall epilogues.
12440 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
12441 (avr_function_ok_for_sibcall): ...this new function.
12442 (avr_lookup_function_attribute1): New static Function.
12443 (avr_naked_function_p, interrupt_function_p)
12444 (signal_function_p, avr_OS_task_function_p)
12445 (avr_OS_main_function_p): Use it.
12446 * config/avr/avr.md ("sibcall", "sibcall_value")
12447 ("sibcall_epilogue"): New expander.
12448 ("*call_insn", "*call_value_insn"): New insn.
12449 ("call_insn", "call_value_insn"): Remove
12450 ("call", "call_value", "epilogue"): Change expander to handle
12451 sibling calls.
12452
12453 2011-03-21 Nick Clifton <nickc@redhat.com>
12454
12455 * doc/invoke.texi (Overall Options): Move closing brace to end of
12456 options list.
12457 (Optimization Options): Add missing @gol.
12458 (Directory Options): Likewise.
12459 (i386 and x86-64 Options): Likewise.
12460 (RS6000 and PowerPC Options): Likewise.
12461 (i386 and x86-64 Windows Options): Likewise.
12462 (V850 Options): Add text missing from descriptions.
12463
12464 2011-03-22 Richard Henderson <rth@redhat.com>
12465
12466 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
12467 (avr_incoming_return_addr_rtx): New.
12468 (emit_push_byte): New.
12469 (expand_prologue): Use it. Remove incorrect dwarf annotation for
12470 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
12471 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
12472 (emit_pop_byte): New.
12473 (expand_epilogue): Use it. Pop frame pointer by bytes.
12474 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
12475 (INCOMING_RETURN_ADDR_RTX): New.
12476 (INCOMING_FRAME_SP_OFFSET): New.
12477 (ARG_POINTER_CFA_OFFSET): New.
12478 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
12479 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
12480 (pophi): Remove.
12481
12482 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
12483
12484 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12485
12486 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
12487 (FUNCTION_ARG_ADVANCE): Likewise.
12488 * tm.texi.in: Change references to them to hook references.
12489 * tm.texi: Regenerate.
12490 * targhooks.c (default_function_arg): Eliminate check for target
12491 macro.
12492 (default_function_incoming_arg): Likewise.
12493 (default_function_arg_advance): Likewise.
12494 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
12495 (function_arg_advance): Likewise.
12496 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
12497
12498 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
12499
12500 * tree.c (build_call_1): New function.
12501 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
12502
12503 2011-03-22 Richard Guenther <rguenther@suse.de>
12504
12505 PR tree-optimization/48228
12506 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
12507 for single-arg PHIs.
12508
12509 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
12510
12511 PR rtl-optimization/48143
12512 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
12513 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
12514 sse2_cvtps2pd): Likewise.
12515
12516 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12517
12518 * recog.c (canonicalize_change_group): Use validate_unshare_change.
12519
12520 2011-03-22 Richard Guenther <rguenther@suse.de>
12521
12522 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
12523 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
12524 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
12525 and REALIGN_LOAD_EXPR.
12526 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
12527 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
12528 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
12529 DOT_PROD_EXPR case ...
12530 (expand_expr_real_2): ... here.
12531 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
12532 and REALIGN_LOAD_EXPR.
12533 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
12534 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
12535 (vect_create_epilog_for_reduction): Likewise.
12536 (vectorizable_reduction): Likewise.
12537 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
12538 * tree-vect-stmts.c (vectorizable_load): Likewise.
12539
12540 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
12541
12542 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
12543
12544 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12545
12546 * config/s390/s390.c (s390_delegitimize_address): Fix offset
12547 handling for PLTOFF/GOTOFF.
12548
12549 2011-03-22 Nick Clifton <nickc@redhat.com>
12550
12551 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
12552 trailing backslash from the end of the macro definition.
12553
12554 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12555
12556 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
12557 and PLT unspecs.
12558
12559 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
12560
12561 * expr.h (prepare_operand): Move to...
12562 * optabs.h (prepare_operand): ...here and change the insn code
12563 parameter from "int" to "enum insn_code".
12564 (insn_operand_matches): Declare.
12565 * expr.c (init_expr_target): Use insn_operand_matches.
12566 (compress_float_constant): Likewise.
12567 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
12568 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
12569 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
12570 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
12571 Likewise.
12572 (gen_cond_trap): Likewise.
12573 (prepare_operand): Likewise. Change icode to an insn_code.
12574 (insn_operand_matches): New function.
12575 * reload.c (find_reloads_address_1): Use insn_operand_matches.
12576 * reload1.c (gen_reload): Likewise.
12577 * targhooks.c (default_secondary_reload): Likewise.
12578
12579 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12580
12581 * config/alpha/alpha.md (unspec): New define_c_enum.
12582 (unspecv): Ditto.
12583
12584 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
12585
12586 PR debug/48214
12587 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
12588 between a call and its CALL_ARG_LOCATION note.
12589
12590 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
12591
12592 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
12593
12594 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12595
12596 PR c/42544
12597 PR c/48197
12598 * c-common.c (shorten_compare): If primopN is first sign-extended
12599 to opN and then zero-extended to result type, set primopN to opN.
12600
12601 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
12602
12603 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
12604 for barrier handlers.
12605
12606 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
12607
12608 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
12609 UNSPEC constants to be in the unspec enumeration, and redefine
12610 all UNSPECV constants to be in the unspecv enumeration, so that
12611 dumps print which unspec/unspec_volatile this is.
12612 * config/rs6000/vector.md (UNSPEC_*): Ditto.
12613 * config/rs6000/paired.md (UNSPEC_*): Ditto.
12614 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
12615 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
12616 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
12617
12618 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
12619 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
12620 UNSPECV_LWSYNC, since these are used as unspec_volatile.
12621 * config/rs6000/sync.md (isync, lwsync): Ditto.
12622
12623 2011-03-21 Richard Guenther <rguenther@suse.de>
12624
12625 * params.def (lto-min-partition): Fix typo.
12626
12627 2011-03-21 Richard Guenther <rguenther@suse.de>
12628
12629 PR c/47939
12630 * c-decl.c (grokdeclarator): Drop to the main variant only
12631 for array types. Drop flag_gen_aux_info check.
12632
12633 2011-03-21 Richard Guenther <rguenther@suse.de>
12634
12635 PR translation/47911
12636 * params.def (lto-partitions): Fix typo.
12637 (lto-min-partition): Fix wording.
12638
12639 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
12640
12641 * config/rs6000/t-freebsd: Remove duplication from file.
12642
12643 2011-03-21 Richard Guenther <rguenther@suse.de>
12644
12645 PR middle-end/47661
12646 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
12647
12648 2011-03-21 Richard Guenther <rguenther@suse.de>
12649
12650 PR lto/48210
12651 * params.def (lto-partitions): Require at least 1 partition.
12652
12653 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12654
12655 * gthr-solaris.h: Remove.
12656 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
12657 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
12658 (LIB_SPEC): Likewise.
12659 * config/sol2.opt (threads): Remove.
12660 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
12661 (sparc*-*-solaris2*): Likewise.
12662 * configure.ac (enable_threads): Enable solaris support.
12663 * configure: Regenerate.
12664 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
12665 * doc/install.texi (Configuration, --enable-threads=lib): Remove
12666 solaris.
12667
12668 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12669
12670 * config.gcc: Obsolete *-*-solaris2.8*.
12671 * doc/install.texi (Specific, *-*-solaris2*): Document it.
12672
12673 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12674
12675 PR bootstrap/48135
12676 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
12677 reference. Solaris 8 perl works.
12678
12679 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12680
12681 PR bootstrap/48135
12682 * doc/install.texi (Prerequisites): Move jar etc. up.
12683 Explain support library version requirements.
12684
12685 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12686
12687 PR bootstrap/48135
12688 * doc/install.texi (Prerequisites): Move Perl to build
12689 requirements. Always necessary on Solaris 2 with Sun ld.
12690
12691 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12692
12693 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
12694 binutils 2.21.
12695 (Specific, i?86-*-solaris2.[89]): Likewise.
12696 (Specific, i?86-*-solaris2.10): Likewise.
12697 (Specific, mips-sgi-irix6): Likewise.
12698 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
12699 Update for binutils 2.21.
12700
12701 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12702
12703 * configure.ac (gcc_cv_lto_plugin): Fix typo.
12704 Allow -fuse-linker-plugin for non-default plugin linker.
12705 * configure: Regenerate.
12706
12707 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
12708
12709 PR bootstrap/48167
12710 * gengtype.c (files_rules): Added rule for cp/parser.h.
12711
12712 2011-03-21 Jakub Jelinek <jakub@redhat.com>
12713
12714 PR target/48213
12715 * config/s390/s390.c (s390_delegitimize_address): Don't call
12716 lowpart_subreg if orig_x has BLKmode.
12717
12718 2011-03-21 Kai Tietz <ktietz@redhat.com>
12719
12720 PR target/12171
12721 * doc/plugins.texi: Adjust documentation for plugin register_callback.
12722 * tree.h (attribute_spec): Add new member affects_type_identity.
12723 * attribs.c (empty_attribute_table): Adjust attribute_spec
12724 initializers.
12725 * config/alpha/alpha.c: Likewise.
12726 * config/arc/arc.c: Likewise.
12727 * config/arm/arm.c: Likewise.
12728 * config/avr/avr.c: Likewise.
12729 * config/bfin/bfin.c: Likewise.
12730 * config/crx/crx.c: Likewise.
12731 * config/darwin.h: Likewise.
12732 * config/h8300/h8300.c: Likewise.
12733 * config/i386/cygming.h: Likewise.
12734 * config/i386/i386.c: Likewise.
12735 * config/ia64/ia64.c: Likewise.
12736 * config/m32c/m32c.c: Likewise.
12737 * config/m32r/m32r.c: Likewise.
12738 * config/m68hc11/m68hc11.c: Likewise.
12739 * config/m68k/m68k.c: Likewise.
12740 * config/mcore/mcore.c: Likewise.
12741 * config/mep/mep.c: Likewise.
12742 * config/microblaze/microblaze.c: Likewise.
12743 * config/mips/mips.c: Likewise.
12744 * config/rs6000/rs6000.c: Likewise.
12745 * config/rx/rx.c: Likewise.
12746 * config/sh/sh.c: Likewise.
12747 * config/sol2.h: Likewise.
12748 * config/sparc/sparc.c: Likewise.
12749 * config/spu/spu.c: Likewise.
12750 * config/stormy16/stormy16.c: Likewise.
12751 * config/v850/v850.c: Likewise.
12752
12753 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
12754
12755 * simplify-rtx.c (simplify_binary_operation_1): Handle
12756 (xor (and A B) C) case when B and C are both constants.
12757
12758 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
12759
12760 * tree-dfa.c (add_referenced_var): Fix typo in comment.
12761
12762 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
12763
12764 PR bootstrap/48168
12765 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12766
12767 2011-03-20 Jakub Jelinek <jakub@redhat.com>
12768
12769 PR rtl-optimization/48156
12770 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12771 assume df and df_lr are not NULL.
12772
12773 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12774
12775 PR debug/48023
12776 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12777 between a call and its CALL_ARG_LOCATION note.
12778
12779 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
12780
12781 PR debug/48178
12782 * config/sh/sh.c (find_barrier): Don't emit a constant pool
12783 between a call and its corresponding CALL_ARG_LOCATION note.
12784
12785 2011-03-19 Anatoly Sokolov <aesok@post.ru>
12786
12787 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12788 instead of loop. Use HARD_REGISTER_NUM_P predicate.
12789 * haifa-sched.c (setup_ref_regs): Ditto.
12790 * caller-save.c (add_used_regs_1): Ditto.
12791 * dse.c (look_for_hardregs): Ditto.
12792 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12793 * sched-rgn.c (check_live_1): Ditto.
12794
12795 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12796
12797 * c-decl.c (diagnose_mismatched_decls): Give an error for
12798 redefining a typedef with variably modified type.
12799
12800 2011-03-18 Joseph Myers <joseph@codesourcery.com>
12801
12802 * c-decl.c (grokfield): Don't allow typedefs for structures or
12803 unions with no tag by default.
12804 * doc/extend.texi (Unnamed Fields): Update.
12805
12806 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
12807
12808 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12809 Rewrite using indirect functions.
12810 (lwp_slwpcb): Ditto.
12811 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12812 (avx_vinsertf128<mode>): Ditto.
12813
12814 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12815
12816 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12817 unspecs.
12818
12819 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12820
12821 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12822 splitting between a call and its corresponding CALL_ARG_LOCATION note.
12823
12824 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
12825
12826 PR rtl-optimization/48170
12827 * gcse.c (hoist_code): Remove bogus asserts.
12828
12829 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
12830
12831 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12832 computation for prologue/epilogue.
12833
12834 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12835
12836 * Makefile.in (check-consistency): Remove.
12837
12838 2011-03-18 Jakub Jelinek <jakub@redhat.com>
12839
12840 PR debug/48176
12841 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12842 arange_table_in_use is 0, but either text_section_used or
12843 cold_text_section_used is true. Don't call it if
12844 !info_section_emitted.
12845
12846 2011-03-18 Anatoly Sokolov <aesok@post.ru>
12847
12848 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12849 FUNCTION_VALUE_REGNO_P): Remove.
12850 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12851 Remove.
12852 * config/avr/avr.c (avr_ret_register): Make static inline.
12853 (avr_function_value_regno_p): New function.
12854 (avr_libcall_value): Make static. Add 'func' argument.
12855 (avr_function_value): Make static. Rename 'func' argument to
12856 'fn_decl_or_type', forward it to avr_libcall_value. Call
12857 avr_ret_register function instead of RET_REGISTER macro.
12858 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12859
12860 2011-03-18 Jason Merrill <jason@redhat.com>
12861
12862 PR c++/23372
12863 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12864
12865 2011-03-18 Richard Guenther <rguenther@suse.de>
12866
12867 * doc/install.texi (--enable-gold): Remove.
12868 (--with-plugin-ld): Document.
12869 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12870
12871 2011-03-18 Andrew Pinski <pinskia@gmail.com>
12872
12873 PR middle-end/47790
12874 * expr.c (optimize_bitfield_assignment_op): Revamp to work
12875 again after expansion changes.
12876
12877 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
12878
12879 * combine.c (try_combine): Do simplification only call of
12880 subst() on i2 even when i1 is present. Update comments.
12881
12882 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
12883
12884 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12885 and UNSPEC_PCREL_SYMOFF.
12886
12887 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12888
12889 * config/s390/s390.md: Use define_c_enum for the unspec constant
12890 definitions.
12891
12892 2011-03-18 Richard Henderson <rth@redhat.com>
12893 Jakub Jelinek <jakub@redhat.com>
12894
12895 PR bootstrap/48161
12896 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12897 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12898
12899 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12900
12901 PR middle-end/47725
12902 * combine.c (cant_combine_insn_p): Don't check zero/sign
12903 extended hard registers.
12904
12905 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12906
12907 PR middle-end/47725
12908 * combine.c (cant_combine_insn_p): Check zero/sign extended
12909 hard registers.
12910
12911 2011-03-17 Anatoly Sokolov <aesok@post.ru>
12912
12913 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12914 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12915 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12916 Change return type to bool.
12917 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12918
12919 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12920
12921 PR debug/48163
12922 * var-tracking.c (prepare_call_arguments): If CALL target
12923 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12924 pc instead of looking it up using cselib_lookup and use
12925 Pmode for it if x has VOIDmode.
12926 * dwarf2out.c (gen_subprogram_die): If also both first and
12927 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12928
12929 PR debug/48163
12930 * function.c (assign_parms): For data.passed_pointer parms
12931 use MEM of data.entry_parm instead of data.entry_parm itself
12932 as DECL_INCOMING_RTL.
12933 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12934 also when passed and declared mode is the same, DECL_RTL
12935 is a MEM with pseudo as address and DECL_INCOMING_RTL is
12936 a MEM too.
12937
12938 2011-03-16 Jeff Law <law@redhat.com>
12939
12940 PR rtl-optimization/37273
12941 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12942 handle them like argument loads from stack slots. Do not double
12943 count memory for memory constants and argument loads from stack slots.
12944
12945 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12946
12947 PR debug/48160
12948 * var-tracking.c (prepare_call_arguments): Check SUBREG.
12949
12950 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
12951
12952 PR target/48171
12953 * config/i386/i386.opt: Add Save to -mavx and -mfma.
12954
12955 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12956
12957 PR bootstrap/48153
12958 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12959 if dwarf_strict.
12960 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12961 Clear call_arg_locations and call_arg_loc_last always.
12962
12963 PR middle-end/48152
12964 * var-tracking.c (prepare_call_arguments): If argument needs to be
12965 passed by reference, adjust argtype and mode.
12966
12967 2011-03-17 Richard Guenther <rguenther@suse.de>
12968
12969 PR middle-end/48134
12970 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12971 a value make sure to fold the statement.
12972
12973 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
12974
12975 PR target/43872
12976 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12977 return condition with !cfun->calls_alloca.
12978
12979 2011-03-17 Richard Guenther <rguenther@suse.de>
12980
12981 PR bootstrap/48148
12982 * lto-cgraph.c (input_overwrite_node): Clear the abstract
12983 origin for decls in other ltrans units.
12984 (input_varpool_node): Likewise.
12985
12986 2011-03-17 Richard Guenther <rguenther@suse.de>
12987
12988 PR middle-end/48165
12989 * tree-object-size.c (compute_object_offset): Properly return
12990 the offset operand of MEM_REFs as sizetype.
12991
12992 2011-03-17 Jakub Jelinek <jakub@redhat.com>
12993
12994 PR rtl-optimization/48141
12995 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12996 * dse.c: Include params.h.
12997 (active_local_stores_len): New variable.
12998 (add_wild_read, dse_step1): Clear it when setting active_local_stores
12999 to NULL.
13000 (record_store, check_mem_read_rtx): Decrease it when removing
13001 from the chain.
13002 (scan_insn): Likewise. Increase it when adding to chain, if it
13003 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
13004 set active_local_stores to NULL before the addition.
13005 * Makefile.in (dse.o): Depend on $(PARAMS_H).
13006
13007 PR rtl-optimization/48141
13008 * dse.c (record_store): If no positions are needed in an insn
13009 that cannot be deleted, at least unchain it from active_local_stores.
13010
13011 2011-03-16 Dodji Seketeli <dodji@redhat.com>
13012
13013 PR debug/47510
13014 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
13015 (lookup_type_die_strip_naming_typedef): ... here.
13016 (get_context_die): Use it.
13017 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
13018 the anonymous struct named by the naming typedef.
13019
13020 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
13021
13022 PR target/48154
13023 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
13024 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13025
13026 2011-03-16 Jeff Law <law@redhat.com>
13027
13028 * tree-vrp.c (identify_jump_threads): Slightly simplify type
13029 check for operands of conditional. Allow type to be a pointer.
13030
13031 2011-03-16 Richard Guenther <rguenther@suse.de>
13032
13033 PR tree-optimization/48149
13034 * fold-const.c (fold_binary_loc): Fold
13035 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
13036
13037 2011-03-16 Richard Guenther <rguenther@suse.de>
13038
13039 PR tree-optimization/26134
13040 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
13041 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
13042 (non_rewritable_mem_ref_base): Handle complex type component
13043 accesses, constrain offsets for vector and complex extracts
13044 more properly.
13045
13046 2011-03-16 Richard Guenther <rguenther@suse.de>
13047
13048 PR tree-optimization/48146
13049 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
13050 operands avoiding the need for renaming.
13051
13052 2011-03-16 Richard Guenther <rguenther@suse.de>
13053
13054 * gimple-fold.c (maybe_fold_reference): Open-code relevant
13055 constant folding. Move MEM_REF canonicalization first.
13056 Rely on fold_const_aggregate_ref for initializer folding.
13057 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
13058
13059 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13060
13061 PR middle-end/48136
13062 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
13063 arg0/arg1 or their arguments are always fold converted to matching
13064 types.
13065
13066 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
13067 to nargs.
13068
13069 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13070
13071 PR lto/46944
13072 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
13073 Handle in-tree gold.
13074 (ld_vers): Extract binutils version for gold.
13075 (gcc_cv_ld_hidden): Handle gold here.
13076 (gcc_cv_lto_plugin): Determine level of linker plugin support.
13077 * configure: Regenerate.
13078 * config.in: Regenerate.
13079 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
13080 -fuse-linker-plugin otherwise.
13081 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
13082 (LINK_COMMAND_SPEC): Use it.
13083 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
13084
13085 2011-03-16 Jakub Jelinek <jakub@redhat.com>
13086
13087 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
13088 * calls.c: Remove debug.h include.
13089 (emit_call_1): Don't call virtual_call_token debug hook.
13090 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
13091 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
13092 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
13093 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
13094 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
13095 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
13096 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
13097 dwarf2out_virtual_call): Remove.
13098 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
13099 copy_call_info and virtual_call hooks.
13100 (dwarf2out_init): Don't initialize vcall_insn_table,
13101 debug_dcall_section and debug_vcall_section.
13102 (prune_unused_types): Don't mark nodes from dcall_table.
13103 (dwarf2out_finish): Don't output dcall or vcall tables.
13104 * final.c (final_scan_insn): Don't call direct_call or
13105 virtual_call debug hooks.
13106 * debug.h (struct gcc_debug_hooks): Remove direct_call,
13107 virtual_call_token, copy_call_info and virtual_call hooks.
13108 (debug_nothing_uid): Remove prototype.
13109 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
13110 copy_call_info and virtual_call hooks.
13111 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
13112 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
13113 * debug.c (do_nothing_debug_hooks): Likewise.
13114 (debug_nothing_uid): Remove.
13115 * doc/invoke.texi (-fenable-icf-debug): Remove.
13116 * common.opt (-fenable-icf-debug): Likewise.
13117
13118 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
13119 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
13120 call's MEM. Handle functions returning aggregate through a hidden
13121 first pointer. For virtual calls add clobbered pc to call arguments
13122 chain.
13123 * dwarf2out.c (gen_subprogram_die): Emit
13124 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
13125 can't be emitted.
13126
13127 PR debug/45882
13128 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
13129 * rtl.h (ENTRY_VALUE_EXP): Define.
13130 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
13131 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
13132 * print-rtl.c (print_rtx): Likewise.
13133 * gengtype.c (adjust_field_rtx_def): Likewise.
13134 * var-tracking.c (vt_add_function_parameter): Adjust
13135 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
13136 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
13137 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
13138 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
13139 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
13140
13141 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
13142 Call var_location debug hook even on CALL_INSNs.
13143 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
13144 * rtl.def (ENTRY_VALUE): New.
13145 * dwarf2out.c: Include cfglayout.h.
13146 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13147 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
13148 (struct call_arg_loc_node): New type.
13149 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
13150 tail_call_site_count): New variables.
13151 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
13152 DW_TAG_GNU_call_site_parameter.
13153 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
13154 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
13155 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
13156 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
13157 and DW_AT_GNU_all_source_call_sites.
13158 (mem_loc_descriptor): Handle ENTRY_VALUE.
13159 (add_src_coords_attributes): Don't add enything if
13160 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
13161 (dwarf2out_abstract_function): Save and clear call_arg_location,
13162 call_site_count and tail_call_site_count around dwarf2out_decl call.
13163 (gen_call_site_die): New function.
13164 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
13165 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
13166 (dwarf2out_function_decl): Clear call_arg_locations,
13167 call_arg_loc_last, set call_site_count and tail_call_site_count
13168 to -1 and free block_map.
13169 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
13170 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
13171 followed by any real instructions.
13172 (dwarf2out_begin_function): Set call_site_count and
13173 tail_call_site_count to 0.
13174 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
13175 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
13176 attempt to force a DIE for it and worst case remove the attribute.
13177 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
13178 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
13179 the decl itself.
13180 * var-tracking.c: Include tm_p.h.
13181 (vt_stack_adjustments): For calls call note_register_arguments.
13182 (argument_reg_set): New variable.
13183 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
13184 ensure the VALUE is resolved.
13185 (call_arguments): New variable.
13186 (prepare_call_arguments): New function.
13187 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
13188 (struct expand_loc_callback_data): Add ignore_cur_loc field.
13189 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
13190 always use the best expression.
13191 (vt_expand_loc): Add ignore_cur_loc argument.
13192 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
13193 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
13194 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
13195 note for all calls.
13196 (vt_add_function_parameter): Use cselib_lookup_from_insn.
13197 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
13198 argument. Don't call cselib_preserve_only_values and
13199 cselib_reset_table.
13200 (note_register_arguments): New function.
13201 (vt_initialize): Compute argument_reg_set. Call
13202 vt_add_function_parameters before processing basic blocks instead of
13203 afterwards. For calls call prepare_call_arguments before calling
13204 cselib_process_insn.
13205 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
13206 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
13207 (var-tracking.o): Depend on $(TM_P_H).
13208 * cfglayout.h (insn_scope): New prototype.
13209 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
13210 * cfglayout.c (insn_scope): No longer static.
13211 * insn-notes.def (CALL_ARG_LOCATION): New.
13212 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
13213 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
13214 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
13215 nothing for DECL_EXTERNAL BLOCK_VARS.
13216
13217 2011-03-16 Alan Modra <amodra@gmail.com>
13218
13219 PR target/45844
13220 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
13221 create invalid offset address for vsx splat insn.
13222 * config/rs6000/predicates.md (splat_input_operand): New.
13223 * config/rs6000/vsx.md (vsx_splat_*): Use it.
13224
13225 2011-03-15 Xinliang David Li <davidxl@google.com>
13226
13227 PR c/47837
13228 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
13229 (normalize_preds): New function.
13230 (is_use_properly_guarded): Normalize def predicates.
13231
13232 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13233
13234 PR target/46788
13235 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
13236 in the output template.
13237
13238 2011-03-15 Richard Guenther <rguenther@suse.de>
13239
13240 PR middle-end/47650
13241 * tree-pretty-print.c (dump_function_declaration): Properly
13242 dump unprototyped and varargs function types.
13243
13244 2011-03-15 Richard Guenther <rguenther@suse.de>
13245
13246 PR tree-optimization/13954
13247 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
13248 and friends.
13249
13250 2011-03-15 Richard Guenther <rguenther@suse.de>
13251
13252 PR tree-optimization/48037
13253 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
13254 selects into BIT_FIELD_REFs.
13255 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
13256 vector select.
13257
13258 2011-03-15 Jakub Jelinek <jakub@redhat.com>
13259
13260 PR tree-optimization/48129
13261 * builtins.c (fold_builtin_snprintf): Convert to type of
13262 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
13263 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
13264
13265 2011-03-15 Richard Guenther <rguenther@suse.de>
13266
13267 PR tree-optimization/41490
13268 * tree-ssa-dce.c (propagate_necessity): Handle returns without
13269 value but with VUSE.
13270 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
13271 return statements.
13272 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
13273 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
13274 * tree-tailcall.c (find_tail_calls): Ignore returns.
13275
13276 2011-03-15 Richard Guenther <rguenther@suse.de>
13277
13278 PR middle-end/48031
13279 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
13280 or variable-indexed array accesses when in gimple form.
13281
13282 2011-03-15 Richard Guenther <rguenther@suse.de>
13283
13284 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
13285
13286 2011-03-15 Alan Modra <amodra@gmail.com>
13287
13288 PR target/48032
13289 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
13290 presume symbol_refs without a symbol_ref_decl are suitably
13291 aligned, nor other trees we may see here. Handle anchor symbols.
13292 (legitimate_constant_pool_address_p): Comment. Add mode param.
13293 Check cmodel=medium addresses. Adjust all calls.
13294 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
13295 creating cmodel=medium optimized access to locals.
13296 * config/rs6000/constraints.md (R): Pass QImode to
13297 legitimate_constant_pool_address_p.
13298 * config/rs6000/predicates.md (input_operand): Pass mode to
13299 legitimate_constant_pool_address_p.
13300 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
13301 Update prototype.
13302
13303 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
13304
13305 PR target/48053
13306 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
13307 64-bit constants being loaded into registers other than GPRs such
13308 as loading 0 into a VSX register.
13309
13310 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13311
13312 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
13313
13314 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13315
13316 PR middle-end/47917
13317 * builtins.c (fold_builtin_snprintf): New function.
13318 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
13319 (fold_builtin_4): Likewise.
13320
13321 PR middle-end/38878
13322 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
13323 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
13324 and C - X == X also strip nops from +/-/p+ operand.
13325 When optimizing -X == C, fold C to arg0's type.
13326
13327 PR debug/47946
13328 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
13329 emit it as add_AT_int instead of add_AT_unsigned.
13330
13331 2011-03-14 Tom Tromey <tromey@redhat.com>
13332
13333 * unwind-dw2.c: Include sys/sdt.h if it exists.
13334 (_Unwind_DebugHook): Use STAP_PROBE2.
13335 * config.in, configure: Rebuild.
13336 * configure.ac: Check for sys/sdt.h.
13337
13338 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
13339
13340 * config/i386/i386.md (ROUND_FLOOR): New constant.
13341 (ROUND_CEIL): Ditto.
13342 (ROUND_TRUNC): Ditto.
13343 (ROUND_MXCSR): Ditto.
13344 (ROUND_NO_EXC): Ditto.
13345 (rint<mode>2): Use new defines instead of numerical constants.
13346 (floor<mode>2): Ditto.
13347 (ceil<mode>2): Ditto.
13348 (btrunc<mode>2): Ditto.
13349 * config/i386/i386-builtin-types.def: Define ROUND function type
13350 aliases.
13351 * config/i386/i386.c (enum ix86_builtins): Add
13352 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
13353 (struct builtin_description): Add
13354 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
13355 (ix86_expand_sse_round): New static function.
13356 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
13357 function types.
13358 (ix86_builtin_vectorized_function): Handle
13359 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
13360
13361 2011-03-14 Tom Tromey <tromey@redhat.com>
13362
13363 * c-parser.c (c_parser_asm_string_literal): Clear
13364 warn_overlength_strings.
13365
13366 2011-03-14 Tom Tromey <tromey@redhat.com>
13367
13368 * c-parser.c (disable_extension_diagnostics): Save
13369 warn_overlength_strings.
13370 (restore_extension_diagnostics): Restore warn_overlength_strings.
13371
13372 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13373
13374 * BASE-VER: Change to 4.7.0.
13375
13376 2011-03-14 Richard Guenther <rguenther@suse.de>
13377
13378 PR middle-end/48098
13379 * tree.c (build_vector_from_val): Adjust assert to requirements
13380 and reality.
13381
13382 2011-03-14 Jakub Jelinek <jakub@redhat.com>
13383
13384 PR bootstrap/48102
13385 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
13386
13387 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
13388
13389 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
13390 terms of target_flags_explicit. Adjust copyright year.
13391
13392 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
13393 * config/rs6000/t-freebsd: New file. Add override for
13394 LIB2FUNCS_EXTRA.
13395
13396 2011-03-13 Chris Demetriou <cgd@google.com>
13397
13398 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
13399 (-fno-diagnostics-show-option): this, to reflect current default.
13400 (-Werror=): Update text about -fno-diagnostics-show-option.
13401
13402 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
13403
13404 PR target/48053
13405 * config/rs6000/predicates.md (easy_vector_constant_add_self,
13406 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
13407 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
13408 mode is not V2DImode or V2DFmode.
13409 (vspltis_constant): Do not handle V2DImode and V2DFmode.
13410 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
13411 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
13412 registers to 0.
13413 (movdi_internal64): Likewise.
13414
13415 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
13416
13417 PR tree-optimization/47127
13418 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
13419 parameter.
13420 (set_cloog_options): Same.
13421 (scop_to_clast): Same.
13422 (print_clast_stmt): Do not call cloog_state_malloc and
13423 cloog_state_free.
13424 (print_generated_program): Same.
13425 (gloog): Same.
13426 * graphite-clast-to-gimple.h (cloog_state): Declared.
13427 (scop_to_clast): Adjust declaration.
13428 * graphite.c (cloog_state): Defined here.
13429 (graphite_initialize): Call cloog_state_malloc.
13430 (graphite_finalize): Call cloog_state_free.
13431
13432 2011-03-11 Jason Merrill <jason@redhat.com>
13433
13434 * attribs.c (lookup_attribute_spec): Take const_tree.
13435 * tree.h: Adjust.
13436
13437 2011-03-11 Joseph Myers <joseph@codesourcery.com>
13438
13439 * config/sparc/sparc.c (sparc_option_override): Use
13440 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
13441
13442 2011-03-11 Richard Guenther <rguenther@suse.de>
13443
13444 PR tree-optimization/48067
13445 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
13446 multiplication result will be only used once on the target
13447 stmt.
13448
13449 2011-03-11 Richard Guenther <rguenther@suse.de>
13450
13451 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
13452
13453 2011-03-11 Richard Guenther <rguenther@suse.de>
13454
13455 PR lto/48073
13456 * tree.c (find_decls_types_r): Do not walk types only reachable
13457 from IDENTIFIER_NODEs.
13458
13459 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13460
13461 PR middle-end/48044
13462 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
13463 all vnode->force_output nodes as needed.
13464
13465 2011-03-11 Jason Merrill <jason@redhat.com>
13466
13467 PR c++/48069
13468 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
13469 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
13470
13471 2011-03-11 Martin Jambor <mjambor@suse.cz>
13472
13473 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
13474 cgraph_node.
13475
13476 2011-03-11 Jakub Jelinek <jakub@redhat.com>
13477
13478 PR tree-optimization/48063
13479 * ipa-inline.c (cgraph_decide_inlining): Don't try to
13480 inline functions called once if !tree_can_inline_p (node->callers).
13481
13482 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
13483
13484 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
13485 extra_objs.
13486 * config/score/score3.c: Delete.
13487 * config/score/score3.h: Delete.
13488 * config/score/mul-div.S: Delete.
13489 * config/score/sfp-machine.h: Add new file.
13490 * config/score/constraints.md: Add new file.
13491 * config/score/t-score-softfp: Add new file.
13492 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
13493 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
13494 (score7_extra_constraint): Delete.
13495 (score7_option_override): Remove unused code.
13496 * config/score/score.c: Remove score3 and score5 define and code.
13497 * config/score/score.h: Remove score3 and score5 define and code.
13498 * config/score/score.md: Remove score3 template and unusual insn.
13499 * config/score/score.opt: Remove score3 and score5 options.
13500
13501 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13502
13503 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
13504 when _HPUX_SOURCE is defined.
13505 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
13506
13507 2011-03-10 Jason Merrill <jason@redhat.com>
13508
13509 PR c++/48029
13510 * stor-layout.c (layout_type): Don't set structural equality
13511 on arrays of incomplete type.
13512 * tree.c (type_hash_eq): Handle comparing them properly.
13513
13514 2011-03-10 Jakub Jelinek <jakub@redhat.com>
13515
13516 PR debug/48043
13517 * config/s390/s390.c (s390_delegitimize_address): Make sure the
13518 result mode matches original rtl mode.
13519
13520 2011-03-10 Nick Clifton <nickc@redhat.com>
13521
13522 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
13523 (andsi3, andsi3_flags): Fix timings for three operand alternative.
13524
13525 2011-03-09 Jakub Jelinek <jakub@redhat.com>
13526
13527 PR rtl-optimization/47866
13528 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
13529 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
13530 if target wasn't scalar.
13531 * function.c (assign_stack_temp_for_type): Assert that neither
13532 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
13533 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
13534 macro.
13535 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
13536
13537 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13538
13539 * config/s390/s390-protos.h (s390_label_align): New prototype.
13540 * config/s390/s390.c (s390_label_align): New function.
13541 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
13542
13543 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13544
13545 PR target/47755
13546 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
13547 V2DI/V2DF constants. Only all 0's or all 1's are easy.
13548 (output_vec_const_move): Ditto.
13549
13550 2011-03-08 Anatoly Sokolov <aesok@post.ru>
13551
13552 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
13553 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
13554 * config/mips/mips.c (mips_preferred_reload_class): Make static.
13555 Change 'rclass' argument and result type to reg_class_t.
13556 (TARGET_PREFERRED_RELOAD_CLASS): Define.
13557
13558 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
13559
13560 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13561 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
13562 (TARGET_MEMORY_MOVE_COST): Define.
13563 (avr_register_move_cost, avr_memory_move_cost): New Functions.
13564
13565 2011-03-08 Jakub Jelinek <jakub@redhat.com>
13566
13567 PR debug/47881
13568 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
13569 removed anything.
13570
13571 PR tree-optimization/48022
13572 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
13573 for EQ/NE_EXPR.
13574
13575 2011-03-07 Jakub Jelinek <jakub@redhat.com>
13576
13577 PR debug/47991
13578 * var-tracking.c (find_use_val): Return NULL for
13579 cui->sets && cui->store_p BLKmode MEMs.
13580
13581 2011-03-07 Anatoly Sokolov <aesok@post.ru>
13582
13583 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
13584 Remove.
13585 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
13586 xstormy16_print_operand_address): Remove.
13587 * config/stormy16/stormy16.c (xstormy16_print_operand,
13588 xstormy16_print_operand_address): Make static.
13589 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13590
13591 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
13592
13593 PR target/47862
13594 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13595 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
13596 before definition.
13597
13598 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
13599
13600 PR bootstrap/48000
13601 * cfgloopmanip.c (fix_bb_placements): Return immediately
13602 if FROM is BASE_LOOP's header.
13603
13604 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
13605
13606 * gimplify.c (gimplify_function_tree): Fix building calls
13607 to __builtin_return_address.
13608
13609 2011-03-07 Alan Modra <amodra@gmail.com>
13610
13611 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
13612 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
13613 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
13614 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
13615 return_mode args.
13616 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
13617 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
13618 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
13619 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
13620 * config/rs6000/rs6000.c
13621 (rs6000_elf_end_indicate_exec_stack): Rename to..
13622 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
13623 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
13624 (rs6000_file_start): ..here.
13625 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
13626 file scope variables.
13627 (call_ABI_of_interest): New function.
13628 (init_cumulative_args): Set above vars when function return value
13629 is a float, vector, or small struct.
13630 (rs6000_function_arg_advance_1): Likewise for function args.
13631 (rs6000_va_start): Set rs6000_passes_float if variable arg function
13632 references float args.
13633
13634 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
13635
13636 * doc/cfg.texi: Remove "See" before @ref.
13637 * doc/invoke.texi: Likewise.
13638
13639 2011-03-05 Jason Merrill <jason@redhat.com>
13640
13641 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
13642
13643 2011-03-05 Anthony Green <green@moxielogic.com>
13644
13645 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
13646
13647 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
13648
13649 PR rtl-optimization/47899
13650 * cfgloopmanip.c (fix_bb_placements): Fix first argument
13651 to flow_loop_nested_p when moving the loop upward.
13652
13653 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
13654
13655 PR target/47719
13656 * arm.md (movhi_insn_arch4): Accept any immediate constant.
13657
13658 2011-03-05 Jakub Jelinek <jakub@redhat.com>
13659
13660 PR tree-optimization/47967
13661 * ipa-cp.c (build_const_val): Return NULL instead of creating
13662 VIEW_CONVERT_EXPR for mismatching sizes.
13663 (ipcp_create_replace_map): Return NULL if build_const_val failed.
13664 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
13665 give up on versioning.
13666
13667 2011-03-05 Alan Modra <amodra@gmail.com>
13668
13669 PR target/47986
13670 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13671 full cmodel medium/large lo_sum + high addresses.
13672
13673 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13674
13675 * config/s390/s390.c (s390_decompose_address): Reject non-literal
13676 pool references in UNSPEC_LTREL_OFFSET.
13677
13678 2011-03-04 Jan Hubicka <jh@suse.cz>
13679
13680 PR lto/47497
13681 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
13682 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
13683 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
13684 Add node pointers.
13685 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
13686 cgraph_add_thunk): Add node pointers.
13687 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
13688 associated to right node.
13689 (input_node): Update use of cgraph_same_body_alias
13690 and cgraph_add_thunk.
13691
13692 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
13693
13694 * config/i386/i386.opt (mprefer-avx128): New flag.
13695 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
13696 modes when the flag -mprefer-avx128 is on.
13697
13698 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
13699
13700 * dwarf2out.c (compare_loc_operands): Fix address handling.
13701
13702 2011-03-04 Alan Modra <amodra@gmail.com>
13703
13704 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
13705
13706 2011-03-04 Richard Guenther <rguenther@suse.de>
13707
13708 PR middle-end/47968
13709 * expmed.c (extract_bit_field_1): Prefer vector modes that
13710 vec_extract patterns can handle.
13711
13712 2011-03-04 Richard Guenther <rguenther@suse.de>
13713
13714 PR middle-end/47975
13715 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
13716
13717 2011-03-04 Richard Henderson <rth@redhat.com>
13718
13719 * explow.c (emit_stack_save): Remove 'after' parameter.
13720 (emit_stack_restore): Likewise.
13721 * expr.h: Update to match.
13722 * builtins.c, calls.c, stmt.c: Likewise.
13723 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
13724 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
13725 * function.c (expand_function_end): Insert the emit_stack_save
13726 sequence before parm_birth_insn instead of after.
13727
13728 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
13729
13730 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
13731 (ssse3_pmaddubsw128): Ditto.
13732 (ssse3_pmaddubsw): Ditto.
13733
13734 2011-03-03 Steve Ellcey <sje@cup.hp.com>
13735
13736 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
13737
13738 2011-03-03 Jakub Jelinek <jakub@redhat.com>
13739
13740 PR c/47963
13741 * gimplify.c (omp_add_variable): Only call omp_notice_variable
13742 on TYPE_SIZE_UNIT if it is a DECL.
13743
13744 PR debug/47283
13745 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13746 first operand is not is_gimple_mem_ref_addr, try to fold it.
13747 If the operand still isn't is_gimple_mem_ref_addr, clear
13748 MEM_EXPR on op0.
13749
13750 2011-03-03 Richard Guenther <rguenther@suse.de>
13751
13752 PR middle-end/47283
13753 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13754 match comment.
13755 (refs_may_alias_p_1): For release branches return true if
13756 we are confused by our input.
13757
13758 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13759
13760 * config/s390/s390.c (s390_function_value): Rename to ...
13761 (s390_function_and_libcall_value): ... this.
13762 (s390_function_value): New function.
13763 (s390_libcall_value): New function.
13764 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13765 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13766 target macro definitions.
13767 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13768
13769 2011-03-02 Joseph Myers <joseph@codesourcery.com>
13770
13771 * config/i386/freebsd64.h (CC1_SPEC): Define.
13772 * config/i386/linux64.h (CC1_SPEC): Define.
13773 * config/i386/x86-64.h (CC1_SPEC): Don't define.
13774
13775 2011-03-02 Anatoly Sokolov <aesok@post.ru>
13776
13777 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13778 Remove.
13779 * config/stormy16/stormy16.c: Include reload.h.
13780 (xstormy16_memory_move_cost): New function.
13781 (TARGET_MEMORY_MOVE_COST): Define.
13782
13783 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
13784
13785 PR rtl-optimization/47925
13786 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13787 with side effects. Remove the more-specific check for volatile asms.
13788
13789 2011-03-02 Alan Modra <amodra@gmail.com>
13790
13791 PR target/47935
13792 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13793 toc relative addresses for valid offsets.
13794
13795 2011-03-01 Richard Guenther <rguenther@suse.de>
13796
13797 PR tree-optimization/47890
13798 * tree-vect-loop.c (get_initial_def_for_induction): Set
13799 related stmt properly.
13800
13801 2011-03-01 Richard Guenther <rguenther@suse.de>
13802
13803 PR lto/47924
13804 * lto-streamer.c (lto_record_common_node): Also register
13805 the canonical type.
13806
13807 2011-03-01 Richard Guenther <rguenther@suse.de>
13808
13809 PR lto/46911
13810 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13811 Do not stream DECL_ABSTRACT_ORIGIN.
13812 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13813 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13814 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13815 Do not stream DECL_ABSTRACT_ORIGIN.
13816 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13817 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13818
13819 2011-02-28 Anatoly Sokolov <aesok@post.ru>
13820
13821 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13822 FUNCTION_VALUE_REGNO_P): Remove.
13823 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13824 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13825 Add 'outgoing' argument.
13826 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13827 function.
13828 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13829 TARGET_FUNCTION_VALUE_REGNO_P): Define.
13830
13831 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
13832
13833 PR debug/28047
13834 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13835 (lookup_filename): Likewise.
13836 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13837
13838 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
13839 Jakub Jelinek <jakub@redhat.com>
13840
13841 PR middle-end/47893
13842 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13843 (assign_stack_local_1): Change last argument type to int.
13844 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13845 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
13846 don't record padding space into frame_space_list nor use those areas.
13847 (assign_stack_local): Adjust caller.
13848 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13849 of assign_stack_local, pass 0 as last argument.
13850 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13851 callers.
13852
13853 2011-02-28 Jakub Jelinek <jakub@redhat.com>
13854
13855 PR debug/47283
13856 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13857 Use target address_mode and pointer_mode hooks instead of hardcoded
13858 Pmode and ptr_mode. Handle some simple cases of extending if
13859 POINTERS_EXTEND_UNSIGNED < 0.
13860 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13861 Call convert_debug_memory_address.
13862 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13863 convert_debug_memory_address.
13864
13865 PR middle-end/46790
13866 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13867 * configure: Regenerated.
13868 * config.in: Regenerated.
13869 * varasm.c (default_function_section): Return NULL
13870 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13871
13872 2011-02-28 Martin Jambor <mjambor@suse.cz>
13873
13874 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13875 the description to match the printed values.
13876
13877 2011-02-28 Richard Guenther <rguenther@suse.de>
13878
13879 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13880 of the copied scope tree.
13881
13882 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13883
13884 * doc/extend.texi (Function Attributes): Avoid deeply (and
13885 wrongly) nested tables.
13886
13887 2011-02-27 Jakub Jelinek <jakub@redhat.com>
13888
13889 PR middle-end/47903
13890 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13891 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13892 r isn't op0 nor op1.
13893
13894 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13895
13896 * config/avr/avr.md: Remove magic comment for emacs.
13897
13898 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
13899
13900 PR target/45261
13901 * config/avr/avr.c (avr_option_override): Use error on bad options.
13902 (avr_help): New function.
13903 (TARGET_HELP): Define.
13904
13905 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
13906
13907 PR target/42240
13908 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13909 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13910
13911 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
13912
13913 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13914 (ARM Options): Ditto.
13915 (i386 and x86-64 Options): Ditto.
13916 (RX Options): Ditto.
13917 (SPARC Options): Ditto.
13918
13919 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
13920
13921 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13922 FreeBSD 6 and later. Generally use cpu generic.
13923
13924 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13925
13926 * doc/cpp.texi: Update copyright years.
13927
13928 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
13929
13930 PR target/46898
13931 * config/lm32/lm32.md (ashrsi3): Added needed variable.
13932
13933 2011-02-25 Jon Beniston <jon@beniston.com>
13934
13935 PR target/46898
13936 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13937 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13938 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13939 (lm32_block_move_inline): Add type cast to remove warning.
13940 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13941 (gen_int_relational): Move declarations to start of function.
13942
13943 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
13944
13945 PR tree-optimization/45470
13946 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13947 can throw internally only.
13948 * tree-vect-stmts.c (vectorizable_call): Likewise.
13949
13950 2011-02-24 Anatoly Sokolov <aesok@post.ru>
13951
13952 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13953 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13954 * config/stormy16/stormy16-protos.h
13955 (xstormy16_preferred_reload_class): Remove.
13956 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13957 static. Change 'rclass' argument and return type to reg_class_t.
13958 (TARGET_PREFERRED_RELOAD_CLASS,
13959 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13960
13961 2011-02-24 Richard Guenther <rguenther@suse.de>
13962
13963 * lto-streamer-in.c (input_bb): Do not find referenced vars
13964 in debug statements.
13965
13966 2011-02-23 Jason Merrill <jason@redhat.com>
13967
13968 * common.opt (fabi-version): Document v5 and v6.
13969
13970 2011-02-23 Richard Guenther <rguenther@suse.de>
13971
13972 PR tree-optimization/47849
13973 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13974
13975 2011-02-23 Jie Zhang <jie@codesourcery.com>
13976
13977 * opts-common.c (decode_cmdline_option): Print empty string
13978 argument as "" in decoded->orig_option_with_args_text.
13979 * gcc.c (execute): Print empty string argument as ""
13980 in the verbose output.
13981 (do_spec_1): Keep empty string argument.
13982
13983 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
13984
13985 * config.gcc: Declare score-* and crx-* obsolete.
13986
13987 2011-02-23 Jie Zhang <jie@codesourcery.com>
13988
13989 PR rtl-optimization/47763
13990 * web.c (web_main): Ignore naked clobber when replacing register.
13991
13992 2011-02-22 Anatoly Sokolov <aesok@post.ru>
13993
13994 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13995 Remove.
13996
13997 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
13998
13999 PR doc/47848
14000 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
14001
14002 2011-02-22 Mike Stump <mikestump@comcast.net>
14003
14004 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
14005 assembler.
14006 * configure: Regenerate.
14007
14008 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
14009
14010 PR rtl-optimization/46002
14011 * ira-color.c (update_copy_costs): Change class intersection
14012 test to reg_class_contents[] test of 'hard_regno'.
14013
14014 2011-02-21 Joseph Myers <joseph@codesourcery.com>
14015
14016 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
14017 than Driver option.
14018 * config/hpux11.opt (mt): Likewise.
14019 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
14020 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
14021 * config/vax/elf.opt (mno-asm-pic): Likewise.
14022 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
14023
14024 2011-02-21 Mike Stump <mikestump@comcast.net>
14025
14026 PR target/47822
14027 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
14028 tree so we can get save the type.
14029 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
14030 for CFString instead of trying to use past the end of the builtins.
14031 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
14032 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
14033 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
14034 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
14035 Rename to darwin_builtin_cfstring.
14036 (darwin_init_cfstring_builtins): Return the built type.
14037
14038 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
14039
14040 PR target/47840
14041 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
14042 (_mm256_insert_epi64): Use _mm_insert_epi64.
14043
14044 2011-02-21 Anatoly Sokolov <aesok@post.ru>
14045
14046 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14047 * config/stormy16/stormy16-protos.h
14048 (xstormy16_mode_dependent_address_p): Remove.
14049 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
14050 Make static. Change return type to bool. Change argument type to
14051 const_rtx. Remove dead code.
14052 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14053
14054 2011-02-21 Richard Guenther <rguenther@suse.de>
14055
14056 PR lto/47820
14057 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
14058 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14059 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
14060 TUs context.
14061 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
14062 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
14063
14064 2011-02-20 Richard Guenther <rguenther@suse.de>
14065
14066 PR lto/47822
14067 * tree.c (free_lang_data_in_decl): Clean builtins from
14068 the TU decl BLOCK_VARS.
14069
14070 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
14071
14072 PR debug/47620
14073 PR debug/47630
14074 * haifa-sched.c (fix_tick_ready): Skip tick computation
14075 for debug insns.
14076
14077 2011-02-19 Richard Guenther <rguenther@suse.de>
14078
14079 PR lto/47647
14080 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
14081 Remove lazy BLOCK_VARS streaming.
14082 (lto_input_ts_block_tree_pointers): Likewise.
14083 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
14084
14085 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14086
14087 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
14088
14089 2011-02-19 Joseph Myers <joseph@codesourcery.com>
14090
14091 * config/i386/biarch32.h, config/i386/mach.h,
14092 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
14093
14094 2011-02-19 Jakub Jelinek <jakub@redhat.com>
14095
14096 PR target/47800
14097 * config/i386/i386.md (peephole2 for shift and plus): Use
14098 operands[1] original mode in the first insn.
14099
14100 2011-02-18 Mike Stump <mikestump@comcast.net>
14101
14102 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
14103
14104 2011-02-18 Jan Hubicka <jh@suse.cz>
14105
14106 PR middle-end/47788
14107 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
14108 to zero when the function is not inlinable at all.
14109
14110 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14111
14112 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
14113 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14114 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
14115 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
14116 * config/pa/t-pa64: Likewise.
14117 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
14118
14119 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14120
14121 PR driver/47787
14122 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
14123
14124 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14125
14126 PR target/47792
14127 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
14128
14129 2011-02-18 Anatoly Sokolov <aesok@post.ru>
14130
14131 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
14132 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
14133 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
14134 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14135 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
14136 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
14137 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
14138 m32r_load_postinc_p, m32r_store_preinc_predec_p,
14139 m32r_legitimate_address_p): New functions.
14140 * config/m32r/constraints.md (constraint "S"): Don't use
14141 STORE_PREINC_PREDEC_P.
14142 (constraint "U"): Don't use LOAD_POSTINC_P.
14143
14144 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
14145
14146 PR rtl-optimization/46178
14147 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
14148 compute ira_hard_regno_cover_class[].
14149
14150 2011-02-18 Richard Guenther <rguenther@suse.de>
14151
14152 PR lto/47798
14153 * lto-streamer.h (lto_global_var_decls): Declare.
14154 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
14155 statics for global var processing.
14156
14157 2011-02-18 Richard Guenther <rguenther@suse.de>
14158
14159 PR tree-optimization/47737
14160 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
14161 edge dominance check.
14162
14163 2011-02-18 Jakub Jelinek <jakub@redhat.com>
14164
14165 PR debug/47780
14166 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
14167 avoid invalid rtx sharing.
14168
14169 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
14170
14171 * doc/cpp.texi (Obsolete Features): Add background on the
14172 origin of assertions.
14173
14174 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
14175
14176 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
14177 objc_abi == 2.
14178 * config/darwin.c (output_objc_section_asm_op): Added support for
14179 ABI v1 and v2.
14180 (is_objc_metadata): New.
14181 (darwin_objc2_section): New.
14182 (darwin_objc1_section): New.
14183 (machopic_select_section): Added support for ABI v1 and v2.
14184 (darwin_emit_objc_zeroed): New.
14185 (darwin_output_aligned_bss): Detect objc metadata and treat it
14186 appropriately.
14187 (darwin_asm_output_aligned_decl_common): Same.
14188 (darwin_asm_output_aligned_decl_local): Same.
14189 * config/darwin-sections.def: Updated for ABI v1 and v2.
14190 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
14191 compiling Objective-C code for the NeXT runtime, default to using
14192 ABI version 0 for 32-bit, and version 2 for 64-bit.
14193
14194 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14195
14196 * common.opt (optimize_fast): New Variable.
14197 * opts.c (default_options_optimization): Use opts->x_optimize_fast
14198 instead of local variable ofast.
14199
14200 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
14201
14202 * doc/invoke.texi (fobjc-abi-version): Documented.
14203 (fobjc-nilcheck): Documented.
14204 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
14205 version.
14206
14207 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14208
14209 PR driver/47390
14210 * common.opt (export-dynamic): New Driver option.
14211 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
14212
14213 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14214
14215 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
14216
14217 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
14218 Jan Hubicka <jh@suse.cz>
14219
14220 PR debug/47106
14221 PR debug/47402
14222 * cfgexpand.c (account_used_vars_for_block): Remove.
14223 (estimated_stack_frame_size): Use referenced vars.
14224 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
14225 that were referenced in the original function. Test src_fn
14226 rather than cfun. Drop redundant get_var_ann.
14227 (setup_one_parameter): Drop redundant get_var_ann.
14228 (declare_return_variable): Likewise.
14229 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
14230 (copy_arguments_for_versioning): Drop redundant get_var_ann.
14231 * ipa-inline.c (compute_inline_parameters): Do not compute
14232 disregard_inline_limits here.
14233 (compute_inlinable_for_current, pass_inlinable): New.
14234 (pass_inline_parameters): Require PROP_referenced_vars.
14235 * cgraphunit.c (cgraph_process_new_functions): Don't run
14236 compute_inline_parameters explicitly unless function is in SSA form.
14237 (cgraph_analyze_function): Set .disregard_inline_limits.
14238 * tree-sra.c (convert_callers): Compute inliner parameters
14239 only for functions already in SSA form.
14240
14241 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14242
14243 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
14244 -mlittle-endian-data.
14245
14246 2011-02-17 Joseph Myers <joseph@codesourcery.com>
14247
14248 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
14249 -mno-fpu, not -fpu and -no-fpu.
14250 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
14251 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
14252
14253 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
14254
14255 PR target/43653
14256 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
14257 input reload with PLUS RTX.
14258
14259 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14260
14261 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
14262 of InverseVar(MDMX).
14263
14264 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14265
14266 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
14267 --m4-340.
14268
14269 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14270
14271 * config/mn10300/mn10300.opt (mno-crt0): New.
14272
14273 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14274
14275 * config/m68k/uclinux.opt (static-libc): New Driver option.
14276
14277 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14278
14279 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
14280
14281 2011-02-16 Joseph Myers <joseph@codesourcery.com>
14282
14283 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
14284 %{muser-extend-enabled}.
14285
14286 2011-02-16 Richard Guenther <rguenther@suse.de>
14287
14288 PR tree-optimization/47738
14289 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
14290 the TODO from tree_predictive_commoning.
14291
14292 2011-02-15 Jeff Law <law@redhat.com>
14293
14294 Revert
14295 2011-01-25 Jeff Law <law@redhat.com>
14296
14297 PR rtl-optimization/37273
14298 * ira-costs.c (scan_one_insn): Detect constants living in memory and
14299 handle them like argument loads from stack slots. Do not double
14300 count memory for memory constants and argument loads from stack slots.
14301
14302 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14303
14304 PR middle-end/47725
14305 * combine.c (cant_combine_insn_p): Revert the last change.
14306
14307 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
14308
14309 PR target/47755
14310 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
14311 mode for vector constants. Remove code that checks for TImode.
14312
14313 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14314
14315 PR debug/47106
14316 PR debug/47402
14317 * cgraph.h (compute_inline_parameters): Return void.
14318 * ipa-inline.c (compute_inline_parameters): Adjust.
14319
14320 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14321
14322 PR debug/47106
14323 PR debug/47402
14324 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
14325 rather than decl.
14326 * cfgexpand.c (estimated_stack_frame_size): Likewise.
14327 * ipa-inline.c (compute_inline_parameters): Adjust.
14328
14329 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14330
14331 PR debug/47106
14332 PR debug/47402
14333 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
14334 Adjust all users. Pass FN to...
14335 * tree-flow-inline.h (first_referenced_var): ... this. Add
14336 fn argument.
14337 * ipa-struct-reorg.c: Adjust.
14338 * tree-dfa.c: Adjust.
14339 * tree-into-ssa.c: Adjust.
14340 * tree-sra.c: Adjust.
14341 * tree-ssa-alias.c: Adjust.
14342 * tree-ssa-live.c: Adjust.
14343 * tree-ssa.c: Adjust.
14344 * tree-ssanames.c: Adjust.
14345 * tree-tailcall.c: Adjust.
14346
14347 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
14348
14349 PR debug/47106
14350 PR debug/47402
14351 * tree-flow.h (referenced_var_lookup): Add fn parameter.
14352 Adjust all callers.
14353 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
14354 * tree-flow-inline.h: Adjust.
14355 * gimple-pretty-print.c: Adjust.
14356 * tree-into-ssa.c: Adjust.
14357 * tree-ssa.c: Adjust.
14358 * cfgexpand.c: Adjust.
14359
14360 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14361
14362 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
14363 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14364 (EXTRA_CONSTRAINT): Delete.
14365 * config/iq2000/constraints.md: New file.
14366 * config/iq2000/iq2000.md: Include it.
14367 (define_insn ""): Delete.
14368 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
14369 unsupported constraint letters from patterns.
14370 (call_value, call_value_internal1): Likewise.
14371 (call_value_multiple_internal1): Likewise.
14372
14373 2011-02-15 Nick Clifton <nickc@redhat.com>
14374
14375 * config/mn10300/mn10300.c: Include tm-constrs.h.
14376 (struct liw_data): New data structure describing an LIW candidate
14377 instruction.
14378 (extract_bundle): Use struct liw_data. Allow small integer
14379 operands for some instructions.
14380 (check_liw_constraints): Use struct liw_data. Remove swapped
14381 parameter. Add comments describing the checks. Fix bug when
14382 assigning the source of liw1 to the source of liw2.
14383 (liw_candidate): Delete. Code moved into extract_bundle.
14384 (mn10300_bundle_liw): Use struct liw_data. Check constraints
14385 before swapping.
14386 * config/mn10300/predicates.md (liw_operand): New predicate.
14387 Allows registers and small integer constants.
14388 * config/mn10300/constraints.md (O): New constraint. Accetps
14389 integers in the range -8 to +7 inclusive.
14390 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
14391 for moving a small integer into a register. Give this alternative
14392 LIW attributes.
14393 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
14394 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
14395 using the J,K,L and M constraints,
14396 (liw): Remove SI mode on second operands to allow for HI and QI
14397 mode values.
14398 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
14399 instruction.
14400
14401 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
14402
14403 PR middle-end/47725
14404 * combine.c (cant_combine_insn_p): Check zero/sign extended
14405 hard registers.
14406
14407 2011-02-15 Richard Guenther <rguenther@suse.de>
14408
14409 PR tree-optimization/47743
14410 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
14411 for a non-type-compatible VN lookup bail out.
14412
14413 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14414
14415 * config/fr30/constraints.md: New file.
14416 * config/fr30/fr30.md: Include it.
14417 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
14418 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14419 (EXTRA_CONSTRAINT): Delete.
14420
14421 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
14422
14423 * config/frv/constraints.md: New file.
14424 * config/frv/predicates.md: Include it.
14425 * config/frv/frv.c (reg_class_from_letter): Delete.
14426 (frv_option_override): Don't initialize it.
14427 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
14428 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
14429 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
14430 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14431 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
14432 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14433 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
14434 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
14435 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
14436 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
14437 (REG_CLASS_FROM_CONSTRAINT): Delete.
14438
14439 2011-02-15 Jakub Jelinek <jakub@redhat.com>
14440
14441 PR middle-end/47581
14442 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
14443 if frame size is 0 in a leaf function.
14444
14445 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14446
14447 PR pch/14940
14448 * config/alpha/host-osf.c: New file.
14449 * config/alpha/x-osf: New file.
14450 * config.host (alpha*-dec-osf*): Use it.
14451
14452 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14453
14454 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14455 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
14456 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
14457 (rx_mode_dependent_address_p): ...this. Make static. Change argument
14458 type to const_rtx.
14459 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14460
14461 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14462
14463 * config/stormy16/constraints.md: New file.
14464 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
14465 Use satisfies_constraint_Q and satisfies_constraint_R.
14466 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
14467 Delete.
14468 (xstormy16_legitiamte_address_p): Declare.
14469 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
14470 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14471 (EXTRA_CONSTRAINT): Delete.
14472 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
14473 Un-staticize.
14474 (xstormy16_extra_constraint_p): Delete.
14475
14476 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
14477
14478 PR tree-optimization/46494
14479 * loop-unroll.c (split_edge_and_insert): Adjust comment.
14480 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
14481 (pass_rtl_loop_done): Add TODO_verify_flow.
14482 * fwprop.c (pass_rtl_fwprop): Likewise.
14483 * modulo-sched.c (pass_sms): Likewise.
14484 * tree-ssa-dom.c (pass_dominator): Likewise.
14485 * tree-ssa-loop-ch.c (pass_ch): Likewise.
14486 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
14487 (pass_tree_loop_done): Likewise.
14488 * tree-ssa-pre.c (execute_pre): Likewise.
14489 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
14490 * tree-ssa-sink.c (pass_sink_code): Likewise.
14491 * tree-vrp.c (pass_vrp): Likewise.
14492
14493 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14494
14495 * config/v850/constraints.md: New file.
14496 * config/v850/v850.md: Include it.
14497 * config/v850/predicates.md (reg_or_0_operand): Use
14498 satisfies_constraint_G.
14499 (special_symbolref_operand): Use satisfies_constraint_K.
14500 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
14501 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
14502 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
14503 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
14504 (EXTRA_CONSTRAINT): Delete.
14505 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
14506 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
14507 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
14508
14509 2011-02-14 Anatoly Sokolov <aesok@post.ru>
14510
14511 PR target/47696
14512 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
14513 description.
14514
14515 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
14516
14517 * config/mcore/constraints.md: New file.
14518 * config/mcore/mcore.md: Include it.
14519 * config/mcore/mcore.c (reg_class_from_letter): Delete.
14520 * config/mcore/mcore.h (reg_class_from_letter): Delete.
14521 (REG_CLASS_FROM_LETTER): Delete.
14522 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
14523 insn_const_int_ok_for_constraint.
14524 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
14525 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
14526 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
14527 (EXTRA_CONSTRAINT): Delete.
14528
14529 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14530
14531 PR ada/41929
14532 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
14533 (IS_SIGHANDLER): Define.
14534 (sparc64_is_sighandler): New function, split off from
14535 sparc64_fallback_frame_state.
14536 (sparc_is_sighandler): New function, split off from
14537 sparc_fallback_frame_state.
14538 (sparc64_fallback_frame_state): Merge with ...
14539 (sparc_fallback_frame_state): ... this into ...
14540 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
14541 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
14542 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
14543 stack instead of hardcoded offsets.
14544
14545 2011-02-14 Andriy Gapon <avg@freebsd.org>
14546
14547 PR target/45808
14548 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
14549
14550 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14551
14552 * configure: Regenerate.
14553
14554 2011-02-12 Joseph Myers <joseph@codesourcery.com>
14555
14556 PR driver/45731
14557 * gcc.c (asm_options): Correct spec matching --target-help.
14558
14559 2011-02-12 Martin Jambor <mjambor@suse.cz>
14560
14561 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
14562 to gimple call error.
14563
14564 2011-02-12 Mike Stump <mikestump@comcast.net>
14565
14566 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
14567 comments in backslash regions.
14568
14569 2011-02-12 Mike Stump <mikestump@comcast.net>
14570 Jakub Jelinek <jakub@redhat.com>
14571 Iain Sandoe <iains@gcc.gnu.org>
14572
14573 PR target/47324
14574 * dwarf2out.c (output_cfa_loc): When required, apply the
14575 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
14576 (output_loc_sequence): Likewise.
14577 (output_loc_operands_raw): Likewise.
14578 (output_loc_sequence_raw): Likewise.
14579 (output_cfa_loc): Likewise.
14580 (output_loc_list): Suppress register number adjustment when
14581 calling output_loc_sequence()
14582 (output_die): Likewise.
14583
14584 2011-02-12 Anatoly Sokolov <aesok@post.ru>
14585
14586 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14587 Remove macros.
14588 * config/xtensa/xtensa.c (xtensa_register_move_cost,
14589 xtensa_memory_move_cost): New functions.
14590 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
14591
14592 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
14593
14594 PR lto/47225
14595 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
14596 in the current directory.
14597 * configure: Rebuilt.
14598
14599 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14600
14601 * config/darwin.c (darwin_override_options): Add a hunk missed
14602 from the commit of r168571. Trim comment line lengths and
14603 correct indents of the preceding block.
14604
14605 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
14606
14607 * gcc.c (driver_handle_option): Concatenate the argument to -F with
14608 the switch.
14609
14610 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14611
14612 * common.opt (nostartfiles): New Driver option.
14613
14614 2011-02-11 Xinliang David Li <davidxl@google.com>
14615
14616 PR tree-optimization/47707
14617 * tree-chrec.c (convert_affine_scev): Keep type precision.
14618
14619 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
14620
14621 PR tree-optimization/47420
14622 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
14623
14624 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
14625
14626 PR rtl-optimization/47614
14627 * rtl.h (check_for_inc_dec): Declare.
14628 * dse.c (check_for_inc_dec): Externalize...
14629 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
14630 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
14631
14632 2011-02-11 Joseph Myers <joseph@codesourcery.com>
14633
14634 PR driver/47678
14635 * gcc.c (main): Do not compile inputs if there were errors in
14636 option handling.
14637 * opts-common.c (read_cmdline_option): Check for wrong language
14638 after other error checks.
14639
14640 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
14641
14642 * cgraph.c: Fix comment typos.
14643 * cgraph.h: Likewise.
14644 * cgraphunit.c: Likewise.
14645 * ipa-cp.c: Likewise.
14646 * ipa-inline.c: Likewise.
14647 * ipa-prop.c: Likewise.
14648 * ipa-pure-const.c: Likewise.
14649 * ipa-ref.c: Likewise.
14650 * ipa-reference.c: Likewise.
14651
14652 2011-02-11 Jakub Jelinek <jakub@redhat.com>
14653
14654 PR debug/47684
14655 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
14656
14657 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14658
14659 PR testsuite/47400
14660 * doc/sourcebuild.texi (Require Support): Document
14661 dg-require-ascii-locale.
14662
14663 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
14664
14665 * doc/lto.texi (Write summary): Fix missing parentheses.
14666
14667 2011-02-10 DJ Delorie <dj@redhat.com>
14668
14669 * config/m32c/m32c.c (m32c_option_override): Disable
14670 -fcombine-stack-adjustments until flag value tracking and compare
14671 optimization can be rewritten.
14672
14673 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
14674
14675 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
14676 PROCESSOR_POWER7.
14677 (PROCESSOR_DEFAULT64): Likewise.
14678
14679 2011-02-10 Richard Henderson <rth@redhat.com>
14680
14681 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
14682 change from 2011-02-03.
14683 * config/rx/rx.c (flags_from_code): Likewise.
14684 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
14685 is valid, n/pz otherwise.
14686 (rx_select_cc_mode): Return CCmode if Y is not zero.
14687
14688 2011-02-10 Richard Guenther <rguenther@suse.de>
14689
14690 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
14691
14692 2011-02-10 Richard Guenther <rguenther@suse.de>
14693
14694 PR tree-optimization/47677
14695 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
14696
14697 2011-02-10 Jakub Jelinek <jakub@redhat.com>
14698
14699 PR target/47665
14700 * combine.c (make_compound_operation): Only change shifts into
14701 multiplication for SCALAR_INT_MODE_P.
14702
14703 2011-02-10 Jie Zhang <jie@codesourcery.com>
14704
14705 PR testsuite/47622
14706 Revert
14707 2011-02-05 Jie Zhang <jie@codesourcery.com>
14708 PR debug/42631
14709 * web.c (entry_register): Don't clobber the number of the
14710 first uninitialized reference in used[].
14711
14712 2011-02-09 Richard Guenther <rguenther@suse.de>
14713
14714 PR tree-optimization/47664
14715 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
14716 all edges again.
14717
14718 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
14719
14720 PR target/46481
14721 PR target/47032
14722 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
14723 PROCESSOR_POWER7.
14724 (PROCESSOR_DEFAULT64): Same.
14725 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
14726
14727 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14728
14729 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
14730
14731 2011-02-09 Martin Jambor <mjambor@suse.cz>
14732
14733 PR middle-end/45505
14734 * tree-sra.c (struct access): New flags grp_scalar_read and
14735 grp_scalar_write. Changed description of assignment read and write
14736 flags.
14737 (dump_access): Dump new flags, reorder all of them.
14738 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14739 to detect multiple scalar reads.
14740 (analyze_access_subtree): Use the new scalar read write flags instead
14741 of the old flags. Adjusted comments.
14742
14743 2011-02-08 DJ Delorie <dj@redhat.com>
14744
14745 PR target/47548
14746 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14747 patterns.
14748
14749 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14750
14751 * config/m68k/uclinux.opt: New.
14752 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14753
14754 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14755
14756 * config/cris/elf.opt (sim): New Driver option.
14757
14758 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14759
14760 * config/xtensa/elf.opt: New.
14761 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14762
14763 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14764
14765 * config/vax/elf.opt: New.
14766 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14767
14768 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14769
14770 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14771
14772 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14773
14774 * config/gnu-user.opt: New.
14775 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14776 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14777 *-*-uclinux*): Use gnu-user.opt.
14778
14779 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
14780
14781 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14782 * config/i386/gnu.h (CPP_SPEC): Likewise.
14783
14784 2011-02-08 Ian Lance Taylor <iant@google.com>
14785
14786 * common.opt (fcx-limited-range): Add SetByCombined flag.
14787 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14788 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14789 (fassociative-math, freciprocal-math): Likewise.
14790 (funsafe-math-optimizations): Likewise.
14791 * opth-gen.awk: Handle SetByCombined.
14792 * optc-gen.awk: Likewise.
14793 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14794 (set_unsafe_math_optimizations_flags): Likewise.
14795 * doc/options.texi (Option properties): Document SetByCombined.
14796
14797 2011-02-08 Joseph Myers <joseph@codesourcery.com>
14798
14799 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14800 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14801 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14802 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14803 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14804
14805 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
14806
14807 PR tree-optimization/46834
14808 PR tree-optimization/46994
14809 PR tree-optimization/46995
14810 * graphite-sese-to-poly.c (used_outside_reduction): New.
14811 (detect_commutative_reduction): Call used_outside_reduction.
14812 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14813 translate_scalar_reduction_to_array only when at least one
14814 loop-phi/close-phi tuple has been detected.
14815
14816 2011-02-08 Richard Guenther <rguenther@suse.de>
14817
14818 PR middle-end/47639
14819 * tree-vect-generic.c (expand_vector_operations_1): Update
14820 stmts here ...
14821 (expand_vector_operations): ... not here. Cleanup EH info
14822 and the CFG if required.
14823
14824 2011-02-08 Richard Guenther <rguenther@suse.de>
14825
14826 PR tree-optimization/47641
14827 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14828 require type compatibility.
14829
14830 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14831
14832 * gimple-low.c (lower_function_body): Don't remove the location of
14833 the return statement here.
14834 (lower_gimple_return): Do it here instead but only if the return
14835 statement is actually used twice.
14836
14837 2011-02-08 Richard Guenther <rguenther@suse.de>
14838
14839 PR tree-optimization/47632
14840 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14841 unused up_to_stmt parameter, return whether cfg-cleanup is
14842 necessary, remove EH info properly.
14843 (forward_propagate_into_gimple_cond): Adjust caller.
14844 (forward_propagate_into_cond): Likewise.
14845 (forward_propagate_comparison): Likewise.
14846 (tree_ssa_forward_propagate_single_use_vars): Make
14847 forward_propagate_comparison case similar to the two others.
14848
14849 2011-02-08 Nick Clifton <nickc@redhat.com>
14850
14851 * config/mn10300/mn10300.opt (mliw): New command line option.
14852 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14853 (liw_bundling): New automaton.
14854 (liw): New attribute.
14855 (liw_op): New attribute.
14856 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14857 (movsi_internal): Add LIW attributes.
14858 (andsi3): Likewise.
14859 (iorsi3): Likewise.
14860 (xorsi3): Likewise.
14861 (addsi3): Separate register and immediate alternatives.
14862 Add LIW attributes.
14863 (subsi3): Likewise.
14864 (cmpsi): Likewise.
14865 (aslsi3): Likewise.
14866 (lshrsi3): Likewise.
14867 (ashrsi3): Likewise.
14868 (liw): New pattern.
14869 * config/mn10300/mn10300.c (liw_op_names): New
14870 (mn10300_print_operand): Handle 'W' operand descriptor.
14871 (extract_bundle): New function.
14872 (check_liw_constraints): New function.
14873 (liw_candidate): New function.
14874 (mn10300_bundle_liw): New function.
14875 (mn10300_reorg): New function.
14876 (TARGET_MACHINE_DEPENDENT_REORG): Define.
14877 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14878 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14879 __LIW__ or __NO_LIW__.
14880 * doc/invoke.texi: Describe the -mliw command line option.
14881
14882 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14883
14884 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14885 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14886 pthread_mutex_unlock): Remove.
14887 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14888 * config/pa/t-pa64: Likewise.
14889 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14890 shared libc if not linking against libpthread.
14891 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14892
14893 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
14894
14895 PR target/47558
14896 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14897 on 10.6 and later to ensure that we always use the unwinder from
14898 the system. Only add -no_compact_unwind when tarteting darwin
14899 10.6 or later.
14900
14901 2011-02-07 Steve Ellcey <sje@cup.hp.com>
14902
14903 PR target/46997
14904 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14905 (vec_interleave_lowv2sf): Ditto.
14906 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14907 (vec_extract_oddv2sf): Ditto.
14908
14909 2011-02-07 Mike Stump <mikestump@comcast.net>
14910
14911 PR target/42333
14912 Add __ieee_divdc3 entry point.
14913 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14914 entry point.
14915 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14916 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14917 * config/darwin.c (darwin_rename_builtins): Add.
14918 * config/darwin-protos.h (darwin_rename_builtins): Add.
14919
14920 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14921
14922 PR target/47636
14923 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14924 for the condition.
14925
14926 2011-02-07 Mike Stump <mikestump@comcast.net>
14927
14928 * config/darwin.opt (mmacosx-version-min): Update default OS version.
14929
14930 2011-02-07 Denis Chertykov <chertykov@gmail.com>
14931
14932 PR target/47534
14933 * config/avr/libgcc.S (exit): Move .endfunc
14934
14935 2011-02-07 Richard Guenther <rguenther@suse.de>
14936
14937 PR tree-optimization/47615
14938 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14939 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14940 (run_scc_vn): Initialize it.
14941 (visit_reference_op_load): Use it.
14942 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14943
14944 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14945
14946 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14947 DImode trapping arithmetic libfuncs.
14948
14949 2011-02-07 Richard Guenther <rguenther@suse.de>
14950
14951 PR tree-optimization/47621
14952 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14953 two duplicates ...
14954 (execute_update_addresses_taken): ... here. Make it more
14955 conservative in what we accept.
14956
14957 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14958
14959 * config/sparc/freebsd.h (ASM_SPEC): Define.
14960 * config/sparc/vxworks.h (ASM_SPEC): Define.
14961
14962 2011-02-06 Joseph Myers <joseph@codesourcery.com>
14963
14964 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14965
14966 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
14967
14968 * doc/invoke.texi: Remove reference to compiler internals from
14969 user documentation.
14970
14971 * reg-notes.def: Remove REG_VALUE_PROFILE.
14972 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14973
14974 2011-02-05 Jakub Jelinek <jakub@redhat.com>
14975
14976 PR middle-end/47610
14977 * varasm.c (default_section_type_flags): If decl is NULL,
14978 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14979
14980 2011-02-05 Jie Zhang <jie@codesourcery.com>
14981
14982 PR debug/42631
14983 * web.c (entry_register): Don't clobber the number of the
14984 first uninitialized reference in used[].
14985
14986 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
14987
14988 PR tree-optimization/46194
14989 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14990 (build_classic_dist_vector_1): Do not represent classic distance
14991 vectors when the access functions are variating in different loops.
14992
14993 2011-02-04 Joseph Myers <joseph@codesourcery.com>
14994
14995 * config/mips/iris6.opt: New.
14996 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14997
14998 2011-02-04 Richard Henderson <rth@redhat.com>
14999 Steve Ellcey <sje@cup.hp.com>
15000
15001 PR target/46997
15002 * config/ia64/predicates.md (mux1_brcst_element): New.
15003 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
15004 * config/ia64/ia64.c (ia64_unpack_assemble): New.
15005 (ia64_unpack_sign): New.
15006 (ia64_expand_unpack): Rewrite using new routines.
15007 (ia64_expand_widen_sum): Ditto.
15008 (ia64_expand_dot_prod_v8qi): Ditto.
15009 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
15010 routines, add endian check.
15011 (pmpy2_even): Rename from pmpy2_r, add endian check.
15012 (pmpy2_odd): Rename from pmpy2_l, add endian check.
15013 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
15014 (vec_widen_smult_hi_v4hi): Ditto.
15015 (vec_widen_umult_lo_v4hi): Ditto.
15016 (vec_widen_umult_hi_v4hi): Ditto.
15017 (mulv2si3): Change endian checks.
15018 (sdot_prodv4hi): Rewrite with new calls.
15019 (udot_prodv4hi): New.
15020 (vec_pack_ssat_v4hi): Add endian check.
15021 (vec_pack_usat_v4hi): Ditto.
15022 (vec_pack_ssat_v2si): Ditto.
15023 (max1_even): Rename from max1_r, add endian check.
15024 (max1_odd): Rename from max1_l, add endian check.
15025 (*mux1_rev): Format change.
15026 (*mux1_mix): Ditto.
15027 (*mux1_shuf): Ditto.
15028 (*mux1_alt): Ditto.
15029 (*mux1_brcst_v8qi): Use new predicate.
15030 (vec_extract_evenv8qi): Remove endian check.
15031 (vec_extract_oddv8qi): Ditto.
15032 (vec_interleave_lowv4hi): Format change.
15033 (vec_interleave_highv4hi): Ditto.
15034 (mix2_even): Rename from mix2_r, add endian check.
15035 (mix2_odd): Rename from mux2_l, add endian check.
15036 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
15037 (vec_extract_evenodd_helper): Format change.
15038 (vec_extract_evenv4hi): Remove endian check.
15039 (vec_extract_oddv4hi): Remove endian check.
15040 (vec_interleave_lowv2si): Format change.
15041 (vec_interleave_highv2si): Format change.
15042 (vec_initv2si): Remove endian check.
15043 (vecinit_v2si): Add endian check.
15044 (reduc_splus_v2sf): Add endian check.
15045 (reduc_smax_v2sf): Ditto.
15046 (reduc_smin_v2sf): Ditto.
15047 (vec_initv2sf): Remove endian check.
15048 (fpack): Add endian check.
15049 (fswap): Add endian check.
15050 (vec_interleave_highv2sf): Add endian check.
15051 (vec_interleave_lowv2sf): Add endian check.
15052 (fmix_lr): Add endian check.
15053 (vec_setv2sf): Format change.
15054 (*vec_extractv2sf_0_be): Use shift to extract operand.
15055 (*vec_extractv2sf_1_be): New.
15056 (vec_pack_trunc_v4hi): Add endian check.
15057 (vec_pack_trunc_v2si): Format change.
15058
15059 2011-02-04 Jakub Jelinek <jakub@redhat.com>
15060
15061 PR inline-asm/23200
15062 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
15063 do bb, locus and block comparison and disallow loads if it is not set.
15064 (stmt_is_replaceable_p): New function.
15065 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
15066 callers.
15067 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
15068 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
15069 SSA_NAME_DEF_STMT.
15070 * tree-flow.h (stmt_is_replaceable_p): New prototype.
15071
15072 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15073
15074 * config/rs6000/xilinx.opt: New.
15075 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
15076
15077 2011-02-04 Joseph Myers <joseph@codesourcery.com>
15078
15079 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
15080
15081 2011-02-03 Anatoly Sokolov <aesok@post.ru>
15082
15083 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
15084 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15085 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
15086 secondary_reload_info, xtensa_secondary_reload): Remove.
15087 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
15088 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
15089 (xtensa_preferred_reload_class): Make static. Change return and
15090 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
15091 Use CONST_DOUBLE_P predicate.
15092 (xtensa_preferred_output_reload_class): New function.
15093 (xtensa_secondary_reload): Make static.
15094
15095 2011-02-03 Joseph Myers <joseph@codesourcery.com>
15096
15097 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
15098 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
15099 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
15100
15101 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15102
15103 PR middle-end/31490
15104 * output.h (SECTION_RELRO): Define.
15105 (SECTION_MACH_DEP): Adjust.
15106 (get_variable_section): New prototype.
15107 * varpool.c (varpool_finalize_named_section_flags): New function.
15108 (varpool_assemble_pending_decls): Call it.
15109 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
15110 * cgraphunit.c (cgraph_output_in_order): Call
15111 varpool_finalize_named_section_flags.
15112 * varasm.c (get_section): Allow section flags conflicts between
15113 relro and read-only sections if the section hasn't been declared yet.
15114 Set SECTION_OVERRIDE after diagnosing section type conflict.
15115 (get_variable_section): No longer static.
15116 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
15117 readonly sections that need relocations.
15118 (decl_readonly_section_1): New function.
15119 (decl_readonly_section): Use it.
15120
15121 Revert:
15122 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
15123 Steve Ellcey <sje@cup.hp.com>
15124
15125 PR middle-end/31490
15126 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
15127 if section attribute used.
15128
15129 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15130
15131 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
15132 * config/darwin.c (SECTION_NO_ANCHOR): Define.
15133 (darwin_init_sections): Remove assertion.
15134
15135 2011-02-03 Nick Clifton <nickc@redhat.com>
15136
15137 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
15138 lt and ge.
15139 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
15140 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
15141 instead of "n" and "pz".
15142 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
15143 CC_FLAG_S.
15144
15145 2011-02-03 Jakub Jelinek <jakub@redhat.com>
15146
15147 PR target/47312
15148 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
15149 fma, expand FMA_EXPR as fma{,f,l} call.
15150
15151 PR lto/47274
15152 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
15153 copy them into a unsigned char variable and pass address of it to
15154 lto_output_data_stream.
15155
15156 PR target/47564
15157 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
15158 around backend_init_target and lang_dependent_init_target calls.
15159 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
15160 (verify_cgraph_node): Don't call set_cfun here. Use
15161 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
15162 Set error_found for incorrectly represented calls to thunks.
15163
15164 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15165
15166 PR debug/43092
15167 PR rtl-optimization/43494
15168 * rtl.h (for_each_inc_dec_fn): New type.
15169 (for_each_inc_dec): Declare.
15170 * rtlanal.c (struct for_each_inc_dec_ops): New type.
15171 (for_each_inc_dec_find_inc_dec): New fn.
15172 (for_each_inc_dec_find_mem): New fn.
15173 (for_each_inc_dec): New fn.
15174 * dse.c (struct insn_size): Remove.
15175 (replace_inc_dec, replace_inc_dec_mem): Remove.
15176 (emit_inc_dec_insn_before): New fn.
15177 (check_for_inc_dec): Use it, along with for_each_inc_dec.
15178 (canon_address): Pass mem modes to cselib_lookup.
15179 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
15180 (cselib_lookup_from_insn): Likewise.
15181 (cselib_subst_to_values): Likewise.
15182 * cselib.c (find_slot_memmode): New var.
15183 (cselib_find_slot): New fn. Use it instead of
15184 htab_find_slot_with_hash everywhere.
15185 (entry_and_rtx_equal_p): Use find_slot_memmode.
15186 (autoinc_split): New fn.
15187 (rtx_equal_for_cselib_p): Rename and implement in terms of...
15188 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
15189 Deal with autoinc. Special-case recursion into MEMs.
15190 (cselib_hash_rtx): Likewise.
15191 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
15192 address and MEM modes.
15193 (cselib_subst_to_values): Add memmode, pass it on.
15194 Deal with autoinc.
15195 (cselib_lookup): Add memmode argument, pass it on.
15196 (cselib_lookup_from_insn): Add memmode.
15197 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
15198 (struct cselib_record_autoinc_data): New.
15199 (cselib_record_autoinc_cb): New fn.
15200 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
15201 mode to cselib_lookup. Reset autoinced REGs here instead of...
15202 (cselib_process_insn): ... here.
15203 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
15204 to cselib_lookup.
15205 (add_uses): Likewise, also to cselib_subst_to_values.
15206 (add_stores): Likewise.
15207 * sched-deps.c (add_insn_mem_dependence): Pass mode to
15208 cselib_subst_to_values.
15209 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
15210 * gcse.c (do_local_cprop): Adjusted.
15211 * postreload.c (reload_cse_simplify_set): Adjusted.
15212 (reload_cse_simplify_operands): Adjusted.
15213 * sel-sched-dump (debug_mem_addr_value): Pass mode.
15214
15215 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
15216
15217 PR tree-optimization/45122
15218 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
15219 unsafe assumptions when there's more than one loop exit.
15220
15221 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
15222
15223 PR target/47272
15224 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
15225 Document using vector double with the load/store builtins, and
15226 that the load/store builtins always use Altivec instructions.
15227
15228 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
15229 to use altivec memory instructions, even on VSX.
15230 (vector_altivec_store_<mode>): Ditto.
15231
15232 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
15233 function.
15234
15235 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15236 V2DF, V2DI support to load/store overloaded builtins.
15237
15238 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
15239 altivec load/store builtins for V2DF/V2DI types.
15240
15241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
15242 set avoid indexed addresses on power6 if -maltivec.
15243 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
15244 vector_altivec_load/vector_altivec_store builtins.
15245 (altivec_expand_st_builtin): Ditto.
15246 (altivec_expand_builtin): Add VSX memory builtins.
15247 (rs6000_init_builtins): Add V2DI types to internal types.
15248 (altivec_init_builtins): Add support for V2DF/V2DI altivec
15249 load/store builtins.
15250 (rs6000_address_for_altivec): Insure memory address is appropriate
15251 for Altivec.
15252
15253 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
15254 vec_vsx_ld and vec_vsx_st.
15255 (vsx_store_<mode>): Ditto.
15256
15257 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
15258 variables to hold long long types for VSX vector memory builtins.
15259 (RS6000_BTI_unsigned_long_long): Ditto.
15260 (long_long_integer_type_internal_node): Ditti.
15261 (long_long_unsigned_type_internal_node): Ditti.
15262
15263 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
15264 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
15265 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
15266
15267 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
15268 short cuts.
15269 (vec_vsx_st): Ditto.
15270
15271 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15272
15273 * config/pa/pa-hpux10.opt: New.
15274 * config/hpux11.opt (pthread): New Driver option.
15275 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
15276 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
15277
15278 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15279
15280 * config/ia64/vms.opt: New.
15281 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
15282
15283 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
15284
15285 PR target/47580
15286 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
15287 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
15288 generator functions.
15289 (vsx_floatuns<VSi><mode>2): Ditto.
15290 (vsx_fix_trunc<mode><VSi>2): Ditto.
15291 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
15292
15293 2011-02-02 Joseph Myers <joseph@codesourcery.com>
15294
15295 * config/i386/djgpp.opt (posix): New Driver option.
15296
15297 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
15298
15299 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
15300 Move to the unsupported targets list.
15301
15302 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
15303
15304 PR rtl-optimization/47525
15305 * df-scan.c: Update copyright years.
15306 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
15307 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
15308
15309 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15310
15311 * config/i386/sysv4.h (TARGET_VERSION): Remove.
15312 (SUBTARGET_RETURN_IN_MEMORY): Remove.
15313 (ASM_OUTPUT_ASCII): Remove.
15314 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
15315
15316 2011-02-02 Jeff Law <law@redhat.com>
15317
15318 PR middle-end/47543
15319 * reload.c (find_reloads_address): Handle reg+d address where both
15320 components are invalid by reloading the entire address.
15321
15322 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15323 Richard Guenther <rguenther@suse.de>
15324
15325 PR tree-optimization/40979
15326 PR bootstrap/47044
15327 * passes.c (init_optimization_passes): After LIM call copy_prop
15328 and DCE to clean up.
15329 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
15330
15331 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
15332
15333 PR tree-optimization/47576
15334 PR tree-optimization/47555
15335 * doc/invoke.texi (scev-max-expr-complexity): Documented.
15336 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15337 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
15338 * tree-scalar-evolution.c (follow_ssa_edge): Use
15339 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
15340
15341 2011-02-02 Richard Guenther <rguenther@suse.de>
15342
15343 PR tree-optimization/47566
15344 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
15345
15346 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15347
15348 PR debug/47106
15349 PR debug/47402
15350 * tree-inline.c (declare_return_variable): Remove unused caller
15351 variable.
15352
15353 PR debug/47106
15354 PR debug/47402
15355 * tree-flow-inline.h (clear_is_used, is_used_p): New.
15356 * cfgexpand.c (account_used_vars_for_block): Use them.
15357 * tree-nrv.c (tree_nrv): Likewise.
15358 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
15359 (dump_scope_block): Likewise.
15360 (remove_unused_locals): Likewise.
15361
15362 PR debug/47106
15363 PR debug/47402
15364 * tree-inline.c (declare_return_variable): Add result decl to
15365 local decls only once.
15366 * gimple-low.c (record_vars_into): Mark newly-created variables
15367 as referenced.
15368
15369 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
15370
15371 PR debug/47498
15372 PR debug/47501
15373 PR debug/45136
15374 PR debug/45130
15375 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15376 debug insns.
15377 (no_real_insns_p, schedule_block, set_priorities): Drop special
15378 treatment of boundary debug insns.
15379 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15380 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
15381 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15382 (BOUNDARY_DEBUG_INSN_P): Likewise.
15383 (SCHEDULE_DEBUG_INSN_P): Likewise.
15384 * sched-rgn.c (init_ready_list): Drop special treatment of
15385 boundary debug insns.
15386 * final.c (rest_of_clean_state): Clear notes' BB.
15387
15388 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15389
15390 * config/openbsd.opt (assert=): New Driver option.
15391
15392 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15393
15394 * config/i386/nto.opt: New.
15395 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
15396
15397 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15398
15399 * config/i386/netware.opt: New.
15400 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
15401
15402 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15403
15404 * config/interix.opt (posix): New Driver option.
15405
15406 2011-02-01 DJ Delorie <dj@redhat.com>
15407
15408 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
15409
15410 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
15411 class for A0/A1.
15412
15413 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
15414
15415 PR tree-optimization/47561
15416 * toplev.c (process_options): Print the Graphite flags. Add
15417 flag_loop_flatten to the list of options requiring Graphite.
15418
15419 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15420
15421 * config/i386/cygming.opt (posix): New Driver option.
15422
15423 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15424
15425 * config/arm/vxworks.opt: New.
15426 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
15427
15428 2011-02-01 Joseph Myers <joseph@codesourcery.com>
15429
15430 * config/alpha/elf.opt: New.
15431 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
15432 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
15433
15434 2011-02-01 Richard Guenther <rguenther@suse.de>
15435
15436 PR tree-optimization/47559
15437 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
15438 store-motion on references that can throw.
15439
15440 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
15441
15442 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
15443 * tree-pass.h (TDF_CSELIB): New macro.
15444 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
15445 cselib_lookup): Check for it rather than for TDF_DETAILS.
15446
15447 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
15448
15449 PR driver/47547
15450 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
15451 is HOST_BIT_BUCKET.
15452
15453 * opts.c (finish_options): Don't add x_aux_base_name if it is
15454 HOST_BIT_BUCKET.
15455
15456 2011-02-01 Richard Guenther <rguenther@suse.de>
15457
15458 PR tree-optimization/47555
15459 Revert
15460 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
15461
15462 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
15463
15464 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
15465
15466 PR gcc/46692
15467 * config/lm32/t-lm32: Add multilib for all CPU options.
15468
15469 2011-02-01 Richard Guenther <rguenther@suse.de>
15470
15471 PR tree-optimization/47541
15472 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
15473 sure to have a field at offset zero.
15474
15475 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15476
15477 * config/arc/arc.opt (EB, EL): New Driver options.
15478
15479 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15480
15481 * config/alpha/osf5.opt: New.
15482 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
15483
15484 2011-01-31 Joseph Myers <joseph@codesourcery.com>
15485
15486 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
15487
15488 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
15489
15490 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
15491 -floop-interchange.
15492 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
15493 is an alias of -floop-interchange and that it requires the
15494 Graphite infrastructure.
15495 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
15496 flag_loop_interchange based on the value of flag_tree_loop_linear.
15497
15498 2011-01-31 Jakub Jelinek <jakub@redhat.com>
15499 Richard Guenther <rguenther@suse.de>
15500
15501 PR tree-optimization/47538
15502 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
15503 type instead of r1type, except for comparisons. For right
15504 shifts and comparisons punt if there are mismatches in
15505 sizetype vs. non-sizetype types.
15506
15507 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15508
15509 * doc/sourcebuild.texi (Effective-Target Keywords): Document
15510 avx_runtime.
15511
15512 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15513
15514 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
15515 version number.
15516 * configure: Regenerate.
15517
15518 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15519
15520 * configure.ac (gcc_cv_ld_static_option): Define.
15521 (gcc_cv_ld_dynamic_option): Define.
15522 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
15523 instead.
15524 (HAVE_LD_STATIC_DYNAMIC): Update message.
15525 (LD_STATIC_OPTION): Define.
15526 (LD_DYNAMIC_OPTION): Define.
15527 * configure: Regenerate.
15528 * config.in: Regenerate.
15529 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
15530 HAVE_LD_STATIC_DYNAMIC]: Use them.
15531
15532 2011-01-31 Nick Clifton <nickc@redhat.com>
15533
15534 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
15535 registers inside interrupt handlers if the handler is not a leaf
15536 function.
15537
15538 2011-01-31 Nick Clifton <nickc@redhat.com>
15539
15540 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
15541 reg_renumber returning an INVALID_REGNUM.
15542
15543 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15544
15545 PR libgcj/44341
15546 * doc/install.texi: Document host options discarded when cross
15547 configuring target libraries.
15548
15549 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
15550
15551 Reverted:
15552 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15553 PR debug/45136
15554 PR debug/45130
15555 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15556 debug insns.
15557 (no_real_insns_p, schedule_block, set_priorities): Drop special
15558 treatment of boundary debug insns.
15559 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15560 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15561 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15562 (BOUNDARY_DEBUG_INSN_P): Likewise.
15563 (SCHEDULE_DEBUG_INSN_P): Likewise.
15564 * sched-rgn.c (init_ready_list): Drop special treatment of
15565 boundary debug insns.
15566 * final.c (rest_of_clean-state): Clear notes' BB.
15567
15568 2011-01-31 Alan Modra <amodra@gmail.com>
15569
15570 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
15571 toc relative expressions as we do in print_operand_address.
15572
15573 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
15574
15575 * doc/extend.texi: Follow spelling conventions.
15576 * doc/invoke.texi: Fix a typo.
15577
15578 2011-01-30 Joseph Myers <joseph@codesourcery.com>
15579
15580 * config/hpux11.opt: New.
15581 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
15582 ia64*-*-hpux*): Use hpux11.opt.
15583
15584 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
15585
15586 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
15587 to tmake_file.
15588
15589 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15590
15591 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
15592 support sites.
15593
15594 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15595
15596 * doc/install.texi (Binaries): Remove outdated reference for
15597 Motorola 68HC11/68HC12 downloads.
15598
15599 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
15600
15601 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
15602 Drepper's paper.
15603
15604 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
15605
15606 PR bootstrap/47147
15607 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
15608 used by NetBSD.
15609
15610 2011-01-28 Ahmad Sharif <asharif@google.com>
15611
15612 * value-prof.c (check_counter): Corrected error message.
15613
15614 2011-01-29 Jie Zhang <jie@codesourcery.com>
15615
15616 * config/arm/arm.c (arm_legitimize_reload_address): New.
15617 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15618 arm_legitimize_reload_address.
15619 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
15620
15621 2011-01-28 Ian Lance Taylor <iant@google.com>
15622
15623 * godump.c (go_define): Ignore macros whose definitions include
15624 two adjacent operands.
15625
15626 2011-01-28 Jakub Jelinek <jakub@redhat.com>
15627
15628 PR target/42894
15629 * varasm.c (force_const_mem): Store copy of x in desc->constant
15630 instead of x itself.
15631 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
15632 itself into REG_EQUAL note.
15633
15634 2011-01-28 Joseph Myers <joseph@codesourcery.com>
15635
15636 * config/freebsd.opt (posix, rdynamic): New Driver options.
15637
15638 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15639
15640 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
15641 -Bstatic/-Bdynamic.
15642 * configure: Regenerate.
15643
15644 2011-01-27 Joseph Myers <joseph@codesourcery.com>
15645
15646 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
15647 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
15648
15649 2011-01-27 Anatoly Sokolov <aesok@post.ru>
15650
15651 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
15652 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
15653 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
15654 (s390_preferred_reload_class): Make static. Change return and
15655 'rclass' argument type to reg_class_t.
15656
15657 2011-01-27 Jan Hubicka <jh@suse.cz>
15658
15659 PR middle-end/46949
15660 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
15661 (process_function_and_variable_attributes): Check defined weakrefs.
15662
15663 2011-01-27 Martin Jambor <mjambor@suse.cz>
15664
15665 PR tree-optimization/47228
15666 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
15667 build_ref_for_offset.
15668
15669 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15670
15671 * config/spu/spu-elf.h (ASM_SPEC): Remove.
15672
15673 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
15674
15675 PR rtl-optimization/46856
15676 * postreload.c (reload_combine_recognize_const_pattern): Do not
15677 separate cc0 setter and user on cc0 targets.
15678
15679 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
15680
15681 PR c/43082
15682 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
15683 passed a VOID_TYPE expression, immediately emit an error and
15684 return error_mark_node.
15685
15686 2011-01-26 Jeff Law <law@redhat.com>
15687
15688 PR rtl-optimization/47464
15689 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
15690 rather than may_trap_p as needed.
15691
15692 2011-01-26 DJ Delorie <dj@redhat.com>
15693
15694 PR rtl-optimization/46878
15695 * combine.c (insn_a_feeds_b): Check for the implicit cc0
15696 setter/user dependency as well.
15697
15698 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
15699
15700 PR rtl-optimization/44469
15701 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
15702 after removing trivially dead basic blocks.
15703
15704 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15705
15706 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
15707 * config/frv/frv.h (LINK_SPEC): Likewise.
15708 * config/i386/netware.h (LINK_SPEC): Likewise.
15709 * config/m68k/linux.h (ASM_SPEC): Likewise.
15710 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
15711 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15712 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15713 * config/sparc/linux.h (ASM_SPEC): Likewise.
15714 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15715 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15716
15717 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15718
15719 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
15720 * config/frv/frv.h (ASM_SPEC): Likewise.
15721 * config/m68k/linux.h (ASM_SPEC): Likewise.
15722 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15723 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
15724 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15725 * config/sparc/linux.h (ASM_SPEC): Likewise.
15726 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15727 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15728
15729 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15730
15731 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
15732 * config/frv/frv.h (LINK_SPEC): Likewise.
15733 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
15734
15735 2011-01-26 Joseph Myers <joseph@codesourcery.com>
15736
15737 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
15738 * config/frv/frv.h (ASM_SPEC): Likewise.
15739 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15740 * config/m68k/linux.h (ASM_SPEC): Likewise.
15741 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15742 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15743 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15744 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15745 * config/sparc/linux.h (ASM_SPEC): Likewise.
15746 * config/sparc/linux64.h (ASM_SPEC): Likewise.
15747 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15748 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15749
15750 2011-01-26 Steve Ellcey <sje@cup.hp.com>
15751
15752 PR target/46997
15753 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15754 (*mux2): Ditto.
15755 (vec_extract_evenodd_help): Ditto.
15756 (vec_extract_evenv4hi): Ditto.
15757 (vec_extract_oddv4hi): Ditto.
15758 (vec_interleave_lowv2si): Ditto.
15759 (vec_interleave_highv2si): Ditto.
15760 (vec_extract_evenv2si): Ditto.
15761 (vec_extract_oddv2si: Ditto.
15762 (vec_pack_trunc_v2si): Ditto.
15763
15764 2011-01-22 Jan Hubicka <jh@suse.cz>
15765
15766 PR target/47237
15767 * cgraph.h (cgraph_local_info): New field can_change_signature.
15768 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15769 signature can change.
15770 (ipcp_estimate_growth): Call sequence simplify only if calle signature
15771 can change.
15772 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15773 (cgraph_function_versioning): We can not change signature of functions
15774 that don't allow that.
15775 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15776 (lto_input_node): Likewise.
15777 * ipa-inline.c (compute_inline_parameters): Compute
15778 local.can_change_signature.
15779 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15780 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15781 functions that can not change signature.
15782 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15783 init_cumulative_args): Do not use local calling conventions
15784 for functions that can not change signature.
15785
15786 2011-01-22 Jan Hubicka <jh@suse.cz>
15787
15788 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15789
15790 2011-01-26 Richard Guenther <rguenther@suse.de>
15791
15792 PR tree-optimization/47190
15793 * cgraphunit.c (process_common_attributes): New function.
15794 (process_function_and_variable_attributes): Use it.
15795
15796 2011-01-26 Richard Guenther <rguenther@suse.de>
15797
15798 PR lto/47423
15799 * cgraphbuild.c (record_eh_tables): Record reference to personality
15800 function.
15801
15802 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
15803
15804 PR debug/45454
15805 * sel-sched.c (moveup_expr): Don't let debug insns prevent
15806 non-debug insns from moving up.
15807
15808 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15809
15810 PR target/40125
15811 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15812 t-dlldir{,-x} fragment for build and add it to tmake_file.
15813 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15814 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15815 * config/i386/t-dlldir: New file.
15816 (SHLIB_DLLDIR): Define.
15817 * config/i386/t-dlldir-x: New file.
15818 (SHLIB_DLLDIR): Define.
15819 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15820 (SHLIB_INSTALL): Use it.
15821
15822 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
15823
15824 PR target/47246
15825 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15826 lower bound of the allowed Thumb-2 coprocessor load/store
15827 index range to -256. Add explaining comment.
15828
15829 2011-01-25 Ian Lance Taylor <iant@google.com>
15830
15831 * godump.c (go_define): Improve lexing of macro expansion to only
15832 accept expressions which match Go spec.
15833
15834 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
15835
15836 PR c++/43601
15837 * tree.c (handle_dll_attribute): Handle it.
15838 * doc/extend.texi (@item dllexport): Mention it.
15839 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15840
15841 2011-01-25 Ian Lance Taylor <iant@google.com>
15842
15843 PR tree-optimization/26854
15844 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15845 (decl_jump_unsafe): Move higher in file, with no other change.
15846 (bind): Set has_jump_unsafe_decl if appropriate.
15847 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15848 (check_earlier_gotos): Likewise.
15849 (c_check_switch_jump_warnings): Likewise.
15850
15851 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
15852
15853 * doc/invoke.texi (Warning Options): Add missing hyphen.
15854 (-fprofile-dir): Minor grammatical fixes.
15855 (-fbranch-probabilities): Likewise.
15856
15857 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
15858
15859 PR debug/45136
15860 PR debug/45130
15861 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15862 debug insns.
15863 (no_real_insns_p, schedule_block, set_priorities): Drop special
15864 treatment of boundary debug insns.
15865 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15866 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15867 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15868 (BOUNDARY_DEBUG_INSN_P): Likewise.
15869 (SCHEDULE_DEBUG_INSN_P): Likewise.
15870 * sched-rgn.c (init_ready_list): Drop special treatment of
15871 boundary debug insns.
15872 * final.c (rest_of_clean-state): Clear notes' BB.
15873
15874 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15875
15876 * Makefile.in (LAMBDA_H): Removed.
15877 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15878 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15879 lambda-trans.o, and tree-loop-linear.o.
15880 (lto-symtab.o): Remove dependence on LAMBDA_H.
15881 (tree-loop-linear.o): Remove rule.
15882 (lambda-mat.o): Same.
15883 (lambda-trans.o): Same.
15884 (lambda-code.o): Same.
15885 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15886 (tree-vect-slp.o): Same.
15887 * hwint.h (gcd): Moved here.
15888 (least_common_multiple): Same.
15889 * lambda-code.c: Removed.
15890 * lambda-mat.c: Removed.
15891 * lambda-trans.c: Removed.
15892 * lambda.h: Removed.
15893 * tree-loop-linear.c: Removed.
15894 * lto-symtab.c: Do not include lambda.h.
15895 * omega.c (gcd): Removed.
15896 * passes.c (init_optimization_passes): Remove pass_linear_transform.
15897 * tree-data-ref.c (print_lambda_vector): Moved here.
15898 (lambda_vector_copy): Same.
15899 (lambda_matrix_copy): Same.
15900 (lambda_matrix_id): Same.
15901 (lambda_vector_first_nz): Same.
15902 (lambda_matrix_row_add): Same.
15903 (lambda_matrix_row_exchange): Same.
15904 (lambda_vector_mult_const): Same.
15905 (lambda_vector_negate): Same.
15906 (lambda_matrix_row_negate): Same.
15907 (lambda_vector_equal): Same.
15908 (lambda_matrix_right_hermite): Same.
15909 * tree-data-ref.h: Do not include lambda.h.
15910 (lambda_vector): Moved here.
15911 (lambda_matrix): Same.
15912 (dependence_level): Same.
15913 (lambda_transform_legal_p): Removed declaration.
15914 (lambda_collect_parameters): Same.
15915 (lambda_compute_access_matrices): Same.
15916 (lambda_vector_gcd): Same.
15917 (lambda_vector_new): Same.
15918 (lambda_vector_clear): Same.
15919 (lambda_vector_lexico_pos): Same.
15920 (lambda_vector_zerop): Same.
15921 (lambda_matrix_new): Same.
15922 * tree-flow.h (least_common_multiple): Removed declaration.
15923 * tree-parloops.c (lambda_trans_matrix): Moved here.
15924 (LTM_MATRIX): Same.
15925 (LTM_ROWSIZE): Same.
15926 (LTM_COLSIZE): Same.
15927 (LTM_DENOMINATOR): Same.
15928 (lambda_trans_matrix_new): Same.
15929 (lambda_matrix_vector_mult): Same.
15930 (lambda_transform_legal_p): Same.
15931 * tree-pass.h (pass_linear_transform): Removed declaration.
15932 * tree-ssa-loop.c (tree_linear_transform): Removed.
15933 (gate_tree_linear_transform): Removed.
15934 (pass_linear_transform): Removed.
15935 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15936 flag_loop_interchange.
15937
15938 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15939
15940 PR tree-optimization/47265
15941 PR tree-optimization/47443
15942 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15943 if name still has some uses.
15944
15945 2011-01-25 Martin Jambor <mjambor@suse.cz>
15946
15947 PR tree-optimization/47382
15948 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15949 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15950
15951 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
15952
15953 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15954 sjlj_except_unwind_info.
15955
15956 2011-01-25 Richard Guenther <rguenther@suse.de>
15957
15958 PR tree-optimization/47426
15959 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15960 visible functions results escape.
15961
15962 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15963
15964 PR target/45701
15965 * config/arm/arm.c (any_sibcall_uses_r3): New function.
15966 (arm_get_frame_offsets): Use it.
15967
15968 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
15969 Jakub Jelinek <jakub@redhat.com>
15970
15971 PR tree-optimization/47271
15972 * tree-if-conv.c (bb_postdominates_preds): New.
15973 (if_convertible_bb_p): Call bb_postdominates_preds.
15974 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15975 (predicate_scalar_phi): Call bb_postdominates_preds.
15976
15977 2011-01-25 Nick Clifton <nickc@redhat.com>
15978
15979 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15980 * config/rx/rx.c (rx_function_value): Likewise.
15981 (rx_promote_function_mode): Likewise.
15982 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15983 in order to make it legitimate.
15984 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15985 make sure that the first operand is the same as the result register.
15986 (addsi3_unspec): Delete.
15987 (subdi3): Do not accept immediate operands.
15988 (subdi3_internal): Likewise.
15989
15990 2011-01-25 Jeff Law <law@redhat.com>
15991
15992 PR rtl-optimization/37273
15993 * ira-costs.c (scan_one_insn): Detect constants living in memory and
15994 handle them like argument loads from stack slots. Do not double
15995 count memory for memory constants and argument loads from stack slots.
15996
15997 2011-01-25 Jakub Jelinek <jakub@redhat.com>
15998
15999 PR tree-optimization/47427
16000 PR tree-optimization/47428
16001 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
16002 coalesce if the new root var would be TREE_READONLY.
16003
16004 2011-01-25 Richard Guenther <rguenther@suse.de>
16005
16006 PR middle-end/47414
16007 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
16008 correct type for TBAA.
16009
16010 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16011
16012 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
16013 (close_phi_written_to_memory): Call for_each_index with
16014 dr_indices_valid_in_loop.
16015
16016 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16017
16018 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
16019 when it is initialized.
16020
16021 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16022
16023 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
16024 call to graphite_find_data_references_in_stmt.
16025 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
16026 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
16027 call to graphite_find_data_references_in_stmt.
16028 (analyze_drs_in_stmts): Same.
16029 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
16030 in which the scalar analysis of indices is performed.
16031 (create_data_ref): Same. Update call to dr_analyze_indices.
16032 (find_data_references_in_stmt): Update call to create_data_ref.
16033 (graphite_find_data_references_in_stmt): Same.
16034 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
16035 declaration.
16036 (create_data_ref): Same.
16037 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
16038 call to create_data_ref.
16039
16040 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16041
16042 * graphite-sese-to-poly.c (build_poly_scop): Move
16043 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
16044
16045 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16046
16047 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
16048 VAR_DECL, PARM_DECL, and RESULT_DECL.
16049
16050 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16051
16052 * graphite-dependences.c (reduction_dr_1): Allow several reductions
16053 in a reduction PBB.
16054 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
16055 that have already been marked as PBB_IS_REDUCTION.
16056
16057 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16058
16059 * graphite-scop-detection.c (same_close_phi_node): New.
16060 (remove_duplicate_close_phi): New.
16061 (make_close_phi_nodes_unique): New.
16062 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
16063
16064 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16065
16066 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
16067 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
16068 of both data references to be the same.
16069
16070 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16071
16072 * graphite-dependences.c (build_lexicographical_constraint): Remove
16073 the gdim parameter.
16074 (build_lexicographical_constraint): Adjust call to
16075 ppl_powerset_is_empty.
16076 (dependence_polyhedron): Same.
16077 (graphite_legal_transform_dr): Same.
16078 (graphite_carried_dependence_level_k): Same.
16079 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
16080 parameter.
16081 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
16082
16083 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16084
16085 * graphite-sese-to-poly.c
16086 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
16087 (close_phi_written_to_memory): New.
16088 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
16089 and unshare_expr.
16090
16091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16092
16093 * doc/install.texi: Update the expected version number of PPL to 0.11.
16094 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
16095 #if PPL_VERSION_MINOR < 11.
16096
16097 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16098
16099 * graphite-dependences.c: Include graphite-cloog-util.h.
16100 (new_poly_ddr): Inlined into dependence_polyhedron.
16101 (free_poly_ddr): Moved close by new_poly_ddr.
16102 (dependence_polyhedron_1): Renamed dependence_polyhedron.
16103 Early return NULL when ppl_powerset_is_empty returns true.
16104 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
16105 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
16106 (graphite_legal_transform_dr): Call new_poly_ddr.
16107 (graphite_carried_dependence_level_k): Same.
16108 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
16109 (dot_transformed_deps_stmt_1): Removed.
16110 (dot_deps_stmt_1): Call dot_deps_stmt_2.
16111 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16112 (dot_deps_1): Call dot_deps_2.
16113 * Makefile.in (graphite-dependences.o): Add missing dependence on
16114 graphite-cloog-util.h.
16115
16116 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16117
16118 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
16119 (build_lexicographical_constraint): Same.
16120 (dependence_polyhedron_1): Same.
16121 (graphite_legal_transform_dr): Same.
16122 (graphite_carried_dependence_level_k): Same.
16123 * graphite-ppl.c (ppl_powerset_is_empty): New.
16124 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
16125 * tree-data-ref.c (dump_data_reference): Print the basic block index.
16126
16127 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16128
16129 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
16130 the "a followed by b" relation and document it.
16131
16132 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16133
16134 * graphite-dependences.c (build_lexicographical_constraint): Stop the
16135 iteration when the bag of constraints is empty.
16136
16137 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16138
16139 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
16140
16141 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16142
16143 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
16144 nest and two loop depths as parameters.
16145 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
16146 lst_perfect_nestify.
16147
16148 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16149
16150 * graphite-dependences.c (print_pddr): Call
16151 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
16152
16153 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
16154
16155 * graphite-ppl.c (debug_gmp_value): New.
16156 * graphite-ppl.h (debug_gmp_value): Declared.
16157
16158 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
16159
16160 * doc/install.texi: Document availability of cloog-0.16.
16161
16162 2011-01-25 Vladimir Kargov <kargov@gmail.com>
16163
16164 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
16165 invalid postdominance info.
16166
16167 2011-01-24 Jan Hubicka <jh@suse.cz>
16168
16169 PR c/21659
16170 * doc/extend.texi (weak pragma): Drop claim that it must
16171 appear before definition.
16172 * varasm.c (merge_weak, declare_weak): Only sanity check
16173 that DECL is not output at a time it is declared weak.
16174
16175 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
16176
16177 * machmode.def: Fixed comments.
16178
16179 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
16180
16181 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
16182
16183 2011-01-24 Paul Koning <ni1d@arrl.net>
16184
16185 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
16186 WORDS_BIG_ENDIAN.
16187
16188 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
16189
16190 PR target/46519
16191 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
16192 (block_info): Add scanned and prev.
16193 (move_or_delete_vzeroupper_2): Return if the basic block
16194 has been scanned and the upper 128bit state is unchanged
16195 from the last scan.
16196 (move_or_delete_vzeroupper_1): Return true if the exit
16197 state is changed.
16198 (move_or_delete_vzeroupper): Visit basic blocks using the
16199 work-list based algorithm based on vt_find_locations in
16200 var-tracking.c.
16201
16202 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
16203
16204 2011-01-24 Nick Clifton <nickc@redhat.com>
16205
16206 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
16207 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
16208 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
16209 then define __v850e1__.
16210 * doc/invoke.texi: Document -mv850es.
16211
16212 2011-01-24 Richard Henderson <rth@redhat.com>
16213
16214 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
16215 compound unordered comparisons.
16216 * config/rx/rx.c (rx_split_fp_compare): Remove.
16217 * config/rx/rx-protos.h: Update.
16218 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
16219 (cbranchsf4): Don't call rx_split_fp_compare.
16220 (*cbranchsf4): Use rx_split_cbranch.
16221 (*cmpsf): Don't accept "i" constraint.
16222 (*conditional_branch): Only valid after reload.
16223 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
16224
16225 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16226
16227 PR target/47385
16228 * config/rs6000/altivec.md (vector constant splitters): Add
16229 support for creating vector single precision constants if -mvsx is
16230 used and we would create the constant using Altivec primitives.
16231
16232 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
16233 Richard Sandiford <rdsandiford@googlemail.com>
16234
16235 PR rtl-optimization/47166
16236 * reload1.c (emit_reload_insns): Disable the spill_reg_store
16237 mechanism for PRE_MODIFY and POST_MODIFY.
16238 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
16239 reloadreg.
16240
16241 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
16242
16243 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
16244
16245 2011-01-22 Jan Hubicka <jh@suse.cz>
16246
16247 PR lto/47333
16248 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
16249
16250 2011-01-22 Jan Hubicka <jh@suse.cz>
16251
16252 PR tree-optimization/43884
16253 PR lto/44334
16254 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
16255 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
16256
16257 2011-01-22 Anatoly Sokolov <aesok@post.ru>
16258
16259 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
16260 * config/s390/s390.c (s390_register_move_cost,
16261 s390_memory_move_cost): New.
16262 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
16263
16264 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16265
16266 PR middle-end/47401
16267 * except.c (sjlj_assign_call_site_values): Move setting the
16268 crtl->uses_eh_lsda flag to ...
16269 (sjlj_mark_call_sites): ... here.
16270 (sjlj_emit_function_enter): Support NULL dispatch label.
16271 (sjlj_build_landing_pads): In a function with no landing pads
16272 that still has must-not-throw regions, generate code to register
16273 a personality function with empty LSDA.
16274
16275 2011-01-21 Richard Henderson <rth@redhat.com>
16276
16277 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
16278
16279 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
16280
16281 * compare-elim.c: New file.
16282 * Makefile.in (OBJS-common): Add it.
16283 (compare-elim.o): New.
16284 * common.opt (fcompare-elim): New.
16285 * opts.c (default_options_table): Add OPT_fcompare_elim.
16286 * tree-pass.h (pass_compare_elim_after_reload): New.
16287 * passes.c (init_optimization_passes): Add it.
16288 * recog.h: Protect against re-inclusion.
16289 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
16290 * doc/invoke.texi (-fcompare-elim): Document it.
16291 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
16292 * doc/tm.texi: Rebuild.
16293
16294 2011-01-22 Nick Clifton <nickc@redhat.com>
16295
16296 * config/rx/rx.md (cstoresf4): Pass comparison operator to
16297 rx_split_fp_compare.
16298
16299 2011-01-22 Nick Clifton <nickc@redhat.com>
16300
16301 * config/rx/rx.md (UNSPEC_CONST): New.
16302 (deallocate_and_return): Wrap the amount popped off the stack in
16303 an UNSPEC_CONST in order to stop it being rejected by
16304 -mmax-constant-size.
16305 (pop_and_return): Add a "(return)" rtx.
16306 (call): Drop the immediate operand.
16307 (call_internal): Likewise.
16308 (call_value): Likewise.
16309 (call_value_internal): Likewise.
16310 (sibcall_internal): Likewise.
16311 (sibcall_value_internal): Likewise.
16312 (sibcall): Likewise. Generate an explicit call using
16313 sibcall_internal.
16314 (sibcall_value): Likewise.
16315 (mov<>): FAIL if a constant operand is not legitimate.
16316 (addsi3_unpsec): New pattern.
16317
16318 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
16319 (ok_for_max_constant): New function.
16320 (gen_safe_add): New function.
16321 (rx_expand_prologue): Use gen_safe_add.
16322 (rx_expand_epilogue): Likewise.
16323 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
16324 UNSPEC CONSTs.
16325
16326 2011-01-21 Jeff Law <law@redhat.com>
16327
16328 PR tree-optimization/47053
16329 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
16330 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
16331 statements are deleted.
16332 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
16333 is nonempty, then purge dead edges and cleanup the CFG.
16334
16335 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16336
16337 PR debug/47402
16338 Temporarily revert:
16339 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16340 PR debug/47106
16341 * tree-dfa.c (create_var_ann): Mark variable as used.
16342
16343 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16344
16345 PR middle-end/45566
16346 * except.c (convert_to_eh_region_ranges): Emit queued no-region
16347 notes from other section in hot/cold partitioning even if
16348 last_action is -3. Increment call_site_base.
16349
16350 PR rtl-optimization/47366
16351 * fwprop.c (forward_propagate_into): Return bool. If
16352 any changes are made, -fnon-call-exceptions is used and
16353 REG_EH_REGION note is present, call purge_dead_edges
16354 and return true if it purged anything.
16355 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
16356 any EH edges were purged.
16357
16358 2011-01-21 Jeff Law <law@redhat.com>
16359
16360 PR rtl-optimization/41619
16361 * caller-save.c (setup_save_areas): Break out code to determine
16362 which hard regs are live across calls by examining the reload chains
16363 so that it is always used.
16364 Eliminate code which checked REG_N_CALLS_CROSSED.
16365
16366 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16367
16368 PR tree-optimization/47355
16369 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
16370 NOP has non-debug uses beyond PHIs in new_bb.
16371
16372 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
16373
16374 PR debug/47106
16375 * cfgexpand.c (account_used_vars_for_block): Only account vars
16376 that are annotated as used.
16377 (estimated_stack_frame_size): Don't set TREE_USED.
16378 * tree-dfa.c (create_var_ann): Mark variable as used.
16379
16380 2011-01-21 Richard Guenther <rguenther@suse.de>
16381
16382 PR middle-end/47395
16383 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
16384
16385 2011-01-21 Richard Guenther <rguenther@suse.de>
16386
16387 PR tree-optimization/47365
16388 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
16389 (vn_reference_lookup_pieces): Adjust.
16390 (vn_reference_lookup): Likewise.
16391 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
16392 (vn_reference_lookup_3): Only look through kills if in
16393 VN_WALKREWRITE mode.
16394 (vn_reference_lookup_pieces): Adjust.
16395 (vn_reference_lookup): Likewise.
16396 (visit_reference_op_load): Likewise.
16397 (visit_reference_op_store): Likewise.
16398 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
16399 (compute_avail): Likewise.
16400 (eliminate): Likewise.
16401
16402 2011-01-21 Jakub Jelinek <jakub@redhat.com>
16403
16404 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
16405 DECL_IGNORED_P non-reg vars if they are used.
16406
16407 PR tree-optimization/47391
16408 * varpool.c (const_value_known_p): Return false if
16409 decl is volatile.
16410
16411 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
16412
16413 PR bootstrap/47215
16414 * config/i386/i386.c (ix86_local_alignment): Handle
16415 case for va_list_type_node is nil.
16416 (ix86_canonical_va_list_type): Likewise.
16417
16418 2011-01-21 Alan Modra <amodra@gmail.com>
16419
16420 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
16421 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
16422
16423 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16424
16425 * config/arm/arm.md (define_attr type): Rename f_load
16426 and f_store to f_fpa_load and f_fpa_store. Update.
16427 (write_conflict): Deal with rename fallout.
16428 (*push_fp_multi): Likewise.
16429 * config/arm/fpa.md (f_load): Use f_fpa_load.
16430 (f_store): Use f_fpa_store.
16431 (*movsf_fpa): Likewise.
16432 (*movdf_fpa): Likewise.
16433 (*movxf_fpa): Likewise.
16434 (*thumb2_movsf_fpa): Likewise.
16435 (*thumb2_movdf_fpa): Likewise.
16436 (*thumb2_movxf_fpa): Likewise.
16437 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
16438 f_loadd and f_stored.
16439 (*thumb2_movdi_vfp): Likewise.
16440 (*thumb2_movsf_vfp): Fix attribute to f_loads.
16441 (*thumb2_movsi_vfp): Likewise.
16442 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
16443 Use f_loads instead of f_load.
16444 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
16445
16446 2011-01-20 Anatoly Sokolov <aesok@post.ru>
16447
16448 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16449 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
16450 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16451 (xtensa_mode_dependent_address_p): New function.
16452 (constantpool_address_p): Make static. Change return type to bool.
16453 Change argument type to const_rtx. Use CONST_INT_P predicate.
16454
16455 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
16456
16457 PR debug/46583
16458 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
16459
16460 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16461
16462 PR debug/47283
16463 * cfgexpand.c (expand_debug_expr): Instead of generating
16464 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
16465 etc. handling.
16466
16467 2011-01-20 Richard Guenther <rguenther@suse.de>
16468
16469 PR middle-end/47370
16470 * tree-inline.c (remap_gimple_op_r): Recurse manually for
16471 the pointer operand of MEM_REFs.
16472
16473 2011-01-20 Jakub Jelinek <jakub@redhat.com>
16474
16475 PR tree-optimization/46130
16476 * ipa-split.c (consider_split): If return_bb contains non-virtual
16477 PHIs other than for retval or if split_function would not adjust it,
16478 refuse to split.
16479
16480 2011-01-20 Richard Guenther <rguenther@suse.de>
16481
16482 PR tree-optimization/47167
16483 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
16484 Revert previous change, only avoid enumeral type changes.
16485
16486 2011-01-19 Mike Stump <mikestump@comcast.net>
16487
16488 * doc/tm.texi.in (BRANCH_COST): Englishify.
16489 * doc/tm.texi (BRANCH_COST): Likewise.
16490
16491 2011-01-19 Dodji Seketeli <dodji@redhat.com>
16492
16493 PR c++/47291
16494 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
16495 (gen_scheduled_generic_parms_dies): New functions.
16496 (gen_struct_or_union_type_die): Schedule template parameters DIEs
16497 generation for the end of CU compilation.
16498 (dwarf2out_finish): Generate template parameters DIEs here.
16499
16500 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16501
16502 PR debug/46240
16503 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
16504 debug bind stmt on merge edges.
16505
16506 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16507
16508 PR debug/47079
16509 PR debug/46724
16510 * function.c (instantiate_expr): Instantiate incoming rtl of
16511 implicit arguments, and recurse on VALUE_EXPRs.
16512 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
16513 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
16514
16515 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
16516
16517 * c-parser.c (c_parser_for_statement): Initialize
16518 collection_expression.
16519
16520 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16521
16522 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
16523
16524 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16525
16526 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
16527 (LINK_SHLIB_SPEC): Don't use %(link_path).
16528 (SUBTARGET_EXTRA_SPECS): Remove link_path.
16529
16530 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16531
16532 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
16533 (NO_SHARED_LIB_SUPPORT): Remove.
16534 (LINK_SHLIB_SPEC): Remove one conditional definition.
16535
16536 2011-01-19 Joseph Myers <joseph@codesourcery.com>
16537
16538 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
16539 %{call_shared}.
16540 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
16541 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
16542 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
16543 %{call_shared} and conditionals on these options not being passed.
16544 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
16545 %{call_shared}.
16546
16547 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16548
16549 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
16550 simplify.
16551
16552 * ipa-split.c: Spelling fixes.
16553
16554 2011-01-19 Richard Henderson <rth@redhat.com>
16555
16556 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
16557 (*mulsi3): Likewise.
16558
16559 * longlong.h [__mn10300__] (count_leading_zeros): New.
16560 [__mn10300__] (umul_ppmm, smul_ppmm): New.
16561 [__mn10300__] (add_ssaaaa, subddmmss): New.
16562 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
16563 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
16564
16565 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16566
16567 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
16568
16569 2011-01-19 Richard Henderson <rth@redhat.com>
16570
16571 * config/mn10300/mn10300.md (addsi3_flags): New.
16572 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
16573 (subsi3_flags, subc_internal, subdi3): New.
16574 (subdi3_internal, *subdi3_degenerate): New.
16575 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
16576
16577 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
16578 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
16579 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
16580 * config/mn10300/mn10300-protos.h: Update.
16581 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
16582 (return_ret): Likewise. Rename from return_internal_regs.
16583 (return_internal): Remove.
16584
16585 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
16586 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
16587 (mn10300_legitimate_constant_p): Likewise.
16588 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
16589 (mn10300_frame_size): New.
16590 (mn10300_expand_prologue): Use it.
16591 (mn10300_expand_epilogue): Likewise.
16592 (mn10300_initial_offset): Likewise.
16593 * config/mn10300/mn10300-protos.h: Update.
16594 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
16595 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
16596 (prologue, epilogue, return_internal): Tidy output code.
16597 (mn10300_store_multiple_operation, return): Likewise.
16598 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
16599 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
16600 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
16601 (load_pic, am33_load_pic): New.
16602 (mn10300_load_pic0, mn10300_load_pic1): New.
16603
16604 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
16605 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
16606 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
16607 (cc_flags_for_mode, cc_flags_for_code): New.
16608 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
16609 overflow flag is not valid. Validate that the flags we need
16610 for the comparison are valid.
16611 (mn10300_output_cmp): Remove.
16612 (mn10300_output_add): New.
16613 (mn10300_select_cc_mode): Use cc_flags_for_code.
16614 (mn10300_split_cbranch): New.
16615 (mn10300_match_ccmode): New.
16616 (mn10300_split_and_operand_count): New.
16617 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
16618 to the function.
16619 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
16620 (addsi3): ... here. Use mn10300_output_add.
16621 (*addsi3_flags): New.
16622 (*am33_subsi3, *mn10300_subsi3): Merge...
16623 (subsi3): ... here. Use attribute isa.
16624 (*subsi3_flags): New.
16625 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
16626 when possible.
16627 (*am33_andsi3, *mn10300_andsi3): Merge...
16628 (andsi3): ... here.
16629 (*andsi3_flags): New.
16630 (andsi3 splitters): New.
16631 (*am33_iorsi3, *mn10300_iorsi3): Merge...
16632 (iorsi3): ... here.
16633 (*iorsi3_flags): New.
16634 (*am33_xorsi3, *mn10300_xorsi3): Merge...
16635 (xorsi3): ... here.
16636 (*xorsi3_flags): New.
16637 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
16638 (one_cmplsi2): ... here.
16639 (*one_cmplsi2_flags): New.
16640 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
16641 instead of "dax" in constraints. Use mn10300_split_cbranch.
16642 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
16643 use matching constraints to eliminate a self-comparison.
16644 (*integer_conditional_branch): Rename from integer_conditional_branch.
16645 Use int_mode_flags to match CC_REG.
16646 (*cbranchsi4_btst, *btstsi): New.
16647 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
16648 mn10300_split_cbranch.
16649 (*am33_cmpsf): Rename from am33_cmpsf.
16650 (*float_conditional_branch): Rename from float_conditional_branch.
16651 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
16652 (zero_extendqisi2): ... here.
16653 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
16654 (zero_extendhisi2): ... here.
16655 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
16656 (extendqisi2): ... here.
16657 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
16658 (extendhisi2): ... here.
16659 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
16660 (ashlsi3): ... here.
16661 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
16662 (lshrsi3): ... here.
16663 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
16664 (ashrsi3): ... here.
16665 (consecutive add peephole): Remove.
16666 * config/mn10300/predicates.md (label_ref_operand): New.
16667 (int_mode_flags): New.
16668 (CCZN_comparison_operator): New.
16669
16670 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
16671 (throughput_42_latency_43): New reservation.
16672 (mulsidi3, umulsidi3): New expanders.
16673 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
16674 the MDR register to allocation; separately allocate the low and
16675 high parts of the DImode result.
16676 (umulsidi3_internal): Similarly.
16677 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
16678 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
16679 (udivsi3, umodsi3): Remove.
16680 (udivmodsi4, divmodsi4): New expanders.
16681 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
16682 (*divmodsi4): Simiarly.
16683 (ext_internal): New.
16684
16685 * config/mn10300/constraints.md ("z"): New constraint.
16686 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
16687 (FIXED_REGISTERS): Don't fix MDR.
16688 (CALL_USED_REGSITERS): Reformat nicely.
16689 (REG_ALLOC_ORDER): Add MDR.
16690 (enum regclass): Add MDR_REGS.
16691 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
16692 (IRA_COVER_CLASSES): Add MDR_REGS.
16693 (REGNO_REG_CLASS): Handle MDR_REG.
16694 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
16695 (mn10300_register_move_cost): Likewise.
16696 * config/mn10300/mn10300.md (MDR_REG): New.
16697 (*movsi_internal): Handle moves to/from MDR_REGS.
16698
16699 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
16700 POST_MODIFY.
16701 (mn10300_secondary_reload): Tidy combination reload classes.
16702 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
16703 addresses for AM33. Allow symbolic offsets for reg+imm.
16704 (mn10300_regno_in_class_p): New.
16705 (mn10300_legitimize_reload_address): New.
16706 * config/mn10300/mn10300.h (enum reg_class): Remove
16707 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
16708 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
16709 SP_OR_GENERAL_REGS.
16710 (REG_CLASS_NAMES): Update to match.
16711 (REG_CLASS_CONTENTS): Likewise.
16712 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
16713 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
16714 (REGNO_IN_RANGE_P): Remove.
16715 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
16716 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
16717 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
16718 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
16719 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
16720 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
16721 (REGNO_GENERAL_P): New.
16722 (HAVE_POST_MODIFY_DISP): New.
16723 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
16724 (LEGITIMIZE_RELOAD_ADDRESS): New.
16725 * config/mn10300/mn10300-protos.h: Update.
16726
16727 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
16728 DATA_REGS for AM33 stack-pointer destination.
16729 (mn10300_preferred_output_reload_class): Likewise.
16730 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
16731 into a form appropriate for ...
16732 (TARGET_SECONDARY_RELOAD): New.
16733 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
16734 * config/mn10300/mn10300-protos.h: Update.
16735 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
16736 reload_insi; use the "A" constraint for the scratch; handle AM33
16737 moves of sp to non-address registers.
16738
16739 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16740 (*movqi_internal): ... here.
16741 (*am33_movhi, *mn10300_movhi): Merge into...
16742 (*movhi_internal): ... here.
16743 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
16744 as the source/destination of moves from/to SP.
16745 (movsf): Only allow for AM33-2.
16746 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16747 any integer constant constraint. Only allow for AM33-2. Tidy
16748 all of the alternative outputs.
16749 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16750 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
16751 for MN103.
16752 (udivsi3, umodsi3): New patterns for MN103 only.
16753
16754 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
16755
16756 * doc/tm.texi.in: Spell out that a lack of register class unions
16757 can lead to ICEs.
16758 * doc/tm.texi: Regenerate.
16759
16760 2011-01-19 Jakub Jelinek <jakub@redhat.com>
16761
16762 PR rtl-optimization/47337
16763 * dce.c (check_argument_store): New function.
16764 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
16765
16766 PR tree-optimization/47290
16767 * tree-eh.c (infinite_empty_loop_p): New function.
16768 (cleanup_empty_eh): Use it.
16769
16770 2011-01-18 Steve Ellcey <sje@cup.hp.com>
16771
16772 PR target/46997
16773 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16774 (a64_expand_widen_sum): Ditto.
16775 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16776 (vec_extract_evenodd_help): Ditto.
16777 (vec_extract_evenv4hi): Ditto.
16778 (vec_extract_oddv4hi): Ditto.
16779 (vec_extract_evenv2si): Ditto.
16780 (vec_extract_oddv2si): Ditto.
16781 (vec_extract_evenv2sf): Ditto.
16782 (vec_extract_oddv2sf): Ditto.
16783 (vec_pack_trunc_v4hi: Ditto.
16784 (vec_pack_trunc_v2si): Ditto.
16785 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16786 (vec_interleave_highv8qi): Ditto.
16787 (mix1_r): Ditto.
16788 (vec_extract_oddv8qi): Ditto.
16789 (vec_interleave_lowv4hi): Ditto.
16790 (vec_interleave_highv4hi): Ditto.
16791 (vec_interleave_lowv2si): Ditto.
16792 (vec_interleave_highv2si): Ditto.
16793
16794 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16795
16796 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16797 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16798 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
16799 (pa_c_mode_for_suffix): New.
16800 (TARGET_EXPAND_BUILTIN): Define.
16801 (TARGET_C_MODE_FOR_SUFFIX): Define.
16802 (pa_builtins): Define.
16803 (pa_init_builtins): Register __float128 type and init new support
16804 builtins.
16805 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16806 * config/pa/quadlib.c (_U_Qfcopysign): New.
16807
16808 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
16809
16810 PR middle-end/46894
16811 * explow.c (allocate_dynamic_stack_space): Do not assume more than
16812 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16813 are defined.
16814
16815 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16816
16817 PR tree-optimization/47179
16818 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16819 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16820
16821 2011-01-18 Richard Guenther <rguenther@suse.de>
16822
16823 PR rtl-optimization/47216
16824 * emit-rtl.c: Include tree-flow.h.
16825 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16826 of replicating it with different semantics.
16827 * Makefile.in (emit-rtl.o): Adjust.
16828
16829 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16830
16831 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16832 (cortex_a9_dp): Handle neon types correctly.
16833
16834 2011-01-18 Jakub Jelinek <jakub@redhat.com>
16835
16836 PR rtl-optimization/47299
16837 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16838 subtarget. Use normal multiplication if both operands are constants.
16839 * expmed.c (expand_widening_mult): Don't try to optimize constant
16840 multiplication if op0 has VOIDmode. Convert op1 constant to mode
16841 before using it.
16842
16843 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16844
16845 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
16846 spacing after 'e.g.', typos, comma, hyphenation.
16847
16848 2011-01-17 Richard Henderson <rth@redhat.com>
16849
16850 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16851 (rx_restricted_mem_operand): New.
16852 (rx_shift_operand): Use register_operand.
16853 (rx_source_operand, rx_compare_operand): Likewise.
16854 * config/rx/rx.md (addsi3_flags): New expander.
16855 (adddi3): Rewrite as expander.
16856 (adc_internal, *adc_flags, adddi3_internal): New patterns.
16857 (subsi3_flags): New expander.
16858 (subdi3): Rewrite as expander.
16859 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16860
16861 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16862 (rx_init_builtins): Remove sat builtin.
16863 (rx_expand_builtin): Likewise.
16864 * config/rx/rx.md (ssaddsi3): New.
16865 (*sat): Rename from sat. Represent the CC_REG input.
16866
16867 * config/rx/predicates.md (rshift_operator): New.
16868 * config/rx/rx.c (rx_expand_insv): Remove.
16869 * config/rx/rx-protos.h: Update.
16870 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
16871 operand to the canonical position.
16872 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16873 (*bitclr, *bitclr_in_memory): Similarly.
16874 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16875 (insv): Retain the zero_extract in the expansion.
16876
16877 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16878 (bswaphi2, bitinvert, revw): Likewise.
16879
16880 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16881 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16882 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16883 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16884 (bitset, bitset_in_memory): Likewise.
16885 (bitinvert, bitinvert_in_memory): Likewise.
16886 (bitclr, bitclr_in_memory): Likewise.
16887 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16888 (rx_strend, rx_cmpstrn): Likewise.
16889 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
16890 (bitop peep2 patterns): Remove.
16891
16892 * config/rx/rx.c (rx_match_ccmode): New.
16893 * config/rx/rx-protos.h: Update.
16894 * config/rx/rx.md (abssi2): Clobber, don't set flags.
16895 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16896 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16897 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16898 (fix_truncsfsi2, floatsisf2): Likewise.
16899 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16900 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16901 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16902 (*subsi3_flags, *xorsi3_flags): New.
16903
16904 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16905
16906 * config/rx/rx.c (rx_print_operand): Remove workaround for
16907 unsplit comparison operations.
16908
16909 * config/rx/rx.md (movsicc): Split after reload.
16910 (*movsicc): Merge *movsieq and *movsine via match_operator.
16911 (*stcc): New pattern.
16912
16913 * config/rx/rx.c (rx_float_compare_mode): Remove.
16914 * config/rx/rx.h (rx_float_compare_mode): Remove.
16915 * config/rx/rx.md (cstoresi4): Split after reload.
16916 (*sccc): New pattern.
16917
16918 * config/rx/predicates.md (label_ref_operand): New.
16919 (rx_z_comparison_operator): New.
16920 (rx_zs_comparison_operator): New.
16921 (rx_fp_comparison_operator): New.
16922 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16923 Validate that the flags are set properly for the comparison.
16924 (rx_gen_cond_branch_template): Remove.
16925 (rx_cc_modes_compatible): Remove.
16926 (mode_from_flags): New.
16927 (flags_from_code): Rename from flags_needed_for_conditional.
16928 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16929 (rx_select_cc_mode): Likewise.
16930 (rx_split_fp_compare): New.
16931 (rx_split_cbranch): New.
16932 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16933 (*cbranchsi4): Use match_operator and rx_split_cbranch.
16934 (*cbranchsf4): Similarly.
16935 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
16936 match_operator and rx_split_cbranch.
16937 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16938 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
16939 (*cmpsi): Rename from cmpsi.
16940 (*tstsi): Rename from tstsi.
16941 (*cmpsf): Rename from cmpsf; use CC_Fmode.
16942 (*conditional_branch): Rename from conditional_branch.
16943 (*reveresed_conditional_branch): Remove.
16944 (b<code>): Remove expander.
16945 * config/rx/rx-protos.h: Update.
16946
16947 * config/rx/rx.c (rx_compare_redundant): Remove.
16948 * config/rx/rx.md (cmpsi): Don't use it.
16949 * config/rx/rx-protos.h: Update.
16950
16951 * config/rx/rx-modes.def (CC_F): New mode.
16952 * config/rx/rx.c (rx_select_cc_mode): New.
16953 * config/rx/rx.h (SELECT_CC_MODE): Use it.
16954 * config/rx/rx-protos.h: Update.
16955
16956 2011-01-17 Richard Henderson <rth@redhat.com>
16957
16958 * except.c (dump_eh_tree): Fix stray ; after for statement.
16959
16960 2011-01-17 Richard Guenther <rguenther@suse.de>
16961
16962 PR tree-optimization/47313
16963 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16964 handling before copying the body. Properly deal with
16965 by-reference result in SSA form.
16966
16967 2011-01-17 Ian Lance Taylor <iant@google.com>
16968
16969 PR target/47219
16970 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16971 (struct_value_alias_set): Don't define.
16972 (sparc_option_override): Don't set sparc_sr_alias_set and
16973 struct_value_alias_set.
16974 (save_or_restore_regs): Use gen_frame_mem rather than calling
16975 set_mem_alias_set.
16976 (sparc_struct_value_rtx): Likewise.
16977
16978 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
16979
16980 PR target/47318
16981 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16982 (_mm_maskstore_pd): Likewise.
16983 (_mm_maskload_ps): Likewise.
16984 (_mm_maskstore_ps): Likewise.
16985 (_mm256_maskload_pd): Change mask to __m256i.
16986 (_mm256_maskstore_pd): Likewise.
16987 (_mm256_maskload_ps): Likewise.
16988 (_mm256_maskstore_ps): Likewise.
16989
16990 * config/i386/i386-builtin-types.def: Updated.
16991 (ix86_expand_special_args_builtin): Likewise.
16992
16993 * config/i386/i386.c (bdesc_special_args): Update
16994 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16995 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16996 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16997 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16998
16999 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
17000 Use <avxpermvecmode> on mask register.
17001 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
17002
17003 2011-01-17 Olivier Hainque <hainque@adacore.com>
17004 Michael Haubenwallner <michael.haubenwallner@salomon.at>
17005 Eric Botcazou <ebotcazou@adacore.com>
17006
17007 PR target/46655
17008 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
17009 if <= USHRT_MAX in 32-bit mode.
17010
17011 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17012
17013 * doc/install.texi (Configuration, Specific): Wrap long
17014 lines in examples. Allow line wrapping in long options
17015 and URLs where beneficial for PDF output.
17016
17017 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
17018
17019 * config/mips/mips.c (mips_classify_symbol): Don't return
17020 SYMBOL_PC_RELATIVE for nonlocal labels.
17021
17022 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
17023
17024 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
17025
17026 2011-01-15 Jan Hubicka <jh@suse.cz>
17027
17028 PR tree-optimization/47276
17029 * ipa.c (function_and_variable_visibility): Do not try to mark alias
17030 declarations as needed.
17031
17032 2011-01-15 Martin Jambor <mjambor@suse.cz>
17033
17034 * common.opt (fdevirtualize): New flag.
17035 * doc/invoke.texi (Option Summary): Document it.
17036 * opts.c (default_options_table): Add devirtualize flag.
17037 * ipa-prop.c (detect_type_change): Return immediately if
17038 devirtualize flag is not set.
17039 (detect_type_change_ssa): Likewise.
17040 (compute_known_type_jump_func): Likewise.
17041 (ipa_analyze_virtual_call_uses): Likewise.
17042
17043 2011-01-14 Martin Jambor <mjambor@suse.cz>
17044
17045 PR tree-optimization/45934
17046 PR tree-optimization/46302
17047 * ipa-prop.c (type_change_info): New type.
17048 (stmt_may_be_vtbl_ptr_store): New function.
17049 (check_stmt_for_type_change): Likewise.
17050 (detect_type_change): Likewise.
17051 (detect_type_change_ssa): Likewise.
17052 (compute_complex_assign_jump_func): Check for dynamic type change.
17053 (compute_complex_ancestor_jump_func): Likewise.
17054 (compute_known_type_jump_func): Likewise.
17055 (compute_scalar_jump_functions): Likewise.
17056 (ipa_analyze_virtual_call_uses): Likewise.
17057 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
17058
17059 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17060
17061 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
17062 * config/i386/i386.opt (msse5): New Alias.
17063
17064 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17065
17066 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
17067 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17068 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17069 * config/sparc/sparc.h (CC1_SPEC): Likewise.
17070
17071 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17072
17073 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
17074 -mcpu options.
17075 * config/sparc/linux64.h (CC1_SPEC): Likewise.
17076 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17077 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
17078 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
17079 Likewise.
17080 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
17081
17082 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17083
17084 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
17085
17086 2011-01-14 Mike Stump <mikestump@comcast.net>
17087
17088 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
17089 * config/fr30/fr30.md: Likweise
17090 (movsi_push): Likewise.
17091 (movsi_pop): Likewise.
17092 (enter_func): Likewise.
17093 * config/moxie/moxie.md (movsi_push): Likewise.
17094 (movsi_pop): Likewise.
17095
17096 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17097
17098 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
17099 %{no_archive} %{exact_version}.
17100 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
17101 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
17102 %{no_archive} %{exact_version}.
17103 * config/mips/openbsd.h (LINK_SPEC): Likewise.
17104 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
17105 * config/mips/vxworks.h: Likewise.
17106
17107 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17108
17109 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
17110
17111 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17112
17113 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
17114 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
17115
17116 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17117
17118 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
17119 -nodefaultlib.
17120
17121 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17122
17123 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
17124 for mcpu not cpu.
17125 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
17126 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
17127 not cpu.
17128 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
17129 Don't handle -shlib.
17130
17131 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17132
17133 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
17134 (CC1_SPEC): Don't handle -profile.
17135
17136 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17137
17138 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
17139 * config/mips/mips.h (CC1_SPEC): Likewise.
17140
17141 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17142
17143 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
17144 * config/mips/mips.h (CC1_SPEC): Likewise.
17145
17146 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17147
17148 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
17149 * config/m32r/linux.h (LINK_SPEC): Likewise.
17150 * config/mips/linux.h (LINK_SPEC): Likewise.
17151 * config/mips/linux64.h (LINK_SPEC): Likewise.
17152 * config/sparc/linux.h (LINK_SPEC): Likewise.
17153 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
17154 LINK_SPEC): Likewise.
17155 * config/xtensa/linux.h (LINK_SPEC): Likewise.
17156
17157 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17158
17159 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
17160 %{version:-v}.
17161 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
17162
17163 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17164
17165 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
17166 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
17167
17168 2011-01-14 Joseph Myers <joseph@codesourcery.com>
17169
17170 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
17171
17172 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17173
17174 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
17175 supports -Bstatic/-Bdynamic.
17176 * configure: Regenerate.
17177
17178 2011-01-14 Jan Hubicka <jh@suse.cz>
17179 Jack Howarth <howarth@bromo.med.uc.edu>
17180
17181 PR target/46037
17182 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
17183 when checking debug_info_level. Test write_symbols instead of
17184 debug_hooks->var_location when setting flag_var_tracking_uninit.
17185
17186 2011-01-14 Richard Guenther <rguenther@suse.de>
17187
17188 PR tree-optimization/47179
17189 * target.def (ref_may_alias_errno): New target hook.
17190 * targhooks.h (default_ref_may_alias_errno): Declare.
17191 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
17192 (default_ref_may_alias_errno): New function.
17193 * target.h (struct ao_ref_s): Declare.
17194 * tree-ssa-alias.c: Include target.h.
17195 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
17196 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
17197 (targhooks.o): Likewise.
17198 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
17199 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
17200
17201 2011-01-14 Richard Guenther <rguenther@suse.de>
17202
17203 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
17204
17205 2011-01-14 Richard Guenther <rguenther@suse.de>
17206
17207 PR tree-optimization/47280
17208 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
17209 return CFG changes.
17210 (tree_ssa_forward_propagate_single_use_vars): Deal with
17211 CFG changes from associate_plusminus.
17212
17213 2011-01-14 Richard Guenther <rguenther@suse.de>
17214
17215 PR middle-end/47281
17216 Revert
17217 2011-01-11 Richard Guenther <rguenther@suse.de>
17218
17219 PR tree-optimization/46076
17220 * tree-ssa.c (useless_type_conversion_p): Conversions from
17221 unprototyped to empty argument list function types are useless.
17222
17223 2011-01-14 Richard Guenther <rguenther@suse.de>
17224
17225 PR tree-optimization/47286
17226 * tree-ssa-structalias.c (new_var_info): Register variables are global.
17227
17228 2011-01-14 Martin Jambor <mjambor@suse.cz>
17229
17230 PR middle-end/46823
17231 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
17232
17233 2011-01-13 Anatoly Sokolov <aesok@post.ru>
17234
17235 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
17236 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17237 * config/xtensa/xtensa.c (xtensa_libcall_value,
17238 xtensa_function_value_regno_p): New functions.
17239 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
17240
17241 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
17242
17243 PR c++/47213
17244 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
17245 PE specific hook.
17246 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
17247 New function prototype.
17248 * config/i386/winnt.c (i386_pe_assemble_visibility):
17249 Warn only if attribute was specified by user.
17250
17251 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
17252
17253 PR target/47251
17254 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
17255 floating point.
17256 (floatunsdidf2_fcfidu): Ditto.
17257
17258 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17259
17260 * config/s390/s390.c (print_operand_address): Replace 'error' with
17261 'output_operand_lossage'.
17262 (print_operand): Likewise.
17263
17264 2011-01-13 Jeff Law <law@redhat.com>
17265
17266 PR rtl-optimization/39077
17267 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
17268 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
17269 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
17270 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
17271 * gcse.c (prune_insertions_deletions): New function.
17272 (compute_pre_data): Use it.
17273
17274 2011-01-13 Dodji Seketeli <dodji@redhat.com>
17275
17276 PR debug/PR46973
17277 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
17278 static function.
17279 (prune_unused_types_mark): Use it.
17280
17281 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
17282
17283 PR rtl-optimization/45352
17284 * sel-sched.c: Update copyright years.
17285 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
17286 in the advancing loop when we have issued issue_rate insns.
17287
17288 2011-01-12 Richard Henderson <rth@redhat.com>
17289
17290 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
17291 (TARGET_MD_ASM_CLOBBERS): New.
17292
17293 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
17294 (TARGET_DELEGITIMIZE_ADDRESS): New.
17295
17296 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
17297 (clzsi2, *bsch): New patterns.
17298
17299 * config/mn10300/mn10300.md (INT): New mode iterator.
17300 (*mov<INT>_clr): New pattern, and peep2 to generate it.
17301
17302 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
17303 flag_split_wide_types.
17304
17305 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
17306 (mn10300_trampoline_init): Rewrite without a template, an immediate
17307 load and a direct branch.
17308 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
17309
17310 2011-01-12 Anatoly Sokolov <aesok@post.ru>
17311
17312 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17313 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
17314 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
17315 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17316
17317 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
17318
17319 PR debug/47209
17320 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
17321 of type.
17322
17323 2011-01-12 Jan Hubicka <jh@suse.cz>
17324
17325 PR driver/47244
17326 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
17327 (PLUGIN_COND_CLOSE): New macro.
17328 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
17329
17330 2011-01-12 Richard Guenther <rguenther@suse.de>
17331
17332 PR lto/47259
17333 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
17334 register variables in a MEM_REF.
17335
17336 2011-01-12 Joseph Myers <joseph@codesourcery.com>
17337
17338 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
17339 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
17340 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
17341 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
17342 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
17343 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
17344 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
17345 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
17346 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
17347 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
17348 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
17349 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
17350 * config/gnu-user.h: New. Copied from linux.h.
17351 (LINUX_TARGET_STARTFILE_SPEC): Rename to
17352 GNU_USER_TARGET_STARTFILE_SPEC.
17353 (LINUX_TARGET_ENDFILE_SPEC): Rename to
17354 GNU_USER_TARGET_ENDFILE_SPEC.
17355 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
17356 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
17357 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
17358 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
17359 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
17360 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
17361 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
17362 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
17363 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
17364 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
17365 * config/arm/linux-eabi.h (CC1_SPEC): Use
17366 GNU_USER_TARGET_CC1_SPEC.
17367 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
17368 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
17369 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
17370 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
17371 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
17372 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
17373 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
17374 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
17375
17376 2011-01-12 Richard Guenther <rguenther@suse.de>
17377
17378 PR other/46946
17379 * doc/invoke.texi (ffast-math): Document it is turned on
17380 with -Ofast.
17381
17382 2011-01-12 Jan Hubicka <jh@suse.cz>
17383
17384 PR tree-optimization/47233
17385 * opts.c (common_handle_option): Disable ipa-reference with profile
17386 feedback.
17387
17388 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17389
17390 * c-parser.c (c_parser_objc_at_property_declaration): Improved
17391 error message.
17392
17393 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
17394
17395 * c-parser.c (c_lex_one_token): Updated and reindented some
17396 comments. No changes in code.
17397
17398 2011-01-11 Ian Lance Taylor <iant@google.com>
17399
17400 * godump.c (go_output_var): Don't output the variable if there is
17401 already a type with the same name.
17402
17403 2011-01-11 Ian Lance Taylor <iant@google.com>
17404
17405 * godump.c (go_format_type): Don't generate float80.
17406
17407 2011-01-11 Richard Henderson <rth@redhat.com>
17408
17409 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
17410 declaration. Rewrite for both speed and size.
17411 (mn10300_address_cost_1): Remove.
17412 (mn10300_register_move_cost): New.
17413 (mn10300_memory_move_cost): New.
17414 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
17415 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
17416 extensions, shifts, BSWAP, CLZ.
17417 (mn10300_wide_const_load_uses_clr): Remove.
17418 (TARGET_REGISTER_MOVE_COST): New.
17419 (TARGET_MEMORY_MOVE_COST): New.
17420 * config/mn10300/mn10300-protos.h: Update.
17421 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
17422
17423 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
17424 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
17425 * config/mn10300/mn10300-protos.h: Update.
17426 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
17427 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
17428 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
17429 (*test_int_bitfield, *test_byte_bitfield): Remove.
17430 (*bit_test, *subreg_bit_test): Remove.
17431 * config/mn10300/predicates.md (const_8bit_operand): Remove.
17432
17433 * config/mn10300/constraints.md ("c"): Rename from "A".
17434 ("A", "D"): New constraint letters.
17435 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
17436 (fmssf4, fnmasf4, fnmssf4): Likewise.
17437
17438 * config/mn10300/mn10300.md (isa): New attribute.
17439 (enabled): New attribute.
17440
17441 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
17442 (abssf2, negsf2): Define only for hardware fp.
17443 (sqrtsf2): Reformat.
17444 (addsf3, subsf3, mulsf3): Merge expander and insn.
17445
17446 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
17447 (DEBUGGER_AUTO_OFFSET): Remove.
17448 (DEBUGGER_ARG_OFFSET): Remove.
17449
17450 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
17451 Emit register stores with the same offsets as the hardware.
17452 (mn10300_store_multiple_operation): Don't check that the register
17453 save offsets are monotonic.
17454 * config/mn10300/mn10300-protos.h: Update.
17455
17456 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
17457
17458 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
17459 in terms of the value on the stack, not the MDR register.
17460
17461 2011-01-11 Jan Hubicka <jh@suse.cz>
17462
17463 PR lto/45721
17464 PR lto/45375
17465 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
17466 (symbol_alias_set_destroy, symbol_alias_set_contains,
17467 propagate_aliases_backward): Declare.
17468 * lto-streamer-out.c (struct sets): New sturcture.
17469 (trivally_defined_alias): New function.
17470 (output_alias_pair_p): Rewrite.
17471 (output_unreferenced_globals): Fix output of alias pairs.
17472 (produce_symtab): Likewise.
17473 * ipa.c (function_and_variable_visibility): Set weak alias destination
17474 as needed in lto.
17475 * varasm.c (symbol_alias_set_t): Remove.
17476 (symbol_alias_set_destroy): Export.
17477 (propagate_aliases_forward, propagate_aliases_backward): New functions
17478 based on ...
17479 (compute_visible_aliases): ... this one; remove.
17480 (trivially_visible_alias): New
17481 (trivially_defined_alias): New.
17482 (remove_unreachable_alias_pairs): Rewrite.
17483 (finish_aliases_1): Reorganize code checking if alias is defined.
17484 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
17485 in LTO mode.
17486
17487 2011-01-11 Richard Guenther <rguenther@suse.de>
17488
17489 PR tree-optimization/46076
17490 * tree-ssa.c (useless_type_conversion_p): Conversions from
17491 unprototyped to empty argument list function types are useless.
17492
17493 2011-01-11 Richard Guenther <rguenther@suse.de>
17494
17495 PR middle-end/45235
17496 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
17497 volatile MEMs as MEM_READONLY_P.
17498
17499 2011-01-11 Richard Guenther <rguenther@suse.de>
17500
17501 PR tree-optimization/47239
17502 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
17503
17504 2011-01-11 Jeff Law <law@redhat.com>
17505
17506 PR tree-optimization/47086
17507 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
17508 IVs from statements that might throw.
17509
17510 2011-01-10 Jan Hubicka <jh@suse.cz>
17511
17512 PR lto/45375
17513 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
17514
17515 2011-01-10 Jan Hubicka <jh@suse.cz>
17516
17517 PR lto/45375
17518 * profile.c (read_profile_edge_counts): Ignore profile inconistency
17519 when correcting profile.
17520
17521 2011-01-10 Jan Hubicka <jh@suse.cz>
17522
17523 PR lto/46083
17524 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
17525 DECL_FINI_PRIORITY.
17526 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
17527 Restore DECL_FINI_PRIORITY.
17528
17529 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17530
17531 * doc/gimple.texi: Fix quoting of multi-word return values in
17532 @deftypefn statements. Ensure presence of return value. Wrap
17533 overlong @deftypefn lines.
17534 (is_gimple_operand, is_gimple_min_invariant_address): Remove
17535 descriptions of removed functions.
17536 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
17537 of multi-word return value in @deftypefn statement.
17538
17539 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17540
17541 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
17542 (Conditional Expressions, Logical Operators)
17543 (Statement and operand traversals): Do not indent smallexample
17544 code. Fix duplicate function argument in example.
17545
17546 2011-01-10 Jeff Law <law@redhat.com>
17547
17548 PR tree-optimization/47141
17549 * ipa-split.c (split_function): Handle case where we are
17550 returning a value and the return block has a virtual operand phi.
17551
17552 2011-01-10 Jan Hubicka <jh@suse.cz>
17553
17554 PR tree-optimization/47234
17555 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
17556 (pass_feedback_split_functions): Declare.
17557 * passes.c (init_optimization_passes): Add ipa-split as subpass of
17558 tree-profile.
17559 * ipa-split.c (gate_split_functions): Update comments; disable
17560 split-functions for profile_arc_flag and branch_probabilities.
17561 (gate_feedback_split_functions): New function.
17562 (execute_feedback_split_functions): New function.
17563 (pass_feedback_split_functions): New global var.
17564
17565 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
17566
17567 PR lto/46760
17568 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
17569 calling gimple_call_set_cannot_inline.
17570
17571 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
17572
17573 * config/darwin-sections.def: Remove unused section.
17574
17575 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
17576
17577 PR c++/47218
17578 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
17579
17580 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
17581
17582 PR objc/47232
17583 * c-parser.c (c_parser_declaration_or_fndef): Improved
17584 error message.
17585
17586 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
17587
17588 * config/i386/winnt.c (i386_pe_start_function): Make sure
17589 to switch back to function's section.
17590
17591 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
17592
17593 PR gcc/46902
17594 PR testsuite/46912
17595 * plugin.c: Move include of dlfcn.h from here...
17596 * system.h: ... to here.
17597
17598 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17599
17600 * doc/cpp.texi (C++ Named Operators): Fix markup for header
17601 file name.
17602 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
17603 two extra empty pages in PDF output.
17604
17605 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
17606
17607 PR objc/47078
17608 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
17609 for error recovery purposes behave as if it was not specified so
17610 that the default type is usd.
17611
17612 2011-01-07 Jan Hubicka <jh@suse.cz>
17613
17614 PR tree-optmization/46469
17615 * ipa.c (function_and_variable_visibility): Clear needed flags on
17616 nodes with external decls; handle weakrefs merging correctly.
17617
17618 2011-01-07 Joseph Myers <joseph@codesourcery.com>
17619
17620 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
17621 not false.
17622
17623 2011-01-07 Jan Hubicka <jh@suse.cz>
17624
17625 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
17626 and no longer claim that gold is required for linker plugin.
17627 * configure: Regenerate.
17628 * gcc.c (PLUGIN_COND): New macro.
17629 (LINK_COMMAND_SPEC): Use it.
17630 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
17631 * config.in (HAVE_LTO_PLUGIN): New.
17632 * configure.ac (--with-lto-plugin): New parameter; autodetect
17633 HAVE_LTO_PLUGIN.
17634
17635 2011-01-07 Jan Hubicka <jh@suse.cz>
17636
17637 PR tree-optimization/46367
17638 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
17639 when we can update original.
17640 (cgraph_mark_inline_edge): Sanity check.
17641 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
17642
17643 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17644
17645 * config/spu/spu.h (ASM_COMMENT_START): Define.
17646
17647 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
17648
17649 PR driver/42445
17650 * gcc.c (%>S): New.
17651 (SWITCH_KEEP_FOR_GCC): Likewise.
17652 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
17653 (do_spec_1): Handle "%>".
17654
17655 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
17656
17657 2011-01-07 Jakub Jelinek <jakub@redhat.com>
17658
17659 PR target/47201
17660 * config/i386/i386.c (ix86_delegitimize_address): If
17661 simplify_gen_subreg fails, return orig_x.
17662
17663 PR bootstrap/47187
17664 * value-prof.c (gimple_stringop_fixed_value): Handle
17665 lhs of the call properly.
17666
17667 2011-01-07 Jan Hubicka <jh@suse.cz>
17668
17669 PR lto/45375
17670 * lto-opt.c (lto_reissue_options): Set flag_shlib.
17671
17672 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17673
17674 * target.def (function_switched_text_sections): New hook.
17675 * doc/tm.texi: Regenerated.
17676 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17677 * final.c (default_function_switched_text_sections): New.
17678 (final_scan_insn): Call function_switched_text_sections when a
17679 mid-function section change occurs.
17680 * output.h (default_function_switched_text_sections): Declare.
17681 * config/darwin-protos.h (darwin_function_switched_text_sections):
17682 Likewise.
17683 * config/darwin.c (darwin_function_switched_text_sections): New.
17684 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
17685
17686 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
17687
17688 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
17689 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
17690 the secondary code fragment when outputting for DWARF == 2.
17691
17692 2011-01-07 Anatoly Sokolov <aesok@post.ru>
17693
17694 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
17695 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
17696 Remove.
17697 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
17698 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
17699
17700 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
17701
17702 PR debug/46704
17703 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
17704 when it is not empty.
17705
17706 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
17707
17708 Bobcat Enablement
17709 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
17710 (case ${target}): Add btver1.
17711 * config/i386/driver-i386.c (host_detect_local_cpu): Let
17712 -march=native recognize btver1 processors.
17713 * config/i386/i386-c.c (ix86_target_macros_internal): Add
17714 btver1 def_and_undef
17715 * config/i386/i386.c (struct processor_costs btver1_cost): New
17716 btver1 cost table.
17717 (m_BTVER1): New definition.
17718 (m_AMD_MULTIPLE): Includes m_BTVER1.
17719 (initial_ix86_tune_features): Add btver1 tune.
17720 (processor_target_table): Add btver1 entry.
17721 (static const char *const cpu_names): Add btver1 entry.
17722 (software_prefetching_beneficial_p): Add btver1.
17723 (ix86_option_override_internal): Add btver1 instruction sets.
17724 (ix86_issue_rate): Add btver1.
17725 (ix86_adjust_cost): Add btver1.
17726 * config/i386/i386.h (TARGET_BTVER1): New definition.
17727 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
17728 (enum processor_type): Add PROCESSOR_BTVER1.
17729 * config/i386/i386.md (define_attr "cpu"): Add btver1.
17730
17731 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17732
17733 PR target/43309
17734 * config/i386/i386.c (legitimize_tls_address)
17735 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
17736 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
17737 (tls_initial_exec_64_sun): New pattern.
17738
17739 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
17740
17741 * doc/invoke.texi (Overall Options): Improve wording and markup
17742 of the description of -wrapper.
17743
17744 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17745
17746 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17747 rdynamic, threads): New Driver options.
17748
17749 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17750
17751 PR target/38118
17752 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17753 if coming from .tdata.
17754 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17755
17756 2011-01-06 Jan Hubicka <jh@suse.cz>
17757
17758 PR lto/47188
17759 * collect2.c (main): Do not enable LTOmode when plugin is active.
17760
17761 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17762
17763 PR other/45915
17764 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17765 --version output if supported.
17766 * configure: Regenerate.
17767
17768 2011-01-06 Joseph Myers <joseph@codesourcery.com>
17769
17770 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17771 Driver options.
17772
17773 2011-01-06 Jakub Jelinek <jakub@redhat.com>
17774
17775 PR c/47150
17776 * c-convert.c (convert): When converting a complex expression
17777 other than COMPLEX_EXPR to a different complex type, ensure
17778 c_save_expr is called instead of save_expr, unless in_late_binary_op.
17779 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17780 when converting COMPLEX_TYPE.
17781
17782 2011-01-06 Ira Rosen <irar@il.ibm.com>
17783
17784 PR tree-optimization/47139
17785 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17786 only the last reduction value is used outside the loop. Update
17787 documentation.
17788
17789 2011-01-05 Joseph Myers <joseph@codesourcery.com>
17790
17791 * config/rtems.opt: New.
17792 * config.gcc (*-*-rtems*): Use rtems.opt.
17793
17794 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
17795
17796 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17797 processors do not support 3DNow instructions.
17798
17799 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17800
17801 * config/spu/spu.c (spu_option_override): Set parameter
17802 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17803
17804 2011-01-05 Jan Hubicka <jh@suse.cz>
17805
17806 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17807 at the command line.
17808
17809 2011-01-05 Martin Jambor <mjambor@suse.cz>
17810
17811 PR lto/47162
17812 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17813 deltas on streamed outgoing edges.
17814 (output_node_opt_summary): Output info for outgoing edges only when
17815 the node is in new parameter set.
17816 (output_cgraph_opt_summary): New parameter set, passed to the two
17817 aforementioned functions. Update its forward declaration and its
17818 callee too.
17819
17820 2011-01-05 Tom Tromey <tromey@redhat.com>
17821
17822 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17823 operator to c_finish_omp_atomic.
17824 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17825 (build_unary_op): Update.
17826 (build_modify_expr): Update.
17827 (build_asm_expr): Update.
17828
17829 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17830
17831 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17832 newly inserted insns.
17833 (pad_bb): Likewise.
17834 (spu_emit_branch_hint): Likewise.
17835 (insert_hbrp_for_ilb_runout): Likewise.
17836 (spu_machine_dependent_reorg): Call df_finish_pass after
17837 schedule_insns returns.
17838
17839 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17840
17841 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17842
17843 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
17844
17845 PR tree-optimization/47005
17846 * tree-sra.c (struct access): Add 'non_addressable' bit.
17847 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17848 (decide_one_param_reduction): Return 0 if the parameter is passed by
17849 reference and one of the accesses in the group is non_addressable.
17850
17851 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17852
17853 PR tree-optimization/47056
17854 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17855 (mark_load): Likewise. Handle FUNCTION_DECL specially.
17856 (mark_store): Likewise. Pass STMT to ipa_record_reference.
17857
17858 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
17859
17860 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17861 initializer. Skip view conversions from aggregate types.
17862
17863 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
17864
17865 PR bootstrap/47055
17866 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17867
17868 2011-01-04 Philipp Thomas <pth@suse.de>
17869
17870 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17871 obvious typo.
17872
17873 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17874
17875 * function.c (thread_prologue_and_epilogue_insns): Do not crash
17876 on empty epilogue sequences.
17877
17878 2011-01-04 Joseph Myers <joseph@codesourcery.com>
17879
17880 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17881 non-static): New Driver options.
17882
17883 2011-01-04 Jie Zhang <jie@codesourcery.com>
17884
17885 PR driver/47137
17886 * gcc.c (default_compilers[]): Set combinable field to 0
17887 for all assembly languages.
17888
17889 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
17890
17891 * config/mips/loongson3a.md: New file.
17892 * config/mips/mips.md: Include loongson3a.md.
17893 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17894 TUNE_LOONGSON_3A.
17895
17896 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
17897
17898 PR middle-end/47017
17899 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17900 instead of convert_memory_address_addr_space on the base expression.
17901
17902 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17903
17904 * config/spu/spu.c (spu_option_override): Update error text
17905 for bad -march= / -mtune= values.
17906
17907 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17908
17909 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17910 if branch-hint optimization will be performed.
17911
17912 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17913
17914 PR tree-optimization/47148
17915 * ipa-split.c (split_function): Convert arguments to
17916 DECL_ARG_TYPE if possible.
17917
17918 PR tree-optimization/47155
17919 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17920 when computing uns.
17921
17922 PR rtl-optimization/47157
17923 * combine.c (try_combine): If undobuf.other_insn becomes
17924 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17925 and set *new_direct_jump_p too.
17926
17927 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
17928
17929 PR tree-optimization/47021
17930 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17931
17932 2011-01-03 Jakub Jelinek <jakub@redhat.com>
17933
17934 * gcc.c (process_command): Update copyright notice dates.
17935 * gcov.c (print_version): Likewise.
17936 * gcov-dump.c (print_version): Likewise.
17937 * mips-tfile.c (main): Likewise.
17938 * mips-tdump.c (main): Likewise.
17939
17940 2011-01-03 Martin Jambor <mjambor@suse.cz>
17941
17942 PR tree-optimization/46801
17943 * tree-sra.c (type_internals_preclude_sra_p): Check whether
17944 aggregate fields start at byte boundary instead of the bit-field flag.
17945
17946 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
17947
17948 PR driver/47137
17949 * gcc.c (main): Revert revision 168407.
17950
17951 2011-01-03 Martin Jambor <mjambor@suse.cz>
17952
17953 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17954
17955 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17956
17957 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17958 vector optab to expand vector/scalar shift, update gimple to vector.
17959
17960 2011-01-03 Martin Jambor <mjambor@suse.cz>
17961
17962 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17963 a thunk.
17964
17965 2011-01-03 Martin Jambor <mjambor@suse.cz>
17966
17967 PR tree-optimization/46984
17968 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17969 HOST_WIDE_INT.
17970 (cgraph_create_indirect_edge): Fixed line length.
17971 (cgraph_indirect_call_info): Declare.
17972 (cgraph_make_edge_direct) Update declaration.
17973 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17974 (cgraph_create_indirect_edge): Use it.
17975 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
17976 callees.
17977 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17978 the new thunk_delta representation.
17979 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17980 HOST_WIDE_INT.
17981 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17982 (ipa_read_indirect_edge_info): Likewise.
17983 * lto-cgraph.c (output_edge_opt_summary): New function.
17984 (output_node_opt_summary): Call it on all outgoing edges.
17985 (input_edge_opt_summary): New function.
17986 (input_node_opt_summary): Call it on all outgoing edges.
17987
17988 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
17989
17990 PR driver/47137
17991 * gcc.c (main): Don't check have_o when settting combine_inputs.
17992
17993 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
17994
17995 * regrename.c: Add general comment describing the pass.
17996 (struct du_head): Remove 'length' field.
17997 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17998 (regrename_optimize): Do not sort chains. Rework comments, add others.
17999 Force renaming to the preferred class (if any) in the first pass and do
18000 not consider registers that belong to it in the second pass.
18001 (create_new_chain): Do not set 'length' field.
18002 (scan_rtx_reg): Likewise.
18003
18004 2011-01-02 Jakub Jelinek <jakub@redhat.com>
18005
18006 PR tree-optimization/47140
18007 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
18008 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
18009 to bit_value_binop.
18010
18011 PR rtl-optimization/47028
18012 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
18013 parm_birth_insn instead of at the beginning of first bb.
18014
18015 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
18016
18017 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
18018 Remove the word "see" before "@pxref".
18019 * doc/rtl.texi: Remove the word "see" before "@pxref".
18020
18021 2011-01-01 Jan Hubicka <jh@suse.cz>
18022
18023 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
18024 memory.
18025
18026 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
18027
18028 PR target/38662
18029 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
18030
18031 \f
18032 Copyright (C) 2011 Free Software Foundation, Inc.
18033
18034 Copying and distribution of this file, with or without modification,
18035 are permitted in any medium without royalty provided the copyright
18036 notice and this notice are preserved.