vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
[gcc.git] / gcc / ChangeLog
1 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2
3 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
4 (vmsdbgout_type_decl): Declare
5 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
6 (FUNC_EPILOGUE_LABEL): New macro
7 (vmsdbgout_begin_epilogue): New function.
8 (vmsdbgout_type_decl): New function.
9
10 2010-06-29 Douglas B Rupp <rupp@gnat.com>
11
12 * vmsdbg.h: Update copyright.
13
14 2010-06-29 Douglas B Rupp <rupp@gnat.com>
15
16 * vmsdbg.h (DST_K_TBG): New DST constant.
17 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
18 (write_modbeg): Cast module_language to avoid warning.
19 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
20
21 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
22
23 PR other/44034
24 * target.def, doc/tm.texi.in, genhooks.c: New files.
25 * target.h: Instead of defining individual hook members,
26 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
27 include target.def.
28 * target-def.h: Instead of defining individual hook initializers,
29 include target-hooks-def.h.
30 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
31 targetm.live_on_entry -> targetm.extra_live_on_entry
32 targetm.sched.md_finish ->targetm.sched.finish
33 targetm.sched.md_init -> targetm.sched.init
34 targetm.sched.md_init_global -> targetm.sched.init_global
35 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
36 targetm.asm_out.except_table_label ->
37 targetm.asm_out.emit_except_table_label
38 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
39 targetm.target_help -> targetm.help
40 targetm.vectorize.builtin_support_vector_misalignment ->
41 targetm.vectorize.support_vector_misalignment
42 targetm.file_start_app_off -> targetm.asm_file_start_app_off
43 targetm.file_start_file_directive ->
44 targetm.asm_file_start_file_directive
45 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
46 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
47 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
48 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
49 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
50 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
51 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
52 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
53 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
54 * Makefile.in (TARGET_H): Depend on target.def.
55 (TARGET_DEF_H): Depend on target-hooks-def.h.
56 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
57 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
58 * doc/tm.texi: Regenerate.
59
60 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
61
62 PR bootstrap/44713
63 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
64 (function_arg_advance_32): Const-ify TYPE parameter.
65 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
66 (ix86_function_arg_advance): Change type of NAMED to bool.
67 (function_arg_32): Const-ify CUM and TYPE parameters.
68 (function_arg_64): Likewise. Change type of NAMED to bool.
69 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
70 to bool.
71 (ix86_function_arg): Change type of NAMED to bool.
72 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
73 last argument as a bool.
74
75 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
76
77 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
78 (OVERRIDE_OPTIONS): Add note of obsolescence.
79 Replace references with references to TARGET_OPTION_OVERRIDE.
80 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
81 the macro).
82 * targhooks.c (default_target_option_override): New function.
83 * targhooks.h (default_target_option_override): Declare.
84 * target.h (struct gcc_target): Add override member to
85 target_option member.
86 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
87 targetm.target_option.override call.
88 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
89 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
90
91 2010-06-29 Jan Hubicka <jh@suse.cz>
92
93 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
94
95 2010-06-29 Jan Hubicka <jh@suse.cz>
96
97 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
98 unreachable.
99 (rebuild_frequencies): New function.
100 * predict.h (rebuild_frequencies): Declare.
101 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
102 entry block and edge reaching new_entry.
103 (tree_function_versioning): When doing partial cloning, rebuild frequencies
104 when done.
105 * passes.c (execute_function_todo): Use rebild_frequencies.
106
107 2010-06-29 Richard Guenther <rguenther@suse.de>
108
109 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
110 * tree-flow.h (enum noalias_state): Remove.
111 (struct var_ann_d): Remove noalias_state member.
112
113 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
114
115 PR target/43902
116 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
117 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
118 (maddhidi4): Likewise.
119
120 Revert parts of the change for PR25130.
121 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
122 MEM_ALIAS_SET.
123
124 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
125
126 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
127 targetm.calls.function_incoming_arg, and
128 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
129 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
130 * target.h (struct gcc_target): Add function_arg_advance,
131 function_arg, and function_incoming_arg fields.
132 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
133 (TARGET_FUNCTION_INCOMING_ARG): Define.
134 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
135 and TARGET_FUNCTION_INCOMING_ARG.
136 * targhooks.h (default_function_arg_advance): Declare.
137 (default_function_arg, default_function_incoming_arg): Declare.
138 * targhooks.c (default_function_arg_advance): New function.
139 (default_function_arg, default_function_incoming_arg): New function.
140 * config/i386/i386.c (function_arg_advance): Rename to...
141 (ix86_function_arg_advance): ...this. Make static.
142 (function_arg): Rename to...
143 (ix86_function_arg): ...this. Make static.
144 (TARGET_FUNCTION_ARG_ADVANCE): Define.
145 (TARGET_FUNCTION_ARG): Define.
146 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
147 (FUNCTION_ARG): Delete.
148 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
149 (function_arg): Delete prototype.
150
151 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
152
153 * reginfo.c (init_reg_sets_1): Adjust comments.
154 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
155 * calls.c (prepare_call_address): Likewise.
156 (emit_call_1): Use targetm.calls.return_pops_args.
157 (expand_call): Likewise.
158 * function.c (assign_parms): Likewise.
159 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
160 * target.h (struct gcc_target) [struct calls]: Add
161 return_pops_args field.
162 * targhooks.h (default_return_pops_args): Declare.
163 * targhooks.c (default_return_pops_args): Define.
164 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
165 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
166 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
167 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
168 documentation.
169 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
170 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
171 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
172 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
173 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
174 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
175 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
176 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
177 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
178 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
179 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
180 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
181 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
182 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
183 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
184 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
185 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
186 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
187 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
188 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
189 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
190 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
191 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
192 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
193 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
194 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
195 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
196 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
197 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
198 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
199 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
200 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
201 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
202 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
203 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
204 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
205 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
206 * config/i386/i386.c (ix86_return_pops_args): Make static.
207 Constify arguments.
208 (TARGET_RETURN_POPS_ARGS): Define.
209 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
210 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
211 (TARGET_RETURN_POPS_ARGS): Define.
212 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
213 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
214 (TARGET_RETURN_POPS_ARGS): Define.
215
216 2010-06-29 Richard Guenther <rguenther@suse.de>
217
218 PR middle-end/44667
219 * tree-inline.c (initialize_inlined_parameters): Make sure
220 to remap the inlined parameter variable substitutions types.
221
222 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
223
224 PR rtl-optimization/44659
225 * combine.c (make_compound_operation) <SUBREG>: Do not return the
226 result of force_to_mode if it partially re-expanded the compound.
227
228 2010-06-28 Jan Hubicka <jh@suse.cz>
229
230 PR middle-end/44671
231 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
232 RESULT_DECL.
233
234 2010-06-28 Anatoly Sokolov <aesok@post.ru>
235
236 * double-int.h (force_fit_type_double): Remove declaration.
237 * double-int.c (force_fit_type_double): Move to tree.c.
238 * tree.h (force_fit_type_double): Declare.
239 * tree.h (force_fit_type_double): Moved from double-int.c. Use
240 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
241 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
242 * convert.c (convert_to_pointer): Adjust call to
243 force_fit_type_double.
244 * tree-vrp.c (extract_range_from_assert,
245 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
246 * fold-const.c: Update comment.
247 (int_const_binop, fold_convert_const_int_from_int,
248 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
249 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
250 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
251 round_up_loc): Adjust call to force_fit_type_double.
252
253 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
254
255 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
256
257 2010-06-28 Martin Jambor <mjambor@suse.cz>
258
259 * tree-sra.c (convert_callers): New parameter, change fndecls of
260 recursive calls.
261 (modify_function): Pass the old decl to convert_callers.
262
263 2010-06-28 Martin Jambor <mjambor@suse.cz>
264
265 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
266 ipa_check_create_node_params and ipa_initialize_node_params with
267 checking asserts they are not necessary.
268
269 2010-06-28 Jan Hubicka <jh@suse.cz>
270
271 PR tree-optimization/44687
272 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
273
274 2010-06-28 Martin Jambor <mjambor@suse.cz>
275
276 PR c++/44535
277 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
278 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
279 instead of BINFO_BASE_BINFO.
280
281 2010-06-28 Michael Matz <matz@suse.de>
282
283 PR middle-end/44592
284 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
285 proper VDEF chain for intermediate stores in the sequence.
286
287 2010-06-28 Jan Hubicka <jh@suse.cz>
288
289 PR tree-optimization/44357
290 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
291 functions.
292
293 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
294
295 * config.gcc (powerpc*-*-*): Handle titan.
296 * config/rs6000/rs6000.c (titan_cost): New costs.
297 (rs6000_override_options): Add "titan" to processor_target_table.
298 Add Titan to branch alignment logic.
299 Correctly set rs6000_cost for titan.
300 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
301 * config/rs6000/titan.md: New file.
302 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
303
304 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
305
306 * tree-browser.c (TB_history_stack): Convert to a VEC.
307 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
308 (TB_history_prev): Likewise.
309
310 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
311
312 * vec.h (vec_heap_free): Add parentheses around free.
313
314 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
315
316 * system.h: Poison GCC_EXCEPT_H for front-end files.
317
318 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
319 langhook.
320 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
321 Define to NULL by default.
322 * except.h: Define GCC_EXCEPT_H.
323 (doing_eh): Remove prototype.
324 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
325 (lang_protect_cleanup_actions): Remove.
326 * except.c (lang_protect_cleanup_actions): Remove.
327 (doing_eh): Remove.
328 (gen_eh_region): Don't check doing_eh here.
329 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
330 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
331 instead of lang_protect_cleanup_actions.
332 * omp-low.c (maybe_catch_exception): Likewise.
333 * Makefile.in: Update dependencies.
334
335 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
336
337 * cgraph.h (struct varpool_node): new used_from_object_file flag.
338 (struct cgraph_local_info): new used_from_object_file flag.
339 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
340 (cgraph_clone_node): initialize used_from_object_file.
341 (cgraph_create_virtual_clone): initialize used_from_object_file.
342 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
343 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
344 when compiling with -fwhole-program.
345 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
346 internal resolver.
347 * ipa.c (function_and_variable_visibility): Set externally_visible
348 flag of varpool_node if used_from_object_file flag is set.
349 (cgraph_externally_visible_p): check used_from_object_file flag.
350 * doc/invoke.texi (-fwhole-program option): Change description of
351 externally_visible attribute accordingly.
352 * doc/extend.texi (externally_visible): Ditto.
353
354 2010-06-27 Jan Hubicka <jh@suse.cz>
355
356 * params.def (max-inline-insns-auto): Default to 40.
357 * doc/invoke.texi (max-inline-insns-auto): Document the change.
358
359 2010-06-27 Jan Hubicka <jh@suse.cz>
360
361 PR middle-end/44671
362 PR middle-end/44686
363 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
364 signature change.
365 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
366 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
367
368 2010-06-27 Anatoly Sokolov <aesok@post.ru>
369
370 * target.h (struct gcc_target): Add register_move_cost field.
371 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
372 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
373 * targhooks.c (default_register_move_cost): New function.
374 * targhooks.h (default_register_move_cost): Declare function.
375 * defaults.h (REGISTER_MOVE_COST): Delete.
376 * ira-int.h (ira_register_move_cost): Update comment.
377 * ira.c: (ira_register_move_cost): Update comment.
378 * reload.h (register_move_cost): Declare.
379 * reginfo.c (register_move_cost): New function.
380 (move_cost): Update comment.
381 (init_move_cost, memory_move_secondary_cost): Replace
382 REGISTER_MOVE_COST with register_move_cost.
383 * postreload.c (reload_cse_simplify_set): (Ditto.).
384 * reload.c (find_valid_class, find_reloads): (Ditto.).
385 * reload1.c (choose_reload_regs): (Ditto.).
386 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
387 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
388 * doc/md.texi (can_create_pseudo_p): Update documentation.
389
390 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
391 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
392 * config/i386/i386.h (ix86_memory_move_cost): Make static.
393 (TARGET_MEMORY_MOVE_COST): Define.
394
395 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
396 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
397 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
398 (TARGET_MEMORY_MOVE_COST): Define.
399
400 2010-06-27 Richard Guenther <rguenther@suse.de>
401
402 PR tree-optimization/44683
403 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
404 false edge from the inverted condition.
405
406 2010-06-27 Richard Guenther <rguenther@suse.de>
407
408 PR middle-end/44684
409 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
410 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
411 for register LHS. Or non-store assignments.
412
413 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
414
415 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
416 (sparc_emit_set_const64): Likewise. Remove disabled code.
417 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
418 (sparc_emit_set_const64): Likewise.
419
420 2010-06-26 Catherine Moore <clm@codesourcery.com>
421
422 * config/mips/mips.md (alu_type): New attribute.
423 (type): Infer type from alu_type.
424 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
425 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
426 *subsi3_extended, negsi2, negdi2, *low<mode>,
427 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
428 xor<mode>3, *nor<mode>3,
429 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
430 *zero_extendhi_truncqi): Set alu_type instead of type.
431
432 2010-06-26 Douglas B Rupp <rupp@gnat.com>
433
434 * config/alpha/alpha.c (alpha_need_linkage): Adjust
435 splay_tree_new_ggc call.
436 (alpha_use_linkage): Likewise.
437
438 2010-06-26 Joseph Myers <joseph@codesourcery.com>
439
440 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
441 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
442 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
443 (static_specs): Remove switches_need_spaces.
444 (process_command, do_self_spec): Hardcode handling "-o" instead of
445 checking switches_need_spaces.
446 * system.h (SWITCHES_NEED_SPACES): Poison.
447
448 2010-06-26 Richard Guenther <rguenther@suse.de>
449
450 PR tree-optimization/44393
451 * tree-loop-distribution.c (generate_loops_for_partition): Fix
452 stmt removal and VOP renaming.
453 (generate_memset_zero): Remove redundant stmt updating.
454 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
455 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
456
457 2010-06-26 Jan Hubicka <jh@suse.cz>
458
459 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
460 edges comming from header are equivalent.
461 (visit_bb): Handle PHIs correctly.
462 * tree-inline.c (copy_phis_for_bb): Be able to copy
463 PHI from entry edge.
464 (copy_cfg_body): Produce edge from entry BB before copying
465 PHIs.
466
467 2010-06-26 Richard Guenther <rguenther@suse.de>
468
469 PR middle-end/44674
470 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
471 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
472
473 2010-06-26 Joseph Myers <joseph@codesourcery.com>
474
475 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
476 add_infile, alloc_switch): New.
477 (process_command): Remove variable lang_n_infiles. Process
478 options in a single pass. Use new functions for allocating
479 infiles and switches arrays. Properly skip operands of
480 -Xpreprocessor and -Xassembler.
481
482 2010-06-26 Jan Hubicka <jh@suse.cz>
483
484 PR middle-end/44671
485 * cgraphunit.c (cgraph_function_versioning): Remove wrong
486 cgraph_make_decl_local call; fix typo copying RTL data.
487
488 2010-06-25 DJ Delorie <dj@redhat.com>
489
490 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
491 (m32c_output_aligned_common): Likewise.
492 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
493 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
494 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
495 (m32c_register_pragmas): Register it.
496 * config/m32c/m32c.c (m32c_get_pragma_address): New.
497 (m32c_insert_attributes): Set #pragma address decls volatile.
498 (pragma_entry_eq): New.
499 (pragma_entry_hash): New.
500 (m32c_note_pragma_address): New.
501 (m32c_get_pragma_address): New.
502 (m32c_output_aligned_common): New.
503 * doc/extend.texi: Document the new pragma.
504
505 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
506 also.
507 * config/m32c/predicates.md (m32c_any_operand): Check the code
508 instead of memory_operand so as to allow matching volatile MEMs.
509 (m32c_nonimmediate_operand): Likewise.
510 (mra_operand): Allow volatiles.
511
512 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
513
514 PR debug/44610
515 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
516 address if the offset is unknown.
517
518 2010-06-25 Douglas B Rupp <rupp@gnat.com>
519
520 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
521 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
522 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
523 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
524 to ia64_start_function. Invoke it.
525 * config/ia64/ia64.c (ia64_start_function): Call new function
526 dwarf2out_vms_debug_main_pointer.
527
528 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
529
530 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
531 statements computing the true predicate.
532
533 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
534
535 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
536 to boolean_true_node.
537 (reset_bb_predicate): New.
538 (predicate_bbs): Call reset_bb_predicate.
539
540 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
541
542 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
543 (tree_if_conversion): Returns true when something has been changed.
544 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
545 changed something.
546
547 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
548
549 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
550 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
551 * tree-if-conv.c: Include dbgcnt.h.
552 (tree_if_conversion): Use if_conversion_tree to count the number of
553 if-convertible loops.
554
555 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
556
557 * common.opt (fprefetch-loop-arrays): Re-define
558 -fprefetch-loop-arrays as a tri-state option with the initial
559 value of -1.
560 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
561 pass only when flag_prefetch_loop_arrays > 0.
562 * toplev.c (process_options): Note that, with tri-states,
563 flag_prefetch_loop_arrays>0 means prefetching is enabled.
564 * config/i386/i386.c (override_options): Enable prefetching at -O3
565 for a set of CPUs that sw prefetching is helpful.
566 (software_prefetching_beneficial_p): New. Return TRUE if software
567 prefetching is beneficial for the given CPU.
568
569 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR rtl-optimization/44326
572 * implicit-zee.c (find_removable_zero_extends): Replace
573 INSN_P with NONDEBUG_INSN_P.
574
575 2010-06-25 Martin Jambor <mjambor@suse.cz>
576
577 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
578 (struct ipa_node_params): Removed the modification_analysis_done flag.
579 (ipa_is_param_modified): Removed.
580 (ipa_analyze_node): Declare.
581 (ipa_compute_jump_functions): Remove declaration.
582 (ipa_count_arguments): Likewise.
583 (ipa_detect_param_modifications): Likewise.
584 (ipa_analyze_params_uses): Likewise.
585 * ipa-prop.c (struct param_analysis_info): New type.
586 (visit_store_addr_for_mod_analysis): Removed.
587 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
588 moved down in the file.
589 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
590 (ipa_count_arguments): Made static.
591 (mark_modified): New function.
592 (is_parm_modified_before_call): New function.
593 (compute_pass_through_member_ptrs): New parameter parms_info, call
594 is_parm_modified_before_call instead of ipa_is_param_modified.
595 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
596 it to compute_pass_through_member_ptrs.
597 (ipa_compute_jump_functions): New parameter parms_info, pass it to
598 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
599 on the callee if it is analyzed. Made static.
600 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
601 is_parm_modified_before_call instead of ipa_is_param_modified.
602 (ipa_analyze_call_uses): New parameter parms_info, pass it to
603 ipa_analyze_indirect_call_uses.
604 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
605 ipa_analyze_call_uses.
606 (ipa_analyze_params_uses): New parameter parms_info, pass it to
607 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
608 (ipa_analyze_node): New function.
609 (ipa_print_node_params): Do not dump the modified flag.
610 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
611 it. Do not stream the modified parameter flag.
612 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
613 it. Do not stream the modified parameter flag.
614 * ipa-cp.c (ipcp_analyze_node): Removed.
615 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
616 with only a call to ipa_analyze_node.
617 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
618 node with only a call to ipa_analyze_node.
619
620 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
621
622 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
623
624 2010-06-25 Jan Hubicka <jh@suse.cz>
625
626 * tree-pass.h (pass_split_functions): Declare.
627 * opts.c (decode_options): Enable function splitting at -O2
628 * timevar.def (TV_IPA_FNSPLIT): New macro.
629 * ipa-split.c: New file.
630 * common.opt (-fpartial-inlining): New flag.
631 * Makefile.in (ipa-split.o): New object file.
632 * passes.c (init_optimization_passes): Add ipa-split.
633 * params.def (partial-inlining-entry-probability): New parameters.
634 * doc/invoke.texi (-fpartial-inlining): New.
635
636 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
637
638 PR 44665
639 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
640 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
641 (gimplify_expr): Likewise.
642
643 2010-06-25 Martin Jambor <mjambor@suse.cz>
644
645 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
646 statements instead of bailing out on them.
647 (ipa_analyze_indirect_call_uses): Do not require that loads from the
648 parameter are in the same BB as the condition. Update comments.
649
650 2010-06-25 Jakub Jelinek <jakub@redhat.com>
651
652 PR middle-end/43866
653 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
654 true or always false, return NULL_TREE.
655 (tree_unswitch_single_loop): Optimize conditions even when reaching
656 max-unswitch-level parameter. If num > 0, optimize first all conditions
657 using entry checks, then do still reachable block discovery and consider
658 only conditions in still reachable basic blocks in the loop.
659
660 PR tree-optimization/44539
661 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
662 the call doesn't have LHS, but has VDEF.
663
664 2010-06-25 Joseph Myers <joseph@codesourcery.com>
665
666 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
667 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
668 * gcc.c (enum add_del, struct modify_target, modify_target):
669 Remove.
670 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
671 * system.h (MODIFY_TARGET_NAME): Poison.
672
673 2010-06-25 Alan Modra <amodra@gmail.com>
674
675 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
676 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
677 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
678 CMODEL_LARGE as default.
679 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
680 (offsettable_ok_by_alignment): Delete.
681 (rs6000_emit_move): Remove mcmodel=medium optimization.
682
683 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
684
685 With large parts from Jim Wilson:
686 PR target/43902
687 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
688 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
689 * optabs.c (optab_for_tree_code): Likewise.
690 (expand_widen_pattern_expr): Likewise.
691 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
692 out of execute_optimize_widening_mul.
693 (convert_plusminus_to_widen): New function.
694 (execute_optimize_widening_mul): Use the two new functions.
695 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
696 Remove code to generate widening multiply-accumulate. Add support
697 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
698 * gimple-pretty-print.c (dump_ternary_rhs): New function.
699 (dump_gimple_assign): Call it when appropriate.
700 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
701 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
702 (expand_gimple_stmt_1): Likewise.
703 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
704 WIDEN_MULT_MINUS_EXPR.
705 * tree-ssa-operands.c (get_expr_operands): Likewise.
706 * tree-inline.c (estimate_operator_cost): Likewise.
707 * gimple.c (extract_ops_from_tree_1): Renamed from
708 extract_ops_from_tree. Add new arg for a third operand; fill it.
709 (gimple_build_assign_stat): Support operations with three operands.
710 (gimple_build_assign_with_ops_stat): Likewise.
711 (gimple_assign_set_rhs_from_tree): Likewise.
712 (gimple_assign_set_rhs_with_ops_1): Renamed from
713 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
714 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
715 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
716 WIDEN_MULT_MINUS_EXPR.
717 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
718 (extract_ops_from_tree_1): Adjust declaration.
719 (gimple_assign_set_rhs_with_ops_1): Likewise.
720 (gimple_build_assign_with_ops): Pass NULL for last operand.
721 (gimple_build_assign_with_ops3): New macro.
722 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
723 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
724 functions.
725 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
726 (verify_gimple_assign): Call it.
727 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
728 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
729 functions for dealing with three-operand statements.
730 * tree.c (commutative_ternary_tree_code): New function.
731 * tree.h (commutative_ternary_tree_code): Declare it.
732 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
733 ternary statements.
734 (gimple_assign_nonzero_warnv_p): Likewise.
735 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
736 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
737 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
738 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
739 (struct hashtable_expr): New member ternary in the union.
740 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
741 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
742 (iterative_hash_hashable_expr): Likewise.
743 (print_expr_hash_elt): Handle EXPR_TERNARY.
744 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
745 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
746 statements. Handle GIMPLE_TERNARY_RHS.
747
748 2010-06-25 Jan Hubicka <jh@suse.cz>
749
750 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
751
752 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
753
754 PR c/44517
755 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
756 parameters are not good.
757 (c_parser_parameter_declaration): Error unknown type name if the type
758 name can't start declaration specifiers.
759
760 2010-06-25 Joseph Myers <joseph@codesourcery.com>
761
762 * gcc.c (translate_options): Don't mention +e in comment.
763 (process_command): Don't handle +e specially.
764
765 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
766
767 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
768
769 * ira-build.c (merge_hard_reg_conflicts): New function.
770 (create_cap_allocno, copy_info_to_removed_store_destinations,
771 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
772 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
773 (remove_unnecessary_allocnos, remove_low_level_allocnos)
774 copy_nifo_to_removed_store_destination): Use them.
775 * ira-lives.c (make_hard_regno_born): New function, split out of
776 make_regno_born.
777 (make_allocno_born): Likewise.
778 (make_hard_regno_dead): New function, split out of make_regno_dead.
779 (make_allocno_dead): Likewise.
780 (inc_register_pressure): New function, split out of set_allocno_live.
781 (dec_register_pressure): New function, split out of clear_allocno_live.
782 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
783 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
784 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
785 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
786 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
787 mark_pseudo_regno_live.
788 (process_bb_node_lives): Use mark_pseudo_regno_live,
789 make_hard_regno_born and make_allocno_dead.
790 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
791 set_allocno_live, clear_allocno_live): Delete functions.
792
793 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
794 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
795 functions.
796 (ira_flattening): Use ira_parent_allocno.
797 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
798 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
799
800 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
801 statement.
802
803 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
804 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
805 minmax_set_iter_cond, minmax_set_iter_next,
806 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
807 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
808 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
809 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
810 uses changed.
811
812 * ira-int.h (struct live_range, live_range_t): Renamed from struct
813 ira_allocno_live_range and allocno_live_range_t; all uses changed.
814 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
815 All uses changed.
816
817 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
818
819 * thumb2.md (thumb2_tlobits_cbranch): Delete.
820 (peephole2 to convert zero_extract/compare of single bit to
821 lshift/compare): New.
822
823 2010-06-24 Anatoly Sokolov <aesok@post.ru>
824
825 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
826 recursive call and call to 'int_const_binop'.
827 (build_range_check, fold_cond_expr_with_comparison, unextend,
828 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
829 multiple_of_p): Adjust call to const_binop.
830
831 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
832
833 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
834 determine size of XFmode operand.
835 (XFmode extended DFmode push splitter): Ditto.
836 (XFmode extended SFmode push splitter): Ditto.
837
838 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
839
840 PR target/44588
841 * config/i386/i386.md (extract_code): New.
842 (<u>divmodqi4): Likewise.
843 (divmodhiqi3): Likewise.
844 (udivmodhiqi3): Likewise.
845 (<u>divqi3): Remvoved.
846
847 2010-06-24 Jakub Jelinek <jakub@redhat.com>
848
849 PR middle-end/44492
850 * recog.h (struct recog_data): Add is_asm field.
851 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
852 present in constraints of inline-asm operand and memory operand
853 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
854 (extract_insn): Initialize recog_data.is_asm.
855 * doc/md.texi (Constraints): Document operand side-effect rules.
856
857 2010-06-24 Andi Kleen <ak@linux.intel.com>
858
859 * c-parser.c (c_parser_conditional_expression): Call
860 warn_for_omitted_condop.
861 * doc/invoke.texi: Document omitted condop warning.
862
863 2010-06-24 Nick Clifton<nickc@redhat.com>
864
865 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
866 insn in the sequence is a jump insn before setting its label.
867
868 2010-06-24 Alan Modra <amodra@gmail.com>
869
870 * collect2.c (main): Match exactly --version and --help.
871
872 2010-06-24 DJ Delorie <dj@redhat.com>
873
874 * config/m32c/m32c-pragma.c: Don't include rtl.h.
875
876 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
877
878 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
879 using X87MODEF mode iterator.
880 (pushsf splitter): Macroize splitter using P mode iterator.
881 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
882 mode iterator.
883
884 (*movxf_internal): Rename from *movxf_integer.
885 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
886 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
887 (*movdf_internal): Rename from *movdf_integer.
888 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
889 (*movsf_internal): Rename from *movdf_1.
890
891 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
892
893 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
894 (const_gimple_seq_node): Removed typedefs.
895
896 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
897 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
898
899 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
900
901 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
902 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
903 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
904 and CODE_FOR_vec_extract_lo_v4df.
905
906 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
907 Changed to define_insn_and_split.
908 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
909 (vec_extract_lo_v16hi): Likewise.
910 (vec_extract_lo_v32qi): Likewise.
911 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
912 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
913
914 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
915
916 PR target/44640
917 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
918 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
919 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
920 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
921 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
922
923 PR target/44640
924 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
925
926 PR other/44644
927 * df-core.c (struct df): Rename to df_d.
928 * df.h (struct df): Likewise.
929 * dse.h (struct df): Remove forward declaration.
930 * recog.h (struct insn_data): Rename to:
931 (struct_insn_data_d). Adjusted all users.
932
933 2010-06-23 Arnaud Charlet <charlet@adacore.com
934
935 PR ada/22220
936 * doc/install.texi: Update requirements to build GNAT.
937
938 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
939
940 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
941 enum type.
942 (m68k_sched_attr_opx_type): Remove unreachable return.
943 (m68k_sched_attr_opy_type): Likewise.
944 (m68k_sched_attr_size): Likewise.
945 (sched_get_opxy_mem_type): Likewise.
946 (m68k_sched_attr_op_mem): Likewise.
947
948 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
949
950 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
951 new statement and adjust VDEF only if necessary. Remove superfluous
952 call to maybe_clean_or_replace_eh_stmt.
953 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
954 copy the flags.
955 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
956 * tree-inline.c (copy_bb): ...and not there.
957
958 2010-06-22 Cary Coutant <ccoutant@google.com>
959
960 * dwarf2out.c (is_nested_in_subprogram): New function.
961 (should_move_die_to_comdat): Use it.
962 (copy_ancestor_tree): Don't mark DIEs here.
963 (copy_decls_walk): Start walk from root of newly-added tree;
964 mark DIEs here instead.
965
966 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
967
968 * config/i386/i386.md (unit): Also check sseishft1.
969
970 2010-06-22 Jan Hubicka <jh@suse.cz>
971
972 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
973 enabled.
974
975 2010-06-22 Jan Hubicka <jh@suse.cz>
976
977 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
978 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
979 Return true if something changed.
980 * df.h (df_confluence_function_n): Return bool.
981 * df-core.c (df_worklist_propagate_forward,
982 df_worklist_propagate_backward): Track changes and ages.
983 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
984 track ages.
985 * dse.c (dse_confluence_n): Return always true.
986
987 2010-06-22 Jan Hubicka <jh@suse.cz>
988
989 * bitmap.c (bitmap_clear_bit): Micro optimize.
990
991 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
992
993 * config/i386/i386.md (SWI1248x): New mode iterator.
994 (SWI48x): Ditto.
995 (SWI12): Ditto.
996 (SWI24): Ditto.
997
998 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
999 SWI1248x mode iterator.
1000 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
1001 using SWI124 mode iterator.
1002 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
1003 mode iterator.
1004 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
1005 *pushdi2_prologue_rex64 using P mode iterator.
1006 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
1007 using SWI48 mode iterator.
1008 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
1009 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
1010 using SWI1248x mode iterator.
1011 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
1012 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
1013 SWI48 mode iterator.
1014 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
1015 iterator.
1016 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
1017 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
1018 SWI12 mode iterator.
1019 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
1020 SWI12 mode iterator.
1021 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
1022 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
1023 SWI24 mode iterator.
1024 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
1025 SWI48 mode iterator.
1026 (mov<mode>_insn_1): New expander.
1027 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
1028 using SWI48x mode iterator.
1029
1030 (*movoi_internal_avx): Rename from *movoi_internal.
1031 (*movti_internal_rex64): Rename from *movti_rex64.
1032 (*movti_internal_sse): Rename from *movti_sse.
1033 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
1034 (*movdi_internal): Rename from *movdi_2.
1035 (*movsi_internal): Rename from *movsi_1.
1036 (*movhi_internal): Rename from *movhi_1.
1037 (*movqi_internal): Rename from *movqi_1.
1038
1039 (insv): Update the call to gen_movsi_insv_1 for rename.
1040 * config/i386/i386.c (promote_duplicated_reg): Ditto.
1041
1042 2010-06-22 Jan Hubicka <jh@suse.cz>
1043
1044 * passes.c (execute_function_todo): Move call of statistics_fini_pass
1045 to ...
1046 (execute_todo) ... this one.
1047
1048 2010-06-22 Alan Modra <amodra@gmail.com>
1049
1050 PR target/44364
1051 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1052 * caller-save.c (insert_restore, insert_save): Use non-validate
1053 form of adjust_address.
1054
1055 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1056
1057 PR target/39690
1058 * config/pa/pa.c (override_options): Disable
1059 -freorder-blocks-and-partition.
1060
1061 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
1062
1063 PR target/44615
1064 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
1065
1066 * config/i386/i386.md (type): Add sseishft1
1067
1068 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
1069 (ppro_insn_load): Likewise.
1070 (ppro_insn_store): Likewise.
1071 (ppro_insn_both): Likewise.
1072
1073 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
1074 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
1075 for type.
1076 (*vec_extractv2di_1_avx): Likewise.
1077 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
1078 type. Remove atom_unit.
1079 (*vec_extractv2di_1_sse2): Likewise.
1080
1081 2010-06-21 DJ Delorie <dj@redhat.com>
1082
1083 * diagnostic.h (diagnostic_classification_change_t): New.
1084 (diagnostic_context): Add history and push/pop list.
1085 (diagnostic_push_diagnostics): Declare.
1086 (diagnostic_pop_diagnostics): Declare.
1087 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
1088 from pragmas in a history chain instead of the global table.
1089 (diagnostic_push_diagnostics): New.
1090 (diagnostic_pop_diagnostics): New.
1091 (diagnostic_report_diagnostic): Scan history chain to find state
1092 of diagnostics as of the diagnostic location.
1093 * opts.c (set_option): Pass UNKNOWN_LOCATION to
1094 diagnostic_classify_diagnostic.
1095 (enable_warning_as_error): Likewise.
1096 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
1097 use in the history chain.
1098 * c-family/c-pragma.c (handle_pragma_diagnostic): Add push/pop,
1099 allow these pragmas anywhere.
1100 * doc/extend.texi: Document pragma GCC diagnostic changes.
1101
1102 2010-06-21 Jakub Jelinek <jakub@redhat.com>
1103
1104 * dwarf2out.c (add_linkage_name): New function. Don't add
1105 anything to DW_TAG_member DIEs.
1106 (add_name_and_src_coords_attributes): Use it.
1107 (gen_variable_die): Call it for C++ static data members if
1108 specification is DW_TAG_member.
1109
1110 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
1111 C++ char16_t and char32_t.
1112
1113 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
1114 * genattrtab.c: Include vecprim.h.
1115 (cached_attrs, cached_attr_count, attrs_seen_once,
1116 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
1117 attrs_cached_after): New variables.
1118 (find_attrs_to_cache): New function.
1119 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
1120 (write_test_expr): Add attrs_cached argument, return it too,
1121 attempt to cache non-const attributes used more than once in
1122 a single case handling.
1123 (write_attr_get): Use find_attrs_to_cache, for caching candidates
1124 emit cached_* variables. Adjust write_attr_set callers.
1125 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
1126 to find attributes that should be cached in this block. Adjust
1127 write_test_expr callers.
1128 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
1129 callers.
1130 (make_automaton_attrs): Adjust write_test_expr caller.
1131
1132 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
1133 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
1134 (make_automaton_attrs): If find_tune_attr returns non-NULL,
1135 write separate internal_dfa_insn_code_* and insn_default_latency_*
1136 functions for each attribute's value and emit init_sched_attrs
1137 function and function pointers.
1138 * genattr.c (const_attrs, reservations): New variables.
1139 (gen_attr): Add const attributes to const_attrs vector.
1140 (check_tune_attr, find_tune_attr): New functions.
1141 (main): Add reservations to reservations vector. If find_tune_attr
1142 returns true, add prototype for init_sched_attrs and make
1143 internal_dfa_insn_code and insn_default_latency function pointers,
1144 otherwise define init_sched_attrs as dummy macro.
1145 * cfgexpand.c: Include insn-attr.h.
1146 (gimple_expand_cfg): Call init_sched_attrs.
1147
1148 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
1149
1150 PR target/44575
1151 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
1152 va_arg from a set of register save slots into a temporary,
1153 if the container is bigger than type size, do the copying
1154 using smaller mode or using memcpy.
1155
1156 PR bootstrap/44426
1157 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
1158 prototype.
1159 (sel_print_to_dot): Remove macro.
1160 (sel_print): Likewise. New prototype.
1161 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
1162 (sel_print): New function.
1163
1164 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1165
1166 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
1167 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
1168
1169 2010-06-21 Nick Clifton <nickc@redhat.com>
1170
1171 * config/rx/rx.h (PTRDIFF_TYPE): Define.
1172 (SMALL_REGISTER_CLASS): Define (to zero).
1173 (PRINT_OPERAND): Delete.
1174 (PRINT_OPERAND_ADDRESS): Delete.
1175 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
1176 (rx_print_operand_address): Delete prototype.
1177 * config/rx/rx.c (rx_print_operand): Make static.
1178 Allow %H and %L to handle CONST_DOUBLEs.
1179 (rx_print_operand_address): Make static.
1180 (rx_gen_move_template): Rename local variable 'template' to
1181 out_template.
1182 (rx_function_arg): Do not pass unknown sized objects in registers.
1183 (TARGET_PRINT_OPERAND): Define.
1184 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1185
1186 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1187
1188 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
1189
1190 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
1191
1192 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
1193 stack-alignment for simple leaf-functions.
1194
1195 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1196
1197 * doc/install.texi: Document bootstrap-lto.
1198
1199 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
1200
1201 PR debug/44248
1202 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
1203 (input_function): Drop them here, if VTA is disabled.
1204
1205 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
1206
1207 PR target/44546
1208 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
1209 New predicate.
1210 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
1211 ix86_swapped_fp_comparsion_operator instead of
1212 ix86_fp_comparison_operator.
1213
1214 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
1215 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
1216 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
1217 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
1218 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
1219 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
1220
1221 2010-06-20 Joseph Myers <joseph@codesourcery.com>
1222
1223 PR other/32998
1224 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
1225 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1226 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
1227 (decode_cmdline_option): Update for this return value. Set
1228 orig_option_with_args_text field. Set arg field for unknown
1229 options. Make static.
1230 (decode_cmdline_options_to_array): New.
1231 (prune_options): Update handling of find_opt return value.
1232 * opts.c (read_cmdline_option): Take decoded option. Return void.
1233 (read_cmdline_options): Take decoded options.
1234 (decode_options): Add parameters for decoded options. Use
1235 decode_cmdline_options_to_array. Use decoded options for -O
1236 scan. Use integral_argument for -O parameters. Update call to
1237 read_cmdline_options.
1238 (enable_warning_as_error): Update handling of find_opt return value.
1239 * opts.h: Update comment on unknown options.
1240 (struct cl_decoded_option): Update comments on opt_index and arg.
1241 Add orig_option_with_args_text.
1242 (decode_cmdline_option): Remove.
1243 (decode_cmdline_options_to_array): Declare.
1244 (decode_options): Update prototype.
1245 * toplev.c (save_argv): Remove.
1246 (save_decoded_options, save_decoded_options_count): New.
1247 (read_integral_parameter): Remove.
1248 (print_switch_values): Use decoded options.
1249 (toplev_main): Don't set save_argv. Update call to decode_options.
1250 * toplev.h (read_integral_parameter): Remove.
1251 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
1252
1253 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
1254
1255 PR target/44072
1256 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
1257 immediate.
1258 * constraints.md (Pw, Px): New constraints.
1259 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
1260
1261 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
1262
1263 * config/i386/sse.md (fma4modesuffixf4): Removed.
1264 (ssemodesuffixf2s): Likewise.
1265 (ssemodesuffixf4): Likewise.
1266 (ssemodesuffixf2c): Likewise.
1267 (ssescalarmodesuffix2s): Likewise.
1268 (avxmodesuffixf2c): Likewise.
1269 (ssemodesuffix): New.
1270 (ssescalarmodesuffix): Likewise.
1271 Update patterns with ssemodesuffix and ssescalarmodesuffix.
1272
1273 2010-06-19 Philip Herron <herron.philip@googlemail.com>
1274
1275 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
1276
1277 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 * stor-layout.c (debug_rli): Remove unused local variables.
1280
1281 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
1282
1283 PR rtl-optimization/40900
1284 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
1285 original expression for later reuse.
1286 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
1287 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
1288
1289 2010-06-18 Anatoly Sokolov <aesok@post.ru>
1290
1291 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
1292 double_int_fits_in_uhwi_p): Implement as static inline.
1293 (double_int_xor): New inline function.
1294 (double_int_lrotate, double_int_rrotate, double_int_max,
1295 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1296 double_int_smin): Declare.
1297 (lrotate_double, rrotate_double): Remove declaration.
1298 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
1299 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
1300 (double_int_lrotate, double_int_rrotate, double_int_max,
1301 double_int_umax, double_int_smax, double_int_min, double_int_umin,
1302 double_int_smin): New function.
1303 * fold-const.c (int_const_binop): Clean up, use double_int_*
1304 functions.
1305 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
1306 double_int_* and immed_double_int_const functions.
1307
1308 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1309
1310 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
1311 * function.c (types_used_by_cur_var_decl): Likewise.
1312 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
1313
1314 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
1315
1316 * tree.h (record_layout_info): Change type of pending_statics field
1317 to a VEC.
1318 * stor-layout.c (start_record_layout): Store NULL into
1319 pending_statics.
1320 (debug_rli): Call debug_vec_tree instead of debug_tree.
1321 (place_field): Likewise.
1322 (finish_record_layout): Likewise.
1323
1324 2010-06-18 Alan Modra <amodra@gmail.com>
1325
1326 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
1327
1328 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1329
1330 PR target/43740
1331 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
1332 for SET source operand from SET destination operand.
1333
1334 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
1335
1336 PR rtl-optimization/39871
1337 * reload1.c (init_eliminable_invariants): For flag_pic, disable
1338 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
1339 (function_invariant_p): Rule out a plus of frame or arg pointer with
1340 a SYMBOL_REF.
1341 * ira.c (find_reg_equiv_invariant_const): Likewise.
1342
1343 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
1344
1345 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
1346 print_operand_address and puts to output the operand for CONST.
1347
1348 2010-06-17 Jakub Jelinek <jakub@redhat.com>
1349
1350 PR debug/44572
1351 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
1352 hook.
1353
1354 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1355
1356 * v850-protos.h (print_operand): Delete.
1357 (print_operand_address): Delete.
1358 * v850.h (PRINT_OPERAND): Delete.
1359 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1360 (PRINT_OPERAND_ADDRESS): Delete.
1361 * v850.c (print_operand_address): Rename to...
1362 (v850_print_operand_address): ...this. Make static. Call
1363 v850_print_operand.
1364 (print_operand): Rename to...
1365 (v850_print_operand): ...this. Make static. Call
1366 v850_print_operand_address.
1367 (v850_print_operand_punct_valid_p): New function.
1368 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1369 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1370
1371 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1372
1373 * config/sh/sh-protos.h (print_operand): Delete.
1374 (print_operand_address): Delete.
1375 * config/sh/sh.h (PRINT_OPERAND): Delete.
1376 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1377 (PRINT_OPERAND_ADDRESS): Delete.
1378 * config/sh/sh.c (sh_print_operand_address): Make static.
1379 (sh_print_operand): Make static. Call sh_print_operand_address
1380 and sh_print_operand.
1381 (sh_print_operand_punct_valid_p): New function.
1382 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1383 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1384
1385 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1386
1387 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
1388 (mcore_print_operand_address): Delete.
1389 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
1390 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1391 (PRINT_OPERAND_ADDRESS): Delete.
1392 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
1393 (mcore_print_operand): Make static.
1394 (mcore_print_operand_punct_valid_p): New function.
1395 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
1396 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1397
1398 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1399
1400 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
1401 (print_operand_address): Delete.
1402 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
1403 (PRINT_OPERAND_ADDRESS): Delete.
1404 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
1405 static.
1406 (m68hc11_print_operand): Make static.
1407 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1408
1409 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1410
1411 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
1412 (m32r_print_operand_address): Delete.
1413 * config/m32r/m32r.h (m32r_punct_chars): Delete.
1414 (PRINT_OPERAND): Delete.
1415 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1416 (PRINT_OPERAND_ADDRESS): Delete.
1417 * config/m32r/m32r.c (m32r_punct_chars): Make static.
1418 (m32r_print_operand_address): Make static.
1419 (m32r_print_operand): Make static.
1420 (m32r_print_operand_punct_valid_p): New function.
1421 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1422 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1423
1424 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1425
1426 * config/iq2000/iq2000-protos.h (print_operand): Delete.
1427 (print_operand_address): Delete.
1428 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
1429 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1430 (PRINT_OPERAND_ADDRESS): Delete.
1431 (iq2000_print_operand_punct): Delete.
1432 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
1433 (iq2000_print_operand_address): Make static.
1434 (iq2000_print_operand): Make static.
1435 (iq2000_print_operand_punct_valid_p): New function.
1436 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1437 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1438
1439 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1440
1441 * config/frv/frv-protos.h (frv_print_operand): Delete.
1442 (frv_print_operand_address): Delete.
1443 * config/frv/frv.h (PRINT_OPERAND): Delete.
1444 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1445 (PRINT_OPERAND_ADDRESS): Delete.
1446 * config/frv/frv.c (frv_print_operand_address): Make static.
1447 (frv_print_operand): Make static.
1448 (frv_print_operand_punct_valid_p): New function.
1449 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1450 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1451
1452 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
1453
1454 * tree.h (vec_member): Declare.
1455 * tree.c (vec_member): Define.
1456
1457 2010-06-17 Richard Guenther <rguenther@suse.de>
1458
1459 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
1460 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
1461
1462 2010-06-17 Richard Guenther <rguenther@suse.de>
1463
1464 * tree-inline.c (declare_return_variable): Remove bogus code.
1465
1466 2010-06-17 Richard Guenther <rguenther@suse.de>
1467
1468 * gimplify.c (gimplify_bind_expr): Always promote complex
1469 and vector variables to registers if possible.
1470
1471 2010-06-17 Richard Guenther <rguenther@suse.de>
1472
1473 * expr.c (get_inner_reference): Use double_int for bit_offset
1474 calculation.
1475
1476 2010-06-16 DJ Delorie <dj@redhat.com>
1477
1478 * common.opt (-fstrict-volatile-bitfields): new.
1479 * doc/invoke.texi: Document it.
1480 * fold-const.c (optimize_bit_field_compare): For volatile
1481 bitfields, use the field's type to determine the mode, not the
1482 field's size.
1483 * expr.c (expand_assignment): Likewise.
1484 (get_inner_reference): Likewise.
1485 (expand_expr_real_1): Likewise.
1486 * expmed.c (store_fixed_bit_field): Likewise.
1487 (extract_bit_field_1): Likewise.
1488 (extract_fixed_bit_field): Likewise.
1489
1490 2010-06-16 Richard Guenther <rguenther@suse.de>
1491
1492 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
1493
1494 2010-06-16 Douglas B Rupp <rupp@gnat.com>
1495
1496 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
1497 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
1498 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
1499 * debug.c: Likewise.
1500 * sdbout.c: Likewise.
1501 * vmsdbgout.c: Likewise.
1502 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
1503 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
1504 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
1505 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
1506 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
1507 * dwarf2out.c (dw_fde_struct): New fields
1508 dw_fde_vms_{end,begin}_prologue.
1509 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
1510 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
1511 (dwarf2out_vms_end_prologue): New function.
1512 (dwarf2out_vms_begin_epilogue): New function.
1513 (dw_val_struct): New value dw_val_class_vms_delta.
1514 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
1515 begin_epilogue for VMS.
1516 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
1517 new static functions.
1518 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
1519 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
1520 static functions.
1521 (print_die): New case dw_val_class_vms_delta.
1522 (attr_checksum): Likewise.
1523 (same_dw_val_p: Likewise.
1524 (size_of_die): Likewise.
1525 (value_format): Likewise.
1526 (output_die): Likewise.
1527 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
1528 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
1529 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
1530 dwarf2out_cfi_begin_epilogue
1531 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
1532
1533 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1534
1535 * config/cris/cris-protos.h (cris_print_operand): Delete.
1536 (cris_print_operand_address): Delete.
1537 * config/cris/cris.h (PRINT_OPERAND): Delete.
1538 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1539 (PRINT_OPERAND_ADDRESS): Delete.
1540 * config/cris/cris.c (cris_print_operand_address): Make static.
1541 (cris_print_operand): Make static.
1542 (cris_print_operand_punct_valid_p): New function.
1543 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1544 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1545
1546 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
1547
1548 * config/arm/arm-protos.h (arm_print_operand): Delete.
1549 (arm_print_operand_address): Delete.
1550 * config/arm/arm.h (PRINT_OPERAND): Delete.
1551 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1552 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
1553 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
1554 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
1555 (arm_print_operand): Make static.
1556 (arm_print_operand_punct_valid_p): New function.
1557 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
1558 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1559
1560 2010-06-16 Nick Clifton <nickc@redhat.com>
1561
1562 * config/rx/constraints.md (NEGint4): New constraint.
1563 * config/rx/rx.md (attr cc): Add set_zsc.
1564 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
1565 initialised.
1566 (cmpsf): Likewise.
1567 (call_internal): Clobber the cc0 register.
1568 (call_value_internal): Likewise.
1569 (cstoresi4): Likewise.
1570 (movsieq): Likewise.
1571 (movsine): Likewise.
1572 (addsi3): Add alternative to handle small negative constants.
1573 (sunsi3): Likewise.
1574 (addsi3): Do not set the O bit in the cc0 register.
1575 (adddi3): Likewise.
1576 (subsi3): Likewise.
1577 (subdi3): Likewise.
1578 (andsi3): Reorder alternatives to prefer shorter forms.
1579 (mulsi3): Likewise.
1580 (iorsi3): Likewise.
1581 (negsi2): Note that the cc0 flags are set.
1582 (rotlsi3): Note that only the Z and S bits are set in cc0.
1583 (lshrsi3): Likewise.
1584 (ashlsi3): Likewise.
1585 (subsf3): Use %Q for the MEM operand.
1586 (fix_truncsfsi2): Likewise.
1587 (floatsisf2): Likewise.
1588 (bitset): Remove early clobber from destination.
1589 (bitset_in_memory): Likewise.
1590 (lrintsf2): Clobber the cc0 register.
1591 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
1592 (rx_print_operand): Handle %N.
1593
1594 2010-06-16 Jan Hubicka <jh@suse.cz>
1595
1596 * df-core.c (df_compact_blocks): Free problem_temps vector.
1597
1598 2010-06-16 Martin Jambor <mjambor@suse.cz>
1599
1600 PR tree-optimization/43905
1601 * tree-sra.c: Include tree-inline.h.
1602 (create_abstract_origin): Removed.
1603 (modify_function): Version the call graph node instead of creating
1604 abstract origins and dealing with same_body aliases.
1605 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
1606 function is versionable.
1607 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
1608
1609 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
1610
1611 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
1612 (CHOOSE_DYNAMIC_LINKER): Update.
1613
1614 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
1615
1616 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
1617 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
1618 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
1619 *prefetch_3dnow_rex.
1620
1621 2010-06-15 Anatoly Sokolov <aesok@post.ru>
1622
1623 * target.h (struct asm_out):Add declare_constant_name field.
1624 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1625 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
1626 * output.h (default_asm_declare_constant_name): Declare.
1627 (assemble_label): Update prototype.
1628 * varasm.c (assemble_constant_contents): Use
1629 targetm.asm_out.declare_constant_name target hook.
1630 (assemble_label): Add 'file' argument.
1631 (default_asm_declare_constant_name): New function.
1632 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
1633 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
1634 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
1635
1636 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
1637 * config/darwin.c (darwin_asm_declare_constant_name): New function.
1638 (machopic_output_indirection): Update assemble_label argument list.
1639 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
1640 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
1641
1642 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1643
1644 PR middle-end/44391
1645 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1646 size_one_node for pointer types. Do not call gmp_cst_to_tree.
1647
1648 2010-06-15 Richard Guenther <rguenther@suse.de>
1649
1650 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
1651
1652 2010-06-15 Paul Brook <paul@codesourcery.com>
1653
1654 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
1655 hard-float ABI.
1656
1657 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
1658
1659 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
1660 don't get a vector type for output.
1661
1662 2010-06-15 Jakub Jelinek <jakub@redhat.com>
1663
1664 PR fortran/44536
1665 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
1666 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
1667 (LANG_HOOKS_DECLS): Add it.
1668 * gimplify.c (omp_notice_variable): Call
1669 lang_hooks.decls.omp_report_decl.
1670
1671 2010-06-15 Martin Jambor <mjambor@suse.cz>
1672
1673 PR lto/44464
1674 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
1675 on the newly dead SSA name.
1676
1677 2010-06-15 Alan Modra <amodra@gmail.com>
1678
1679 * doc/invoke.texi: Add mcmodel to powerpc options.
1680 * configure.ac: Add HAVE_LD_LARGE_TOC test.
1681 * configure: Regenerate.
1682 * config.in: Regenerate.
1683 * config/rs6000/linux64.opt (mcmodel): New.
1684 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
1685 (TARGET_CMODEL, SET_CMODEL): Define.
1686 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
1687 select CMODEL_MEDIUM default.
1688 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
1689 (TARGET_CMODEL): Define default.
1690 * config/rs6000/rs6000.c (cmodel): New variable.
1691 (rs6000_explicit_options): Add cmodel field.
1692 (rs6000_handle_option): Handle -mcmodel.
1693 (create_TOC_reference): Add largetoc_reg param. Generate high,
1694 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
1695 (rs6000_delegitimize_address): Recognise new toc reference rtl
1696 and minimal-toc rtl.
1697 (rs6000_legitimize_reload_address): Handle new toc references.
1698 (print_operand_address): Handle legitimate_constant_pool_address_p
1699 match before lo_sum.
1700 (rs6000_eliminate_indexed_memrefs): Tidy.
1701 (rs6000_emit_move): Tweak threshold for inlining constants.
1702 Keep rs6000_emit_allocate_stack large stack frame offsets
1703 loaded into r0 inline.
1704 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
1705 (tocrel_base, tocrel_offset): New variables.
1706 (toc_relative_expr_p): Set them here.
1707 (print_operand_address): Skip over any offset on constant pool address.
1708 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
1709 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
1710 (offsettable_ok_by_alignment): New function.
1711 (rs6000_emit_move): Address suitably aligned local symbol_refs
1712 relative to the toc pointer for -mcmodel=medium.
1713 (legitimate_constant_pool_address_p): Make param const_rtx. Add
1714 strict param. Allow lo_sum version of addressing. Verify reg
1715 used for -mminimal-toc and -mcmodel != small. Update all callers.
1716 * config/rs6000/constraints.md: Update for above change.
1717 * config/rs6000/predicates.md: Likewise.
1718 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
1719 code.
1720 (tls_gd): Split for -mcmodel=medium/large.
1721 (tls_gd_high, tls_gd_low): New.
1722 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
1723 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
1724 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
1725 (largetoc_high, largetoc_low): New.
1726 (cmptf_internal2): Add clobber.
1727 * config/rs6000/rs6000-protos.h: Update.
1728
1729 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
1730
1731 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
1732 true if no prefetch is going to be generated for a given group.
1733 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
1734 estimate the prefetch_count.
1735 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
1736 prefetch count by considering the unroll_factor and prefetch_mod
1737 for is_loop_prefetching_profitable.
1738
1739 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
1740
1741 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
1742 anything if the argument is not a MEM.
1743
1744 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1745
1746 PR debug/43650
1747 PR debug/44181
1748 PR debug/44247
1749 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
1750 debug stmts.
1751 (canonicalize_loop_ivs): Likewise.
1752
1753 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
1754
1755 PR debug/43656
1756 * haifa-sched.c (setup_insn_reg_pressure_info,
1757 update_register_pressure): Reject debug insns.
1758 (ready_sort): Don't setup reg pressure for debug insns.
1759 (schedule_insn): Don't update reg pressure for debug insns.
1760
1761 2010-06-14 Richard Guenther <rguenther@suse.de>
1762
1763 * lto-streamer.c (cached_bp): Remove.
1764 (bitpack_delete): Likewise.
1765 (bitpack_create): Likewise.
1766 (bp_get_next_word): Likewise.
1767 (bp_pack_value, bp_unpack_value): Move ...
1768 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
1769 Re-implement.
1770 (struct bitpack_d): Likewise.
1771 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
1772 New inline functions.
1773 * lto-streamer-out.c (lto_output_bitpack): Remove.
1774 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1775 (pack_value_fields): Adjust.
1776 (lto_write_tree): Likewise.
1777 (output_gimple_stmt): Likewise.
1778 (output_function): Likewise.
1779 * lto-streamer-in.c (input_gimple_stmt): Adjust.
1780 (input_function): Likewise.
1781 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
1782 (lto_input_bitpack): Remove.
1783 (lto_materialize_tree): Adjust.
1784 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
1785 * lto-cgraph.c (lto_output_edge): Adjust.
1786 (lto_output_node): Likewise.
1787 (lto_output_varpool_node): Likewise.
1788 (lto_output_ref): Likewise.
1789 (input_node): Likewise.
1790 (input_varpool_node): Likewise.
1791 (input_ref): Likewise.
1792 (input_edge): Likewise.
1793 (output_node_opt_summary): Likewise.
1794 (input_node_opt_summary): Likewise.
1795 * ipa-pure-const.c (pure_const_write_summary): Likewise.
1796 (pure_const_read_summary): Likewise.
1797 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
1798 (ipa_read_indirect_edge_info): Likewise.
1799 (ipa_write_node_info): Likewise.
1800 (ipa_read_node_info): Likewise.
1801
1802 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
1803
1804 PR target/44534
1805 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
1806 (vec_extract_lo_v16hi): Likewise.
1807 (vec_extract_lo_v32qi): Likewise.
1808
1809 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1810
1811 PR bootstrap/44426
1812 * tree.h (build_call_expr): Don't define as vararg macro, instead
1813 add a prototype.
1814 * builtins.c (build_call_nofold): Remove.
1815 (expand_builtin_int_roundingfn, expand_builtin_pow,
1816 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
1817 expand_builtin_memset_args, expand_builtin_strcmp,
1818 expand_builtin_strncmp, expand_builtin_memory_chk): Use
1819 build_call_nofold_loc instead of build_call_nofold.
1820 (build_call_expr): New function.
1821
1822 PR tree-optimization/44508
1823 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
1824 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
1825 don't eliminate trivially dead stmts.
1826 * tree-vrp.c (vrp_finalize): Pass false as last argument
1827 to substitute_and_fold.
1828 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
1829 to substitute_and_fold.
1830 * tree-ssa-ccp.c (ccp_finalize): Likewise.
1831
1832 PR bootstrap/44509
1833 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
1834 * c-family/c-cppbuiltin.c: Include gt-c-family-c-cppbuiltin.h.
1835 (lazy_hex_fp_values, lazy_hex_fp_value_count): Add GTY(()) markers.
1836 (lazy_hex_fp_value, builtin_define_with_hex_fp_value): Use
1837 ggc_strdup instead of xstrdup.
1838
1839 2010-06-14 Ira Rosen <irar@il.ibm.com>
1840
1841 PR tree-optimization/44507
1842 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
1843 to build initial vector for BIT_AND_EXPR.
1844 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1845
1846 2010-06-14 Jakub Jelinek <jakub@redhat.com>
1847
1848 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
1849 adjust z10prop set_attr.
1850
1851 2010-06-13 Jan Hubicka <jh@suse.cz>
1852
1853 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1854 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
1855 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
1856 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
1857 datastructure checks into checking asserts.
1858 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
1859 * tree-ssa-sccvn.c (VN_INFO): Likewise.
1860 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
1861 df_ref_create_structure): Likewise.
1862 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
1863 pool_free): Use gcc_checking_assert.
1864 * alias.c (get_alias_set): Likewise.
1865 * var-tracking.c (variable_htab_free, shared_hash_copy,
1866 canonicalize_values_mark, variable_merge_over_cur): Likewise.
1867 * lto-streamer.c (bp_unpack_value): Likewise.
1868
1869 2010-06-13 Richard Guenther <rguenther@suse.de>
1870
1871 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
1872 Do not stream but initialize TYPE_CANONICAL to NULL.
1873 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
1874 * gimple.c (gimple_types_compatible_p): Disregard
1875 TYPE_STRUCTURAL_EQUALITY_P.
1876 (gimple_register_type): Use TYPE_CANONICAL as cache.
1877 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
1878 before registering common types.
1879 * config/i386/i386.c (ix86_function_arg_boundary): Do not
1880 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
1881 * tree.h (TYPE_CANONICAL): Clarify documentation.
1882
1883 2010-06-13 Anatoly Sokolov <aesok@post.ru>
1884
1885 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
1886 LIBCALL_VALUE): Remove macros.
1887 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
1888 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1889 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1890 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
1891 (ia64_function_value): Make static. Handle receiving the function
1892 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
1893
1894 2010-06-12 Jan Hubicka <jh@suse.cz>
1895
1896 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
1897 at correct place.
1898
1899 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
1900
1901 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
1902
1903 2010-06-12 Jan Hubicka <jh@suse.cz>
1904
1905 * df-core.c (df_clear_bb_info): New function.
1906 (df_set_blocks): bb_info is always allocated.
1907 (df_get_bb_info): Use block_info_elt_size.
1908 (df_set_bb_info): Likewise.
1909 (df_compact_blocks): Update for new block_info.
1910 (grow_bb_info): New function.
1911 * df-problems.c (df_grow_bb_info): Move to df-core.c
1912 (df_rd_set_bb_info): Remove.
1913 (df_rd_free_bb_info): Do not free block pool.
1914 (df_rd_alloc): Do not create pool, use check for
1915 obstack presence instead of NULL pointer for new blocks.
1916 (df_rd_free): DO not free alloc pool; clear block_info.
1917 (problem_RD): Add size of block info structure.
1918 (df_lr_set_bb_info): Remove.
1919 (df_lr_free_bb_info): Do not free block pool.
1920 (df_lr_alloc): Do not create pool, use check for
1921 obstack presence instead of NULL pointer for new blocks.
1922 (df_lr_free): DO not free alloc pool; clear block_info.
1923 (problem_LR): Add size of block info structure.
1924 (df_live_set_bb_info): Remove.
1925 (df_live_free_bb_info): Do not free block pool.
1926 (df_live_alloc): Do not create pool, use check for
1927 obstack presence instead of NULL pointer for new blocks.
1928 (df_live_free): DO not free alloc pool; clear block_info.
1929 (problem_LIVE): Add size of block info structure.
1930 (problem_CHAIN): Add size of block info structure.
1931 (df_byte_lr_set_bb_info): Remove.
1932 (df_byte_lr_free_bb_info): Do not free block pool.
1933 (df_byte_lr_alloc): Do not create pool, use check for
1934 obstack presence instead of NULL pointer for new blocks.
1935 (df_byte_lr_free): DO not free alloc pool; clear block_info.
1936 (problem_BYTE_LR): Add size of block info structure.
1937 (problem_NOTE): Add size of block info structure.
1938 (df_byte_MD_set_bb_info): Remove.
1939 (df_byte_MD_free_bb_info): Do not free block pool.
1940 (df_byte_MD_alloc): Do not create pool, use check for
1941 obstack presence instead of NULL pointer for new blocks.
1942 (df_byte_MD_free): DO not free alloc pool; clear block_info.
1943 (problem_BD): Add size of block info structure.
1944 * df-scan.c (df_scan_free_internal): Free block pool.
1945 (df_scan_set_bb_info): Remove.
1946 (df_scan_free_bb_info): Check for artificial_defs instead
1947 of bb_info being non-NULL.
1948 (df_scan_alloc): DO not create df_scan_block pool.
1949 (problem_SCAN): Set size of block info.
1950 (df_bb_refs_record): Do not allocate bb_info.
1951 * df.h (df_problem): Add block_info_elt_size.
1952 (struct dataflow): Change block_info to void *.
1953 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
1954 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
1955 in-line structures.
1956
1957 2010-06-12 Jan Hubicka <jh@suse.cz>
1958
1959 PR tree-optimize/44485
1960 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
1961 containing use of return value of noreturn function.
1962
1963 2010-06-12 Anatoly Sokolov <aesok@post.ru>
1964
1965 * targhooks.c (default_function_value): Don't use
1966 FUNCTION_OUTGOING_VALUE.
1967 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
1968 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
1969
1970 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
1971
1972 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
1973 Add crtfastmath.o to extra_parts.
1974 * config/mips/crtfastmath.c: New.
1975 * config/mips/linux.h (ENDFILE_SPEC): New.
1976
1977 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1978
1979 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1980 old_type in parameter.
1981 (gcc_type_for_value): Update call to gcc_type_for_interval.
1982 (compute_type_for_level_1): Renamed compute_type_for_level.
1983 Update call to gcc_type_for_interval.
1984
1985 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1986
1987 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
1988 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
1989
1990 2010-06-11 Joseph Myers <joseph@codesourcery.com>
1991
1992 * opts-common.c: Include options.h.
1993 (integral_argument): Move from opts.c.
1994 (decode_cmdline_option): New. Based on read_cmdline_option.
1995 * opts.c (integral_argument): Move to opts-common.c.
1996 (read_cmdline_option): Move most contents to
1997 decode_cmdline_option. Use %qs in diagnostics.
1998 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
1999 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
2000 decode_cmdline_option): New.
2001
2002 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2003
2004 PR target/44481
2005 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
2006 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
2007 (partiysi2_cmp): Ditto.
2008 (*partiyhi2_cmp): Ditto.
2009 (*parityqi2_cmp): Remove.
2010
2011 2010-06-11 Jan Hubicka <jh@suse.cz>
2012
2013 * bitmap.h (bmp_iter_next_bit): New.
2014 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
2015
2016 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
2017 Eric Botcazou <ebotcazou@adacore.com>
2018
2019 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
2020 computed cost.
2021
2022 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2023
2024 * config/i386/i386.md (unspec): New define_c_enum.
2025 (unspecv): Ditto.
2026
2027 2010-06-10 Jakub Jelinek <jakub@redhat.com>
2028
2029 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
2030 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
2031 (lazy_hex_fp_value): New function.
2032 (builtin_define_with_hex_fp_value): Provide definitions lazily.
2033 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
2034
2035 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
2036
2037 PR middle-end/44483
2038 * tree-if-conv.c (bb_predicate_s): New struct.
2039 (bb_predicate_p): New.
2040 (bb_has_predicate): New.
2041 (bb_predicate): New.
2042 (set_bb_predicate): New.
2043 (bb_predicate_gimplified_stmts): New.
2044 (set_bb_predicate_gimplified_stmts): New.
2045 (add_bb_predicate_gimplified_stmts): New.
2046 (init_bb_predicate): New.
2047 (free_bb_predicate): New.
2048 (is_predicated): Use bb_predicate.
2049 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
2050 (predicate_bbs): Same. Gimplify the condition of the basic blocks
2051 before processing their successors.
2052 (clean_predicate_lists): Removed.
2053 (find_phi_replacement_condition): Use bb_predicate.
2054 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
2055 computations.
2056 (insert_gimplified_predicates): New.
2057 (combine_blocks): Call insert_gimplified_predicates.
2058 (tree_if_conversion): Call free_bb_predicate instead of
2059 clean_predicate_lists.
2060
2061 2010-10-11 Paul Brook <paul@codesourcery.com>
2062
2063 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
2064 * config/arm/arm.c (all_architectures): Change v7e-m default to
2065 cortexm4.
2066 * config/arm/arm-cores.def: Add cortex-m4.
2067 * config/arm/arm-tune.md: Regenerate.
2068
2069 2010-06-11 Jan Hubicka <jh@suse.cz>
2070
2071 * ipa-pure-const.c (special_builtlin_state): New function.
2072 (check_call): Use it instead of special casign BUILT_IN_RETURN.
2073 (propagate_pure_const): Use it.
2074
2075 2010-06-11 Jan Hubicka <jh@suse.cz>
2076
2077 * df-problems.c (df_live_scratch): Convert to bitmap_head.
2078 (df_live_alloc): Initialize df_live_scratch when initializing
2079 problem_data.
2080 (df_live_transfer_function): Update uses of df_live_scratch.
2081 (df_live_free): Free problem_data; clear df_live_scratch before
2082 releasing the obstack.
2083 (df_md_free): Free problem data.
2084
2085 2010-06-11 Jan Hubicka <jh@suse.cz>
2086
2087 * doc/invoke.texi (Wsuggest-attribute): Document.
2088 (Wmissing-noreturn): Remove.
2089 * ipa-pure-const.c (warn_function_noreturn): New function.
2090 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
2091 warn_missing_noreturn.
2092 * common.opt (Wsuggest-attribute=noreturn): New.
2093 * tree-flow.h (warn_function_noreturn): Declare.
2094 * tree-cfg.c (execute_warn_function_noreturn): Use
2095 warn_function_noreturn.
2096 (gate_warn_function_noreturn): New.
2097 (pass_warn_function_noreturn): Update.
2098
2099 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
2100
2101 * c-typeck.c (handle_warn_cast_qual): Add loc
2102 parameter. Improve warning message.
2103 (build_c_cast): Pass location to handle_warn_cast_qual.
2104
2105 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
2106
2107 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
2108 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
2109 insn mnemonic.
2110 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
2111
2112 2010-06-10 Dodji Seketeli <dodji@redhat.com>
2113
2114 Fix bootstap on mips
2115 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
2116 be naming typedefs.
2117
2118 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
2119
2120 * system.h (helper_const_non_const_cast): New inline for
2121 gcc version <= 4.0.
2122 (CONST_CAST2): For gcc version <= 4.0 use
2123 new helper to do const/non-const casting.
2124
2125 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2126
2127 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
2128 * Makefile.in (OBJS-common): Include insn-enums.o.
2129 (insn-enums.o): New rule.
2130 (simple_generated_c): Add insn-enums.c.
2131 (build/genenums.o): New rule.
2132 (genprogmd): Add "enums".
2133 * genconstants.c (print_enum_type): Declare a C string array
2134 for each enum.
2135 * genenums.c: New file.
2136 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
2137 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
2138 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
2139
2140 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2141
2142 * doc/md.texi (define_enum_attr): Document.
2143 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
2144 * read-md.h (lookup_enum_type): Declare.
2145 * read-md.c (lookup_enum_type): New function.
2146 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
2147 * genattrtab.c (attr_desc): Add an enum_name field.
2148 (evaluate_eq_attr): Take the associated attribute as argument.
2149 Get the enum prefix from the enum_name field, if defined.
2150 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
2151 (simplify_test_exp): Pass attr to evaluate_eq_attr.
2152 (add_attr_value): New function, split out from...
2153 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
2154 (write_test_expr): Pass attr to evaluate_eq_attr.
2155 (write_attr_get): Use the enum_name as the enum tag, if defined.
2156 (write_attr_valueq): Use the enum_name as a prefix, if defined.
2157 (find_attr): Initialize enum_name.
2158 (main): Handle DEFINE_ENUM_ATTR.
2159 * gensupport.c (process_rtx): Likewise.
2160 * config/mips/mips.h (mips_tune_attr): Delete.
2161 * config/mips/mips.md (cpu): Use define_attr_enum.
2162
2163 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2164
2165 * doc/md.texi (define_c_enum, define_enum): Document.
2166 * read-md.h (md_constant): Add a parent_enum field.
2167 (enum_value, enum_type): New structures.
2168 (upcase_string, traverse_enum_types): Declare.
2169 * read-md.c (enum_types): New variable.
2170 (upcase_string, add_constant): New functions.
2171 (handle_constants): Don't create the hash table here.
2172 Use add_constant.
2173 (traverse_md_constants): Don't check for a null md_constants.
2174 (decimal_string, handle_enum, traverse_enum_types): New functions.
2175 (read_md_files): Initialize md_constants and md_enums.
2176 * genconstants.c (print_md_constant): Ignore info argument.
2177 Only print constants that belong to no enum.
2178 (print_enum_type): New function.
2179 (main): Don't pass stdout to print_md_constant. Call print_enum_type
2180 for each defined enum type.
2181 * config/mips/mips.md (processor): New define_enum.
2182 (unspec): New define_c_enum.
2183 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
2184 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
2185 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
2186 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
2187 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
2188 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
2189 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
2190 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
2191 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
2192 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
2193 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
2194 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
2195 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
2196 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
2197 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
2198 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
2199 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
2200 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
2201 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
2202 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
2203 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
2204 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
2205 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2206 (UNSPEC_RDDSP): Move to mips-dsp.md.
2207 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
2208 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
2209 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
2210 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
2211 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
2212 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
2213 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
2214 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
2215 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
2216 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
2217 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
2218 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
2219 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
2220 Moved to mips-dspr2.md.
2221 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
2222 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
2223 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
2224 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
2225 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
2226 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
2227 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2228 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2229 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2230 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2231 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2232 UNSPEC_LOONGSON_PSADBH)
2233 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2234 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2235 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
2236 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2237 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2238 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2239 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
2240 (cpu): Update comment.
2241 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
2242 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
2243 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
2244 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
2245 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
2246 UNSPEC_LOONGSON_PCMPEQ)
2247 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
2248 UNSPEC_LOONGSON_PINSR_0)
2249 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
2250 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
2251 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
2252 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
2253 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
2254 UNSPEC_LOONGSON_PSADBH)
2255 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
2256 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
2257 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
2258 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
2259 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
2260 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
2261 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
2262 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
2263 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
2264 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
2265 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
2266 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
2267 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
2268 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
2269 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
2270 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
2271 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
2272 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
2273 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
2274 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
2275 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
2276 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
2277 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
2278 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
2279 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
2280 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
2281 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
2282 (UNSPEC_RDDSP): Moved from mips.md.
2283 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
2284 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
2285 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
2286 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
2287 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
2288 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
2289 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
2290 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
2291 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
2292 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
2293 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
2294 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
2295 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
2296 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
2297 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
2298 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
2299 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
2300 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
2301 (UNSPEC_SCC): Moved from mips.md.
2302 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
2303 "processor_type" to "processor".
2304 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
2305 * config/mips/mips.h (processor_type): Delete.
2306 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
2307 "processor_type" to "processor".
2308
2309 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2310
2311 * configure.ac (tm_include_list): Add insn-constants.h.
2312 * configure: Regenerate.
2313 * Makefile.in (GTM_H): Move insn-constants.h here from...
2314 (TM_H): ...here.
2315 * mkconfig.sh: Remove special handling for insn-constants.h.
2316
2317 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2318
2319 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
2320 (BUILD_MD): ...this new variable.
2321 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
2322 that include the old contents of simple_generated_h and
2323 simple_generated_c.
2324 (simple_generated_h, simple_generated_c): Include them. Add
2325 insn-constants.h.
2326 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
2327 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
2328 Remove these dependencies from the main rule and include
2329 insn-conditions.md in the command line only if it appears
2330 in the dependency list.
2331 (insn-constants.h, s-constants): Delete.
2332 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
2333 or gensupport.h.
2334 (build/genmddeps.o): Likewise.
2335 (genprogrtl): New variable that contains everything from genprogmd
2336 except mddeps and constants.
2337 (genprogmd): Redefine in terms of genprogrtl. Make these programs
2338 depend on $(BUILD_MD)
2339 (genprog): New variable. Make these programs depend on
2340 $(BUILD_ERRORS).
2341 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
2342 (main): Use read_md_files instead of init_rtx_reader_args.
2343 * genconstants.c: As for genmddeps.c.
2344 * read-md.h (read_skip_construct): Declare.
2345 * read-md.c (read_skip_construct): New function.
2346 (handle_file): Allow a null handle_directive, skipping the
2347 construct if so.
2348 (parse_include): Update the comment accordingly.
2349
2350 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2351
2352 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
2353 * genmddeps.c: Include read-md.h.
2354 (main): Call init_rtx_reader_args instead of init_md_reader_args.
2355 * genattr.c (main): Likewise.
2356 * genattrtab.c (main): Likewise.
2357 * genautomata.c (main): Likewise.
2358 * gencodes.c (main): Likewise.
2359 * genconditions.c (main): Likewise.
2360 * genconfig.c (main): Likewise.
2361 * genconstants.c (main): Likewise.
2362 * genemit.c (main): Likewise.
2363 * genextract.c (main): Likewise.
2364 * genflags.c (main): Likewise.
2365 * genopinit.c (main): Likewise.
2366 * genoutput.c (main): Likewise.
2367 * genpeep.c (main): Likewise.
2368 * genrecog.c (main): Likewise.
2369 * genpreds.c (main): Likewise.
2370 * gensupport.h (in_fname): Move to read-md.h.
2371 (init_md_reader_args_cb): Rename to...
2372 (init_rtx_reader_args_cb): ...this and return a bool.
2373 (init_md_reader_args): Rename to...
2374 (init_rtx_reader_args): ...this and return a bool.
2375 (include_callback): Move to read-md.h.
2376 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
2377 (file_name_list, first_dir_md_include): Move to read-md.c
2378 (first_bracket_include): Delete unused variable.
2379 (last_dir_md_include): Move to read-md.c.
2380 (process_include): Delete, moving code to read-md.c:handle_include.
2381 (process_rtx): Don't handle INCLUDE.
2382 (save_string): Delete.
2383 (rtx_handle_directive): New function.
2384 (init_md_reader_args_cb): Rename to...
2385 (init_rtx_reader_args_cb): ...this and return a boolean success value.
2386 Use read_md_args.
2387 (init_md_reader_args): Rename to...
2388 (init_rtx_reader_args): ...this and return a boolean success value.
2389 * rtl.def (INCLUDE): Delete.
2390 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
2391 argument.
2392 * read-rtl.c (read_conditions): Don't gobble ')' here.
2393 (read_mapping): Likewise.
2394 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
2395 Handle top-level non-rtx constructs here rather than in read_rtx_1.
2396 Store the whole queue in *X. Remove call to init_md_reader.
2397 (read_rtx_1): Rename to...
2398 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
2399 Don't handle top-level non-rtx constructs here. Don't handle (nil)
2400 here.
2401 (read_nested_rtx): New function. Handle (nil) here rather than
2402 in read_rtx_code.
2403 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
2404 gobble ')' here.
2405 * read-md.h (directive_handler_t): New type.
2406 (in_fname, include_callback): Moved from read-md.h.
2407 (read_constants, init_md_reader): Delete.
2408 (read_md_files): Declare.
2409 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
2410 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
2411 from gensupport.c.
2412 (read_constants): Rename to...
2413 (handle_constants): ...this. Don't gobble ')' here.
2414 (handle_include, handle_file, handle_toplevel_file)
2415 (parse_include): New functions, mostly taken from gensupport.c.
2416 (init_md_reader): Subsume into...
2417 (read_md_files): ...this new function.
2418
2419 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2420
2421 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
2422 (unread_char): Decrement read_md_lineno after putting back '\n'.
2423 * read-md.c (fatal_with_file_and_line): Push back any characters
2424 that we decide not to add to the context.
2425 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
2426 fatal_expected_char in cases where '/' ends a line (for example).
2427 (read_name): Don't increment read_md_lineno here.
2428 (read_escape): Likewise.
2429 (read_quoted_string): Likewise.
2430 (read_braced_string): Likewise.
2431
2432 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2433
2434 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
2435 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
2436 * genconstants.c: Include read-md.h.
2437 * read-rtl.c (md_constants): Move to read-md.c.
2438 (md_name): Move to read-md.h.
2439 (initialize_iterators): Use leading_string_hash instead of def_hash
2440 and leading_string_eq_p instead of def_name_eq_p.
2441 (read_name): Move to read-md.c.
2442 (def_hash, def_name_eq_p): Delete.
2443 (read_constants, traverse_md_constants): Move to read-md.c.
2444 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
2445 * read-md.h: Include hashtab.h.
2446 (md_name): Moved from read-rtl.c.
2447 (md_constant): Moved from read-md.h.
2448 (leading_string_hash, leading_string_eq_p, read_name)
2449 (read_constants, traverse_md_constants): Declare.
2450 * read-md.c (md_constants): Moved from read-rtl.c.
2451 (leading_string_hash, leading_string_eq_p): New functions.
2452 (read_name, read_constants, traverse_md_constants): Moved from
2453 read-rtl.c.
2454
2455 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2456
2457 * read-rtl.c (md_name): New structure.
2458 (read_name): Take an md_name instead of a buffer pointer.
2459 Use the "string" field instead of strcpy when expanding constants.
2460 (read_constants): Remove the tmp_char argument. Update the calls
2461 to read_name, using two local name buffers instead of the tmp_char
2462 argument. Merge the constant-creation code.
2463 (read_conditions): Remove the tmp_char argument. Update the calls
2464 to read_name, using a local name buffer instead of the tmp_char
2465 argument.
2466 (read_mapping): Replace tmp_char variable with a local name buffer.
2467 Update the calls to read_name.
2468 (read_rtx_1): Likewise. Update the calls to read_constants and
2469 read_conditions.
2470
2471 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2472
2473 * Makefile.in (build/read-md.o): Depend on errors.h.
2474 * read-md.h (error_with_line): Declare.
2475 * read-md.c: Include errors.h.
2476 (message_with_line_1): New function, extracted from...
2477 (message_with_line): ...here.
2478 (error_with_line): New function.
2479 * genattrtab.c: If a call to message_with_line is followed by
2480 "have_error = 1;", replace both statements with a call to
2481 error_with_line.
2482 * genoutput.c: Likewise.
2483 * genpreds.c: Likewise.
2484 * genrecog.c: If a call to message_with_line is followed by
2485 "error_count++;", replace both statements with a call to
2486 error_with_line.
2487 (errorcount): Delete.
2488 (main): Don't check it.
2489 * gensupport.c: If a call to message_with_line is followed by
2490 "errors = 1;", replace both statements with a call to error_with_line.
2491 (errors): Delete.
2492 (process_define_cond_exec): Check have_error instead of errors.
2493 (init_md_reader_args_cb): Likewise. Don't set errors.
2494
2495 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2496
2497 * read-md.h (read_md_file): Declare.
2498 (read_char, unread_char): New functions.
2499 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2500 (read_quoted_string, read_string): Remove FILE * argument.
2501 * read-md.c (read_md_file): New variable.
2502 (read_md_filename, read_md_lineno): Update comments and remove
2503 unnecessary initialization.
2504 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
2505 (read_escape, read_quoted_string, read_braced_string, read_string):
2506 Remove FILE * argument. Update calls accordingly, using read_char
2507 and unread_char instead of getc and ungetc.
2508 * rtl.h (read_rtx): Remove FILE * argument.
2509 * read-rtl.c (iterator_group): Remove FILE * argument from
2510 "find_builtin".
2511 (iterator_traverse_data): Remove "infile" field.
2512 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
2513 (add_mapping, read_name, read_constants, read_conditions)
2514 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
2515 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
2516 Remove file arguments from all calls, using read_char and unread_char
2517 instead of getc and ungetc.
2518 * gensupport.c (process_include): Preserve read_md_file around
2519 the include. Set read_md_file to the handle of the included file.
2520 Update call to read_rtx.
2521 (init_md_reader_args_cb): Set read_md_file to the handle of the file
2522 and remove local FILE *. Update calls to read_rtx.
2523
2524 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2525
2526 * read-md.h (read_rtx_lineno): Rename to...
2527 (read_md_lineno): ...this.
2528 (read_rtx_filename): Rename to...
2529 (read_md_filename): ...this.
2530 (copy_rtx_ptr_loc): Rename to...
2531 (copy_md_ptr_loc): ...this.
2532 (print_rtx_ptr_loc): Rename to...
2533 (print_md_ptr_loc): ...this.
2534 * read-md.c: Likewise. Update references after renaming.
2535 (string_obstack): Replace RTL with MD in comment.
2536 (set_rtx_ptr_loc): Rename to...
2537 (set_md_ptr_loc): ...this.
2538 (get_rtx_ptr_loc): Rename to...
2539 (get_md_ptr_loc): ...this.
2540 * genconditions.c: Update references after renaming.
2541 * genemit.c: Likewise.
2542 * genoutput.c: Likewise.
2543 * genpreds.c: Likewise.
2544 * gensupport.c: Likewise.
2545 * read-rtl.c: Likewise.
2546
2547 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
2548
2549 * Makefile.in (READ_MD_H): New variable.
2550 (BUILD_RTL): Add build/read-md.o.
2551 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
2552 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
2553 (build/genattrtab.o, build/genconditions.o build/genemit.o)
2554 (build/genextract.o, build/genflags.o, build/genoutput.o)
2555 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
2556 (build/read-md.o): New rule.
2557 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
2558 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
2559 * coretypes.h: ...here.
2560 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
2561 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
2562 * genattr.c: Include read-md.h.
2563 * genattrtab.c: Likewise.
2564 * genconditions.c: Likewise.
2565 * genemit.c: Likewise.
2566 * genextract.c: Likewise.
2567 * genflags.c: Likewise.
2568 * genoutput.c: Likewise.
2569 * genpreds.c: Likewise.
2570 * genrecog.c: Likewise.
2571 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
2572 (join_c_conditions, print_c_condition, read_rtx_filename)
2573 (read_rtx_lineno): Move to read-md.h.
2574 * read-rtl.c: Include read-md.h.
2575 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
2576 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
2577 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
2578 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
2579 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
2580 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
2581 (read_braced_string, read_string): Move to read-md.c.
2582 (read_rtx): Move some initialization to init_md_reader and call
2583 init_md_reader here.
2584 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
2585 Move to read-md.h.
2586 * gensupport.c: Include read-md.h.
2587 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
2588 * read-md.h, read-md.c: New files.
2589
2590 2010-06-10 Anatoly Sokolov <aesok@post.ru>
2591
2592 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2593 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2594 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
2595 * config/moxie/moxie.c (moxie_function_value): Make static.
2596 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
2597 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
2598
2599 2010-06-10 Martin Jambor <mjambor@suse.cz>
2600
2601 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
2602 * dbgcnt.def (tree_sra): New counter.
2603 * tree-sra.c: Include dbgcnt.h.
2604 (gate_intra_sra): Check tree_sra debug counter.
2605
2606 2010-06-10 Martin Jambor <mjambor@suse.cz>
2607
2608 PR tree-optimization/44258
2609 * tree-sra.c (build_access_subtree): Return false iff there is a
2610 partial overlap.
2611 (build_access_trees): Likewise.
2612 (analyze_all_variable_accesses): Disqualify candidates if
2613 build_access_trees returns true for them.
2614
2615 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
2616
2617 PR debug/41371
2618 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
2619 tail-recurse into canonical node. Fast-forward over
2620 non-canonical VALUEs.
2621
2622 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
2623
2624 PR boostrap/44470
2625 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
2626 (*addsi_1_zext) <TYPE_LEA>: Likewise.
2627 (add lea splitter): Likewise.
2628 (add_zext lea splitter): Likewise.
2629
2630 2010-06-10 Joseph Myers <joseph@codesourcery.com>
2631
2632 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
2633
2634 2010-06-10 Jan Hubicka <jh@suse.cz>
2635
2636 * df-problems.c (df_live_problem_data): Add live_bitmaps.
2637 (df_live_alloc): Initialize problem data and live_osbtacks.
2638 (df_live_finalize): Remove obstack, problem data; do not
2639 clear all bitmaps.
2640 (df_live_top_dump, df_live_bottom_dump): Do not dump old
2641 data when not allocated.
2642 (df_live_verify_solution_start): Do not allocate problem data.
2643 (df_live_verify_solution_end): Check if out is allocated.
2644 (struct df_md_problem_data): New structure.
2645 (df_md_alloc): Allocate problem data.
2646 (df_md_free): Free problem data; do not clear bitmaps.
2647
2648 2010-06-10 Jan Beulich <jbeulich@novell.com>
2649
2650 PR bootstrap/37304
2651 * configure.ac: Replace $() with ${} when intending to expand
2652 variables rather than invoking commands.
2653 * configure: Re-generate.
2654
2655 2010-06-10 Jan Hubicka <jh@suse.cz>
2656
2657 PR rtl-optimization/44460
2658 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
2659 TYPE_NEEDS_CONSTRUCTING sanity check.
2660
2661 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
2662
2663 * doc/include/fdl.texi: Move to GFDL version 1.3.
2664
2665 * doc/cpp.texi: Move to GFDL version 1.3.
2666 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
2667 * doc/gccint.texi: Move to GFDL version 1.3.
2668 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
2669 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
2670 * doc/invoke.texi: Move to GFDL version 1.3.
2671
2672 2010-06-09 Jan Hubicka <jh@suse.cz>
2673
2674 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
2675 Break out from ...
2676 (propagate) ... here; swap the order.
2677
2678 2010-06-09 Jan Hubicka <jh@suse.cz>
2679
2680 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
2681 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
2682 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
2683 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
2684
2685 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2686
2687 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
2688 Do not the gather memory reference in the outer loop if the step
2689 is not a constant.
2690
2691 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
2692
2693 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
2694 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
2695 8 to 4. Minor change of the related comments.
2696
2697 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2698
2699 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
2700 the scev analysis when the variable is not used outside the loop
2701 in a close phi node: call compute_overall_effect_of_inner_loop.
2702
2703 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2704
2705 * graphite-sese-to-poly.c (single_pred_cond): Renamed
2706 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
2707 (build_sese_conditions_before): Renamed call to single_pred_cond.
2708 (build_sese_conditions_after): Same.
2709
2710 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
2711
2712 * graphite-poly.h: Fix comments and indentation.
2713 * graphite-sese-to-poly.c: Same.
2714 (build_sese_conditions_before): Compute stmt and gbb only when needed.
2715 * tree-chrec.c: Fix comments and indentation.
2716 (tree-ssa-loop-niter.c): Same.
2717
2718 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
2719
2720 PR rtl-optimization/42461
2721 * dce.c (deletable_insn_p): Return true for const or pure calls again.
2722 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
2723
2724 2010-06-09 Jan Hubicka <jh@suse.cz>
2725
2726 * bitmap.c (bitmap_and): Walk array forward.
2727 (bitmap_and_compl_into): Likewise.
2728 (bitmap_xor): Likewise.
2729 (bitmap_xor_into): Likewise.
2730 (bitmap_equal_p): Likewise.
2731 (bitmap_intersect_p): Likewise.
2732 (bitmap_intersect_compl_p): Likewise.
2733 (bitmap_ior_and_into): Likewise.
2734 (bitmap_elt_copy): Likewise.
2735 (bitmap_and_compl): Likewise.
2736 (bitmap_elt_ior): Likewise.
2737
2738 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
2739
2740 * opts-common.c (prune_options): Ensure replacement argv array
2741 is correctly terminated by a NULL entry.
2742
2743 2010-06-09 Jan Hubicka <jh@suse.cz>
2744
2745 * cgraph.h (varpool_first_static_initializer,
2746 varpool_next_static_initializer): Make checking only when
2747 checking enabled.
2748 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
2749 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
2750 gcc_assert to gcc_checking_assert.
2751 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
2752 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
2753 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
2754 op_iter_init_phiuse, op_iter_init_phidef,
2755 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
2756 gcc_checking_assert.
2757 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
2758 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
2759 partition_is_global, live_on_entry, live_on_exit,
2760 live_merge_and_clear): Likewise.
2761 * system.h (gcc_checking_assert): New macro.
2762 * gimple.h (set_bb_seq): Use gcc_checking_assert.
2763
2764 2010-06-09 Jason Merrill <jason@redhat.com>
2765
2766 * Makefile.in (TAGS): Collect tags info from c-family.
2767
2768 2010-06-09 Jan Hubicka <jh@suse.cz>
2769
2770 * gimple.h (gcc_gimple_checking_assert): New macro.
2771 (gimple_set_def_ops, gimple_set_use_ops,
2772 gimple_set_vuse, gimple_set_vdef,
2773 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
2774 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
2775 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
2776 gimple_asm_output_op, gimple_asm_output_op_ptr,
2777 gimple_asm_set_output_op, gimple_asm_clobber_op,
2778 gimple_asm_set_clobber_op, gimple_asm_label_op,
2779 gimple_asm_set_label_op, gimple_try_set_kind,
2780 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
2781 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
2782 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
2783 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
2784 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
2785 gimple_omp_for_set_initial, gimple_omp_for_final,
2786 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
2787 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
2788 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
2789 conditional with ENABLE_GIMPLE_CHECKING.
2790 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
2791
2792 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
2793
2794 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
2795 (get_computation_cost_at): Use it.
2796 (determine_use_iv_cost_condition): Likewise.
2797 (determine_iv_cost): Likewise.
2798
2799 2010-06-09 Richard Guenther <rguenther@suse.de>
2800
2801 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
2802 replace constants.
2803
2804 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
2805
2806 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
2807
2808 2010-06-09 Martin Jambor <mjambor@suse.cz>
2809
2810 PR tree-optimization/44423
2811 * tree-sra.c (dump_access): Dump also grp_assignment_read.
2812 (analyze_access_subtree): Pass negative allow_replacements to children
2813 if the current type is scalar.
2814
2815 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2816
2817 PR testsuite/42843
2818 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
2819 * doc/plugins.texi (Plugin license check): Update information
2820 on type of plugin_is_GPL_compatible.
2821 * Makefile.in (PLUGINCC): Define as $(COMPILER).
2822 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
2823
2824 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
2825
2826 * config/arm/arm.c (thumb2_reorg): New function.
2827 (arm_reorg): Call it.
2828 * config/arm/thumb2.md (define_peephole2 for flag clobbering
2829 arithmetic operations): Delete.
2830
2831 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
2832
2833 PR target/44067
2834 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
2835 e500v2 target.
2836
2837 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
2838
2839 PR plugins/44459
2840 * gcc-plugin.h: Encapsulate all declarations in extern "C".
2841
2842 2010-06-08 Jan Hubicka <jh@suse.cz>
2843
2844 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
2845 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
2846
2847 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
2848
2849 PR tree-optimization/39874
2850 PR middle-end/28685
2851 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
2852 Declare.
2853 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
2854 same_bool_result_p): New.
2855 (and_var_with_comparison, and_var_with_comparison_1,
2856 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
2857 (or_var_with_comparison, or_var_with_comparison_1,
2858 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
2859 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
2860 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
2861 of combine_comparisons.
2862 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
2863
2864 2010-06-08 Anatoly Sokolov <aesok@post.ru>
2865
2866 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
2867 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
2868 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
2869 pdp11_function_value_regno_p): New functions.
2870 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
2871 TARGET_FUNCTION_VALUE_REGNO_P): Define.
2872
2873 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
2874
2875 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
2876 Thumb-2 in the MINUS case.
2877
2878 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2879
2880 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
2881
2882 * doc/gty.texi (GTY Options): Document typed GC allocation and
2883 variable_size GTY option.
2884
2885 * ggc-internal.h: New.
2886
2887 * ggc.h: Update copyright year.
2888 (digit_string): Move to stringpool.c.
2889 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
2890 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
2891 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
2892 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
2893 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
2894 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
2895 (ggc_force_collect, ggc_get_size, ggc_statistics)
2896 (ggc_print_common_statistics): Move to ggc-internal.h.
2897 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
2898 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
2899 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
2900 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
2901 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
2902 (ggc_alloc_zone_pass_stat): Remove.
2903 (ggc_internal_alloc_stat, ggc_internal_alloc)
2904 (ggc_internal_cleared_alloc_stat): New.
2905 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
2906 (ggc_internal_vec_alloc_stat)
2907 (ggc_internal_cleared_vec_alloc_stat)
2908 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
2909 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
2910 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
2911 (ggc_cleared_alloc_ptr_array_two_args): New.
2912 (htab_create_ggc, splay_tree_new_ggc): Redefine.
2913 (ggc_splay_alloc): Change the type of the first argument to
2914 enum gt_types_enum.
2915 (ggc_alloc_string): Make macro.
2916 (ggc_alloc_string_stat): New.
2917 (ggc_strdup): Redefine.
2918 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
2919 (ggc_alloc_rtvec_sized): New.
2920 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
2921 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
2922 (ggc_internal_cleared_alloc_zone_stat)
2923 (ggc_internal_zone_alloc_stat)
2924 (ggc_internal_zone_cleared_alloc_stat)
2925 (ggc_internal_zone_vec_alloc_stat)
2926 (ggc_alloc_zone_rtx_def_stat)
2927 (ggc_alloc_zone_tree_node_stat)
2928 (ggc_alloc_zone_cleared_tree_node_stat)
2929 (ggc_alloc_cleared_gimple_statement_d_stat): New.
2930
2931 * ggc-common.c: Include ggc-internal.h.
2932 (ggc_internal_cleared_alloc_stat): Rename from
2933 ggc_alloc_cleared_stat.
2934 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
2935 (ggc_calloc): Remove.
2936 (ggc_cleared_alloc_htab_ignore_args): New.
2937 (ggc_cleared_alloc_ptr_array_two_args): New.
2938 (ggc_splay_alloc): Add obj_type parameter.
2939 (init_ggc_heuristics): Formatting fixes.
2940
2941 * ggc-none.c: Update copyright year.
2942 (ggc_alloc_stat): Rename to ggc_alloc_stat.
2943 (ggc_alloc_cleared_stat): Rename to
2944 ggc_internal_cleared_alloc_stat.
2945 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2946
2947 * ggc-page.c: Update copyright year. Include ggc-internal.h.
2948 Remove references to ggc_alloc in comments.
2949 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
2950 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
2951 (new_ggc_zone, destroy_ggc_zone): Remove.
2952 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
2953
2954 * ggc-zone.c: Include ggc-internal.h. Remove references to
2955 ggc_alloc in comments.
2956 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
2957 (ggc_internal_alloc_zone_pass_stat): New.
2958 (ggc_internal_cleared_alloc_zone_stat): New.
2959 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
2960 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
2961 (new_ggc_zone, destroy_ggc_zone): Remove.
2962
2963 * stringpool.c: Update copyright year. Include ggc-internal.h
2964 (digit_vector): Make static.
2965 (digit_string): Moved from ggc.h.
2966 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
2967 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
2968
2969 * Makefile.in (GGC_INTERNAL_H): New.
2970 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
2971 $(GGC_INTERNAL_H) to dependencies.
2972
2973 * gentype.c: Update copyright year.
2974 (walk_type): Accept variable_size GTY option.
2975 (USED_BY_TYPED_GC_P): New macro.
2976 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
2977 whitespace at the end of strings.
2978 (get_type_specifier, variable_size_p): New functions.
2979 (alloc_quantity, alloc_zone): New enums.
2980 (write_typed_alloc_def): New function.
2981 (write_typed_struct_alloc_def): Likewise.
2982 (write_typed_typed_typedef_alloc_def): Likewise.
2983 (write_typed_alloc_defns): Likewise.
2984 (output_typename, write_splay_tree_allocator_def): Likewise.
2985 (write_splay_tree_allocators): Likewise.
2986 (main): Call write_typed_alloc_defns and
2987 write_splay_tree_allocators.
2988
2989 * lto-streamer.h (lto_file_decl_data_ptr): New.
2990
2991 * passes.c (order): Define using cgraph_node_ptr.
2992
2993 * strinpool.c (struct string_pool_data): Declare nested_ptr using
2994 ht_identifier_ptr.
2995
2996 * gimple.h (union gimple_statement_d): Likewise.
2997
2998 * rtl.h (struct rtx_def): Likewise.
2999 (struct rtvec_def): Likewise.
3000
3001 * tree.h (union tree_node): Likewise.
3002
3003 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
3004
3005 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
3006
3007 * tree-scalar-evolution.c (scev_initialize): Likewise.
3008
3009 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
3010
3011 * dwarf2asm.c (dw2_force_const_mem): Likewise.
3012
3013 * omp-low.c (lower_omp_critical): Likewise.
3014
3015 * bitmap.h (struct bitmap_head_def): Update comment to not
3016 reference ggc_alloc.
3017
3018 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
3019
3020 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
3021
3022 * ipa-prop.c (duplicate_ggc_array): Rename to
3023 duplicate_ipa_jump_func_array. Use typed GC allocation.
3024 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
3025
3026 * gimple.c (gimple_alloc_stat): Use
3027 ggc_alloc_cleared_gimple_statement_d_stat.
3028
3029 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
3030
3031 * tree.c (make_node_stat): Use
3032 ggc_alloc_zone_cleared_tree_node_stat.
3033 (make_tree_vec_stat): Likewise.
3034 (build_vl_exp_stat): Likewise.
3035 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
3036 (make_tree_binfo_stat): Likewise.
3037 (tree_cons_stat): Likewise.
3038
3039 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
3040 (shallow_copy_rtx_stat): Likewise.
3041 (make_node_stat): Likewise.
3042
3043 * lto-symtab.c: Fix comment.
3044
3045 * tree-cfg.c (create_bb): Update comment to not reference
3046 ggc_alloc_cleared.
3047 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
3048
3049 * varpool.c (varpool_node): Use typed GC allocation.
3050 (varpool_extra_name_alias): Likewise.
3051
3052 * varasm.c (emutls_decl): Likewise.
3053 (get_unnamed_section): Likewise.
3054 (get_noswitch_section): Likewise.
3055 (get_section): Likewise.
3056 (get_block_for_section): Likewise.
3057 (build_constant_desc): Likewise.
3058 (create_constant_pool): Likewise.
3059 (force_const_mem): Likewise.
3060
3061 * tree.c (build_vl_exp_stat): Likewise.
3062 (build_real): Likewise.
3063 (build_string): Likewise.
3064 (decl_debug_expr_insert): Likewise.
3065 (decl_value_expr_insert): Likewise.
3066 (type_hash_add): Likewise.
3067 (build_omp_clause): Likewise.
3068
3069 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
3070
3071 * tree-ssa.c (init_tree_ssa): Likewise.
3072
3073 * tree-ssa-structalias.c (heapvar_insert): Likewise.
3074
3075 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
3076
3077 * tree-ssa-loop-niter.c (record_estimate): Likewise.
3078
3079 * tree-ssa-alias.c (get_ptr_info): Likewise.
3080
3081 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
3082
3083 * tree-phinodes.c (allocate_phi_node): Likewise.
3084
3085 * tree-iterator.c (tsi_link_before): Likewise.
3086 (tsi_link_after): Likewise.
3087
3088 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
3089
3090 * tree-dfa.c (create_var_ann): Likewise.
3091
3092 * tree-cfg.c (create_bb): Likewise.
3093
3094 * toplev.c (alloc_for_identifier_to_locale): Likewise.
3095 (general_init): Likewise.
3096
3097 * stringpool.c (stringpool_ggc_alloc): Likewise.
3098 (gt_pch_save_stringpool): Likewise.
3099
3100 * sese.c (if_region_set_false_region): Likewise.
3101
3102 * passes.c (do_per_function_toporder): Likewise.
3103
3104 * optabs.c (set_optab_libfunc): Likewise.
3105 (set_conv_libfunc): Likewise.
3106
3107 * lto-symtab.c (lto_symtab_register_decl): Likewise.
3108
3109 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
3110 (input_eh_region): Likewise.
3111 (input_eh_lp): Likewise.
3112 (make_new_block): Likewise.
3113 (unpack_ts_real_cst_value_fields): Likewise.
3114
3115 * lto-section-in.c (lto_new_in_decl_state): Likewise.
3116
3117 * lto-cgraph.c (input_node_opt_summary): Likewise.
3118
3119 * loop-init.c (loop_optimizer_init): Likewise.
3120
3121 * lambda.h (lambda_vector_new): Likewise.
3122
3123 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3124
3125 * ira.c (update_equiv_regs): Likewise.
3126
3127 * ipa.c (cgraph_node_set_new): Likewise.
3128 (cgraph_node_set_add): Likewise.
3129 (varpool_node_set_new): Likewise.
3130 (varpool_node_set_add): Likewise.
3131
3132 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
3133 (duplicate_ipa_jump_func_array): Likewise.
3134 (ipa_read_node_info): Likewise.
3135
3136 * ipa-cp.c (ipcp_create_replace_map): Likewise.
3137
3138 * integrate.c (get_hard_reg_initial_val): Likewise.
3139
3140 * gimple.c (gimple_alloc_stat): Likewise.
3141 (gimple_build_omp_for): Likewise.
3142 (gimple_seq_alloc): Likewise.
3143 (gimple_copy): Likewise.
3144
3145 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
3146 (gsi_insert_after_without_update): Likewise.
3147
3148 * function.c (add_frame_space): Likewise.
3149 (insert_temp_slot_address): Likewise.
3150 (assign_stack_temp_for_type): Likewise.
3151 (allocate_struct_function): Likewise.
3152 (types_used_by_var_decl_insert): Likewise.
3153
3154 * except.c (init_eh_for_function): Likewise.
3155 (gen_eh_region): Likewise.
3156 (gen_eh_region_catch): Likewise.
3157 (gen_eh_landing_pad): Likewise.
3158 (add_call_site): Likewise.
3159
3160 * emit-rtl.c (get_mem_attrs): Likewise.
3161 (get_reg_attrs): Likewise.
3162 (start_sequence): Likewise.
3163 (init_emit): Likewise.
3164
3165 * dwarf2out.c (new_cfi): Likewise.
3166 (queue_reg_save): Likewise.
3167 (dwarf2out_frame_init): Likewise.
3168 (new_loc_descr): Likewise.
3169 (find_AT_string): Likewise.
3170 (new_die): Likewise.
3171 (add_var_loc_to_decl): Likewise.
3172 (clone_die): Likewise.
3173 (clone_as_declaration): Likewise.
3174 (break_out_comdat_types): Likewise.
3175 (new_loc_list): Likewise.
3176 (loc_descriptor): Likewise.
3177 (add_loc_descr_to_each): Likewise.
3178 (add_const_value_attribute): Likewise.
3179 (tree_add_const_value_attribute): Likewise.
3180 (add_comp_dir_attribute): Likewise.
3181 (add_name_and_src_coords_attributes): Likewise.
3182 (lookup_filename): Likewise.
3183 (store_vcall_insn): Likewise.
3184 (dwarf2out_init): Likewise.
3185
3186 * dbxout.c (dbxout_init): Likewise.
3187
3188 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3189
3190 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3191
3192 * config/score/score7.c (score7_output_external): Likewise.
3193
3194 * config/score/score3.c (score3_output_external): Likewise.
3195
3196 * config/s390/s390.c (s390_init_machine_status): Likewise.
3197
3198 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
3199 (rs6000_init_machine_status): Likewise.
3200 (output_toc): Likewise.
3201
3202 * config/pa/pa.c (pa_init_machine_status): Likewise.
3203 (get_deferred_plabel): Likewise.
3204
3205 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
3206
3207 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
3208
3209 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
3210
3211 * config/mep/mep.c (mep_init_machine_status): Likewise.
3212 (mep_note_pragma_flag): Likewise.
3213
3214 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
3215
3216 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
3217
3218 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
3219
3220 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3221 (i386_pe_maybe_record_exported_symbol): Likewise.
3222
3223 * config/i386/i386.c (get_dllimport_decl): Likewise.
3224 (ix86_init_machine_status): Likewise.
3225 (assign_386_stack_local): Likewise.
3226
3227 * config/frv/frv.c (frv_init_machine_status): Likewise.
3228
3229 * config/darwin.c (machopic_indirection_name): Likewise.
3230
3231 * config/cris/cris.c (cris_init_machine_status): Likewise.
3232
3233 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
3234
3235 * config/avr/avr.c (avr_init_machine_status): Likewise.
3236
3237 * config/arm/arm.c (arm_init_machine_status): Likewise.
3238
3239 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
3240 (alpha_need_linkage): Likewise.
3241 (alpha_use_linkage): Likewise.
3242
3243 * cgraph.c (cgraph_allocate_node): Likewise.
3244 (cgraph_create_edge_1): Likewise.
3245 (cgraph_create_indirect_edge): Likewise.
3246 (cgraph_add_asm_node): Likewise.
3247
3248 * cfgrtl.c (init_rtl_bb_info): Likewise.
3249
3250 * cfgloop.c (alloc_loop): Likewise.
3251 (rescan_loop_exit): Likewise.
3252
3253 * cfg.c (init_flow): Likewise.
3254 (alloc_block): Likewise.
3255 (unchecked_make_edge): Likewise.
3256
3257 * c-parser.c (c_parse_init): Likewise.
3258 (c_parse_file): Likewise.
3259
3260 * c-decl.c (bind): Likewise.
3261 (record_inline_static): Likewise.
3262 (push_scope): Likewise.
3263 (make_label): Likewise.
3264 (lookup_label_for_goto): Likewise.
3265 (finish_struct): Likewise.
3266 (finish_enum): Likewise.
3267 (c_push_function_context): Likewise.
3268
3269 * bitmap.c (bitmap_element_allocate): Likewise.
3270 (bitmap_gc_alloc_stat): Likewise.
3271
3272 * alias.c (record_alias_subset): Likewise.
3273 (init_alias_analysis): Likewise.
3274
3275 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
3276
3277 * fold-const.c (fold_comparison): Remove redundant parenthesis.
3278 * tree-inline.c (expand_call_inline): Pass translated return value of
3279 cgraph_inline_failed_string to diagnostic function.
3280
3281 2010-06-08 Andrew Pinski <pinskia@gmail.com>
3282 Shujing Zhao <pearly.zhao@oracle.com>
3283
3284 PR c/37724
3285 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
3286 implicit bad conversions is initialization.
3287 (error_init): Use gmsgid instead of msgid for argument name and change
3288 the call for error.
3289 (pedwarn_init): Use gmsgid instead of msgid for argument name and
3290 change the call for pedwarn.
3291 (warning_init): Use gmsgid instead of msgid for argument name and
3292 change the call for warning.
3293
3294 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
3295
3296 * config/mips/mips-protos.h (mips_print_operand): Delete.
3297 (mips_print_operand_address): Delete.
3298 * config/mips/mips.h (mips_print_operand_punct): Delete.
3299 (PRINT_OPERAND): Delete.
3300 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3301 (PRINT_OPERAND_ADDRESS): Delete.
3302 * config/mips/mips.c (mips_print_operand_punct): Make static.
3303 (mips_print_operand_address): Make static.
3304 (mips_print_operand): Make static. Call
3305 mips_print_operand_punct_valid_p.
3306 (mips_print_operand_punct_valid_p): New function.
3307 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3308 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3309
3310 2010-06-07 Jan Hubicka <jh@suse.cz>
3311
3312 PR middle-end/44454
3313 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
3314 are allocated.
3315
3316 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
3317
3318 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
3319 name of RECORD.
3320
3321 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3322
3323 * doc/sourcebuild.texi (Effective-Target Keywords, Other
3324 attributes): Document gas.
3325
3326 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
3327
3328 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
3329 <TYPE_LEA>: Split instruction.
3330 <default>: Remove alternative 2 handling.
3331 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
3332 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
3333 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
3334
3335 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
3336 (ashift_zext lea splitter): Use DImode for multiplication.
3337
3338 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
3339 to generate addition.
3340
3341 2010-06-07 Joseph Myers <joseph@codesourcery.com>
3342
3343 * common.opt (fira-verbose): Use Var.
3344 (fpcc-struct-return): Use Init instead of VarExists.
3345 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
3346 toplev.c.
3347 * flags.h (flag_signed_char, flag_short_enums,
3348 flag_pcc_struct_return, flag_ira_verbose,
3349 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
3350 * toplev.c (flag_detailed_statistics, flag_signed_char,
3351 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
3352 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
3353 * toplev.h (flag_crossjumping, flag_if_conversion,
3354 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
3355 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
3356 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
3357 flag_cprop_registers, time_report, flag_ira_loop_pressure,
3358 flag_ira_coalesce, flag_ira_move_spills,
3359 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
3360
3361 2010-06-07 Jan Hubicka <jh@suse.cz>
3362
3363 * df-core.c (df_analyze_problem): Do verification after allocation.
3364
3365 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
3366 (df_lr_alloc): Initialize problem data; move bitmaps to
3367 lr_bitmaps obstack.
3368 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
3369 (df_lr_verify_solution_start): Do not initialize problem data;
3370 allocate bitmaps in lr_bitmaps.
3371 (df_lr_verify_solution_end): Do not free problem data.
3372
3373 2010-06-07 Jan Hubicka <jh@suse.cz>
3374
3375 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
3376 if caller is noreturn.
3377 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
3378 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
3379 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
3380 * ipa-pure-const.c (check_decl): Add IPA parameter.
3381 (state_from_flags): New function.
3382 (better_state, worse_state): New functions.
3383 (check_call): When in IPA mode, do not care about callees.
3384 (check_load, check_store): Update.
3385 (check_ipa_load, check_ipa_store): New.
3386 (check_stmt): When in IPA mode, use IPA checkers.
3387 (analyze_function): Use state_from_flags.
3388 (propagate): Check indirect edges and references.
3389
3390 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
3391
3392 PR rtl-optimization/44404
3393 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
3394 of count_occurrences to see if it's safe to modify mem_insn.
3395
3396 2010-06-07 Richard Guenther <rguenther@suse.de>
3397
3398 * gimplify.c (gimplify_cleanup_point_expr): For empty body
3399 and EH-only cleanup drop the cleanup instead of inserting it
3400 unconditionally.
3401
3402 2010-06-07 Ira Rosen <irar@il.ibm.com>
3403
3404 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
3405 documentation.
3406 * targhooks.c (default_builtin_vectorization_cost): New function.
3407 * targhooks.h (default_builtin_vectorization_cost): Declare.
3408 * target.h (enum vect_cost_for_stmt): Define.
3409 (builtin_vectorization_cost): Change argument and comment.
3410 * tree-vectorizer.h: Remove cost model macros.
3411 * tree-vect-loop.c: Include target.h.
3412 (vect_get_cost): New function.
3413 (vect_estimate_min_profitable_iters): Replace cost model macros with
3414 calls to vect_get_cost.
3415 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
3416 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
3417 default implementation.
3418 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
3419 calls to target hook builtin_vectorization_cost.
3420 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
3421 Likewise.
3422 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
3423 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
3424 implementation to return costs.
3425 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
3426 * config/spu/spu.h: Remove vectorizer cost model macros.
3427 * config/i386/i386.h: Likewise.
3428 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
3429 a call to target hook builtin_vectorization_cost.
3430
3431 2010-06-06 Sriraman Tallam <tmsriram@google.com>
3432
3433 PR target/44319
3434 * config/i386/i386.c (override_options): Turn zee pass on for level 2
3435 and above and defer till target is known.
3436 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
3437 turn off otherwise.
3438
3439 2010-05-25 Jan Hubicka <jh@suse.cz>
3440
3441 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
3442 (df_compact_blocks): Likewise.
3443 * df.h (struct df): Turn hardware_regs_used,
3444 regular_block_artificial_uses, eh_block_artificial_uses,
3445 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
3446 bitmap_head.
3447 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
3448 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
3449 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
3450 df_scan_blocks, df_insn_delete, df_insn_rescan,
3451 df_insn_rescan_debug_internal, df_insn_rescan_all,
3452 df_process_deferred_rescans, df_process_deferred_rescans,
3453 df_notes_rescan, df_get_call_refs, df_get_call_refs,
3454 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
3455 df_record_entry_block_defs, df_record_exit_block_uses,
3456 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
3457 df_scan_verify): Update.
3458
3459 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3460
3461 PR c++/44188
3462 * c-common.c (is_typedef_decl): Move this definition ...
3463 * tree.c (is_typedef_decl): ... here.
3464 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3465 * c-common.h (is_typedef_decl): Move this declaration ...
3466 * tree.h (is_typedef_decl): ... here.
3467 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3468 * dwarf2out.c (is_naming_typedef_decl): New function.
3469 (gen_tagged_type_die): Split out of ...
3470 (gen_type_die_with_usage): ... this function. When an anonymous
3471 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3472 is emitted for the typedef.
3473 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3474 anonymous tagged types.
3475
3476 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
3477
3478 PR c/20000
3479 * c-decl.c (grokdeclarator): Delete warning.
3480
3481 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
3482
3483 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
3484 newly built CALL_EXPR.
3485 * tree-profile.c (tree_profiling): Don't profile functions produced
3486 for built-in stuff.
3487
3488 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
3489
3490 PR bootstrap/44427
3491 PR bootstrap/44428
3492 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
3493 endianness-independent.
3494
3495 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
3496
3497 * c-common.c: Move to c-family/.
3498 * c-common.def: Likewise.
3499 * c-common.h: Likewise.
3500 * c-cppbuiltin.c: Likewise.
3501 * c-dump.c: Likewise.
3502 * c-format.c: Likewise.
3503 * c-format.h : Likewise.
3504 * c-gimplify.c: Likewise.
3505 * c-lex.c: Likewise.
3506 * c-omp.c: Likewise.
3507 * c.opt: Likewise.
3508 * c-opts.c: Likewise.
3509 * c-pch.c: Likewise.
3510 * c-ppoutput.c: Likewise.
3511 * c-pragma.c: Likewise.
3512 * c-pragma.h: Likewise.
3513 * c-pretty-print.c: Likewise.
3514 * c-pretty-print.h: Likewise.
3515 * c-semantics.c: Likewise.
3516 * stub-objc.c: Likewise.
3517
3518 * gengtype.c (get_file_langdir): Special-case files in c-family/.
3519 (get_output_file_with_visibility): Fix name for c-common.h.
3520 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
3521
3522 * c-tree.h: Update include path for moved files.
3523 * c-lang.c: Likewise.
3524 * c-lang.h: Likewise.
3525 * c-parser.c: Likewise.
3526 * c-convert.c: Likewise.
3527 * c-decl.c: Likewise.
3528 * c-objc-common.c: Likewise.
3529 * configure.ac: Make sure c-family/ exists in the build directory.
3530 * configure: Regenerate.
3531 * Makefile.in: Update paths for moved files. Regroup files per
3532 location and update dependencies. Move generated_files down after
3533 ALL_GTFILES_H.
3534
3535 * config/spu/spu-c.c: Update paths for moved files.
3536 * config/mep/mep-pragma.c: Likewise.
3537 * config/darwin-c.c: Likewise.
3538 * config/i386/msformat-c.c: Likewise.
3539 * config/i386/i386-c.c: Likewise.
3540 * config/avr/avr-c.c: Likewise.
3541 * config/sol2-c.c: Likewise.
3542 * config/ia64/ia64-c.c: Likewise.
3543 * config/rs6000/rs6000-c.c: Likewise.
3544 * config/arm/arm.c: Likewise.
3545 * config/arm/arm-c.c: Likewise.
3546 * config/h8300/h8300.c: Likewise.
3547 * config/v850/v850-c.c: Likewise.
3548
3549 * config/t-darwin: Fix dependencies for moved files.
3550 * config/t-sol2: Fix dependencies for moved files.
3551 * config/mep/t-mep: Fix dependencies for moved files.
3552 * config/ia64/t-ia64: Fix dependencies for moved files.
3553 * config/rs6000/t-rs6000: Fix dependencies for moved files.
3554 * config/v850/t-v850: Fix dependencies for moved files.
3555 * config/v850/t-v850e: Fix dependencies for moved files.
3556
3557 * config/m32c/m32c-pragma.c
3558
3559 * po/exgettext: Look in c-family/ also.
3560
3561 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
3562
3563 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
3564 (mark_control_dependent_edges_necessary): Call it instead of marking
3565 the last statement manually.
3566 (propagate_necessity): Likewise.
3567
3568 2010-06-05 Jan Hubicka <jh@suse.cz>
3569
3570 * basic-block.h (compute_dominance_frontiers): Updated.
3571 (compute_idf): Likewise.
3572
3573 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
3574 for dominance frontiers.
3575 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
3576 (insert_updated_phi_nodes_for): Likewise.
3577 (update_ssa): Likewise.
3578 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3579 (compute_dominance_frontiers): Likewise.
3580 (compute_idf): Likewise.
3581 * df-problems.c (df_md_local_compute): Likewise.
3582
3583 2010-06-05 Anatoly Sokolov <aesok@post.ru>
3584
3585 * target.h (struct gcc_target): Add memory_move_cost field.
3586 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
3587 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
3588 * targhooks.c (default_memory_move_cost): New function.
3589 * targhooks.h (default_memory_move_cost): Declare function.
3590 * reload.h (memory_move_cost): Declare.
3591 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3592 * reginfo.c (memory_move_cost): New function.
3593 (memory_move_secondary_cost): Change type of 'in' argument to bool.
3594 * ira.h (ira_memory_move_cost): Update comment.
3595 * ira.c: (ira_memory_move_cost): Update comment.
3596 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
3597 with memory_move_cost.
3598 * postreload.c (reload_cse_simplify_set): (Ditto.).
3599 * reload1.c (choose_reload_regs): (Ditto.).
3600 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
3601 (MEMORY_MOVE_COST): Revise documentation.
3602
3603 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
3604 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
3605 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
3606 type of 'in' argument to bool.
3607 (TARGET_MEMORY_MOVE_COST): Define.
3608
3609 2010-06-05 Jan Hubicka <jh@suse.cz>
3610
3611 * ipa-pure-const.c (propagate): Fix typo in handling of functions
3612 that cannot return. Be more careful when merging the results with
3613 previously known ones.
3614
3615 2010-06-05 Matthias Klose <doko@ubuntu.com>
3616
3617 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
3618 function to add the -iplugindir option.
3619 (find_plugindir_spec_function): Add new declaration and function.
3620 (static_spec_func): Use it for "find-plugindir".
3621
3622 2010-06-05 Jakub Jelinek <jakub@redhat.com>
3623
3624 PR c++/44361
3625 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
3626 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
3627 statement expression.
3628
3629 2010-06-05 Jan Hubicka <jh@suse.cz>
3630
3631 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
3632 (df_rd_problem_data): Convert sparse_invalidated_by_call,
3633 dense_invalidated_by_call to bitmap head.
3634 (df_rd_alloc, df_rd_bb_local_compute_process_def,
3635 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
3636 df_rd_start_dump, df_lr_verify_transfer_functions,
3637 df_live_verify_transfer_functions, df_chain_create_bb,
3638 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
3639 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
3640 df_simulate_one_insn_forwards, df_md_alloc,
3641 df_md_bb_local_compute_process_def,
3642 df_md_bb_local_compute_process_def, df_md_local_compute,
3643 df_md_transfer_function df_md_free): Update.
3644
3645 2010-06-05 Joseph Myers <joseph@codesourcery.com>
3646
3647 PR c/44322
3648 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
3649 target type for ADDR_EXPR; require no changes to qualifiers except
3650 for function types.
3651 * c-tree.h (c_build_type_variant): Remove.
3652
3653 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3654
3655 * genautomata.c (get_excl_set): Do work per element, not per char.
3656 (check_presence_pattern_sets): Similar.
3657 (check_absence_pattern_sets): Similar.
3658
3659 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
3660
3661 * genautomata.c (curr_state_pass_num): Delete.
3662 (min_issue_delay_pass_states): Delete.
3663 (min_issue_delay): Delete.
3664 (initiate_min_issue_delay_pass_states): Delete.
3665 (output_min_issue_delay_table): Compute min_issue_delay_vect
3666 using a breadth-first search variant.
3667 (output_tables): Don't call initiate_min_issue_delay_pass_states.
3668
3669 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
3670
3671 PR boostrap/44421
3672 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
3673 (df_byte_lr_bb_local_compute): Likewise.
3674
3675 2010-06-03 Jason Merrill <jason@redhat.com>
3676
3677 Implement noexcept operator (5.3.7)
3678 * c-common.c (c_common_reswords): Add noexcept.
3679 * c-common.h (enum rid): Add RID_NOEXCEPT.
3680
3681 2010-06-04 Joseph Myers <joseph@codesourcery.com>
3682
3683 * config/darwin-driver.c (darwin_default_min_version): Use
3684 GCC-specific formats in diagnostics.
3685 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
3686 diagnostics.
3687 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
3688 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
3689 eval_spec_function, handle_braces, process_brace_body, main,
3690 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
3691 getenv_spec_function, compare_version_strings,
3692 version_compare_spec_function): Use GCC-specific formats in
3693 diagnostics.
3694
3695 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3696
3697 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
3698 that operand 0 and operand 1 are equal.
3699 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
3700 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
3701 and operand 1 are equal.
3702 <default>: Ditto. Remove ??? comment.
3703 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
3704 and operand 1 are equal.
3705 <default>: Ditto. Remove ??? comment.
3706 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
3707 are equal.
3708 (*add<mode>_4) <default>: Ditto.
3709 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
3710
3711 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
3712
3713 * config/i386/i386-protos.h (ix86_print_operand): Declare.
3714 * config/i386/i386.c (ix86_print_operand): Make non-static.
3715 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
3716 * output.h (output_operand): Declare.
3717 * final.c (output_operand): Make non-static.
3718
3719 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
3720
3721 PR rtl-optimization/44013
3722 * sched-deps.c (add_dependence_list_and_free): Don't free lists
3723 when processing debug insns.
3724
3725 PR debug/41371
3726 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
3727 recursing. Check that recursion is bounded. Rename inner var
3728 to avoid hiding incoming argument.
3729
3730 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3731
3732 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
3733 operands[2] == 255.
3734 (*addqi_3): Ditto.
3735 (*addqi_4): Ditto.
3736 (*addqi_5): Ditto.
3737 (*addqi_ext_1_rex64): Ditto.
3738 (*addqi_ext_1): Ditto.
3739
3740 (*addqi_4): Check for incdec_operand in QImode.
3741
3742 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
3743 using SWI mode iterator.
3744 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
3745 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
3746 mode iterator.
3747 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
3748 using SWI mode iterator.
3749
3750 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
3751
3752 PR c/25880
3753 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
3754 * c-format.c (gcc_diag_flag_specs): Add hash.
3755 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
3756 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
3757 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
3758 pp_c_cv_qualifiers. Handle qualifiers spelling here.
3759 (pp_c_type_qualifier_list): Call the function above.
3760 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
3761 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
3762 (WARN_FOR_QUALIFIERS): New macro.
3763 (convert_for_assignment): Use it.
3764
3765 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
3766
3767 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
3768
3769 2010-06-04 Jan Hubicka <jh@suse.cz>
3770
3771 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
3772 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
3773 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
3774 DF_BYTE_LR_OUT): Update for embedded bitmaps.
3775 * fwprop.c (single_def_use_enter_block): Likewise.
3776 * ddg.c (create_ddg_dep_from_intra_loop_link,
3777 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
3778 * loop-iv.c (latch_dominating_def): Likewise.
3779 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
3780 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
3781 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
3782 df_rd_transfer_function, df_rd_top_dump,
3783 df_rd_bottom_dump): Update.
3784 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
3785 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
3786 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
3787 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
3788 df_lr_verify_solution_start, df_lr_verify_solution_end,
3789 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
3790 df_live_free_bb_info, df_live_alloc, df_live_reset,
3791 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
3792 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
3793 df_live_verify_solution_start, df_live_verify_solution_end,
3794 df_live_verify_transfer_functions, df_chain_create_bb,
3795 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
3796 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3797 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
3798 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
3799 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
3800 df_byte_lr_transfer_function, df_byte_lr_top_dump,
3801 df_byte_lr_bottom_dump, df_create_unused_note,
3802 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
3803 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
3804 df_md_transfer_function, df_md_init, df_md_confluence_0,
3805 df_md_confluence_n,
3806 df_md_top_dump, df_md_bottom_dump): Update.
3807 (struct df_lr_problem_data): Embedd bitmap headers.
3808
3809 2010-06-04 Jan Hubicka <jh@suse.cz>
3810
3811 * dce.c (dce_process_block): Do not re-scan already marked
3812 instructions.
3813
3814 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
3815
3816 PR rtl-optimization/39871
3817 PR rtl-optimization/40615
3818 PR rtl-optimization/42500
3819 PR rtl-optimization/42502
3820 * ira.c (init_reg_equiv_memory_loc: New function.
3821 (ira): Call it twice.
3822 * reload.h (calculate_elim_costs_all_insns): Declare.
3823 * ira-costs.c: Include "reload.h".
3824 (regno_equiv_gains): New static variable.
3825 (init_costs): Allocate it.
3826 (finish_costs): Free it.
3827 (ira_costs): Call calculate_elim_costs_all_insns.
3828 (find_costs_and_classes): Take estimated elimination costs
3829 into account.
3830 (ira_adjust_equiv_reg_cost): New function.
3831 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
3832 * reload1.c (init_eliminable_invariants, free_reg_equiv,
3833 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
3834 (elim_bb): New static variable.
3835 (reload): Move code out of here into init_eliminable_invariants and
3836 free_reg_equiv. Call them.
3837 (calculate_elim_costs_all_insns): New function.
3838 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
3839 all callers changed. If FOR_COSTS is true, don't call alter_reg,
3840 but call note_reg_elim_costly if we turned a valid memory address
3841 into an invalid one.
3842 * Makefile.in (ira-costs.o): Depend on reload.h.
3843
3844 2010-06-04 Julian Brown <julian@codesourcery.com>
3845
3846 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
3847 for pool ranges.
3848
3849 2010-06-04 Richard Guenther <rguenther@suse.de>
3850
3851 PR lto/41584
3852 * cgraph.h (struct varpool_node): Add lto_file_data field.
3853 * lto-cgraph.c (input_varpool_node): Initialize it.
3854
3855 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
3856
3857 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
3858 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
3859 predicate in "type" attribute calculation.
3860 (*addsi_1_zext): Ditto.
3861 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
3862 (*addsi_2_zext): Ditto.
3863 (*add<mode>_3): Ditto.
3864 (*addsi_3_zext): Ditto.
3865 (*add<mode>_5): Ditto.
3866
3867 2010-06-03 Jan Hubicka <jh@suse.cz>
3868
3869 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
3870 of bitmap_bit_p.
3871 * cfganal.c (compute_dominance_frontiers_1): Likewise.
3872
3873 2010-06-03 Jan Hubicka <jh@suse.cz>
3874
3875 * df-problems.c (df_create_unused_note, df_note_bb_compute):
3876 micro-optimize the checks when to add new note.
3877
3878 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
3879
3880 * final.c (output_asm_insn): Call
3881 targetm.asm_out.print_operand_punct_valid_p. Update comments.
3882 (output_operand): Call targetm.asm_out.print_operand. Update comments.
3883 (output_address): Call targetm.asm_out.print_operand_address.
3884 Update comments.
3885 * target.h (struct gcc_target): Add print_operand,
3886 print_operand_address, and print_operand_punct_valid_p fields.
3887 * targhooks.h (default_print_operand): Declare.
3888 (default_print_operand_address): Declare.
3889 (default_print_operand_punct_valid_p): Declare.
3890 * targhooks.c (default_print_operand): Define.
3891 (default_print_operand_address): Define.
3892 (default_print_operand_punct_valid_p): Define.
3893 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
3894 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
3895 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
3896 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
3897 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
3898 * vmsdbgout.c (addr_const_to_string): Update comment.
3899 * config/i386/i386.c (print_operand): Rename to...
3900 (ix86_print_operand): ...this. Make static.
3901 (print_operand_address): Rename to...
3902 (ix86_print_operand_address): ...this. Make static. Call
3903 ix86_print_operand instead of PRINT_OPERAND.
3904 (ix86_print_operand_punct_valid_p): New function.
3905 (TARGET_PRINT_OPERAND): Define.
3906 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3907 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3908 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
3909 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3910 (PRINT_OPERAND): Delete.
3911 (PRINT_OPERAND_ADDRESS): Delete.
3912 * config/i386/i386-protos.h (print_operand): Delete prototype.
3913 (print_operand_address): Delete prototype.
3914
3915 2010-06-03 Richard Guenther <rguenther@suse.de>
3916
3917 PR tree-optimization/44403
3918 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
3919 Preserve pointer qualifiers.
3920 (vect_create_data_ref_ptr): Likewise.
3921
3922 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
3923
3924 PR c++/44294
3925 * defaults.h (MAX_FIXED_MODE_SIZE): New.
3926
3927 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
3928
3929 2010-06-03 Jakub Jelinek <jakub@redhat.com>
3930
3931 PR debug/44375
3932 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
3933 return false if merging the bbs would lead to goto_locus
3934 location being lost from the IL.
3935
3936 2010-06-03 Jan Hubicka <jh@suse.cz>
3937 Jakub Jelinek <jakub@redhat.com>
3938
3939 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
3940 set->regs[i] is NULL or has just one entry.
3941
3942 2010-06-03 Jan Hubicka <jh@suse.cz>
3943
3944 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
3945 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
3946
3947 2010-06-03 Paul Brook <paul@codesourcery.com>
3948
3949 * config/arm/arm.c (FL_TUNE): Define.
3950 (arm_default_cpu, arm_cpu_select): Remove.
3951 (all_cores): Populate core field.
3952 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
3953 (arm_find_cpu): New function.
3954 (arm_handle_option): Lookup cpu/architecture names.
3955 (arm_override_options): Cleanup mcpu/march/mtune handling.
3956 (arm_file_start): Ditto.
3957
3958 2010-06-03 Alan Modra <amodra@gmail.com>
3959
3960 PR target/44169
3961 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
3962 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
3963 rtx to gen_load_toc_v4_PIC_1b. Tidy.
3964 (rs6000_emit_load_toc_table): Likewise.
3965
3966 2010-06-02 Jan Hubicka <jh@suse.cz>
3967
3968 * passes.c (init_optimization_passes): Put ipa reference
3969 after ipa pure-const.
3970
3971 2010-06-02 Jan Hubicka <jh@suse.cz>
3972
3973 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
3974 calls_read_all and calls_write_all.
3975 (get_reference_optimization_summary): Fix formatting.
3976 (is_proper_for_analysis): Check that decl is not readonly.
3977 (propagate_bits): Check CONST/PURE/noreturn flags.
3978 (ipa_init): Move all_module_statics to optimization_summary_obstack.
3979 (analyze_function): Ignore indirect edges.
3980 (copy_global_bitmap): For all module statics, do nothing.
3981 (generate_summary): Do not print calls_read_all/calls_write_all.
3982 (read_write_all_from_decl): Take node as argument; check
3983 cgraph_node_cannot_return.
3984 (propagate): Reorganize read_all/write_all computation;
3985 check indirect edges; check ecf flags; use all_module_statics
3986 in the results; do not free all_module_statics.
3987 (stream_out_bitmap): Handle all_module_statics.
3988 (ipa_reference_write_optimization_summary): Likewise; use
3989 varpool/cgraph encoders to get boundaries.
3990 (ipa_reference_read_optimization_summary): Read in all_module_statics;
3991 use it when possible.
3992
3993 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
3994
3995 PR target/44218
3996 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
3997 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
3998
3999 * doc/extend.texi (powerpc builtins): Document vec_recip,
4000 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
4001
4002 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
4003 (rs6000_emit_swrsqrt): Ditto.
4004 (rs6000_emit_swdivsf): Delete.
4005 (rs6000_emit_swdivdf): Ditto.
4006 (rs6000_emit_swrsqrtsf): Ditto.
4007
4008 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
4009 describe the reciprocal estimate support for each type.
4010 (recip_options): Map -mrecip=<opt> into option bits.
4011 (gen_2arg_fn_t): New typedef for binary rtx gen function.
4012 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
4013 reciprocal estimate instructions.
4014 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
4015 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
4016 Set up rs6000_recip_bits based on the -mrecip* options. Print the
4017 cost information if -mdebug=cost or -mdebug=reg.
4018 (rs6000_override_options): Set -mrecip-precision for power6, and
4019 power7 machines. If -mvsx or -mdfp, enable various options that
4020 came in previous instruction set ISAs, unless the option was
4021 explicitly disabled by the command line option. Parse
4022 -mrecip=<opt> options.
4023 (rs6000_builtin_vectorized_function): Add support for vectorizing
4024 the reciprocal estimate builtins and expansions.
4025 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
4026 (bdesc_2arg): Add reciprocal estimate builtins.
4027 (bdesc_1arg): Add reciprocal square root estimate builtins.
4028 (rs6000_expand_builtin): Rewrite to use a switch statement,
4029 instead of multiple if/then/elses. Add reciprocal estimate builtins.
4030 (rs6000_init_builtins): Create declarations for reciprocal
4031 estimate builtins.
4032 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
4033 sized, prefer traditional floating point registers, if integer
4034 vector types, prefer altivec registers. Don't actually look at
4035 the memory address any more.
4036 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
4037 builtins.
4038 (rs6000_load_constant_and_splat): New helper function to load up
4039 the constant for reciprocal estimate instructions.
4040 (rs6000_emit_madd): New helper function for generating
4041 multiply/add type instructions, based on the current switches.
4042 (rs6000_emit_msub): Ditto.
4043 (rs6000_emit_mnsub): Ditto.
4044 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
4045 replace a divide with a reciprocal estimate and fixup, adding
4046 support for machines with high precision and vectors.
4047 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
4048 low precision machines.
4049 (rs6000_emit_swdiv): New common function to be called to replace a
4050 division with reciprocal estimate and fixup.
4051 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
4052 for double and vector types. Add support for high precision machines.
4053
4054 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
4055 the reciprocal estimate instructions can be generated.
4056 (TARGET_FRE): Ditto.
4057 (TARGET_FRSQRTES): Ditto.
4058 (TARGET_FRSQRTE): Ditto.
4059 (RS6000_RECIP_*): New macros for reciprocal estimate support.
4060
4061 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
4062 square root estimate on vectors.
4063 (re<mode>2): New insn for reciprocal division estimate on vectors.
4064
4065 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
4066 New builtin.
4067 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
4068 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
4069 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
4070 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
4071 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
4072 (RS6000_BUILTIN_RSQRT): Ditto.
4073 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
4074 floating point builtin.
4075
4076 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4077 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
4078 __RECIP_PRECISION__ based on the command line switches.
4079 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
4080
4081 * config/rs6000/rs6000.opt (-mrecip): Document add support for
4082 replacing division instructions with reciprocal estimate and fixup.
4083 (-mrecip=<opt>): New option.
4084 (-mrecip-precision): Ditto.
4085
4086 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
4087 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
4088 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
4089 precision scalar.
4090
4091 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
4092 (UNSPEC_VREFP): Ditto.
4093 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
4094 conterparts with regard to support of -mno-fused-madd and -ffast-math.
4095 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
4096 reciprocal estimate instructions to be generated.
4097 (altivec_vrefp): Ditto.
4098
4099 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
4100 estimate support.
4101 (rreg): New mode attribute for reciprocal estimate support.
4102 (recip<mode>3): New insn for division using reciprocal estimate
4103 and fixup builtins.
4104 (divide define_split): New define_split to convert floating point
4105 division to use reciprocal estimate if the user used the
4106 appropriate options and the split is run when we can add new
4107 pseudo registers for the fixup.
4108 (rsqrt<mode>2): New insn for reciprocal square root support.
4109 (recipsf3): Move into recip<mode>3.
4110 (recipdf3): Ditto.
4111 (fres): Use TARGET_FRES.
4112 (rsqrtsf2): Move into rsqrt<mode>2.
4113 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
4114 (copysignsf3): Add support for VSX.
4115 (fred): Use TARGET_FRE.
4116 (fred_fpr): Ditto.
4117 (rsqrtdf_internal1): New function for frsqrte instruciton.
4118
4119 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
4120 (vec_rsqrt): Ditto.
4121
4122 2010-06-03 Richard Guenther <rguenther@suse.de>
4123
4124 PR middle-end/44291
4125 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
4126 (set_user_assembler_libfunc): Likewise.
4127
4128 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4129
4130 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
4131 defaults.h.
4132 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
4133 to defaults.h
4134 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
4135 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
4136 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
4137 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
4138 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
4139 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
4140 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
4141 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
4142 * defaults.h: Updated for above mentioned changes.
4143
4144 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
4145
4146 * c-common.c: Remove header include of tm_p.h.
4147 * Makefile.in (c-common.o): Remove TM_P_H dependency.
4148
4149 2010-06-02 Jakub Jelinek <jakub@redhat.com>
4150
4151 * tree.h (struct tree_decl_map): New type.
4152 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
4153 (tree_decl_map_hash): New prototype.
4154 (debug_expr_for_decl, value_expr_for_decl): Change into
4155 tree_decl_map hashtab from tree_map.
4156 (init_ttree): Adjust initialization.
4157 (tree_decl_map_hash): New function.
4158 (decl_debug_expr_lookup, decl_debug_expr_insert,
4159 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
4160
4161 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4162
4163 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
4164 linker emulations.
4165 * configure: Regenerate.
4166 * config.in: Regenerate.
4167
4168 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
4169 (X86_64_EMULATION): Define.
4170 (TARGET_LD_EMULATION): Use them.
4171
4172 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
4173 (SPARC64_EMULATION): Define.
4174 (LINK_ARCH_SPEC): Use them.
4175
4176 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4177
4178 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
4179 smallest_mode_for_size for computing the precision types of new
4180 graphite IVs. Do not call lang_hooks.types.type_for_size.
4181
4182 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4183
4184 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
4185 information.
4186 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
4187
4188 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
4189
4190 PR middle-end/44363
4191 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
4192 return false instead.
4193
4194 2010-06-02 Jan Hubicka <jh@suse.cz>
4195
4196 PR middle-end/44295
4197 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
4198 create new cgraph node to check callee.
4199
4200 2010-06-02 Richard Guenther <rguenther@suse.de>
4201
4202 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
4203
4204 2010-06-02 Richard Guenther <rguenther@suse.de>
4205
4206 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
4207 (lto_wrapper_cleanup): ... this. Do not exit.
4208 (fatal): Adjust. Exit here.
4209 (fatal_perror): Likewise.
4210 (fatal_signal): New function.
4211 (main): Set up signal handlers to cleanup temporary files.
4212 * Makefile.in (lto-wrapper.o): Adjust dependencies.
4213
4214 2010-06-02 Richard Guenther <rguenther@suse.de>
4215
4216 PR tree-optimization/44377
4217 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
4218
4219 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4220
4221 * config/s390/2097.md (z10_fhex): Remove insn reservation.
4222 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
4223 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
4224 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
4225 instruction.
4226 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
4227
4228 2010-06-02 Jan Hubicka <jh@suse.cz>
4229
4230 * bitmap.c (bitmap_descriptor): Add search_iter.
4231 (bitmap_find_bit): Increment it.
4232 (print_statistics): Print it.
4233
4234 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
4235
4236 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
4237 instead of gimple_build_call_vec. Delete unnecessary local variable.
4238
4239 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4240
4241 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
4242 change from yesterday.
4243
4244 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
4245
4246 * c-ada-spec.c: Clean up redundant includes.
4247
4248 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
4249
4250 * gimplify.c: Do not include except.h and optabs.h.
4251 (gimplify_body): Do not initialize RTL profiling.
4252 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
4253 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
4254 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
4255 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
4256 langhooks.h.
4257
4258 * tree-pretty-print.h: Include pretty-print.h.
4259 * gimple-pretty-print.h: Include pretty-print.h.
4260
4261 * tree-pretty-print.c: Do not include diagnostic.h.
4262 * tree-vrp.c: Likewise.
4263 * tree-tailcall.c: Likewise
4264 * tree-scalar-evolution.c: Likewise
4265 * tree-ssa-dse.c: Likewise
4266 * tree-chrec.c: Likewise
4267 * tree-ssa-sccvn.c: Likewise
4268 * tree-ssa-copyrename.c: Likewise
4269 * tree-nomudflap.c: Likewise
4270 * tree-call-cdce.c: Likewise
4271 * tree-stdarg.c: Likewise
4272 * tree-ssa-math-opts.c: Likewise
4273 * tree-nrv.c: Likewise
4274 * tree-ssa-sink.c: Likewise
4275 * tree-browser.c: Likewise
4276 * tree-ssa-loop-ivcanon.c: Likewise
4277 * tree-ssa-loop.c: Likewise
4278 * tree-parloops.c: Likewise
4279 * tree-ssa-address.c: Likewise
4280 * tree-ssa-ifcombine.c: Likewise
4281 * tree-if-conv.c: Likewise
4282 * tree-data-ref.c: Likewise
4283 * tree-affine.c: Likewise
4284 * tree-ssa-phiopt.c: Likewise
4285 * tree-ssa-coalesce.c: Likewise
4286 * tree-ssa-pre.c: Likewise
4287 * tree-ssa-live.c: Likewise
4288 * tree-predcom.c: Likewise
4289 * tree-ssa-forwprop.c: Likewise
4290 * tree-ssa-dce.c: Likewise
4291 * tree-ssa-ter.c: Likewise
4292 * tree-ssa-loop-prefetch.c: Likewise
4293 * tree-optimize.c: Likewise
4294 * tree-ssa-phiprop.c: Likewise
4295 * tree-object-size.c: Likewise
4296 * tree-outof-ssa.c: Likewise
4297 * tree-ssa-structalias.c: Likewise
4298 * tree-switch-conversion.c: Likewise
4299 * tree-ssa-reassoc.c: Likewise
4300 * tree-ssa-operands.c: Likewise
4301 * tree-vectorizer.c: Likewise
4302 * tree-vect-data-refs.c: Likewise
4303 * tree-vect-generic.c: Likewise
4304 * tree-vect-stmts.c: Likewise
4305 * tree-vect-patterns.c: Likewise
4306 * tree-vect-slp.c: Likewise
4307 * tree-vect-loop.c: Likewise
4308 * tree-ssa-loop-ivopts.c: Likewise
4309 * tree-ssa-loop-im.c: Likewise
4310 * tree-ssa-loop-niter.c: Likewise
4311 * tree-ssa-loop-unswitch.c: Likewise
4312 * tree-ssa-loop-manip.c: Likewise
4313 * tree-ssa-loop-ch.c: Likewise
4314 * tree-dump.c: Likewise
4315 * tree-complex.c: Likewise
4316
4317 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
4318 * tree-ssa-uninit.c: Likewise
4319 * tree-ssa-threadupdate.c: Likewise
4320 * tree-ssa-uncprop.c: Likewise
4321 * tree-ssa-ccp.c: Likewise
4322 * tree-ssa-dom.c: Likewise
4323 * tree-ssa-propagate.c: Likewise
4324 * tree-ssa-alias.c: Likewise
4325 * tree-dfa.c: Likewise
4326 * tree-cfgcleanup.c: Likewise
4327 * tree-sra.c: Likewise
4328 * tree-ssa-copy.c: Likewise
4329 * tree-ssa.c: Likewise
4330 * tree-profile.c: Likewise
4331 * tree-cfg.c: Likewise
4332 * tree-ssa-threadedge.c: Likewise
4333 * tree-vect-loop-manip.c: Likewise
4334
4335 * tree-inline.c: Do not include diagnostic.h and expr.h.
4336 Include rtl.h.
4337 (copy_decl_for_dup_finish): Do not use NULL_RTX.
4338
4339 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
4340 * tree-loop-distribution.c: Likewise.
4341
4342 2010-06-01 Jan Hubicka <jh@suse.cz>
4343
4344 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
4345
4346 2010-06-01 Jan Hubicka <jh@suse.cz>
4347
4348 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
4349 remove return value.
4350 (split_bbs_on_noreturn_calls) .... here.
4351 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
4352 * tree-flow.h (fixup_noreturn_call): New.
4353
4354 2010-06-01 Jan Hubicka <jh@suse.cz>
4355
4356 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
4357
4358 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
4359
4360 * tree.h (build_nt_call_list): Delete.
4361 * tree.c (build_nt_call_list): Delete.
4362
4363 2010-06-01 Jan Hubicka <jh@suse.cz>
4364
4365 * fwprop.c: Make emit-rtl.h include last.
4366 * rtlanal.c: Include emit-rtl.h.
4367 * genautomata.c: Output emit-rtl include into insn-automata.c
4368 * df-scan.c: Include emit-rtl.h.
4369 * haifa-sched.c: Indlude emit-rtl.h.
4370 * mode-switching.c: Indlude emit-rtl.h.
4371 * graph.c: Indlude emit-rtl.h.
4372 * sel-sched.c: Include emit-rtl.h.
4373 * sel-sched-ir.c: Include emit-rtl.h.
4374 * ira-build.c: Include emit-rtl.h.
4375 * emit-rtl.c: (first_insn, last_insn): Remove defines.
4376 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
4377 Move to emit-rtl.h.
4378 (set_new_first_and_last_insn, get_last_insn_anywhere,
4379 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
4380 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
4381 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
4382 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
4383 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
4384 Use accessor functions.
4385 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4386 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4387 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4388 mem_expr_equal_p): Move here from rtl.h.
4389 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
4390 Move here from emit-rtl.c; make inline.
4391 * cfglayout.h: Include emit-rtl.h.
4392 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
4393 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
4394 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
4395 mem_expr_equal_p, get_insns, set_first-insn,
4396 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
4397 * reg-stack.c: Include emit-rtl.h.
4398 * dce.c: Likewise.
4399
4400 2010-06-01 Jan Hubicka <jh@suse.cz>
4401
4402 * cgraph.h (tree_function_versioning): Update prototype.
4403 (cgraph_function_versioning): Update prototype.
4404 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
4405 bitmap.
4406 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
4407 (cgraph_materialize_clone, save_inline_function_body): Update use of
4408 tree_function_versioning.
4409 * tree-inline.c (copy_bb): Look for previous copied block to link
4410 after; fix debug output.
4411 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
4412 (copy_body): Likewise.
4413 (expand_call_inline): Update use of copy_body.
4414 (tree_function_versioning): Update use of copy body; accept
4415 blocks_to_copy and new_entry.
4416
4417 2010-06-01 Jan Hubicka <jh@suse.cz>
4418
4419 * gegenrtl.c: Remove unnecesary prototypes.
4420 (gendecl): Remove.
4421 (gendef): Produce static inline.
4422 (gencode): Remove.
4423 (main): Do not decode parameters; generate header only.
4424 * Makefile.in (genrtl.c): Remove.
4425
4426 2010-06-01 Jan Hubicka <jh@suse.cz>
4427
4428 * tree-switch-conversion.c (build_one_array): Make it readonly.
4429
4430 2010-06-01 Richard Guenther <rguenther@suse.de>
4431
4432 * optabs.c (init_optabs): Guard all accesses to reinit.
4433 * ipa-pure-const.c (propagate): Fix another typo.
4434 * opts.c (common_handle_option): Split assignment to bool.
4435 * c-opts.c (c_common_handle_option): Likewise.
4436
4437 2010-06-01 Arnaud Charlet <charlet@adacore.com>
4438 Matthew Gingell <gingell@adacore.com>
4439
4440 * doc/invoke.texi: Mention -fdump-ada-spec.
4441 * tree-dump.c (dump_files): Add ada-spec.
4442 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
4443 * tree-pass.h (tree_dump_index): Add TDI_ada.
4444 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
4445 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
4446 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
4447 * c-decl.c: Include c-ada-spec.h.
4448 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
4449 functions.
4450 (c_write_global_declarations): Add handling of -fdump-ada-spec.
4451 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
4452 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
4453 * c-ada-spec.h, c-ada-spec.c: New files.
4454
4455 2010-06-01 Richard Guenther <rguenther@suse.de>
4456
4457 PR lto/43853
4458 * ipa-pure-const.c (get_function_state): Hand back varying state
4459 if we do not have one.
4460 (has_function_state): New function.
4461 (duplicate_node_data): Adjust.
4462 (remove_node_data): Likewise.
4463 (pure_const_write_summary): Likewise.
4464 (propagate): Likewise. Fix typo.
4465
4466 2010-06-01 Jan Hubicka <jh@suse.cz>
4467
4468 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
4469 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
4470 (execute_all_ipa_transforms): Do not play with the states.
4471
4472 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
4473
4474 * config/arm/t-linux-androideabi: New.
4475 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
4476
4477 2010-06-01 Jan Hubicka <jh@suse.cz>
4478
4479 * tree-inline.c (estimate_num_insns): For stdarg functions look
4480 into call statement to count cost of argument passing.
4481
4482 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
4483
4484 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
4485 argument for fprintf.
4486 (ix86_output_addr_diff_elt): Likewise.
4487 (x86_function_profiler): Likewise.
4488 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
4489 (LPREFIX): Likewise.
4490 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
4491
4492 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4493
4494 PR target/44338
4495 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
4496 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
4497 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
4498 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
4499 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
4500 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
4501 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
4502 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
4503 TARGET_FUSED_MADD.
4504
4505 2010-05-31 Jan Hubicka <jh@suse.cz>
4506
4507 * tree.h (tree_range_check_failed): Declare noreturn.
4508
4509 2010-05-31 Jan Hubicka <jh@suse.cz>
4510
4511 * gimple.c (gimple_call_builtin_p): New function.
4512 * gimple.h (gimple_call_builtin_p): Declare.
4513 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
4514 to exit.
4515 (execute_warn_function_return): BUILT_IN_RETURN is return.
4516 (split_critical_edges): Return edges are not critical.
4517 (is_ctrl_altering_stmt): Builtin_in_return is altering.
4518 (gimple_verify_flow_info): Handle built_in_return.
4519 (execute_warn_function_return): Handle built_in_return.
4520 * ipa-pure-const.c (check_call): Ignore builtin_return.
4521
4522 2010-05-31 Jakub Jelinek <jakub@redhat.com>
4523
4524 PR middle-end/44337
4525 * expr.c (expand_assignment): Don't store anything for out-of-bounds
4526 array accesses with non-MEM.
4527
4528 PR tree-optimization/44182
4529 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
4530 newly needs to end a bb is followed by debug stmts, instead return
4531 true from the function at the end.
4532 (maybe_move_debug_stmts_to_successors): New function.
4533 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
4534
4535 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
4536
4537 PR target/44161
4538 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
4539
4540 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
4541
4542 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
4543 for nested functions in non-optimized compilation.
4544
4545 2010-05-31 Richard Guenther <rguenther@suse.de>
4546
4547 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
4548
4549 2010-05-30 Jan Hubicka <jh@suse.cz>
4550
4551 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
4552
4553 2010-05-30 Richard Guenther <rguenther@suse.de>
4554
4555 PR lto/42975
4556 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
4557 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
4558 no longer needed.
4559
4560 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
4561
4562 * config/darwin.c (output_objc_section_asm_op): Add comment.
4563 (name_needs_quotes): Add '_' to list of valid comment chars.
4564 (machopic_output_function_base_name): Remove unneeded quotes.
4565 (darwin_encode_section_info): Adjust asm whitespace.
4566 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
4567 (ASM_OUTPUT_LOCAL): Ditto.
4568 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
4569 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
4570 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
4571
4572 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
4573
4574 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
4575 RS6000_OUTPUT_BASENAME unconditionally.
4576 (rs6000_output_function_epilogue): Likewise.
4577
4578 2010-05-30 Jan Hubicka <jh@suse.cz>
4579
4580 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
4581 nodes.
4582
4583 2010-05-30 Richard Guenther <rguenther@suse.de>
4584
4585 * tree-cfg.c (verify_gimple_assign_single): Implement
4586 verification for COND_EXPR rhs.
4587
4588 2010-05-30 Jan Hubicka <jh@suse.cz>
4589
4590 * cgraph.h (cgraph_dump_file): Declare.
4591 * cgraphunit.c (cgraph_dump_file): Export.
4592 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
4593
4594 2010-05-30 Jan Hubicka <jh@suse.cz>
4595
4596 * dwarf2out.c (reference_to_unused,
4597 premark_types_used_by_global_vars_helper): Avoid creation of new
4598 varpool nodes.
4599
4600 2010-05-30 Jan Hubicka <jh@suse.cz>
4601
4602 * cgraph.h (cgraph_node_cannot_return,
4603 cgraph_edge_cannot_lead_to_return): New functions.
4604 * cgraph.c (cgraph_node_cannot_return,
4605 cgraph_edge_cannot_lead_to_return): Use them.
4606 * ipa-pure-const.c (pure_const_names): New static var.
4607 (check_call): Handle calls not leading to return.
4608 (pure_const_read_summary): Dump info read.
4609 (propagate): Dump info about propagation process; ignore side effects
4610 of functions not leading to exit; fix handling of pure functions.
4611
4612 2010-05-30 Jan Hubicka <jh@suse.cz>
4613
4614 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
4615 for tail call epilogues.
4616
4617 2010-05-30 Jan Hubicka <jh@suse.cz>
4618
4619 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
4620 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
4621 dump files.
4622
4623 2010-05-29 Jan Hubicka <jh@suse.cz>
4624
4625 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
4626 node; remove references in node we no longer keep in cgrpah but need
4627 body of.
4628
4629 2010-05-29 Jan Hubicka <jh@suse.cz>
4630
4631 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
4632
4633 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4634
4635 PR target/44165
4636 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
4637
4638 2010-05-29 Jan Hubicka <jh@suse.cz>
4639
4640 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
4641 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
4642 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
4643 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
4644 debug_names_replaced_by, debug_update_ssa): Likewise.
4645 * sbitmap.c (debug_sbitmap): Likewise.
4646 * genrecog.c (debug_decision, debug_decision_list): Likewise.
4647 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
4648 debug_tree_chain): Likewise.
4649 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
4650 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
4651 * optabs.c (debug_optab_libfuncs): Likewise.
4652 (verify_loop_closed_ssa): Likewise.
4653 * value-prof.c (verify_histograms): Likewise.
4654 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
4655 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
4656 * cfghooks.c (verify_flow_info): Likewise.
4657 * fold-const.c (debug_fold_checksum): Likewise.
4658 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
4659 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
4660 Likewise.
4661 * omega.c (debug_omega_problem): Likewise.
4662 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
4663 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
4664 * dominance.c (verify_dominators, debug_dominance_info,
4665 debug_dominance_tree): Likewise.
4666 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
4667 * df_regno_debug, df_ref_debug,
4668 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
4669 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
4670 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
4671 * sel-sched.c (debug_state): Likewise.
4672 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
4673 Likewise.
4674 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
4675 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
4676 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
4677 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
4678 Likewise.
4679 * c-pretty-print.c (debug_c_tree): Likewise.
4680 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
4681 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
4682 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
4683 * ebitmap.c (debug_ebitmap): Likewise.
4684 * function.c (debug_find_var_in_block_tree): Likewise.
4685 * print-rtl.c (debug_rtx): Likewise.
4686 (debug_rtx_count): Likewise.
4687 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
4688 * stor-layout.c (debug_rli): Likewise.
4689 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
4690 * tree-data-ref.c (debug_data_references,
4691 debug_data_dependence_relations, debug_data_reference,
4692 debug_data_dependence_relation, debug_rdg_vertex,
4693 debug_rdg_component, debug_rdg): Likewise.
4694 * tree-affine.c (debug_aff): Likewise.
4695 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
4696 Likewise.
4697 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
4698 * emit-rtl.c (verify_rtl_sharing): Likewise.
4699 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
4700 debug_value_expressions): Likewise.
4701 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
4702 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
4703 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
4704 * cfglayout.c (verify_insn_chain): Likewise.
4705 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
4706 debug_clast_stmt, debug_generated_program): Likewise.
4707 * ggc-page.c (debug_print_page_list): Likewise.
4708 * tree-ssa-ter.c (debug_ter): Likewise.
4709 * graphite-dependences.c (debug_pddr): Likewise.
4710 * sched-deps.c (debug_ds): Likewise.
4711 * tree-ssa.c (verify_ssa): Likewise.
4712 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
4713 debug_scattering_functions, debug_iteration_domains, debug_pdr,
4714 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
4715 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
4716 * tree-inline.c (debug_find_tree): Likewise.
4717 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
4718 debug_ppl_powerset_matrix): Likewise.
4719 * var-tracking.c (debug_dv): Likewise.
4720 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
4721 * cfgloop.c (verify_loop_structure): Likewise.
4722 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
4723 * c-common.c (verify_sequence_points): Likewise.
4724 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
4725 debug_candidates, debug_rgn_dependencies): Likewise.
4726 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
4727 * debug_constraint_graph, debug_solution_for_var,
4728 debug_sa_points_to_info): Likewise.
4729 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
4730 Likewie.
4731 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
4732 debug_loops, debug_loop, debug_loop_num): Likewise.
4733 * passes.c (debug_pass): Likewise.
4734 (dump_properties): Likewise; add cfglayout property.
4735 (debug_properties): Likewise.
4736 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
4737 * varpool.c (debug_varpool): Likewise.
4738 * regcprop.c (debug_value_data): Likewise.
4739 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
4740 debug_immediate_uses_for): Likewise.
4741
4742 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4743
4744 PR bootstrap/44315
4745 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
4746 Filter out insn-flags.h.
4747
4748 2010-05-29 Jan Hubicka <jh@suse.cz>
4749
4750 * cgraph.h (struct varpool_node_set_def,
4751 struct cgraph_node_set_def): Remove unused AUX pointer.
4752 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
4753 VEC_empty macro.
4754
4755 2010-05-29 Jan Hubicka <jh@suse.cz>
4756
4757 PR middle-end/44324
4758 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
4759
4760 2010-05-29 Richard Guenther <rguenther@suse.de>
4761
4762 * lto-streamer.c (cached_bp): New global variable.
4763 (bitpack_create): Return the cached bitpack, if available.
4764 (bitpack_delete): Clear and cache the bitpack, if appropriate.
4765 (bp_pack_value): Remove redundant asserts.
4766
4767 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4768
4769 PR middle-end/44306
4770 * tree-if-conv.c (is_true_predicate): New.
4771 (is_predicated): Use is_true_predicate.
4772 (add_to_predicate_list): Same. Do not use unshare_expr.
4773 (add_to_dst_predicate_list): Same.
4774
4775 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
4776
4777 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
4778 field on edges.
4779 (predicate_bbs): Same.
4780 (clean_predicate_lists): Same.
4781 (find_phi_replacement_condition): Do not AND the predicate from
4782 edge->aux.
4783
4784 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
4785
4786 PR bootstrap/44315
4787 * Makefile.in (build/gencondmd.o): Add a missing `\'.
4788
4789 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4790
4791 PR target/44261
4792 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
4793 (negdf2): Adjust expander pattern and use negdf2_slow.
4794 (negsf2): Likewise.
4795
4796 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
4797
4798 * basic-block.h (struct control_flow_graph): Move last_label_uid field
4799 up.
4800 * df.h (struct df_base_ref): Move regno field up.
4801 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
4802 * expr.h (struct separate_ops): Move location field up.
4803 * optabs.h (struct optab_d): Move libcall_basename field down.
4804 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
4805 * config/i386/i386.h (struct machine_function): Convert call_abi field
4806 into a bitfield. Move cfa field to the end of the structure.
4807
4808 2010-05-29 Jan Hubicka <jh@suse.cz>
4809
4810 * varpool.c (varpool_get_node): Fix lookup.
4811
4812 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4813
4814 * config/spu/spu-protos.h: Do not include rtl.h. Protect
4815 RTL specific prototypes with #ifdef RTX_CODE.
4816 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
4817 * config/spu/t-spu-elf: Fix dependencies.
4818
4819 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
4820
4821 2010-05-29 Mike Stump <mikestump@comcast.net>
4822
4823 PR bootstrap/44315
4824 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
4825 TM_H when building to avoid dependency loops.
4826
4827 2010-05-29 Jan Hubicka <jh@suse.cz>
4828
4829 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
4830 refs and body; not the whole node for masters of materialized clones.
4831
4832 2010-05-29 Mike Stump <mikestump@comcast.net>
4833
4834 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
4835
4836 2010-05-29 Jan Hubicka <jh@suse.cz>
4837
4838 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
4839 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
4840 use of clone_function_name.
4841 * cgraph.h (cgraph_create_virtual_clone,
4842 cgraph_function_versioning): update prototypes.
4843 (clone_function_name): Declare.
4844 * ipa-cp.c (ipcp_insert_stage): Update call of
4845 cgraph_create_virtual_clone.
4846 * omp-low.c (create_omp_child_function_name): Use
4847 cgraph_create_virtual_clone.
4848 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
4849 (cgraph_function_versioning): Take SUFFIX argument; produce new name
4850 and make decl local.
4851
4852 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4853
4854 * vec.h: Include statistics.h
4855 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
4856 with VEC_H.
4857
4858 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4859
4860 * c-lex.c: Do not include c-tree.h.
4861 * c-pretty-print.c: Likewise.
4862 * c-opts.c: Likewise.
4863 * c-gimplify.c: Likewise.
4864 * c-common.c: Likewise.
4865 * c-dump.c: Likewise. Include c-common.h.
4866
4867 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4868
4869 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
4870 before including diagnostic-core.h.
4871 (c_cpp_error): New prototype moved from c-tree.h.
4872 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
4873 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
4874 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
4875 (c_cpp_error): Prototype moved to c-common.h.
4876 * Makefile.in: Update dependency for C_COMMON_H.
4877
4878 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
4879
4880 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
4881 * c-common.c (c_register_addr_space): Remove here.
4882 * c-decl.c (c_register_addr_space): Re-add here.
4883
4884 2010-05-28 Mike Stump <mikestump@comcast.net>
4885
4886 * config/darwin-c.c: Remove c-tree.h include.
4887
4888 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4889
4890 * gcc.c: Include diagnostic.h.
4891 (error_count): Remove. All users changed to use errorcount.
4892 (programname): Remove. All users changed to use progname.
4893 (fancy_abort, internal_error, fatal_error, error, warning, inform,
4894 fnotice): Remove.
4895 (execute): Don't include "Internal error" and bug reporting
4896 information in argument of internal_error call.
4897 (process_command): Don't increment error_count after calling
4898 perror_with_name.
4899 (input_filename): Rename to gcc_input_filename. All users
4900 changed.
4901 (main): Call diagnostic_initialize. Register delete_temp_files
4902 with atexit. Use seen_error to test for errors.
4903 * gcc.h: Include diagnostic-core.h.
4904 (fatal_error, error, warning): Remove.
4905 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
4906 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
4907 (gcc.o): Update dependencies.
4908
4909 2010-05-28 Jeff Law <law@redhat.com>
4910
4911 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
4912 functions.
4913 * ira.h (ira_bad_reload_regno): Declare
4914 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
4915
4916 * ira-color.c (update_curr_costs): Free updated hard reg costs.
4917 (ira_reassign_conflict_allocnos): Remove bogus asserts.
4918 (allocno_reload_assign): Likewise.
4919
4920 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
4921
4922 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
4923 build1_stat.
4924
4925 2010-05-28 Richard Guenther <rguenther@suse.de>
4926
4927 PR lto/44312
4928 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
4929 Stream fixed-point constants mode.
4930 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
4931 and TYPE_PRECISION.
4932 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
4933 Stream fixed-point constants mode.
4934 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
4935 and TYPE_PRECISION.
4936
4937 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4938
4939 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
4940 only place it was called from.
4941 (number_of_latch_executions): Do not return chrec_dont_know when the
4942 may_be_zero is a runtime condition: instead, return a COND_EXPR
4943 including the may_be_zero condition.
4944 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
4945 of nb_iterations.
4946 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
4947 COND_EXPRs.
4948
4949 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4950
4951 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
4952 generate COND_EXPRs for degenerate_phi_result.
4953
4954 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
4955
4956 PR middle-end/44293
4957 * tree-if-conv.c (if_convertible_loop_p): Check the
4958 if-convertibility of phi nodes in non predicated BBs.
4959
4960 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4961
4962 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
4963
4964 2010-05-28 Joseph Myers <joseph@codesourcery.com>
4965
4966 PR driver/15303
4967 * gcc.c (inform, warning, inform): New functions.
4968 (fatal_ice): Rename to internal_error; change cmsgid parameter to
4969 gmsgid. All callers changed.
4970 (notice): Rename to fnotice; add parameter fp. All callers changed.
4971 (fatal_error): Rename to fatal_signal. All users changed.
4972 (fatal): Rename to fatal_error; change cmsgid parameter to
4973 gmsgid. All callers changed.
4974 (process_command): Use warning instead of error for warnings.
4975 (end_going_arg): Don't use _() around argument of error.
4976 (do_spec_1): Use inform for message from %n specs. Use warning
4977 instead of error for warnings.
4978 (main): Use inform for comparison messages. Use warning for
4979 message about unused linker input.
4980 (error): Increment error_count. Print "error: ".
4981 * gcc.h (fatal): Change to fatal_error.
4982 (warning): Declare.
4983 * config/darwin-driver.c (darwin_default_min_version): Use warning
4984 instead of fprintf for warnings.
4985 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
4986
4987 2010-05-28 Julian Brown <julian@codesourcery.com>
4988
4989 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
4990 (*thumb2_addsi3_compare0_scratch): New.
4991 * config/arm/constraints.md (Pv): New.
4992 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
4993 for ARM mode only.
4994 (*addsi3_compare0_scratch): Likewise.
4995
4996 2010-05-28 Jan Hubicka <jh@suse.cz>
4997
4998 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
4999 check.
5000 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
5001 only on local statics.
5002
5003 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
5004
5005 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
5006
5007 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
5008
5009 PR bootstrap/44314
5010 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
5011 (OPTION_GLIBC): Define.
5012
5013 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5014
5015 PR debug/41048
5016 * dwarf2out.c (double_int_type_size_in_bits): New function.
5017 (round_up_to_align): Change first argument and return value to
5018 double_int.
5019 (field_byte_offset): Work internally on double_ints.
5020
5021 PR target/43636
5022 * builtins.c (expand_movstr): Use a temporary pseudo instead
5023 of target even when target is not NULL and not const0_rtx, but
5024 fails movstr predicate.
5025 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
5026
5027 2010-05-28 Joseph Myers <joseph@codesourcery.com>
5028
5029 * final.c (rest_of_clean_state): Use %m in errors instead of
5030 strerror (errno).
5031 * gengtype.c (read_input_list, close_output_files): Use xstrerror
5032 instead of strerror.
5033 * toplev.c (process_options): Use %m in errors instead of strerror
5034 (errno).
5035 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
5036 (errno).
5037
5038 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
5039
5040 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
5041 (ix86_canonical_va_list_type): Make static. Add declaration.
5042 (ix86_enum_va_list): Make static. Reindent.
5043 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
5044 (ix86_canonical_va_list_type): Ditto.
5045 (ix86_enum_va_list): Ditto.
5046
5047 2010-05-28 Richard Guenther <rguenther@suse.de>
5048
5049 * lto-wrapper.c (run_gcc): With -save-temps generate a
5050 user-visible ltrans filename. Fixup ltrans unit numbering.
5051
5052 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
5053
5054 * c-common.c (c_common_nodes_and_builtins): Replace use
5055 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
5056 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
5057 to ix86_enum_va_list.
5058 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
5059 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
5060 (TARGET_ENUM_VA_LIST_P): Add hook description.
5061 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
5062 * target.h (gcc_target): Add enum_va_list hook.
5063
5064 PR bootstrap/44299
5065 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
5066 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
5067 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
5068
5069 2010-05-28 Alan Modra <amodra@gmail.com>
5070
5071 PR target/44266
5072 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
5073 emit_library_call machinery to set up __tls_get_addr calls.
5074
5075 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5076
5077 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
5078
5079 2010-05-28 Dodji Seketeli <dodji@redhat.com>
5080
5081 Revert fix for PR c++/44188
5082 * c-common.c (is_typedef_decl): Revert the moving of this
5083 definition ...
5084 * tree.c (is_typedef_decl): ... here.
5085 (typdef_variant_p): Revert the moving of this definition
5086 here from gcc/cp/tree.c.
5087 * c-common.h (is_typedef_decl): Revert the moving of this
5088 declaration ...
5089 * tree.h (is_typedef_decl): ... here.
5090 (typedef_variant_p): Revert the moving of this declaration here
5091 from gcc/cp/cp-tree.h
5092 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
5093 (gen_tagged_type_die): Revert the splitting out of ...
5094 (gen_type_die_with_usage): ... this function. Revert the anonymous
5095 tagged type handling.
5096 (gen_typedef_die): Revert emitting DW_TAG_typedef for
5097 typedefs naming anonymous tagged types.
5098
5099 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5100
5101 * config/rs6000/rs6000-modes.def (PSImode): Delete.
5102
5103 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
5104
5105 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
5106 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
5107 throughout.
5108 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
5109 "xer" to "ca".
5110 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
5111 XER_REGS to CA_REGS throughout.
5112 * config/rs6000/rs6000.h: Same.
5113 (ADDITIONAL_REGISTER_NAMES): Add "xer".
5114 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
5115 that mode_iterator "P" is the size for arithmetic carries as well.
5116 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
5117
5118 2010-05-28 Jakub Jelinek <jakub@redhat.com>
5119
5120 PR bootstrap/44255
5121 * combine.c (struct rtx_subst_pair): Define unconditionally.
5122 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
5123 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
5124 Call make_compound_operation on pair->to.
5125 (propagate_for_debug): Don't call make_compound_operation here.
5126 Always use simplify_replace_fn_rtx.
5127
5128 2010-05-27 Sterling Augustine <sterling@tensilica.com>
5129
5130 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
5131 * config/xtensa/xtensa.c (override_options): Check
5132 TARGET_FORCE_NO_PIC and set flag_pic.
5133 * config/xtensa/xtensa.opt: Document -mforce-no-pic
5134
5135 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5136
5137 PR bootstrap/44299
5138 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
5139 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
5140
5141 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5142
5143 * diagnostic-core.h: New. Contents moved from diagnostic.h and
5144 toplev.h.
5145 * diagnostic.c: Don't include toplev.h.
5146 (progname): Define. Moved from toplev.c.
5147 (seen_error): New function.
5148 * diagnostic.h: Include diagnostic-core.h.
5149 (diagnostic_t, emit_diagnostic): Don't declare here.
5150 * toplev.c (progname): Move to toplev.c.
5151 (emit_debug_global_declarations, compile_file, finalize,
5152 do_compile, toplev_main): Use seen_error.
5153 * toplev.h: Include diagnostic-core.h.
5154 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
5155 internal_error, warning, warning_at, error, error_n, error_at,
5156 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
5157 verbatim, fnotice, progname): Move to diagnostic-core.h.
5158 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
5159 (expand_builtin_expect): Use seen_error.
5160 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
5161 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
5162 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
5163 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
5164 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
5165 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
5166 errorcount for errors.
5167 * c-opts.c (c_common_finish): Use seen_error.
5168 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5169 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
5170 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
5171 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
5172 (get_coverage_counts): Use seen_error.
5173 * dwarf2out.c (dwarf2out_finish): Use seen_error.
5174 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
5175 gimplify_body): Use seen_error.
5176 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
5177 * ipa-pure-const.c (gate_pure_const): Use seen_error.
5178 * ipa-reference.c (gate_reference): Use seen_error.
5179 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
5180 * lambda-code.c: Include diagnostic-core.h instead of
5181 diagnostic.h.
5182 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
5183 * lto-compress.c: Include diagnostic-core.h instead of
5184 diagnostic.h.
5185 * lto-section-in.c: Include diagnostic-core.h instead of
5186 diagnostic.h.
5187 * lto-streamer-out.c: Include diagnostic-core.h instead of
5188 diagnostic.h.
5189 * lto-streamer.c: Include diagnostic-core.h instead of
5190 diagnostic.h.
5191 (gate_lto_out): Use seen_error.
5192 * matrix-reorg.c: Include diagnostic-core.h instead of
5193 diagnostic.h.
5194 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
5195 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
5196 (gate_expand_omp, lower_omp_1): Use seen_error.
5197 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
5198 (rest_of_decl_compilation, rest_of_type_compilation,
5199 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
5200 * tree-cfg.c (label_to_block_fn): Use seen_error.
5201 * tree-inline.c (optimize_inline_calls): Use seen_error.
5202 * tree-mudflap.c (mudflap_finish_file): Use
5203 seen_error.
5204 * tree-optimize.c (gate_all_optimizations,
5205 gate_all_early_local_passes, gate_all_early_optimizations): Use
5206 seen_error.
5207 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
5208 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
5209 (varpool_remove_unreferenced_decls,
5210 varpool_assemble_pending_decls): Use seen_error.
5211 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
5212 (TOPLEV_H, DIAGNOSTIC_H): Update.
5213 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
5214 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
5215 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
5216 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
5217 coverage.o, lambda-code.o): Update dependencies.
5218
5219 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5220
5221 PR c++/44188
5222 * c-common.c (is_typedef_decl): Move this definition ...
5223 * tree.c (is_typedef_decl): ... here.
5224 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5225 * c-common.h (is_typedef_decl): Move this declaration ...
5226 * tree.h (is_typedef_decl): ... here.
5227 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5228 * dwarf2out.c (is_naming_typedef_decl): New function.
5229 (gen_tagged_type_die): Split out of ...
5230 (gen_type_die_with_usage): ... this function. When an anonymous
5231 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5232 is emitted for the typedef.
5233 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5234 anonymous tagged types.
5235
5236 2010-05-27 Jason Merrill <jason@redhat.com>
5237
5238 * print-tree.c (debug_vec_tree): New fn.
5239 (print_vec_tree): New fn.
5240 * tree.h: Declare them.
5241 * gdbinit.in (pvt): New command.
5242
5243 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
5244
5245 * gdbinit.in (pdd): New command.
5246
5247 2010-05-27 Jan Hubicka <jh@suse.cz>
5248
5249 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
5250 (update_caller_keys): Return early if there are no callers;
5251 only update fibheap when decresing the key.
5252 (update_callee_keys): Avoid recursion.
5253 (decide_inlining_of_small_functions): When badness does not match;
5254 re-insert into fibheap.
5255
5256 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
5257
5258 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
5259 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
5260 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
5261 (ALL_HOST_OBJS): Now a union of the above two.
5262 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
5263 all files in ALL_HOST_FRONTEND_OBJS.
5264 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
5265
5266 * c-common.c: Pretend to be a backend file by undefining
5267 IN_GCC_FRONTEND (still need rtl.h here).
5268
5269 2010-05-27 Jan Hubicka <jh@suse.cz>
5270
5271 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
5272 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
5273
5274 2010-05-27 Jan Hubicka <jh@suse.cz>
5275
5276 * sched-ebb.c: Rename struct deps to struct deps_desc.
5277 * ddg.c: Likewise.
5278 * sel-sched-ir.c: Likewise.
5279 * sched-deps.c: Likewise.
5280 * sched-int.h: Likewise.
5281 * sched-rgn.c: Likewise.
5282
5283 2010-05-27 Jon Beniston <jon@beniston.com>
5284
5285 PR 43726
5286 * config/lm32/lm32.h: Remove definition of
5287 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
5288
5289 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
5290
5291 PR lto/44230
5292 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
5293
5294 2010-05-27 Richard Guenther <rguenther@suse.de>
5295
5296 PR tree-optimization/44284
5297 * tree-vect-stmts.c (vectorizable_assignment): Handle
5298 sign-changing conversions as simple copy.
5299
5300 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5301
5302 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
5303 Bionic C library.
5304 (__gthread_active_p): Check for pthread_create if compiling against
5305 Bionic C library.
5306
5307 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5308
5309 Support compilation for Android platform. Reimplement -mandroid.
5310
5311 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
5312 (*android*): Set ANDROID_DEFAULT.
5313 (arm*-*-linux*): Include linux-android.h.
5314 (arm*-*-eabi*): Don't include previous -mandroid implementation.
5315 * config/arm/eabi.h: Remove, move Android-specific parts ...
5316 * config/linux-android.h: ... here. New file.
5317 * config/arm/eabi.opt: Rename to ...
5318 * config/linux-android.opt: ... this.
5319 (mandroid): Allow -mno-android option. Initialize based on
5320 ANDROID_DEFAULT.
5321 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
5322 Move logic to corresponding LINUX_TARGET_* macros.
5323 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
5324 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
5325 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
5326 Android definitions.
5327 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
5328 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
5329 Document.
5330
5331 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
5332
5333 Add support for Bionic C library
5334
5335 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
5336 macro.
5337 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
5338 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
5339
5340 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
5341 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
5342 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
5343 to support multiple C libraries. Handle Bionic.
5344 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
5345 (BIONIC_DYNAMIC_LINKER64): Define.
5346 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
5347 Update.
5348 (TARGET_HAS_SINCOS): Enable for Bionic.
5349
5350 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
5351 the last option specified on command line take effect.
5352 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
5353 (mbionic): New.
5354 (mglibc, muclibc): Update.
5355
5356 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
5357 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
5358 DEFAULT_LIBC.
5359
5360 * doc/invoke.texi (-mglibc, -muclibc): Update.
5361 (-mbionic): Document.
5362
5363 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5364
5365 * c-common.h (c_register_addr_space): Add prototype.
5366 (ADDR_SPACE_KEYWORD): Remove.
5367 * c-common.c (c_register_addr_space): New function.
5368 (c_addr_space_name): Reimplement.
5369 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
5370
5371 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
5372 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
5373
5374 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
5375 Remove TARGET_ADDR_SPACE_KEYWORDS.
5376
5377 2010-05-27 Joseph Myers <joseph@codesourcery.com>
5378
5379 * input.c: New file.
5380 * input.h (main_input_filename): Move declaration to toplev.h.
5381 * toplev.c (input_location, line_table): Move to input.c
5382 * toplev.h (main_input_filename): Move declaration from input.h.
5383 * tree.c (expand_location): Move to input.c.
5384 * Makefile.in (OBJS-common): Add input.o.
5385 (input.o): Add dependencies.
5386
5387 2010-05-27 Richard Guenther <rguenther@suse.de>
5388
5389 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
5390 for non-existant files.
5391 (fork_execute): Mark args_name file as deleted.
5392
5393 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
5394
5395 PR bootstrp/44287
5396 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
5397 (narrow_signed_type): Likewise.
5398
5399 2010-05-26 Jan Hubicka <jh@suse.cz>
5400
5401 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
5402 edge only when checking is enabled; check using former_clone_of;
5403 check inline clones too.
5404 (cgraph_materialize_clone): Record former_clone_of pointer.
5405 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
5406 combining redirections; dump args_to_skip bitmap
5407 (cgraph_materialize_all_clones): Do no redirection here.
5408 * ipa-inline.c (inline_transform): Do redirection here.
5409 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
5410 cheking only).
5411
5412 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5413
5414 * config/avr/avr-c.c: Do not include regs.h.
5415 Include cpplib.h for cpp_define and tree.h for c-common.h.
5416 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
5417 * config/avr/t-avr: Fix dependencies for avr-c.o.
5418
5419 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5420
5421 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
5422 string instead of SYMBOL_REF rtx.
5423 * rtl.h (set_stack_check_libfunc): Move prototype from here...
5424 * libfuncs.h: ...to here. Adjust for explow.c change.
5425
5426 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5427
5428 * pretty-print.c: Don't include ggc.h.
5429 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
5430 (identifier_to_locale): Use them for allocation.
5431 * pretty-print.h (identifier_to_locale_alloc,
5432 identifier_to_locale_free): Declare.
5433 * toplev.c (alloc_for_identifier_to_locale): New.
5434 (general_init): Set identifier_to_locale_alloc and
5435 identifier_to_locale_free.
5436 * Makefile.in (pretty-print.o): Update dependencies.
5437
5438 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5439
5440 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
5441 pointer types if they have different alignment or mode.
5442
5443 2010-05-26 Anatoly Sokolov <aesok@post.ru>
5444
5445 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5446 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5447 * config/sparc/sparc-protos.h (function_value): Remove declaration.
5448 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
5449 sparc_function_value_regno_p): New functions.
5450 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5451 TARGET_FUNCTION_VALUE_REGNO_P): Define.
5452 (function_value): Rename to...
5453 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
5454 argument to 'outgoing'.
5455 (function_arg_record_value, function_arg_union_value,
5456 function_arg_vector_value): Update comment.
5457
5458 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
5459
5460 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
5461 (fde_needed_for_eh_p): New predicate.
5462 (output_call_frame_info): Use it throughout to decide whether FDEs
5463 are needed for EH purpose.
5464 (dwarf2out_begin_prologue): Reorder assignments.
5465
5466 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5467
5468 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
5469 special case loop->header.
5470 (is_predicated): New.
5471 (if_convertible_loop_p): Call it.
5472
5473 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5474
5475 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
5476 iterator in parameter. Do not generate code during the analysis.
5477 (tree_if_convert_cond_stmt): Removed.
5478 (tree_if_convert_stmt): Removed.
5479 (predicate_bbs): New.
5480 (if_convertible_loop_p): Call predicate_bbs.
5481 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
5482 now contains all the analysis part.
5483
5484 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5485
5486 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
5487 statements in the analysis part.
5488 (tree_if_convert_stmt): Update comment.
5489 (remove_conditions_and_labels): New.
5490 (combine_blocks): Call remove_conditions_and_labels.
5491 (tree_if_conversion): Update comment.
5492
5493 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5494
5495 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
5496 than 2 predecessors or more than 2 successors.
5497
5498 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5499
5500 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
5501 of loops in which the data dependence analysis fails.
5502
5503 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5504
5505 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
5506 CDI_POST_DOMINATORS.
5507 (tree_if_conversion): Same.
5508
5509 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5510
5511 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
5512
5513 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
5514
5515 * tree-if-conv.c: Update copyright years. Fix comments.
5516 Fix indentation.
5517
5518 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
5519
5520 * builtin-types.def (BT_INT128): New primitive type.
5521 (BT_UINT128): Likewise.
5522 * c-common.c (c_common_r): Add __int128 keyword.
5523 (c_common_type_for_size): Handle __int128.
5524 (c_common_type_for_mode): Likewise.
5525 (c_common_signed_or_unsigned_type): Likewise.
5526 (c_common_nodes_and_builtins): Add builtin type
5527 if target supports 128-bit integer scalar.
5528 * c-common.h (enum rid): Add RID_INT128.
5529 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
5530 if target supports 128-bit integer scalar.
5531 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
5532 (finish_declspecs): Likewise.
5533 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
5534 (c_token_starts_declspecs): Likewise.
5535 (c_parser_declspecs): Likewise.
5536 (c_parser_attributes): Likewise.
5537 (c_parser_objc_selector): Likewise.
5538 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
5539 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
5540 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
5541 * tree.c (make_or_reuse_type): Likewise.
5542 (make_unsigned_type): Likewise.
5543 (build_common_tree_nodes_2): Likewise.
5544 * tree.h (enum integer_type_kind): Add itk_int128 and
5545 itk_unsigned_int128.
5546 (int128_integer_type_node): New define.
5547 (int128_unsigned_type_node): New define.
5548 * doc/extend.texi: Add documentation about __int128 type.
5549
5550 2010-05-26 Richard Guenther <rguenther@suse.de>
5551
5552 * tree-ssa-sccvn.c (copy_nary): Adjust.
5553 (copy_phis): Rename to ...
5554 (copy_phi): ... this. Adjust.
5555 (copy_references): Rename to ...
5556 (copy_reference): ... this. Adjust.
5557 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
5558 result into the valid table.
5559
5560 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5561
5562 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
5563 insn-config.h, insn-codes.h, recog.h, and optabs.h.
5564
5565 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5566
5567 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
5568
5569 2010-05-26 Richard Guenther <rguenther@suse.de>
5570
5571 * opts.c (common_handle_option): Handle OPT_Ofast.
5572
5573 2010-05-26 Joseph Myers <joseph@codesourcery.com>
5574
5575 * diagnostic.c: Don't include opts.h.
5576 (permissive_error_option): Define.
5577 (diagnostic_initialize): Take n_opts parameter. Allocate memory
5578 for classify_diagnostic. Don't use memset for
5579 classify_diagnostic. Initialize new and recently added fields.
5580 (diagnostic_classify_diagnostic): Use context->n_opts instead of
5581 N_OPTS.
5582 (diagnostic_report_diagnostic): Pass context parameter to
5583 diagnostic_report_warnings_p. Use option_enabled and option_name
5584 hooks from context.
5585 (emit_diagnostic): Use permissive_error_option.
5586 (permerror): Likewise.
5587 * diagnostic.h: Don't include options.h.
5588 (struct diagnostic_context): Add n_opts, opt_permissive,
5589 inhibit_warnings, warn_system_headers, option_enabled and
5590 option_name fields. Change classify_diagnostic to a pointer.
5591 * opts-diagnostic.h: New file.
5592 * opts.c: Include opts-diagnostic.h.
5593 (common_handle_option): Set global_dc fields for -Wfatal-errors,
5594 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
5595 (option_name): New function.
5596 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
5597 (c_common_handle_option): Set global_dc->permissive for
5598 -fpermissive.
5599 * c-common.c (c_cpp_error): Save and restore
5600 global_dc->warn_system_headers, not variable warn_system_headers.
5601 * toplev.c: Include opts-diagnostic.h.
5602 (general_init): Update call to diagnostic_initialize. Set
5603 global_dc->show_column, global_dc->option_enabled and
5604 global_dc->option_name.
5605 (process_options): Don't set global_dc fields here.
5606 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
5607 (diagnostic.o, opts.o, toplev.o): Update dependencies.
5608
5609 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
5610
5611 * config/picochip/picochip.md (movsi): Split a movsi from a
5612 const after reload.
5613
5614 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5615
5616 * ggc-zone.c: Update copyright year.
5617 (poison_region): Mark memory for Valgrind as undefined before
5618 memset () call and inaccessible afterwards.
5619 (ggc_pch_total_size): Change type of i to int.
5620
5621 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5622
5623 * ggc-common.c (ggc_free_overhead): Allow empty slot.
5624
5625 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5626
5627 * ggc-common.c: Update copyright year.
5628 (ggc_rlimit_bound): Remove prototype. Compile only if
5629 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
5630 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
5631 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
5632 (ggc_min_heapsize_heuristic): Likewise.
5633
5634 2010-05-26 Richard Guenther <rguenther@suse.de>
5635
5636 PR rtl-optimization/44164
5637 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
5638 no-common access-path disambiguation.
5639 (indirect_ref_may_alias_decl_p): Adjust.
5640 (indirect_refs_may_alias_p): Likewise.
5641 (refs_may_alias_p_1): Likewise.
5642
5643 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5644
5645 * c-typeck.c: Do not include expr.h.
5646
5647 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
5648
5649 * rtl.h (decl_default_tls_model): Move prototype from here...
5650 * output.h: ...to here.
5651 * c-decl.c: Do not include rtl.h.
5652 * c-pragma.c: Likewise.
5653 * c-parser.c: Likewise.
5654 * c-gimplify.c: Likewise. And also not hard-reg-set.
5655 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
5656 FIXME note for it. Add a FIXME note for expr.h.
5657 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
5658 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
5659 defined.
5660
5661 2010-05-26 Jakub Jelinek <jakub@redhat.com>
5662
5663 PR target/44199
5664 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
5665 or total_size is larger than red zone size for non-V4 ABI, emit a
5666 stack_tie resp. frame_tie insn before stack pointer restore.
5667 * config/rs6000/rs6000.md (frame_tie): New insn.
5668
5669 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
5670
5671 * function.h (struct function): Add can_throw_non_call_exceptions bit.
5672 * lto-streamer-in.c (input_function): Stream it in.
5673 * lto-streamer-out.c (output_function): Stream it out.
5674 * function.c (allocate_struct_function): Set it.
5675 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
5676 for flag_non_call_exceptions.
5677 * cfgbuild.c (control_flow_insn_p): Likewise.
5678 (make_edges): Likewise.
5679 * cfgexpand.c (expand_stack_alignment): Likewise.
5680 * combine.c (distribute_notes): Likewise.
5681 * cse.c (cse_extended_basic_block): Likewise.
5682 * except.c (insn_could_throw_p): Likewise.
5683 * gcse.c (simple_mem): Likewise.
5684 * ipa-pure-const.c (check_call): Likewise.
5685 (check_stmt ): Likewise.
5686 * lower-subreg.c (lower-subreg.c): Likewise.
5687 * optabs.c (emit_libcall_block): Likewise.
5688 (prepare_cmp_insn): Likewise.
5689 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
5690 * postreload.c (rest_of_handle_postreload): Likewise.
5691 * reload1.c (reload_as_needed): Likewise.
5692 (emit_input_reload_insns): Likewise.
5693 (emit_output_reload_insns): Likewise.
5694 (fixup_abnormal_edges): Likewise.
5695 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
5696 * store-motion.c (find_moveable_store): Likewise.
5697 * tree-eh.c (stmt_could_throw_p): Likewise.
5698 (tree_could_throw_p): Likewise.
5699 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5700 * config/arm/arm.c (arm_expand_prologue): Likewise.
5701 (thumb1_expand_prologue): Likewise.
5702 * config/rx/rx.md (cbranchsf4): Likewise.
5703 (cmpsf): Likewise.
5704 * config/s390/s390.c (s390_emit_prologue): Likewise.
5705 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
5706 (inline_forbidden_into_p): New predicate.
5707 (expand_call_inline): Use it to forbid inlining.
5708 (tree_can_inline_p): Likewise.
5709
5710 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5711
5712 * config/i386/i386-c.c: Do not include rtl.h.
5713 * config/i386/t-i386: Update dependencies.
5714
5715 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5716
5717 * attribs.c: Do not include rtl.h.
5718 * Makefile.in: Update dependencies.
5719
5720 2010-05-25 Anatoly Sokolov <aesok@post.ru>
5721
5722 * double-int.h (double_int_and): New.
5723 * combine.c (try_combine): Clean up, use double_int_* and
5724 immed_double_int_const functions.
5725
5726 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5727
5728 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
5729 stderr to /dev/null instead of grep -q.
5730 * configure: Regenerate.
5731
5732 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
5733
5734 * Makefile.in (EXCEPT_H): Fix typo.
5735
5736 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
5737
5738 * ira-build.c (update_conflict_hard_reg_costs): New.
5739 (ira_build): Call update_conflict_hard_reg_costs.
5740
5741 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5742
5743 PR debug/41371
5744 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
5745 ENABLE_CHECKING.
5746 (intersect_loc_chains): Walk the s2var's loc_chain together
5747 with s1node chain as long as the locations are equal, don't
5748 call find_loc_in_1pdv in that case.
5749
5750 PR debug/42801
5751 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
5752 (copy_bind_expr): ... instead of here.
5753 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
5754 if the block hasn't been remapped.
5755 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
5756 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
5757
5758 2010-05-25 Richard Guenther <rguenther@suse.de>
5759
5760 PR middle-end/44069
5761 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
5762 out-of-bounds array accesses.
5763
5764 2010-05-25 Richard Guenther <rguenther@suse.de>
5765
5766 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
5767 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
5768 (run_gcc): Re-organize to make cleanup easier.
5769
5770 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5771
5772 * config/s390/s390.c (optimization_options): Fix and move the
5773 flag_prefetch_loop_arrays override ...
5774 (override_options): ... here.
5775
5776 2010-05-25 Joseph Myers <joseph@codesourcery.com>
5777
5778 * diagnostic.c: Don't include plugin.h.
5779 (diagnostic_report_diagnostic): Don't handle plugins specially
5780 here. Pass context to internal_error callback.
5781 * diagnostic.h (struct diagnostic_context): Add context parameter
5782 to internal_error callback.
5783 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
5784 * plugin.h (struct diagnostic_context): Declare.
5785 (warn_if_plugins, plugins_internal_error_function): Declare.
5786 * toplev.c (general_init): Set global_dc->internal_error.
5787 * Makefile.in (diagnostic.o): Update dependencies.
5788
5789 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
5790
5791 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
5792 * config/rs6000/t-darwin64: New.
5793 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
5794 build crt2.
5795
5796 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
5797
5798 PR 44203
5799 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
5800 match the original (and intended) behaviour before r159557. This
5801 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
5802 in two ways.
5803
5804 2010-05-25 Richard Guenther <rguenther@suse.de>
5805
5806 * doc/invoke.texi: Document -Ofast.
5807 * target.h (struct gcc_target): Add handle_ofast.
5808 * target-def.h (TARGET_HANDLE_OFAST): Add.
5809 (TARGET_INITIALIZER): Adjust.
5810 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
5811 * common.opt (Ofast): Add.
5812
5813 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5814
5815 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
5816 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
5817
5818 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
5819
5820 PR target/43610
5821 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
5822 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
5823 false_rtx. Use false_rtx to compute the correct *ptest for reversed
5824 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
5825
5826 2010-05-25 Jakub Jelinek <jakub@redhat.com>
5827
5828 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
5829 DW_OP_minus with negated offset instead of DW_OP_plus.
5830 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
5831
5832 2010-05-25 Wei Guozhi <carrot@google.com>
5833
5834 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
5835 tst instruction and a new alternative.
5836 * config/arm/constraints.md (Pu): New constraint.
5837
5838 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
5839
5840 * function.c (assign_stack_local_1): Initialize variable
5841 to avoid warning when bootstrapping at -O3.
5842
5843 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
5844
5845 * configure.ac (all_lang_makefiles): Remove everything related to it.
5846 * configure: Regenerate.
5847 * Makefile.in: Fix reference to ada Make-lang.in.
5848 Remove support for LANG_MAKEFILES.
5849
5850 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
5851 Sandra Loosemore <sandra@codesourcery.com>
5852
5853 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
5854 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
5855 description. Add arm_neon_fp16_ok.
5856 (Add Options): Add arm_neon and arm_neon_fp16.
5857
5858 2010-05-24 Joseph Myers <joseph@codesourcery.com>
5859
5860 * diagnostic.c: Don't include flags.h.
5861 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
5862 context parameters. Check flags in the context passed as a parameter.
5863 (diagnostic_build_prefix): Add context parameter. Check
5864 show_column flag in context.
5865 (diagnostic_action_after_output): Check fatal_errors flag in context.
5866 (diagnostic_report_current_module): Check show_column flag in context.
5867 (default_diagnostic_starter): Update call to
5868 diagnostic_build_prefix.
5869 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
5870 (emit_diagnostic): Pass context to permissive_error_kind.
5871 (permerror): Pass context to permissive_error_kind.
5872 * diagnostic.h (struct diagnostic_context): Add show_column,
5873 pedantic_errors, permissive and fatal_errors fields.
5874 (diagnostic_build_prefix): Update prototype.
5875 * langhooks.c
5876 * toplev.c (process_options): Set flags in global_dc from
5877 flag_show_column, flag_pedantic_errors, flag_permissive,
5878 flag_fatal_errors.
5879 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
5880 to diagnostic_build_prefix.
5881 * Makefile.in (diagnostic.o): Update dependencies.
5882
5883 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
5884
5885 * config/i386/ia32intrin.h (__crc32q): Define only if
5886 __SSE4_2__ is defined.
5887
5888 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
5889
5890 PR target/44132
5891 PR middle-end/43602
5892 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
5893 DECL_VISIBILITY_SPECIFIED.
5894 (emutls_decl): Set DECL_PRESERVE_P and copy
5895 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
5896 (emutls_finalize_control_var): New callback.
5897 (emutls_finish): Finalize emutls control variables.
5898 * toplev.c (compile_file): Move the call to emutls_finish ()
5899 before varpool_assemble_pending_decls ().
5900
5901 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
5902
5903 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
5904 added to the preprocessor condition.
5905
5906 2010-05-24 Paul Brook <paul@codesourcery.com>
5907
5908 * gengtype-lex.l: Add HARD_REG_SET.
5909 * expr.c (expand_expr_real_1): Record writes to hard registers.
5910 * function.c (rtl_data): Add asm_clobbers.
5911 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
5912 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
5913 Use crtl->asm_clobbers.
5914
5915 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5916
5917 * doc/makefile.texi (Makefile): Mention stages 'profile'
5918 and 'feedback' for profiledbootstrap.
5919
5920 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
5921
5922 PR target/44245
5923 * config/i386/i386.c (def_builtin): Properly check
5924 OPTION_MASK_ISA_64BIT.
5925
5926 2010-05-23 Joseph Myers <joseph@codesourcery.com>
5927
5928 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
5929 typedefs with different but compatible types. Allow duplicate
5930 typedefs with the same type except for pedantic non-C1X, but give
5931 warning for variably modified types.
5932 * c-typeck.c (tagged_types_tu_compatible_p,
5933 function_types_compatible_p, type_lists_compatible_p,
5934 comptypes_internal): Add parameter different_types_p; set
5935 *different_types_p for different but compatible types. All
5936 callers changed.
5937 (comptypes_check_different_types): New.
5938 * c-tree.h (comptypes_check_different_types): Declare.
5939
5940 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5941
5942 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
5943 * jump.c: Include basic-block.h.
5944 * profile.c: Likewise.
5945 * tree-profile.c: Likewise.
5946 * coverage.c: Likewise.
5947 * basic-block.h (optimize_function_for_size_p): Move to function.h.
5948 (optimize_function_for_speed_p): Likewise.
5949 * function.h (optimize_function_for_size_p,
5950 optimize_function_for_speed_p): Moved here from basic-block.h.
5951 * Makefile.in: Update dependencies.
5952
5953 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5954
5955 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
5956 before calling make; allow override through $MAKE.
5957 * doc/invoke.texi (Optimize Options): Document override.
5958
5959 2010-05-23 Anatoly Sokolov <aesok@post.ru>
5960
5961 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
5962 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5963 (rs6000_mode_dependent_address_ptr): Make static.
5964 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
5965 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
5966 Remove.
5967
5968 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
5969
5970 PR target/43869
5971 * config/i386/i386.c: Make sure that the correct regparm is passed.
5972
5973 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
5974
5975 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
5976 * sbitmap.c: ...to here to internalize sbitmap element access.
5977 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
5978 Explain why basic-block.h is included.
5979 * function.h: Include tm.h for CUMULATIVE_ARGS.
5980 * Makefile.in: Update dependencies.
5981
5982 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
5983
5984 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
5985 New core types.
5986 * sbitmap.h (struct sbitmap_def): Do not typedef here.
5987 * sbitmap.c: Include sbitmap.h.
5988 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
5989 hard-reg-set.h. Split everything related to regsets out from here...
5990 * regset.h: ...to here. New file.
5991 * df.h: Include regset.h and sbitmap.h.
5992 * tree-flow.h: Likewise.
5993 * cfgloop.h: Likewise.
5994 * except.h: Do not include sbitmap.h. Include hashtab.h.
5995 * cgraph.h: Include vec.h and function.h.
5996 * reload.h (struct insn_chain): Change types of live_throughout
5997 and dead_or_set from regset_head to bitmap_head.
5998 (compute_use_by_pseudos): Be defined also if regset.h is not included.
5999 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
6000 spilled_regs from regset_head to bitmap_head to avoid dependency
6001 in regset.h.
6002 * sel-sched-ir.h: Include regset.h.
6003 * reload.c: Include df.h before reload.h.
6004 * caller-save.c: Likewise.
6005 * reload1.c: Likewise.
6006 * ira.c: Likewise.
6007 (mark_elimination): Update type of r to bitmap, consistent with
6008 DF_LR_IN.
6009 * dominance.c: Include bitmap.h.
6010 * modulo-sched.c: Include df.h.
6011 * cfganal.c: Include bitmap.h and sbitmap.h.
6012 * cfgbuild.c: Include sbitmap.h.
6013 * lcm.c: Include sbitmap.h.
6014 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
6015 * domwalk.c: Include sbitmap.h, exclude ggc.h.
6016 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
6017 * cselib.c: Include bitmap.h.
6018 * tree-optimize.c: Include regset.h.
6019 * stmt.c: Include bitmap.h.
6020 * Makefile.in: Update dependencies.
6021
6022 2010-05-22 Jan Hubicka <jh@suse.cz>
6023
6024 * cgraph.h (struct varpool_node): Add same_comdat_group.
6025 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
6026 pointer.
6027 (output_varpool): Update call of lto_output_varpool_node.
6028 (input_varpool): Read same_comdat_group pointer.
6029 (input_varpool_1): Fixup same_comdat_group pointer.
6030 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
6031 group is needed, all are.
6032 * varpool.c (varpool_remove_node): Remove node from same comdat group
6033 linklist too.
6034 (varpool_analyze_pending_decls): Walk same comdat groups.
6035
6036 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
6037
6038 * rtl.h (union rtunion_def): Remove rt_bit member.
6039 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
6040 * print-rtl (print_rtx): Do not print the member.
6041 * gengtype.c (adjust_field_rtx_def): Do not handle it.
6042 * gengenrtl.c (type_from_format): Likewise.
6043 (accessor_from_format): Likewise.
6044
6045 2010-05-22 Joseph Myers <joseph@codesourcery.com>
6046
6047 * dbgcnt.c: Include toplev.h instead of errors.h.
6048 * ira-emit.c: Don't include errors.h.
6049 * ira.c: Include toplev.h instead of errors.h.
6050 * lto-compress.c: Include toplev.h instead of errors.h.
6051 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
6052 ira.o, dbgcnt.o): Update dependencies.
6053
6054 2010-05-22 Richard Guenther <rguenther@suse.de>
6055
6056 * gimple.c (gimple_types_compatible_p): Check type qualifications
6057 before merging pointer to complete and pointer to incomplete type.
6058 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
6059 we use our own resolution algorithm. The gold linker plugin
6060 doesn't do the job we want it to do here.
6061
6062 2010-05-22 Anatoly Sokolov <aesok@post.ru>
6063
6064 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6065 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6066 (sparc_mode_dependent_address_p): New function.
6067
6068 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6069
6070 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
6071
6072 * timevar.c: Do not include any core headers.
6073 (timevar_print): De-i18n-ize.
6074 (print_time): Likewise.
6075 * timevar.h (timevar_push, timevar_pop): Make inline functions.
6076
6077 2010-05-21 Joseph Myers <joseph@codesourcery.com>
6078
6079 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
6080 langhooks-def.h.
6081 (diagnostic_initialize): Initialize x_data not last_function.
6082 (diagnostic_report_current_function): Move to tree-diagnostic.c.
6083 (default_diagnostic_starter): Call
6084 diagnostic_report_current_module not
6085 diagnostic_report_current_function.
6086 (diagnostic_report_diagnostic): Initialize x_data not
6087 abstract_origin.
6088 (verbatim): Likewise.
6089 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
6090 x_data.
6091 (struct diagnostic_context): Change last_function to x_data.
6092 (diagnostic_auxiliary_data): Replace with
6093 diagnostic_context_auxiliary_data and
6094 diagnostic_info_auxiliary_data.
6095 (diagnostic_last_function_changed, diagnostic_set_last_function,
6096 diagnostic_report_current_function): Move to tree-diagnostic.h.
6097 (print_declaration, dump_generic_node, print_generic_stmt,
6098 print_generic_stmt_indented, print_generic_expr,
6099 print_generic_decl, debug_c_tree, dump_omp_clauses,
6100 print_call_name, debug_generic_expr, debug_generic_stmt,
6101 debug_tree_chain, default_tree_printer): Move to
6102 tree-pretty-print.h.
6103 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
6104 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
6105 gimple-pretty-print.h.
6106 * pretty-print.c: Don't include tree.h
6107 (pp_base_format): Don't handle %K here.
6108 (pp_base_tree_identifier): Move to tree-pretty-print.c.
6109 * pretty-print.h (text_info): Change abstract_origin to x_data.
6110 (pp_tree_identifier, pp_unsupported_tree,
6111 pp_base_tree_identifier): Move to tree-pretty-print.h.
6112 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
6113 tree-pretty-print.h: New files.
6114 * tree-pretty-print.c: Include tree-pretty-print.h.
6115 (percent_K_format): New. Moved from pretty-print.c.
6116 (pp_base_tree_identifier): Move from pretty-print.c.
6117 * c-objc-common.c: Include tree-pretty-print.h.
6118 (c_tree_printer): Handle %K here.
6119 * langhooks.c: Include tree-diagnostic.h.
6120 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
6121 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
6122 (default_tree_printer): Handle %K using percent_K_format.
6123 (general_init): Use default_tree_diagnostic_starter.
6124 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
6125 (free_lang_data): Use default_tree_diagnostic_starter.
6126 * c-pretty-print.c: Include tree-pretty-print.h.
6127 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6128 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6129 * dwarf2out.c: Include tree-pretty-print.h.
6130 * except.c: Include tree-pretty-print.h.
6131 * gimple-pretty-print.c: Include tree-pretty-print.h and
6132 gimple-pretty-print.h.
6133 * gimplify.c: Include tree-pretty-print.h.
6134 * graphite-poly.c: Include tree-pretty-print.h and
6135 gimple-pretty-print.h.
6136 * ipa-cp.c: Include tree-pretty-print.h.
6137 * ipa-inline.c: Include gimple-pretty-print.h.
6138 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6139 * ipa-pure-const.c: Include gimple-pretty-print.h.
6140 * ipa-struct-reorg.c: Include tree-pretty-print.h and
6141 gimple-pretty-print.h.
6142 * ipa-type-escape.c: Include tree-pretty-print.h.
6143 * print-rtl.c: Include tree-pretty-print.h.
6144 * print-tree.c: Include gimple-pretty-print.h.
6145 * sese.c: Include tree-pretty-print.h.
6146 * tree-affine.c: Include tree-pretty-print.h.
6147 * tree-browser.c: Include tree-pretty-print.h.
6148 * tree-call-cdce.c: Include gimple-pretty-print.h.
6149 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
6150 * tree-chrec.c: Include tree-pretty-print.h.
6151 * tree-data-ref.c: Include tree-pretty-print.h and
6152 gimple-pretty-print.h.
6153 * tree-dfa.c: Include tree-pretty-print.h.
6154 * tree-if-conv.c: Include tree-pretty-print.h and
6155 gimple-pretty-print.h.
6156 * tree-inline.c: Include tree-pretty-print.h.
6157 * tree-into-ssa.c: Include tree-pretty-print.h and
6158 gimple-pretty-print.h.
6159 * tree-nrv.c: Include tree-pretty-print.h.
6160 * tree-object-size.c: Include tree-pretty-print.h and
6161 gimple-pretty-print.h.
6162 * tree-outof-ssa.c: Include tree-pretty-print.h and
6163 gimple-pretty-print.h.
6164 * tree-parloops.c: Include tree-pretty-print.h and
6165 gimple-pretty-print.h.
6166 * tree-predcom.c: Include tree-pretty-print.h and
6167 gimple-pretty-print.h.
6168 * tree-scalar-evolution.c: Include tree-pretty-print.h and
6169 gimple-pretty-print.h.
6170 * tree-sra.c: Include tree-pretty-print.h.
6171 * tree-ssa-address.c: Include tree-pretty-print.h.
6172 * tree-ssa-alias.c: Include tree-pretty-print.h.
6173 * tree-ssa-ccp.c: Include tree-pretty-print.h and
6174 gimple-pretty-print.h.
6175 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
6176 * tree-ssa-copy.c: Include tree-pretty-print.h and
6177 gimple-pretty-print.h.
6178 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
6179 * tree-ssa-dce.c: Include tree-pretty-print.h and
6180 gimple-pretty-print.h.
6181 * tree-ssa-dom.c: Include tree-pretty-print.h and
6182 gimple-pretty-print.h.
6183 * tree-ssa-dse.c: Include gimple-pretty-print.h.
6184 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
6185 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
6186 * tree-ssa-live.c: Include tree-pretty-print.h and
6187 gimple-pretty-print.h.
6188 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
6189 gimple-pretty-print.h.
6190 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
6191 gimple-pretty-print.h.
6192 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
6193 gimple-pretty-print.h.
6194 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
6195 gimple-pretty-print.h.
6196 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
6197 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
6198 * tree-ssa-operands.c: Include tree-pretty-print.h and
6199 gimple-pretty-print.h.
6200 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
6201 gimple-pretty-print.h.
6202 * tree-ssa-pre.c: Include tree-pretty-print.h and
6203 gimple-pretty-print.h.
6204 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
6205 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
6206 gimple-pretty-print.h.
6207 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
6208 gimple-pretty-print.h.
6209 * tree-ssa-sink.c: Include gimple-pretty-print.h.
6210 * tree-ssa-ter.c: Include tree-pretty-print.h and
6211 gimple-pretty-print.h.
6212 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
6213 * tree-ssa.c: Include tree-pretty-print.h and
6214 gimple-pretty-print.h.
6215 * tree-stdarg.c: Include gimple-pretty-print.h.
6216 * tree-switch-conversion.c: Include gimple-pretty-print.h.
6217 * tree-tailcall.c: Include tree-pretty-print.h and
6218 gimple-pretty-print.h.
6219 * tree-vect-data-refs.c: Include tree-pretty-print.h and
6220 gimple-pretty-print.h.
6221 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
6222 gimple-pretty-print.h.
6223 * tree-vect-loop.c: Include tree-pretty-print.h and
6224 gimple-pretty-print.h.
6225 * tree-vect-patterns.c: Include gimple-pretty-print.h.
6226 * tree-vect-slp.c: Include tree-pretty-print.h and
6227 gimple-pretty-print.h.
6228 * tree-vect-stmts.c: Include tree-pretty-print.h and
6229 gimple-pretty-print.h.
6230 * tree-vectorizer.c: Include tree-pretty-print.h.
6231 * tree-vrp.c: Include tree-pretty-print.h and
6232 gimple-pretty-print.h.
6233 * value-prof.c: Include tree-pretty-print.h and
6234 gimple-pretty-print.h.
6235 * var-tracking.c: Include tree-pretty-print.h.
6236 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
6237 (tree-diagnostic.o): New dependencies.
6238 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
6239 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
6240 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
6241 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
6242 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
6243 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
6244 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
6245 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
6246 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
6247 tree-ssa-address.o, tree-ssa-loop-niter.o,
6248 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
6249 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
6250 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
6251 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
6252 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
6253 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
6254 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
6255 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
6256 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
6257 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
6258 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
6259 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
6260 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
6261 tree-switch-conversion.o, var-tracking.o, value-prof.o,
6262 cfgexpand.o, pretty-print.o): Update dependencies.
6263
6264 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
6265
6266 * tree-ssa-structalias.c: Remove tm_p.h from include.
6267
6268 2010-05-21 Jeff Law <law@redhat.com>
6269
6270 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
6271
6272 2010-05-21 Jason Merrill <jason@redhat.com>
6273
6274 * tree-eh.c (cleanup_is_dead_in): New.
6275 (lower_try_finally): Don't generate a dead cleanup region.
6276 (lower_cleanup): Likewise.
6277
6278 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6279
6280 PR debug/44223
6281 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
6282 unchain each use from the cyclic next_regno_use chain first.
6283
6284 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6285
6286 * real: Do not include gmp.h, mpfr.h, and mpc.h.
6287 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
6288 (real_value_negate, real_value_abs): New prototypes.
6289 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
6290 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
6291 new include file for interface between MPFR and REAL_VALUE_TYPE.
6292 * real.c: Include realmpfr.h.
6293 (real_arithmetic2): Remove legacy function.
6294 (real_value_negate): New.
6295 (real_value_abs): New.
6296 (mfpr_from_real, real_from_mpfr): Move from here...
6297 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
6298 * builtins.c: Include realmpfr.h.
6299 * fold-const.c: Include realmpfr.h.
6300 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
6301 (fold_negate_const): Likewise.
6302 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
6303 * toplev.c: Include realmpfr.h.
6304 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
6305 and real_value_negate.
6306 * fixed-value.c (check_real_for_fixed_mode): Likewise.
6307 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
6308 (vfp3_const_double_index): Likewise.
6309 (arm_print_operand): Likewise.
6310 * Makefile.in: Update dependencies.
6311
6312 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6313
6314 * config/s390/s390.c (override_options): Increase the default
6315 of max-completely-peel-times.
6316
6317 2010-05-21 Julian Brown <julian@codesourcery.com>
6318 Mark Mitchell <mark@codesourcery.com>
6319
6320 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
6321 sibling calls for Thumb-1.
6322 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
6323 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
6324 Thumb-2.
6325 (*call_insn, *call_value_insn): Don't use for Thumb-2.
6326 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
6327 for Thumb-2.
6328 (return): New expander.
6329 (*arm_return): New name for ARM return insn.
6330 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
6331
6332 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
6333
6334 * config.gcc (sparc64-*-rtems*): New target.
6335
6336 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6337
6338 * tree.c (build_function_decl_skip_args): Fix grammar.
6339 (build_function_type_list_1): Fix typos, adjust formatting.
6340
6341 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
6342
6343 * tree.h: Include real.h and fixed-value.h as basic datatypes.
6344 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
6345 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
6346 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
6347 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
6348 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
6349 tree-pretty-print.c, tree-loop-distribution.c,
6350 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
6351 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
6352 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
6353 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
6354 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
6355 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
6356 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
6357 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
6358 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
6359 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
6360 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
6361 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
6362 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
6363 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
6364 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
6365 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
6366 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
6367 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
6368 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
6369 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
6370 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
6371 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
6372 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
6373 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
6374 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
6375 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
6376 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
6377 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
6378 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
6379 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
6380 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
6381 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
6382 config/score/score7.c, config/score/score.c, config/arm/arm.c,
6383 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
6384 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
6385 config/bfin/bfin.c: Clean up redundant includes.
6386 * Makefile.in: Update accordingly.
6387
6388 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
6389
6390 PR middle-end/44204
6391 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
6392 statement has no arguments.
6393
6394 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
6395
6396 PR/44139
6397 * varasm.c (emutls_decl): Merge attributes to new decl.
6398
6399 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
6400
6401 PR middle-end/44101
6402 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
6403 around the uniquized constructor if its type requires a conversion.
6404
6405 2010-05-21 Jakub Jelinek <jakub@redhat.com>
6406
6407 PR debug/44205
6408 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
6409 at -O0 goto_locus of any of the incoming edges differs from
6410 goto_locus of outgoing edge, or gimple_location of any of the
6411 labels differs.
6412
6413 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
6414
6415 * ira.c (ira_non_ordered_class_hard_regs): Define.
6416 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
6417 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
6418 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
6419 cost of unaligned hard regs when allocating multi-reg pseudos.
6420
6421 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
6422
6423 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
6424 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
6425 for TARGET_NO_FLOAT.
6426 * config/mips/mips.c (mips_file_start): Expand conditional expression
6427 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
6428 (mips_override_options): Move -mno-float override -msoft-float and
6429 -mhard-float.
6430 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
6431 Condition(TARGET_SUPPORTS_NO_FLOAT).
6432 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
6433 __mips_no_float here.
6434 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
6435 (TARGET_SUPPORTS_NO_FLOAT): Define.
6436 * config/mips/sdemtk.opt: Delete.
6437
6438 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
6439
6440 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
6441
6442 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
6443
6444 PR target/43733
6445 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
6446 * configure: Regenerate.
6447 * config.in: Regenerate.
6448 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
6449 instead of sahf only for 64bit targets.
6450
6451 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6452
6453 PR debug/44178
6454 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
6455 setup_ref_regs for DEBUG_INSNs.
6456
6457 2010-05-20 Jan Hubicka <jh@suse.cz>
6458
6459 PR middle-end/44197
6460 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
6461
6462 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
6463
6464 PR bootstrap/43870
6465 * df-scan.c (df_ref_compare): Stabilize sort.
6466
6467 2010-05-20 Jakub Jelinek <jakub@redhat.com>
6468
6469 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
6470 argument. Don't use DW_OP_piece if offset is non-zero,
6471 put offset into second DW_OP_bit_piece argument.
6472 (dw_sra_loc_expr): Adjust callers. For memory expressions
6473 compute offset.
6474
6475 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
6476
6477 PR target/44202
6478 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
6479 settings for 16-bit-constant "addo" alternative.
6480
6481 2010-05-19 James E. Wilson <wilson@codesourcery.com>
6482
6483 * config/mips/mips-dsp.md (add<DSPV:mode>3,
6484 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
6485
6486 PR target/43764
6487 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
6488 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
6489 Use it.
6490
6491 2010-05-19 Joseph Myers <joseph@codesourcery.com>
6492
6493 * diagnostic.c (FLOAT, FFS): Don't undefine.
6494 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
6495 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
6496 include ordering.
6497
6498 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
6499
6500 * combine.c (propagate_for_debug): Call make_compound_operation
6501 on the source value.
6502 (try_combine): When implementing a split chosen by find_split_point,
6503 either copy i2src or set it to null. Assert that i2src is not null
6504 before substituting into CALL_INSN_FUNCTION_USAGE.
6505
6506 2010-05-19 Anatoly Sokolov <aesok@post.ru>
6507
6508 * double-int.h (double_int_ior): New function.
6509 * tree.h (build_int_cst_wide_type): Remove.
6510 * tree.c (build_int_cst_wide_type): Remove.
6511 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
6512 of build_int_cst_wide_type.
6513 * stor-layout.c (set_sizetype): (Ditto.).
6514 * dojump.c (do_jump): Use build_int_cstu instead of
6515 build_int_cst_wide_type.
6516
6517 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
6518
6519 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
6520 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
6521 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
6522 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
6523 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
6524 propagate the 'data' argument to copy_tree_r.
6525 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
6526 Propagate 'data' argument to walk_tree.
6527 (copy_if_shared): New function.
6528 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
6529 (unmark_visited): New function.
6530 (unshare_body): Call copy_if_shared instead of doing it manually.
6531 (unvisit_body): Call unmark_visited instead of doing it manually.
6532
6533 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
6534
6535 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
6536 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
6537 * hooks.c: Likewise.
6538 * target-def.h (TARGET_FOLD_BUILTIN): Define to
6539 hook_tree_tree_int_treep_bool_null.
6540 * target.h (struct gcc_target): Update signature of fold_builtin
6541 field.
6542 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
6543 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
6544 instead of the call expression.
6545 (fold_builtin_call_array): Pass n and argarray directly.
6546 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
6547 consing a list.
6548 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
6549 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
6550 `i' and use it in place of `arity'.
6551 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
6552 Dereference `args' directly.
6553 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
6554
6555 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6556
6557 * doc/sourcebuild.texi (Effective-Target Keywords): Document
6558 3dnow, sse3, sse2.
6559 (Directives): Document optional dg-require-effective-target
6560 selector.
6561
6562 2010-05-19 Richard Guenther <rguenther@suse.de>
6563
6564 PR lto/44196
6565 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
6566
6567 2010-05-19 Richard Guenther <rguenther@suse.de>
6568
6569 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
6570 * common.opt (fwhopr=): New.
6571 * opts.c (common_handle_option): Handle OPT_fwhopr.
6572 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
6573 * collect2.c (main): Match -fwhopr*.
6574 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
6575 Execute ltrans stage in parallel when jobs is bigger than 1.
6576
6577 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6578
6579 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
6580 pentiumpro on Solaris 8/x86 with Sun as.
6581 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
6582 hidden alias bug.
6583 (gcc_cv_as_ix86_quad): Check for .quad directive.
6584 * configure: Regenerate.
6585 * config.in: Regenerate.
6586 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
6587
6588 2010-05-19 Martin Jambor <mjambor@suse.cz>
6589
6590 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
6591 also for indirect edges. Actual printing moved...
6592 (ipa_print_node_jump_functions_for_edge): ...here.
6593 (ipa_compute_jump_functions): Renamed to
6594 ipa_compute_jump_functions_for_edge and made static.
6595 (ipa_compute_jump_functions): New function.
6596 (make_edge_direct_to_target): Check if the number of arguments on
6597 the newly direct edge is the same as the number of parametrs of
6598 the callee.
6599 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
6600 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
6601 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
6602 analysis functions unconditionally, call the new
6603 ipa_analyze_params_uses on the node instead of every edge.
6604
6605 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
6606
6607 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
6608 to tree.
6609 (dump_mem_ref): Adopt debug code to handle a tree as step. This
6610 also checks for a constant int vs. non-constant but
6611 loop-invariant steps.
6612 (find_or_create_group): Change the sort algorithm to only consider
6613 steps that are constant ints.
6614 (idx_analyze_ref): Adopt code to handle a tree instead of a
6615 HOST_WIDE_INT for step.
6616 (gather_memory_references_ref): Handle tree instead of int and be
6617 prepared to see a NULL_TREE.
6618 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
6619 prefetches if the step cannot be calculated at compile time.
6620 (issue_prefetch_ref): Issue prefetches for non-constant but
6621 loop-invariant steps.
6622
6623 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6624
6625 Revert:
6626 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6627
6628 * tree.h (build_call_list): Remove.
6629 * tree.c (build_call_list): Remove.
6630
6631 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
6632
6633 * tree.h (build_call_list): Remove.
6634 * tree.c (build_call_list): Remove.
6635
6636 2010-05-18 Jan Hubicka <jh@suse.cz>
6637
6638 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
6639
6640 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
6641
6642 PR rtl-optimization/43332
6643 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
6644
6645 2010-05-18 Anatoly Sokolov <aesok@post.ru>
6646
6647 * tree.h (build_int_cstu): Implement as static inline.
6648 * tree.c (build_int_cstu): Remove function.
6649 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
6650 sign extended.
6651
6652 2010-05-18 Richard Guenther <rguenther@suse.de>
6653
6654 PR lto/44143
6655 * lto-wrapper.c (verbose): New variable. Initialize from -v.
6656 (debug): Initialize from -save-temps.
6657 (collect_execute): Print command-line when verbose.
6658 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
6659 for ltrans invocation. Produce -dumpbase flag again.
6660 (process_args): Remove.
6661 (main): Simplify.
6662 * collect2.c (maybe_run_lto_and_relink): Only pass object
6663 files to lto-wrapper.
6664 * gcc.c (LINK_COMMAND_SPEC): Likewise.
6665
6666 2010-05-18 Jan Hubicka <jh@suse.cz>
6667
6668 * opts.c (decode_options): Do not disable whopr at ipa_cp.
6669 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
6670
6671 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6672
6673 PR lto/44184
6674 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
6675 in a GIMPLE_ASM.
6676 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
6677 in a GIMPLE_ASM.
6678
6679 2010-05-18 Jakub Jelinek <jakub@redhat.com>
6680
6681 PR debug/41371
6682 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
6683 rtx_equal_p inline.
6684
6685 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
6686
6687 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
6688 lto-macho as lto_binary_reader.
6689
6690 * darwin.c (darwin_asm_named_section): Do not add assembler comment
6691 after .section directive; just print it before the directive instead.
6692
6693 2010-05-17 Jan Hubicka <jh@suse.cz>
6694
6695 * cgraph.c (cgraph_create_virtual_clone): Only check
6696 versionable_function_p when not in wpa and checking is enabled.
6697 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
6698 there are no more functions to materialize.
6699
6700 2010-05-17 Jan Hubicka <jh@suse.cz>
6701
6702 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
6703 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
6704 New functions.
6705 (output_cgraph): Call output_cgraph_opt_summary.
6706 (input_cgrpah): Call input_cgraph_opt_summary.
6707 (output_cgraph_opt_summary_p, output_node_opt_summary,
6708 input_node_opt_summary, input_cgraph_opt_section): New functions.
6709 * lto-section-in.c (lto_section_name): Add cgraphopt.
6710 * tree-inline.c (tree_function_versioning): Handle parm_num.
6711 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
6712 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
6713
6714 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6715
6716 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
6717 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
6718 the insn to prefetch ratio heuristic to loops with known trip count.
6719
6720 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
6721
6722 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
6723 (schedule_prefetches): Do not generate a prefetch if the unroll factor
6724 is far from what is required by the prefetch.
6725
6726 2010-05-17 Jan Hubicka <jh@suse.cz>
6727
6728 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
6729 (ipcp_estimate_growth): Likewise.
6730 (ipcp_const_param_count): Likewise.
6731 (ipcp_insert_stage): Likewise.
6732 * ipa-prop.c (visit_load_for_mod_analysis): New function.
6733 (visit_store_addr_for_mod_analysis): Set used flag.
6734 (ipa_detect_param_modifications): Set used flag for SSE params;
6735 update use of walk_stmt_load_store_addr_ops.
6736 (ipa_print_node_params): Print used flag.
6737 (ipa_write_node_info): Stream used flag.
6738 (ipa_read_node_info): Likewise.
6739 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
6740 (ipa_is_param_used): New function.
6741 (lto_ipa_fixup_call_notes): Remove unused declaration.
6742
6743 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6744
6745 PR target/44074
6746 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
6747 * configure: Regenerate.
6748 * config.in: Regenerate.
6749 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
6750 !HAVE_AS_IX86_REP_LOCK_PREFIX.
6751 Don't emit whitespace.
6752 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
6753 (*rep_movsi): Likewise.
6754 (*rep_movsi_rex64): Likewise.
6755 (*rep_movqi): Likewise.
6756 (*rep_movqi_rex64): Likewise.
6757 (*rep_stosdi_rex64): Likewise.
6758 (*rep_stossi): Likewise.
6759 (*rep_stossi_rex64): Likewise.
6760 (*rep_stosqi): Likewise.
6761 (*rep_stosqi_rex64): Likewise.
6762 (*cmpstrnqi_nz_1): Use {%;} after repz.
6763 (*cmpstrnqi_nz_rex_1): Likewise.
6764 (*cmpstrnqi_1): Likewise.
6765 (*cmpstrnqi_rex_1): Likewise.
6766 (*strlenqi_1): Use {%;} after repnz.
6767 (*strlenqi_rex_1): Likewise.
6768 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
6769 (*sync_compare_and_swap<mode>): Likewise.
6770 (sync_double_compare_and_swap<mode>): Likewise.
6771 (*sync_double_compare_and_swapdi_pic): Likewise.
6772 (sync_old_add<mode>): Likewise.
6773 (sync_add<mode>): Likewise.
6774 (sync_sub<mode>): Likewise.
6775 (sync_<code><mode>): Likewise.
6776
6777 2010-05-17 Martin Jambor <mjambor@suse.cz>
6778
6779 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
6780 otr_token and polymorphic.
6781 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
6782 (cgraph_clone_edge): Copy the above fields.
6783 * tree.c (get_binfo_at_offset): New function.
6784 * tree.h (get_binfo_at_offset): Declare.
6785 * ipa-prop.h (enum jump_func_type): Added known_type jump function
6786 type, reordered items, updated comments.
6787 (union jump_func_value): Added base_type field, reordered fields.
6788 (enum ipa_lattice_type): Moved down in the file.
6789 (struct ipa_param_descriptor): New field polymorphic.
6790 (ipa_is_param_polymorphic): New function.
6791 * ipa-prop.c: Include gimple.h and gimple-fold.h.
6792 (ipa_print_node_jump_functions): Print known type jump functions.
6793 (compute_complex_pass_through): Renamed to...
6794 (compute_complex_assign_jump_func): this.
6795 (compute_complex_ancestor_jump_func): New function.
6796 (compute_known_type_jump_func): Likewise.
6797 (compute_scalar_jump_functions): Create known type and complex ancestor
6798 jump functions.
6799 (ipa_note_param_call): New parameter polymorphic, set the corresponding
6800 flag in the call note accordingly.
6801 (ipa_analyze_call_uses): Renamed to...
6802 (ipa_analyze_indirect_call_uses): this. New parameter target, define
6803 variable var only in the block where it is used.
6804 (ipa_analyze_virtual_call_uses): New function.
6805 (ipa_analyze_call_uses): Likewise.
6806 (combine_known_type_and_ancestor_jfs): Likewise.
6807 (update_jump_functions_after_inlining): Implemented handling of a
6808 number of new jump function types combination.
6809 (print_edge_addition_message): Removed.
6810 (make_edge_direct_to_target): New function.
6811 (try_make_edge_direct_simple_call): Likewise.
6812 (try_make_edge_direct_virtual_call): Likewise.
6813 (update_call_notes_after_inlining): Renamed to...
6814 (update_indirect_edges_after_inlining): this. Moved edge creation for
6815 indirect calls to try_make_edge_direct_simple_call, also calls
6816 try_make_edge_direct_virtual_call for virtual calls.
6817 (ipa_print_node_params): Changed the header message.
6818 (ipa_write_jump_function): Stream also known type jump functions.
6819 (ipa_read_jump_function): Likewise.
6820 (ipa_write_indirect_edge_info): Stream new fields in
6821 cgraph_indirect_call_info.
6822 (ipa_read_indirect_edge_info): Likewise.
6823 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
6824 GIMPLE_FOLD_H.
6825
6826 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6827
6828 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
6829
6830 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6831
6832 * tree.h (CALL_EXPR_ARGS): Delete.
6833 (call_expr_arglist): Delete.
6834 * tree.c (call_expr_arglist): Delete.
6835 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
6836 targetm.fold_builtin.
6837 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
6838 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
6839 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
6840 arglist parameter. Use CALL_EXPR_ARG.
6841 (picochip_expand_builtin_3op): Likewise.
6842 (picochip_expand_builtin_2opvoid): Likewise.
6843 (picochip_expand_array_get): Likewise.
6844 (picochip_expand_array_put): Likewise.
6845 (picochip_expand_array_testport): Likewise.
6846 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
6847 rather than arglist.
6848 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
6849 CALL_EXPR_ARGS.
6850 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
6851 than TREE_VALUE and TREE_CHAIN.
6852 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6853 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
6854 the arglist.
6855
6856 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6857
6858 PR bootstrap/42347
6859 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
6860 to have no fallthru edge.
6861
6862 PR middle-end/44102
6863 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
6864 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
6865 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
6866 add BARRIER after previous bb if needed.
6867
6868 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
6869
6870 * tree.c (build_function_type_list_1): Remove bogus assert condition.
6871
6872 2010-05-17 Alan Modra <amodra@gmail.com>
6873
6874 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
6875 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
6876 with copy_reg rtx param.
6877 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
6878 Correct cases where code for ABI_V4 did not initialise the reg
6879 used to access frame. Also leave frame_reg_rtx as sp for large
6880 frames that save no regs.
6881
6882 2010-05-17 Martin Jambor <mjambor@suse.cz>
6883
6884 PR middle-end/44133
6885 * tree-sra.c (create_access_replacement): New parameter rename, mark
6886 the replaement for renaming only when it is true.
6887 (get_access_replacement): Pass true in the rename parameter of
6888 create_access_replacement.
6889 (get_unrenamed_access_replacement): New function.
6890 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
6891 replacement declaration from it.
6892
6893 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
6894
6895 * function.c (try_fit_stack_local, add_frame_space): New static
6896 functions.
6897 (assign_stack_local_1): Use them. Look for opportunities to use
6898 space previously wasted on alignment.
6899 * function.h (struct frame_space): New.
6900 (struct rtl_data): Add FRAME_SPACE_LIST member.
6901 * reload1.c (something_was_spilled): New static variable.
6902 (alter_reg): Set it.
6903 (reload): Test it in addition to testing if the frame size changed.
6904
6905 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
6906
6907 * config/s390/s390.c: Define sane prefetch settings and activate
6908 flag_prefetch_loop_arrays on -O3.
6909 * config/s390/s390.h: Declare that read can use write prefetch.
6910
6911 2010-05-17 Jakub Jelinek <jakub@redhat.com>
6912
6913 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
6914 build.
6915
6916 2010-05-16 Jan Hubicka <jh@suse.cz>
6917
6918 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
6919 function body; do not check stdarg field of struct function.
6920
6921 2010-05-16 Jan Hubicka <jh@suse.cz>
6922
6923 * cgraph.c (dump_cgraph_node): Dump versionable flag.
6924 * cgraph.h (cgraph_local_info): Add versionable flag.
6925 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
6926 (ipcp_versionable_function_p): Use it.
6927 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
6928 versionable flag.
6929
6930 2010-05-16 Jan Hubicka <jh@suse.cz>
6931
6932 * cgraph.c (cgraph_clone_node): Take decl argument and insert
6933 clone into hash when it is different from orig.
6934 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
6935 * cgraph.h (cgraph_clone_node): Update prototype.
6936 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
6937 (lto_cgraph_encoder_delete): Delete body map.
6938 (lto_cgraph_encoder_size): Move to header.
6939 (lto_cgraph_encoder_encode_body_p,
6940 lto_set_cgraph_encoder_encode_body): New.
6941 (lto_output_node): Do not take written_decls argument; output clone_of
6942 pointer.
6943 (add_node_to): Add include_body_argument; call
6944 lto_set_cgraph_encoder_encode_body on master of the clone.
6945 (add_references): Update use of add_node_to.
6946 (compute_ltrans_boundary): Likewise.
6947 (output_cgraph): Do not create written_decls bitmap.
6948 (input_node): Take nodes argument; stream in clone_of correctly.
6949 (input_cgraph_1): Update use of input_node.
6950 * lto-streamer-out.c (lto_output): Use encoder info to decide
6951 what bodies to output.
6952 * ipa-inline.c (cgraph_clone_inlined_nodes,
6953 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
6954 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
6955 (lto_cgraph_encoder_size): Define here.
6956 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
6957 Declare.
6958
6959 2010-05-16 Richard Guenther <rguenther@suse.de>
6960
6961 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
6962 -fipa-type-escape.
6963 * ipa-type-escape.c (gate_type_escape_vars): Run when
6964 -fipa-struct-reorg runs.
6965 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
6966 * common.opt (fipa-type-escape): Remove.
6967
6968 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
6969
6970 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
6971 (decode_options): Likewise.
6972 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
6973
6974 2010-05-16 Jan Hubicka <jh@suse.cz>
6975
6976 * ipa.c (function_and_variable_visibility): Also bring local all
6977 aliases.
6978
6979 2010-05-16 Richard Guenther <rguenther@suse.de>
6980
6981 * alias.c (nonoverlapping_memrefs_p): Remove use of
6982 IPA type-escape information.
6983
6984 2010-05-16 Joseph Myers <joseph@codesourcery.com>
6985
6986 * c-common.c (c_common_reswords): Add _Static_assert for C.
6987 * c-parser.c (c_token_starts_declaration,
6988 c_parser_next_token_starts_declaration,
6989 c_parser_static_assert_declaration_no_semi,
6990 c_parser_static_assert_declaration): New.
6991 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
6992 Handle static assertions if static_assert_ok.
6993 (c_parser_external_declaration, c_parser_declaration_or_fndef,
6994 c_parser_compound_statement_nostart, c_parser_label,
6995 c_parser_for_statement, c_parser_objc_methodprotolist,
6996 c_parser_omp_for_loop): All callers of
6997 c_parser_declaration_or_fndef changed.
6998 (c_parser_struct_declaration): Handle static assertions.
6999 (c_parser_compound_statement_nostart): Use
7000 c_parser_next_token_starts_declaration and
7001 c_token_starts_declaration to detect start of declarations.
7002 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
7003 Likewise.
7004
7005 2010-05-16 Anatoly Sokolov <aesok@post.ru>
7006
7007 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7008 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7009 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7010 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7011 (mmix_function_outgoing_value): Rename to...
7012 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
7013 (mmix_function_value_regno_p): Make static.
7014 (mmix_libcall_value): New function.
7015 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
7016 mmix_function_value_regno_p): Remove declaration.
7017
7018 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
7019
7020 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
7021 BUILT_IN_ALLOCA if stack checking is enabled.
7022
7023 2010-05-16 Richard Guenther <rguenther@suse.de>
7024
7025 * var-tracking.c (vars_copy_1): Inline ...
7026 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
7027 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
7028 (variable_merge_over_cur): Adjust. Merge asserts.
7029 (variable_merge_over_src): Likewise.
7030 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
7031 (variable_post_merge_new_vals): Merge asserts.
7032 (variable_post_merge_perm_vals): Likewise.
7033 (find_mem_expr_in_1pdv): Likewise.
7034 (dataflow_set_different_value): Remove.
7035 (onepart_variable_different_p): Merge asserts.
7036 (variable_different_p): Likewise.
7037 (dataflow_set_different_1): Inline ...
7038 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
7039 (emit_notes_for_differences_1): Merge asserts.
7040
7041 2010-05-16 Richard Guenther <rguenther@suse.de>
7042
7043 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
7044 * optabs.c (libfunc_decl_hash): Likewise.
7045 * varasm.c (emutls_decl): Likewise.
7046
7047 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
7048
7049 * c-decl.c: Don't include gimple.h.
7050 (merge_decls): Do not copy gimple_body.
7051
7052 2010-05-15 Jason Merrill <jason@redhat.com>
7053
7054 * c.opt: Add -fnothrow-opt.
7055
7056 2010-05-15 Jan Hubicka <jh@suse.cz>
7057
7058 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
7059 analyzed.
7060 * passes.c (ipa_write_summaries): Write all analyzed nodes.
7061
7062 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
7063
7064 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
7065 * Makefile.in: Add it.
7066 Fix all other Makefile dependencies for changes below.
7067 * tree.h: Include it instead of defining VEC primitives here.
7068 * gimple.h: Likewise.
7069 * rtl.h: Likewise.
7070 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
7071 * except.h: Include vecir.h, break dependence on tree.h.
7072
7073 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
7074 Move from here...
7075 * tree-iterator.c: ...to here.
7076 * tree-iterator.h: Fix file introduction comment. Add extern markers.
7077
7078 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
7079 tm_p.h.
7080 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
7081 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
7082 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
7083 tree-mudflap.h, and target.h.
7084 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
7085 predict.h, tree-inline.h, gimple.h, and langhooks.h.
7086 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
7087 Add FIXME for why gimple.h is still included (should be unnecessary
7088 since GCC 4.5 gimplification unit-at-a-time).
7089 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
7090 * c-pragma.c: Add FIXME for why function.h needs to be included just
7091 for cfun, at front-end level.
7092 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
7093 Do not include ggc.h, but include vecprim.h for VEC(char).
7094 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
7095 Explain why target.h is included.
7096 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
7097 Explain why gimple.h is included.
7098 * c-ppoutput.c: Do not include tm.h.
7099 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
7100 * c-parses.c: Explain why rtl.h is included, and that this (and only
7101 this) is also why tm.h must be included.
7102 Do not include except.h.
7103 * c-lang.c: Do not include ggc.h.
7104
7105 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
7106
7107 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
7108
7109 2010-05-15 Joseph Myers <joseph@codesourcery.com>
7110
7111 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
7112 unions by default if those structs and unions have no tags. Do
7113 not condition anonymous struct and unions handling on flag_iso.
7114 Allow anonymous structs and unions for C1X.
7115 (finish_struct): Do not diagnose lack of named fields when
7116 anonymous structs and unions present for C1X. Accept flexible
7117 array members in structure with anonymous structs or unions but no
7118 directly named fields.
7119 * doc/extend.texi (Unnamed Fields): Update.
7120
7121 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
7122
7123 * gimple.h (compare_field_offset): Rename into...
7124 (gimple_compare_field_offset): ...this.
7125 * gimple.c (compare_field_offset): Rename into...
7126 (gimple_compare_field_offset): ...this. Compare the full access if
7127 the offset is self-referential.
7128 (gimple_types_compatible_p): Adjust for above renaming.
7129 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
7130 DECL_NONADDRESSABLE_P flag of fields before merging them.
7131
7132 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
7133
7134 * tree.h (ctor_to_list): Delete.
7135 * tree.c (ctor_to_list): Delete.
7136
7137 2010-05-15 Jan Hubicka <jh@suse.cz>
7138
7139 * ipa-reference.c: Include toplev.h
7140 (is_proper_for_analysis): Only add to all_module_statics
7141 if it is allocated.
7142 (write_node_summary_p, stream_out_bitmap,
7143 ipa_reference_write_optimization_summary,
7144 ipa_reference_read_optimization_summary): New.
7145 (struct ipa_opt_pass_d pass_ipa_reference): Add
7146 optimization summary streaming.
7147 * lto-cgraph.c (referenced_from_this_partition_p,
7148 reachable_from_this_partition_p): New functions.
7149 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
7150 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
7151 * opts.c (decode_options): Enable ipa_reference.
7152 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
7153 * lto-streamer.h (referenced_from_this_partition_p,
7154 reachable_from_this_partition_p): Declare.
7155
7156 2010-05-15 Richard Guenther <rguenther@suse.de>
7157
7158 PR tree-optimization/44038
7159 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
7160 taking the address of a V_C_E of a constant.
7161
7162 2010-05-14 Jan Hubicka <jh@suse.cz>
7163
7164 * tree.h (memory_identifier_string): Remove.
7165 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
7166 (ipa_reference_global_vars_info_d): Remove statics_not_read and
7167 statics_not_written.
7168 (ipa_reference_optimization_summary_d): New structure.
7169 (ipa_reference_optimization_summary_t): New type and vector.
7170 (ipa_reference_vars_info_d): Embedd structures instead of using
7171 pointers.
7172 (reference_vars_to_consider): Remove out of GGC space.
7173 (module_statics_escape): Remove.
7174 (global_info_obstack): Rename to ...
7175 (optimization_summary_obstack): ... this one.
7176 (initialization_status_t): Remove.
7177 (memory_identifier_string): Remove.
7178 (get_reference_vars_info): Fix indenting.
7179 (set_reference_vars_info): Likewise.
7180 (get_reference_optimization_summary): New.
7181 (set_reference_optimization_summary): New.
7182 (get_global_reference_vars_info): Remove.
7183 (ipa_reference_get_read_global): Remove.
7184 (ipa_reference_get_written_global): Remove.
7185 (ipa_reference_get_not_read_global): Update.
7186 (ipa_reference_get_not_written_global): Update.
7187 (is_proper_for_analysis): Outlaw addressable.
7188 (propagate_bits): Update for new datastructures.
7189 (analyze_variable): Remove.
7190 (init_function_info): Update for new datastructures.
7191 (clean_function_local_data): Remove.
7192 (clean_function): Remove.
7193 (copy_global_bitmap): Use optimizations_summary_obstack.
7194 (duplicate_node_data): Duplicate optimization summary only.
7195 (remove_node_data): Remove optimization summary only.
7196 (generate_summary): Do not analyze variables; do not compute
7197 module_statics_escape; do not prune solutions by it.
7198 (read_write_all_from_decl): Fix typos in comments.
7199 (propagate): Doscover readonly and nonaddressable first;
7200 update for new datastructures; share global bitmaps.
7201 * ipa-reference.h (ipa_reference_get_read_global,
7202 ipa_reference_get_written_global): Remove.
7203 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
7204 * Makefile.in: Remove ipa-refereference from GT files.
7205
7206 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7207
7208 PR debug/44112
7209 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
7210 for all SYMBOL_REF_DECLs.
7211
7212 2010-05-14 Jan Hubicka <jh@suse.cz>
7213
7214 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
7215 (varpool_all_refs_explicit_p): New inline function.
7216 * ipa-reference.c: Update comment.
7217 (module_statics_written): Remove.
7218 (get_static_decl): Remove.
7219 (ipa_init): Do not initialize module_statics_written.
7220 (analyze_function): Likewise.
7221 (generate_summary): Likewise; do not compute module_statics_readonly
7222 and do not update variable flags.
7223 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
7224 * ipa.c: Inlucde flags.h
7225 (cgraph_local_node_p): New.
7226 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
7227 promote functions to local.
7228 (ipa_discover_readonly_nonaddressable_vars): New function.
7229 (function_and_variable_visibility): Use cgraph_local_node_p.
7230 * varpool.c (varpool_finalize_decl): Set force_output for
7231 DECL_PRESERVE_P vars.
7232
7233 2010-05-14 Jan Hubicka <jh@suse.cz>
7234
7235 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
7236
7237 2010-05-14 Richard Guenther <rguenther@suse.de>
7238
7239 PR tree-optimization/44119
7240 * tree-ssa-pre.c (eliminate): Properly mark replacement of
7241 a PHI node necessary.
7242
7243 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
7244
7245 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
7246
7247 2010-05-14 Jason Merrill <jason@redhat.com>
7248
7249 PR c++/44127
7250 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
7251 (gimple_call_set_nothrow): New.
7252 * gimple.c (gimple_build_call_from_tree): Call it.
7253 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
7254
7255 PR c++/44127
7256 * gimplify.c (gimplify_seq_add_stmt): No longer static.
7257 * gimple.h: Declare it.
7258 * gimple.c (gimple_build_eh_filter): No ops.
7259
7260 2010-05-14 Jan Hubicka <jh@suse.cz>
7261
7262 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
7263 nodes already in queue.
7264 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
7265 re-enqueueing node.
7266
7267 2010-05-14 Jakub Jelinek <jakub@redhat.com>
7268
7269 PR debug/44136
7270 * cfgexpand.c (expand_debug_expr): If non-memory op0
7271 has BLKmode, return NULL.
7272
7273 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
7274
7275 * config.gcc: Add support for --with-cpu option for bdver1.
7276 * config/i386/i386.h (TARGET_BDVER1): New macro.
7277 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
7278 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7279 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
7280 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
7281 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
7282 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
7283 (processor_type): Add PROCESSOR_BDVER1.
7284 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
7285 processor_type in config/i386/i386.h.
7286 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
7287 movaps <reg, reg> instead of movapd <reg, reg> when replacing
7288 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
7289 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
7290 to emit packed xor instead of packed double/packed integer
7291 xor for SSE and AVX when moving a zero value.
7292 * config/i386/sse.md: Add check for
7293 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
7294 movapd/movdqa for SSE and AVX.
7295 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
7296 single logical operations i.e and, or and xor instead of packed double
7297 logical operations for SSE and AVX.
7298 * config/i386/i386-c.c (ix86_target_macros_internal):
7299 Add PROCESSOR_BDVER1.
7300 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
7301 (has_fma4, has_xop): New.
7302 * config/i386/i386.c (bdver1_cost): New variable.
7303 (m_BDVER1): New macro.
7304 (m_AMD_MULTIPLE): Add m_BDVER1.
7305 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
7306 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
7307 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
7308 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
7309 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
7310 x86_tune_sse_partial_reg_dependency,
7311 x86_tune_sse_unaligned_load_optimal,
7312 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
7313 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
7314 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
7315 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
7316 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
7317 Enable/disable for bdver1.
7318 (processor_target_table): Add bdver1_cost.
7319 (cpu_names): Add bdver1.
7320 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
7321 processor_alias_table.
7322 (ix86_expand_vector_move_misalign): Change.
7323 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
7324 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
7325 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
7326 of movupd/movdqu for SSE and AVX.
7327 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
7328 (ix86_tune_adjust_cost): Add code for bdver1.
7329 (standard_sse_constant_opcode): Add check for
7330 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
7331 of packed double xor for SSE and AVX.
7332
7333 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
7334
7335 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
7336 result to unsigned.
7337
7338 2010-05-14 Tristan Gingold <gingold@adacore.com>
7339
7340 * toplev.c (default_debug_hooks): Remove this variable.
7341 (process_options): Remove assignments to default_debug_hooks.
7342
7343 2010-05-14 Martin Jambor <mjambor@suse.cz>
7344
7345 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
7346 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
7347 * langhooks.h (struct lang_hooks_for_decls): Removed field
7348 fold_obj_type_ref.
7349 * tree.c (free_lang_data): Remove assignment to
7350 lang_hooks.fold_obj_type_ref.
7351 * tree.def (OBJ_TYPE_REF): Update comment.
7352
7353 2010-05-14 Richard Guenther <rguenther@suse.de>
7354
7355 PR tree-optimization/44124
7356 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
7357
7358 2010-05-14 Alan Modra <amodra@gmail.com>
7359
7360 PR target/44075
7361 * config/rs6000/rs6000.c (struct machine_function): Reorder
7362 fields for better packing. Add lr_save_state.
7363 (rs6000_ra_ever_killed): Return lr_save_state if set.
7364 (rs6000_emit_eh_reg_restore): Set lr_save_state.
7365
7366 2010-05-13 Jan Hubicka <jh@suse.cz>
7367
7368 * varpool.c (decide_is_variable_needed): Drop code checking
7369 TREE_SYMBOL_REFERENCED.
7370
7371 2010-05-13 Jan Hubicka <jh@suse.cz>
7372
7373 * final.c (output_addr_const): Do not call mark_decl_referenced.
7374 * cgraphunit.c (process_function_and_variable_attributes): Use
7375 mark_needed_node dirrectly.
7376 (assemble_thunk): Do not call mark_decl_referenced.
7377
7378 2010-05-13 Anatoly Sokolov <aesok@post.ru>
7379
7380 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
7381
7382 2010-05-13 Jeff Law <law@redhat.com>
7383
7384 * ira-conflicts.c (print_allocno_conflicts): New function broken out
7385 from...
7386 (print_conflicts): Call print_allocno_conflicts.
7387
7388 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7389
7390 PR debug/44104
7391 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
7392 if it is NULL.
7393
7394 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
7395
7396 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
7397 t-mingw-w64 or t-mingw-w32 for multilib configuration.
7398 * config/i386/t-mingw-w32: New.
7399 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
7400
7401 2010-05-13 Martin Jambor <mjambor@suse.cz>
7402
7403 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
7404 gimple-fold.c).
7405 * gimple-fold.c (get_base_binfo_for_type): New function.
7406 (gimple_get_relevant_ref_binfo): Likewise.
7407 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7408 (gimple_fold_obj_type_ref): Likewise.
7409 (fold_gimple_call): Simplify condition for folding virtual calls
7410 and call gimple_fold_obj_type_ref.
7411 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
7412 (gimple_fold_obj_type_ref_known_binfo): Likewise.
7413
7414 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
7415
7416 * config/rs6000/rs6000-protos.h
7417 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
7418 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
7419 (rs6000_debug_mode_dependent_address)
7420 (rs6000_mode_dependent_address_ptr): Likewise.
7421
7422 2010-05-13 Jakub Jelinek <jakub@redhat.com>
7423
7424 PR debug/43983
7425 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
7426 by SRA.
7427 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
7428 * tree-sra.c (create_access_replacement): Call unshare_expr before
7429 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
7430 * dwarf2out.c: Include tree-flow.h.
7431 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
7432 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
7433 Handle DW_OP_bit_piece.
7434 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
7435 construct_piece_list, adjust_piece_list): New functions.
7436 (add_var_loc_to_decl): Handle SRA optimized variables.
7437 Adjust for var_loc_note to loc field renaming.
7438 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
7439 in VAR_LOCATION note.
7440 (new_loc_descr_op_bit_piece): New function.
7441 (dw_sra_loc_expr): New function.
7442 (dw_loc_list): Use it. Don't handle the last range after the
7443 loop, handle it inside of the loop. Adjust for var_loc_note
7444 to loc field renaming.
7445 (add_location_or_const_value_attribute): Only special case
7446 single entry loc lists if loc is NOTE_P. Adjust for
7447 var_loc_note to loc field renaming.
7448 (dwarf2out_var_location): Don't set newloc->var_loc_note
7449 and newloc->next here.
7450
7451 2010-05-12 Jan Hubicka <jh@suse.cz>
7452
7453 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
7454 flag.
7455 * cgraph.h (cgraph_only_called_directly_p,
7456 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
7457 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
7458 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
7459 (assemble
7460 * ipa.c (cgraph_remove_unreachable_nodes): Use
7461 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
7462 flags.
7463 * tree-inline.c (copy_bb): Check address_taken flag.
7464 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
7465 externally_visible flag.
7466
7467 2010-05-12 Jason Merrill <jason@redhat.com>
7468
7469 PR bootstrap/44048
7470 PR target/44099
7471 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
7472 * sdbout.c (plain_type_1): Likewise.
7473 * dwarf2out.c (is_base_type): Likewise.
7474 (gen_type_die_with_usage): Likewise. Generate
7475 DW_TAG_unspecified_type for any LANG_TYPE.
7476
7477 2010-05-12 Jan Hubicka <jh@suse.cz>
7478
7479 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
7480 indrect edges too.
7481 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
7482 (cgraph_clone_edge): Update.
7483 (cgraph_node_remove_callees): Remove indirect calls too.
7484 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
7485 (cgraph_create_indirect_edge): Update prototype.
7486 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
7487 is_proper_for_analysis.
7488 (add_new_function, visited_nodes, function_insertion_hook_holder,
7489 get_local_reference_vars_info, mark_address_taken, mark_address,
7490 mark_load, mark_store, check_asm_memory_clobber, check_call,
7491 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
7492 (ipa_init): Do not initialize visited_nodes;
7493 function_insertion_hook_holder.
7494 (analyze_variable): Rewrite.
7495 (analyze_function): Rewrite.
7496 (copy_local_bitmap): Remove.
7497 (duplicate_node_dat): Do not duplicate local info.
7498 (generate_summary): Simplify to only walk cgraph.
7499 (write_node_summary_p, ipa_reference_write_summary,
7500 ipa_reference_read_summary): Remove.
7501 (propagate): Do not remove function insertion;
7502 generate summary.
7503 (pass_ipa_reference): NULLify summary handling fields.
7504 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
7505 (input_edge): Input ecf_flags.
7506 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
7507 (update_indirect_edges_after_inlining): Ignore edges with unknown
7508 param.
7509
7510 2010-05-12 Sriraman Tallam <tmsriram@google.com>
7511
7512 * implicit-zee.c: New file.
7513 * tree-pass.h (pass_implicit_zee): Declare.
7514 * passes.c (init_optimization_passes): Add zee pass.
7515 * common.opt (fzee): New flag.
7516 * timevar.def (TV_ZEE): Define.
7517 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
7518 and beyond.
7519 * Makefile.in (implicit-zee.o): Add new build file.
7520
7521 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7522 Nathan Froyd <froydnj@codesourcery.com>
7523
7524 * c-common.c (sync_resolve_params): Remove write-only variable.
7525
7526 2010-05-12 Anatoly Sokolov <aesok@post.ru>
7527
7528 * target.h (struct gcc_target): Add mode_dependent_address_p field.
7529 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7530 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
7531 * targhooks.c (default_mode_dependent_address_p): New function.
7532 * targhooks.h (default_mode_dependent_address_p): Declare function.
7533 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
7534 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
7535 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
7536 target hook. Change return type to bool.
7537 * recog.h (mode_dependent_address_p): Change return type to bool.
7538
7539 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7540 Nathan Froyd <froydnj@codesourcery.com>
7541
7542 * tree-mudflap.c (build_function_type_0, build_function_type_1,
7543 build_function_type_2, build_function_type_3): Remove.
7544 (mudflap_init): Use build_function_type_list.
7545
7546 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
7547 Nathan Froyd <froydnj@codesourcery.com>
7548
7549 * coverage.c (build_fn_info_value): Call build_constructor instead of
7550 build_constructor_from_list.
7551 (build_ctr_info_value): Likewise.
7552 (build_gcov_info): Likewise.
7553
7554 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
7555
7556 * tree.c (build_constructor): Compute TREE_CONSTANT for the
7557 resultant constructor.
7558 (build_constructor_single): Don't set TREE_CONSTANT.
7559 (build_constructor_from_list): Don't compute TREE_CONSTANT.
7560
7561 2010-05-12 Jan Hubicka <jh@suse.cz>
7562
7563 * cgraph.h (struct varpool_node): Add aux.
7564 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
7565 * varpool.c (varpool_remove_node): Do not remove initializer.
7566 (varpool_reset_queue): Export.
7567 (varpool_finalize_decl): Volatile vars are forced to be output.
7568 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
7569 replaced decl.
7570 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
7571 process_references, varpool_can_remove_if_no_refs): New functions.
7572 (cgraph_remove_unreachable_nodes): Handle variables too.
7573
7574 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
7575
7576 PR target/44088
7577 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
7578
7579 2010-05-12 Jakub Jelinek <jakub@redhat.com>
7580
7581 PR middle-end/44085
7582 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
7583 change value of ORT_TASK.
7584 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
7585 (omp_notice_threadprivate_variable): New function.
7586 (omp_notice_variable): Call it for threadprivate variables.
7587 If enclosing ctx is a task, print enclosing task rather than
7588 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
7589 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
7590 if task has untied clause.
7591
7592 PR debug/42278
7593 * dwarf2out.c (base_type_die): Don't add name attribute here.
7594 (modified_type_die): Instead of sizetype use
7595 its underlying original type. If a DW_TAG_base_type doesn't
7596 have name added, add __unknown__.
7597 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
7598 always call force_type_die instead.
7599
7600 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
7601
7602 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
7603 for __stack_chk_guard.
7604
7605 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7606
7607 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
7608 don't call start_source_file debug hook here...
7609 (finish_options): ... but here, after outputting predefined and
7610 command line defines and undefs.
7611
7612 PR middle-end/44071
7613 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
7614 no fallthru edge.
7615 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
7616 optimizing away empty bb with no successors, move over its
7617 footer chain to fallthru predecessor.
7618 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
7619 (rtl_split_edge): For asm goto call patch_jump_insn even if
7620 splitting fallthru edge.
7621
7622 PR c++/44059
7623 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
7624 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
7625 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
7626 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
7627 on DW.ref.* decls.
7628
7629 PR c++/44062
7630 * c-parser.c (c_parser_expression): Mark LHS of a comma
7631 expression as read if it is a decl, handled component or
7632 COMPOUND_EXPR with that on the RHS.
7633 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
7634 if it is a decl or handled component.
7635
7636 2010-05-11 Jan Hubicka <jh@suse.cz>
7637
7638 * lto-symtab.c (lto_symtab_free): New function.
7639 * lto-streamer.h (lto_symtab_free): Declare.
7640
7641 2010-05-11 Jan Hubicka <jh@suse.cz>
7642
7643 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
7644 that if function is needed it is reachable.
7645 (lto_output_node): See if it the function is reachable or referenced.
7646 (output_cgraph): Update call of lto_output_node.
7647 * lto-streamer.h (reachable_from_other_partition_p): Declare.
7648
7649 2010-05-11 Jan Hubicka <jh@suse.cz>
7650
7651 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
7652 Mark as used.
7653
7654 2010-05-11 Jan Hubicka <jh@suse.cz>
7655
7656 PR tree-optimize/44063
7657 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
7658 queue.
7659 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
7660 limits.
7661 (estimate_function_body_sizes): Compute sizes even when disregarding.
7662
7663 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
7664
7665 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
7666
7667 2010-05-11 Jan Hubicka <jh@suse.cz>
7668
7669 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
7670 into every boundary.
7671
7672 2010-05-11 Jan Hubicka <jh@suse.cz>
7673
7674 * matrix-reorg.c (matrix_reorg): Rebuild edges.
7675
7676 2010-05-11 Jan Hubicka <jh@suse.cz>
7677
7678 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
7679 lto_streamer_cache_delete): Put nodes into heap.
7680 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
7681 heap.
7682
7683 2010-05-11 Jan Hubicka <jh@suse.cz>
7684
7685 * cgraphbuild.c (cgraph_rebuild_references): New.
7686 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
7687 out extern inlines.
7688 * cgraph.h (cgraph_rebuild_references): Declare.
7689 * tree-inline.c (tree_function_versioning): Use it.
7690 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
7691
7692 2010-05-11 Jan Hubicka <jh@suse.cz>
7693
7694 * cgraph.c: Include ipa-utils.h
7695 (cgraph_create_virtual_clone): Update references.
7696 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
7697
7698 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7699
7700 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
7701 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
7702 cache size.
7703
7704 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
7705
7706 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
7707
7708 2010-05-11 Jakub Jelinek <jakub@redhat.com>
7709
7710 * gcc.c (execute): For -### don't quote arguments that
7711 contain just alphanumerics and _/-. characters.
7712 * doc/invoke.texi: Document that change for -###.
7713
7714 PR debug/44023
7715 * df-problems.c (struct dead_debug): Add to_rescan field.
7716 (dead_debug_init): Clear to_rescan field.
7717 (dead_debug_finish): Rescan all debug insns in to_rescan
7718 bitmap and free the bitmap.
7719 (dead_debug_insert_before): Instead of rescanning debug insns
7720 immediately queue their rescanning until dead_debug_finish.
7721 (df_note_bb_compute): After dead_debug_add do continue instead
7722 of break.
7723
7724 2010-05-10 Jakub Jelinek <jakub@redhat.com>
7725
7726 PR debug/44028
7727 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
7728 clear also INSN_REG_USE_LIST.
7729
7730 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7731
7732 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
7733
7734 2010-05-10 Jan Hubicka <jh@suse.cz>
7735
7736 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
7737 commited change.
7738
7739 2010-05-10 Jan Hubicka <jh@suse.cz>
7740
7741 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
7742 Allocate encoders.
7743 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
7744 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
7745 (lto_streamer_cache_create): Init alloc pool.
7746 (lto_streamer_cache_delete): Free alloc pool.
7747 * lto-streamer.h: Include alloc pool.
7748 (lto_streamer_cache_d): Use alloc pool.
7749 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
7750
7751 2010-05-10 Jan Hubicka <jh@suse.cz>
7752
7753 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
7754 * cgraphbuild.c: Include except.h
7755 (record_type_list, record_eh_tables): New function.
7756 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
7757
7758 2010-05-10 Jan Hubicka <jh@suse.cz>
7759
7760 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
7761 __frame_dummy_init_array_entry, force_to_data): Attribute as used
7762 rather than unused.
7763
7764 2010-05-10 Michael Matz <matz@suse.de>
7765
7766 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
7767 (can_reassociate_p): Use FLOAT_TYPE_P.
7768 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
7769 (vect_force_simple_reduction): ... this.
7770 * tree-parloops.c (gather_scalar_reductions): Use
7771 vect_force_simple_reduction.
7772 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
7773 vect_is_simple_reduction, add modify argument, if true rewrite
7774 "a-b" into "a+(-b)".
7775 (vect_is_simple_reduction, vect_force_simple_reduction): New
7776 functions.
7777 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
7778
7779 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
7780 Vladimir Makarov <vmakarov@redhat.com>
7781
7782 PR rtl-optimization/44012
7783 * ira-build.c (remove_unnecessary_allocnos): Nullify
7784 regno_allocno_map of the removed allocno.
7785
7786 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7787
7788 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
7789 to /dev/null.
7790 * configure: Regenerate.
7791
7792 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7793
7794 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
7795 unused.
7796 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
7797 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
7798 support in Sun ld.
7799 * configure: Regenerate.
7800
7801 2010-05-10 Richard Guenther <rguenther@suse.de>
7802
7803 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
7804 marked if the entry identifier is marked.
7805
7806 2010-05-10 Richard Guenther <rguenther@suse.de>
7807
7808 * c-common.c (struct c_common_attributes): Add fnspec attribute.
7809 (handle_fnspec_attribute): New function.
7810 * gimple.h (gimple_call_return_flags): Declare.
7811 (gimple_call_arg_flags): Likewise.
7812 * gimple.c (gimple_call_arg_flags): New function.
7813 (gimple_call_return_flags): Likewise.
7814 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
7815 New argument flags.
7816 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
7817 return value flags.
7818 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
7819 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
7820 main work to ...
7821 (make_heapvar_for): ... this new function.
7822 (handle_rhs_call): Handle fnspec attribute argument specifiers.
7823 (handle_lhs_call): Likewise.
7824 (find_func_aliases): Adjust.
7825
7826 2010-05-10 Richard Guenther <rguenther@suse.de>
7827
7828 PR tree-optimization/44050
7829 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
7830
7831 2010-05-10 Wei Guozhi <carrot@google.com>
7832
7833 PR target/42879
7834 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
7835
7836 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7837
7838 PR c/10676
7839 * c-typeck.c (lookup_field): Take a type directly. Update
7840 recursive calls.
7841 (build_component_ref): Update call to lookup_field.
7842 (set_init_label): Use lookup_field to find initialized field.
7843 Handle returned list of fields like a sequence of designators.
7844
7845 2010-05-09 Richard Guenther <rguenther@suse.de>
7846
7847 PR middle-end/44024
7848 * fold-const.c (tree_single_nonzero_warnv_p): Properly
7849 handle &FUNCTION_DECL.
7850
7851 2010-05-09 Joseph Myers <joseph@codesourcery.com>
7852
7853 PR c/4784
7854 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
7855 structures and unions recursively.
7856 (detect_field_duplicates): Move duplicate detection with a hash to
7857 detect_field_duplicates_hash. Always use a hash if anonymous
7858 structures or unions are present.
7859 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
7860 give errors.
7861
7862 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
7863
7864 PR target/44046
7865 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
7866 detect Atom, Core 2 and Core i7.
7867
7868 2010-05-09 Richard Guenther <rguenther@suse.de>
7869
7870 * gcc.c (store_arg): Handle temporary file deletion for
7871 joined arguments.
7872
7873 2010-05-09 Richard Guenther <rguenther@suse.de>
7874
7875 PR middle-end/44043
7876 * ipa-inline.c (estimate_function_body_sizes): Return after
7877 disregarding inline limits.
7878
7879 2010-05-09 Richard Guenther <rguenther@suse.de>
7880
7881 * gcc.c (store_arg): Revert last change.
7882
7883 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
7884
7885 PR middle-end/28685
7886 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
7887 (optimize_ops_list): Call it.
7888
7889 2010-05-08 Richard Guenther <rguenther@suse.de>
7890
7891 PR tree-optimization/44030
7892 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
7893 NECESSARY flag if we propagate from a inserted expression.
7894
7895 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
7896
7897 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
7898 domain types as equal if they are both PLACEHOLDER_EXPRs.
7899
7900 2010-05-08 Richard Guenther <rguenther@suse.de>
7901
7902 * lto-wrapper.c (run_gcc): Remove linker output from
7903 command line for LTRANS invocation.
7904
7905 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7906
7907 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
7908 lto-macho as lto_binary_reader.
7909 * target.h (struct gcc_target): New hooks lto_start and lto_end.
7910 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
7911 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
7912 in lto_start and lto_end calls.
7913 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
7914 magic numbers.
7915 (scan_prog_file): Update is_elf_or_coff call.
7916 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
7917
7918 * collect2.c (main): Fix enum comparison.
7919
7920 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
7921 Add prototypes.
7922 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
7923 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
7924 and TARGET_ASM_LTO_END.
7925 * darwin.c: Include obstack.h and lto-streamer.h.
7926 (lto_section_names_offset, lto_section_names_obstack,
7927 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
7928 global variables.
7929 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
7930 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
7931 to a temporary file.
7932 (darwin_asm_lto_end): New function. Restore asm_out_file.
7933 (darwin_asm_named_section): For LTO sections, replace the name with
7934 the offset of the section name in a string table, and build this
7935 table.
7936 (darwin_file_start): Initialize global vars for LTO support.
7937 (darwin_file_end): If output to asm_out_file was redirected, append it
7938 to the proper asm_out_file here. Add the section names section.
7939
7940 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
7941
7942 * c-pragma.c (pending_weak_d, pending_weak): New.
7943 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
7944 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
7945 handle_pragma_weak): Update the uses of pending_weaks.
7946
7947 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7948
7949 PR documentation/44016
7950 * doc/standards.texi (Standards): Link to unversioned
7951 cxx0x_status.html page.
7952
7953 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
7954
7955 PR target/43708
7956 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
7957 in addition to TREE_USED, to avoid "set but unused" warnings.
7958
7959 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7960
7961 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
7962 (is_loop_prefetching_profitable): Do not insert prefetches
7963 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
7964 times the prefetch ahead distance.
7965
7966 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7967
7968 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
7969 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
7970 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
7971 the unroll_factor.
7972
7973 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
7974
7975 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
7976 a diagnostic info when the insn-to-mem ratio is too small.
7977
7978 2010-05-07 Richard Guenther <rguenther@suse.de>
7979
7980 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
7981 the linker plugin.
7982 (store_arg): Queue temp_filename for deletion instead of
7983 the whole argument.
7984
7985 2010-05-07 Richard Guenther <rguenther@suse.de>
7986
7987 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
7988 (run_gcc): Handle LTRANS phase invocation.
7989 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
7990
7991 2010-05-07 Jakub Jelinek <jakub@redhat.com>
7992
7993 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
7994 this is also meaningful on PARM_DECLs and RESULT_DECLs.
7995
7996 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7997
7998 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
7999
8000 2010-05-07 Richard Guenther <rguenther@suse.de>
8001
8002 PR tree-optimization/44020
8003 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
8004 code when PRE is not yet initialized.
8005
8006 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8007
8008 * config/mips/dbxmdebug.h: Remove.
8009 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
8010
8011 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
8012
8013 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
8014 with null pointer and also warn about ordered comparison of zero with
8015 pointer if -Wextra.
8016
8017 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8018
8019 * graphite-blocking.c
8020 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
8021 * graphite-clast-to-gimple.c
8022 (clast_to_gcc_expression): Same.
8023 (precision_for_value): Same.
8024 (precision_for_interval): Same.
8025 (gcc_type_for_interval): Same.
8026 (graphite_create_new_guard): Same.
8027 (compute_bounds_for_level): Same.
8028 (graphite_create_new_loop_guard): Same.
8029 * graphite-interchange.c
8030 (build_linearized_memory_access): Same.
8031 (pdr_stride_in_loop): Same.
8032 (memory_strides_in_loop_1): Same.
8033 (memory_strides_in_loop): Same.
8034 (extend_scattering): Same.
8035 (psct_scattering_dim_for_loop_depth): Same.
8036 (pbb_number_of_iterations): Same.
8037 * graphite-poly.h
8038 (debug_iteration_domains): Same.
8039 * graphite-ppl.c
8040 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
8041 (ppl_set_inhomogeneous_gmp): Same.
8042 (ppl_strip_loop): Same.
8043 (ppl_lexico_compare_linear_expressions): Same.
8044 (ppl_read_polyhedron_matrix): Same.
8045 (ppl_max_for_le_pointset): Same.
8046 * graphite-ppl.h
8047 (ppl_read_polyhedron_matrix): Same.
8048 (tree_int_to_gmp): Same.
8049 (gmp_cst_to_tree): Same.
8050 (ppl_set_inhomogeneous): Same.
8051 (ppl_set_inhomogeneous_tree): Same.
8052 (ppl_set_coef): Same.
8053 (ppl_set_coef_tree): Same.
8054 * graphite-sese-to-poly.c
8055 (build_pbb_scattering_polyhedrons): Same.
8056 (build_scop_scattering): Same.
8057 (scan_tree_for_params_right_scev): Same.
8058 (scan_tree_for_params): Same.
8059 (find_params_in_bb): Same.
8060 (find_scop_parameters): Same.
8061 (add_upper_bounds_from_estimated_nit): Same.
8062 (build_loop_iteration_domains): Same.
8063 (add_condition_to_domain): Same.
8064 (pdr_add_memory_accesses): Same.
8065
8066 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8067
8068 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
8069 CLooG's value_* macros to their respective mpz_* counterparts.
8070 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
8071 (graphite_create_new_loop_guard): Same.
8072 * graphite-interchange.c (build_linearized_memory_access): Same.
8073 (pdr_stride_in_loop): Same.
8074 (memory_strides_in_loop_1): Same.
8075 (1st_interchange_profitable_p): Same.
8076 * graphite-poly.c (extend_scattering): Same.
8077 (psct_scattering_dim_for_loop_depth): Same.
8078 (pbb_number_of_iterations): Same.
8079 (pbb_number_of_iterations_at_time): Same.
8080 * graphite-poly.h (new_1st_loop): Same.
8081 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
8082 (oppose_constraint): Same.
8083 (insert_constraint_into_matrix): Same.
8084 (ppl_set_inhomogeneous_gmp): Same.
8085 (ppl_set_coef_gmp): Same.
8086 (ppl_strip_loop): Same.
8087 (ppl_lexico_compare_linear_expressions): Same.
8088 (ppl_max_for_le_pointset): Same.
8089 (ppl_min_for_le_pointset): Same.
8090 (ppl_build_realtion): Same.
8091 * graphite-ppl.h (gmp_cst_to_tree): Same.
8092 (ppl_set_inhomogeneous): Same.
8093 (ppl_set_inhomogeneous_tree): Same.
8094 (ppl_set_coef): Same.
8095 (ppl_set_coef_tree): Same.
8096 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8097 (build_scop_scattering): Same.
8098 (add_value_to_dim): Same.
8099 (scan_tree_for_params_right_scev): Same.
8100 (scan_tree_for_params_int): Same.
8101 (scan_tree_for_params): Same.
8102 (find_params_in_bb): Same.
8103 (find_scop_parameters): Same.
8104 (add_upper_bounds_from_estimated_nit): Same.
8105 (build_loop_iteration_domains): Same.
8106 (create_linear_expr_from_tree): Same.
8107 (add_condition_to_domain): Same.
8108 (pdr_add_memory_accesses): Same.
8109
8110 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
8111 Jason Merrill <jason@redhat.com>
8112
8113 * c-common.c (c_common_reswords): Add nullptr.
8114 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
8115 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
8116 (gen_type_die_with_usage): Likewise.
8117 * dbxout.c (dbxout_type): Likewise.
8118 * sdbout.c (plain_type_1): Likewise.
8119
8120 2010-05-06 Jason Merrill <jason@redhat.com>
8121
8122 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
8123 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
8124 ret appropriately.
8125 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
8126
8127 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
8128 stripping WITH_SIZE_EXPR.
8129 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
8130 change.
8131
8132 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8133
8134 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
8135 list of obsolete configurations.
8136 Disabled check for obsolete configurations.
8137 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
8138 Removed support for previous versions.
8139 * config/mips/iris.h: Removed.
8140 * config/mips/iris5.h: Removed.
8141 * config/mips/iris6.h: Merged old iris.h contents.
8142 (TARGET_IRIX): Removed.
8143 (DRIVER_SELF_SPECS): Removed mabi=32.
8144 (IDENT_ASM_OP): Removed undef.
8145 (STARTFILE_SPEC): Removed mabi=32.
8146 (ENDFILE_SPEC): Likewise.
8147 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
8148 (MACHINE_TYPE): Update for IRIX 6.5.
8149 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
8150 TARGET_IRIX by TARGET_IRIX6.
8151 (mips_file_start): Likewise.
8152 (mips_output_external): Remove IRIX 5/6 O32 support.
8153 (mips_output_function_prologue): Likewise.
8154 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
8155 TARGET_IRIX6.
8156 (TARGET_CPU_CPP_BUILTINS): Likewise.
8157 (TARGET_IRIX): Removed.
8158 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
8159 (MULTILIB_DIRNAMES): Removed 32.
8160 (MULTILIB_OSDIRNAMES): Removed ../lib.
8161 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
8162 (Specific, mips-sgi-irix5): Document removal.
8163 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
8164 Remove references to older IRIX 6 releases and the O32 ABI.
8165
8166 2010-05-06 Jakub Jelinek <jakub@redhat.com>
8167
8168 PR bootstrap/43994
8169 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
8170 instead of DF_REF_REAL_REG.
8171
8172 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
8173
8174 PR target/43888
8175 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
8176 handling to still return true for x64 targets.
8177
8178 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8179
8180 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
8181
8182 2010-05-06 Jan Hubicka <jh@suse.cz>
8183
8184 PR tree-optimization/43791
8185 * ipa-inline.c (update_caller_keys): Remove bogus
8186 disregard_inline_limits check.
8187
8188 2010-05-06 Michael Matz <matz@suse.de>
8189
8190 PR tree-optimization/43984
8191 * tree-ssa-pre.c (inserted_phi_names): Remove.
8192 (inserted_exprs): Change to bitmap.
8193 (create_expression_by_pieces): Set bits, don't append to vector.
8194 (insert_into_preds_of_block): Don't handle inserted_phi_names.
8195 (eliminate): Don't look at inserted_phi_names, remove deleted
8196 insns from inserted_exprs.
8197 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
8198 (init_pre, fini_pre): Allocate and free bitmaps.
8199 (execute_pre): Insert insns on edges before elimination.
8200
8201 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
8202
8203 * tree.c (initializer_zerop): Handle STRING_CST.
8204
8205 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
8206
8207 PR 40989
8208 * doc/invoke.texi (Wimplicit): Document as C only.
8209 * opts.c (common_handle_option): Add argument kind.
8210 (handle_option): Rename as read_cmdline_option. Factor out code to...
8211 (handle_option): ... here. New.
8212 (handle_options): Rename as read_cmdline_options.
8213 (decode_options): Update call.
8214 (set_option): Use option index instead of option pointer. Classify
8215 diagnostics correctly.
8216 (enable_warning_as_error): Call handle_option.
8217 * opts.h (set_option): Update declaration.
8218 (handle_option): Declare.
8219 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
8220 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
8221 * c-opts.c (set_Wimplicit): Delete.
8222 (c_family_lang_mask): New static constant.
8223 (c_common_handle_option): Add argument kind. Use handle_option
8224 instead of set_Wimplicit.
8225 (c_common_post_options): warn_implicit and warn_implicit_int
8226 are disabled by default.
8227 * c-common.c (warn_implicit): Do not define here.
8228 * c-common.h (warn_implicit): Do not declare here.
8229 (c_common_handle_option): Update declaration.
8230 * lto-opts.c (lto_reissue_options): Update call to set_option.
8231
8232 2010-05-06 Richard Guenther <rguenther@suse.de>
8233
8234 PR tree-optimization/43571
8235 * domwalk.c (walk_dominator_tree): Walk the dominator
8236 sons in more optimal order.
8237
8238 2010-05-06 Richard Guenther <rguenther@suse.de>
8239
8240 PR tree-optimization/43934
8241 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
8242 (stmt_cost): Likewise.
8243 (extract_true_false_args_from_phi): New helper.
8244 (determine_max_movement): For PHI nodes verify we can hoist them
8245 and compute their cost.
8246 (determine_invariantness_stmt): Handle PHI nodes.
8247 (move_computations_stmt): Likewise. Hoist PHI nodes in
8248 if-converted form using COND_EXPRs.
8249 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
8250 (tree_ssa_lim): Likewise.
8251 * tree-flow.h (tree_ssa_lim): Adjust prototype.
8252 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
8253
8254 2010-05-06 Richard Guenther <rguenther@suse.de>
8255
8256 PR tree-optimization/43987
8257 * tree-ssa-structalias.c (could_have_pointers): For possibly
8258 address-taken variables force pointers to be recorded.
8259 (create_variable_info_for_1): Likewise.
8260 (push_fields_onto_fieldstack): Pass in wheter all fields
8261 must have pointers.
8262 (find_func_aliases): Query types instead of vars whether
8263 they contain pointers where appropriate.
8264
8265 2010-05-06 Jan Hubicka <jh@suse.cz>
8266
8267 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
8268 (record_reference, mark_address, mark_load, mark_store): Record
8269 references.
8270 (record_references_in_initializer): Update call of record_references.
8271 (rebuild_cgraph_edges): Remove all references before rebuiding.
8272 * cgraph.c (cgraph_create_node): Clear ref list.
8273 (cgraph_remove_node): Remove references.
8274 (dump_cgraph_node): Dump references.
8275 (cgraph_clone_node): Clone references.
8276 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
8277 (struct cgraph_node, varpool_node): Add ref_lst.
8278 * ipa-ref.c: New file.
8279 * ipa-ref.h: New file.
8280 * ipa-ref-inline.h: New file.
8281 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
8282 (referenced_from_other_partition_p): New function.
8283 (lto_output_varpool_node): Take set arugment; call
8284 referenced_from_other_partition.
8285 (lto_output_ref): New.
8286 (add_references): New.
8287 (output_refs): New.
8288 (output_cgraph): Compute boundary based on references; output refs.
8289 (output_varpool): Accept cgraph_node_set argument.
8290 (input_ref): New.
8291 (input_refs): New.
8292 (input_cgraph): Call input_refs.
8293 * lto-section-in.c (lto_section_name): Add refs.
8294 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
8295 (ipa-ref.o): New file.
8296 * varpool.c (varpool_node): Clear ipa ref list.
8297 (varpool_remove_node): Remove references.
8298 (dump_varpool_node): Dump references.
8299 (varpool_assemble_decl): Only compile finalized ones.
8300 (varpool_extra_name_alias): Initialize ref list.
8301 * lto-streamer.c (lto-get_section_name): Add .refs section.
8302 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
8303 (referenced_from_other_partition_p): Declared.
8304
8305 2010-05-06 Ira Rosen <irar@il.ibm.com>
8306
8307 PR tree-optimization/43901
8308 * tree-vect-stmts.c (vectorizable_call): Assert that vector
8309 type is not NULL if it's transformation phase, and return
8310 FALSE if it's analysis.
8311 (vectorizable_conversion, vectorizable_operation,
8312 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
8313
8314 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
8315
8316 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8317 Delete.
8318 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
8319 New define.
8320 * config/mips/mips-protos.h
8321 (mips_small_register_classes_for_mode_p): Delete prototype.
8322
8323 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
8324
8325 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
8326 * config/arm/arm.c (multiple_operation_profitable_p,
8327 compute_offset_order): New static functions.
8328 (load_multiple_sequence, store_multiple_sequence): Use them.
8329 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
8330 memory offsets, not register numbers.
8331 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
8332
8333 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
8334
8335 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
8336 (get_pending_sizes, put_pending_size, put_pending_sizes):
8337 Update the uses of pending_sizes.
8338 * c-decl.c (store_parm_decls): Likewise.
8339 * c-tree.h (struct c_arg_info): Likewise.
8340 * tree.h: Update the prototype for get_pending_sizes and
8341 put_pending_sizes.
8342
8343 2010-05-05 Jason Merrill <jason@redhat.com>
8344
8345 PR debug/43370
8346 * c-common.c (handle_aligned_attribute): Respect
8347 ATTR_FLAG_TYPE_IN_PLACE.
8348
8349 PR testsuite/43758
8350 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
8351 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8352 (TARGET_INITIALIZER): Use it.
8353 * c-common.c (attribute_takes_identifier_p): Call it.
8354 * c-common.h: Update prototype.
8355 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
8356 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
8357
8358 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8359
8360 PR debug/43950
8361 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
8362 DW_ID_down_case for Fortran compilation units.
8363
8364 2010-05-05 Jan Hubicka <jh@suse.cz>
8365
8366 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
8367 handle aliases.
8368
8369 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
8370
8371 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
8372 a variable-sized RESULT_DECL.
8373
8374 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
8375
8376 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
8377
8378 2010-05-05 Jason Merrill <jason@redhat.com>
8379
8380 PR c++/43787
8381 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
8382 returns GS_OK.
8383 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
8384
8385 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
8386 Jakub Jelinek <jakub@redhat.com>
8387
8388 PR debug/43478
8389 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
8390 (dead_debug_init, dead_debug_finish): New functions.
8391 (dead_debug_add, dead_debug_insert_before): Likewise.
8392 (df_note_bb_compute): Initialize a dead_debug object, add dead
8393 debug uses to it, insert debug bind insns before death insns,
8394 reset debug insns that refer to pending uses at the end.
8395 * rtl.h (make_debug_expr_from_rtl): New prototype.
8396 * varasm.c (make_debug_expr_from_rtl): New function.
8397
8398 2010-05-05 Jan Hubicka <jh@suse.cz>
8399
8400 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
8401 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
8402 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
8403 lto_varpool_encoder_deref, lto_varpool_encoder_size,
8404 lto_varpool_encoder_encode_initializer_p,
8405 lto_set_varpool_encoder_encode_initializer): New functions.
8406 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
8407 call output_varpool.
8408 (input_varpool_node): Do not always set analyzed.
8409 (input_cgraph_1): Return vector of cgraph nodes.
8410 (input_varpool_1): Return vector of varpools.
8411 (input_cgraph): Free the vectors.
8412 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8413 output only initializers needed.
8414 (lto_output): Only call output_cgraph.
8415 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
8416 * lto-section-out.c (lto_new_out_decl_state): Initialize
8417 state->varpool_node_encoder.
8418 * lto-streamer.h (lto_varpool_encoder_d): New.
8419 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
8420 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
8421 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
8422 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
8423 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
8424 Declare.
8425 (output_varpool, input_varpool): Remove declarations.
8426
8427 2010-05-05 Jan Hubicka <jh@suse.cz>
8428
8429 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
8430 with body can prevail.
8431
8432 2010-05-05 Jan Hubicka <jh@suse.cz>
8433
8434 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
8435 size.
8436
8437 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8438
8439 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
8440
8441 * gengtype.h (erro_at_line): Constify pos argument.
8442
8443 * gengtype.c: Include hashtab.h.
8444 (enum gc_used): Document GC_MAYBE_POINTED_TO.
8445 (error_at_line): Constify pos argument.
8446 (do_typedef): Initialize p->opt field.
8447 (get_file_gtfilename): Fix comment typo.
8448 (struct walk_type_data): Constify line field.
8449 (get_output_file_for_structure): New function.
8450 (write_local_func_for_structure): Constify orig_s argument.
8451 Use get_output_file_for_structure.
8452 (write_func_for_structure): Use get_output_file_for_structure.
8453 (INDENT): New define.
8454 (dump_pair, dump_type, dump_type_list, dump_typekind)
8455 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
8456 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
8457 functions.
8458 (seen_types): New variable.
8459 (main): New variable do_dump. Process "-d" command line option.
8460 Call dump_everything if dump requested.
8461
8462 2010-05-05 Jakub Jelinek <jakub@redhat.com>
8463
8464 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
8465 in a temporary instead of invoking the macro multiple times.
8466 (track_expr_p): Likewise.
8467
8468 2010-05-04 Neil Vachharajani <nvachhar@google.com>
8469
8470 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
8471 per new semantics.
8472 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
8473 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
8474 conditions for printing notes.
8475 * common.opt (-Wcoverage-mismatch): Allow negative, default to
8476 true, update documentation.
8477 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
8478
8479 2010-05-04 Jakub Jelinek <jakub@redhat.com>
8480
8481 PR c/43981
8482 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
8483 on dimen.
8484
8485 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8486
8487 PR target/43799
8488 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
8489 (*sse_prologue_save_insn1): Likewise.
8490 (SSE prologue save splitter): Likewise.
8491
8492 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
8493
8494 * tree.c (free_lang_data_in_one_sizepos): New inline function.
8495 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
8496 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
8497 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
8498 all decls. Call it on DECL_FIELD_OFFSET of fields.
8499 (find_decls_types_r): Follow DECL_VALUE_EXPR.
8500 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
8501
8502 2010-05-04 Martin Jambor <mjambor@suse.cz>
8503
8504 * tree-sra.c (build_access_from_expr_1): The first parameter type
8505 changed to simple tree.
8506 (build_access_from_expr): Likewise, gsi parameter was eliminated.
8507 (scan_assign_result): Renamed to assignment_mod_result, enum elements
8508 renamed as well.
8509 (build_accesses_from_assign): Removed all parameters except for a
8510 simple gimple statement. Now returns a simple bool.
8511 (scan_function): All non-analysis parts moved to separate functions
8512 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
8513 parameters and updated both callers.
8514 (sra_modify_expr): Removed parameter data.
8515 (sra_modify_function_body): New function.
8516 (perform_intra_sra): Call sra_modify_function_body to modify the
8517 function body.
8518 (replace_removed_params_ssa_names): Parameter data changed into
8519 adjustments vector.
8520 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
8521 changed the parameter dont_convert to convert with the opposite
8522 meaning.
8523 (sra_ipa_modify_assign): Parameter data changed into adjustments
8524 vector, return value changed to bool.
8525 (ipa_sra_modify_function_body): New function.
8526 (sra_ipa_reset_debug_stmts): Updated a comment.
8527 (modify_function): Use ipa_sra_modify_function_body to modify function
8528 body.
8529
8530 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
8531
8532 PR middle-end/43671
8533 * alias.c (true_dependence): Handle the same VALUE in x and mem.
8534 (canon_true_dependence): Likewise.
8535 (write_dependence_p): Likewise.
8536
8537 2010-05-04 Jan Hubicka <jh@suse.cz>
8538
8539 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
8540 * cgraphbuild.c: Include ipa-utils.h
8541 (record_reference_ctx): New struct.
8542 (record_reference): Simplify to work on initializers; not statements.
8543 (mark_address, mark_load, mark_store): New.
8544 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8545 walk PHI nodes too.
8546 (record_references_in_initializer): Update use of record_reference.
8547 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
8548 walk PHI nodes too.
8549
8550 2010-05-04 Jan Hubicka <jh@suse.cz>
8551
8552 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
8553 node will be removed anyway.
8554 (lto_varpool_replace_node): Allow also unanalyzed nodes;
8555 relink aliases of node into prevailing node.
8556 * varpool.c (varpool_remove_node): Remove aliases properly;
8557 when removing node, remove all its aliases too; remove DECL_INITIAL
8558 of removed node; ggc_free the varpool node.
8559
8560 2010-05-04 Richard Guenther <rguenther@suse.de>
8561
8562 PR tree-optimization/43879
8563 * tree-ssa-structalias.c (alias_get_name): Use
8564 DECL_ASSEMBLER_NAME if available.
8565 (create_function_info_for): Return the varinfo node.
8566 (ipa_pta_execute): Associate same-body aliases and extra names
8567 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
8568
8569 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
8570
8571 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
8572
8573 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
8574
8575 PR bootstrap/43964
8576 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
8577 only if HONOR_REG_ALLOC_ORDER is not defined.
8578
8579 2010-05-04 Richard Guenther <rguenther@suse.de>
8580
8581 PR tree-optimization/43949
8582 * tree-vrp.c (extract_range_from_binary_expr): Only handle
8583 TRUNC_MOD_EXPR.
8584
8585 2010-04-26 Jason Merrill <jason@redhat.com>
8586
8587 * c.opt (-fstrict-enums): New.
8588 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
8589
8590 2010-05-03 David Ung <davidu@mips.com>
8591 James E. Wilson <wilson@codesourcery.com>
8592
8593 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
8594 emit the trap instruction before the divide for TUNE_74K.
8595
8596 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
8597
8598 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
8599 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
8600 based on the above, for new target hook.
8601
8602 * hooks.c (hook_bool_mode_true): New generic hook.
8603 * hooks.h (hook_bool_mode_true): Add prototype.
8604
8605 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
8606 target hook.
8607 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
8608 target hook, set to hook_bool_mode_false.
8609 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
8610 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
8611 with targetm.small_register_classes_for_mode_p.
8612 (find_reusable_reload): Likewise.
8613 (combine_reloads): Likewise.
8614 * reload1.c (reload_as_needed): Likewise.
8615 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
8616 * ifcvt.c (noce_process_if_block, check_cond_move_block,
8617 dead_or_predicable): Likewise.
8618 * regmove.c (optimize_reg_copy_1): Likewise.
8619 * calls.c (prepare_call_address): Likewise.
8620 (precompute_register_parameters): Likewise.
8621
8622 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
8623 hook definition.
8624 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
8625 implementation of the hook that considers all register classes
8626 small except for SH64.
8627 (sh_override_options): Use the new hook.
8628 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
8629 Add prototype.
8630
8631 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
8632 hook definition.
8633 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
8634 implementation of the hook that considers all register classes
8635 small for THUMB1.
8636 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
8637 Add prototype.
8638
8639 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
8640 hook definition.
8641 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
8642 implementation of the hook that considers all register classes
8643 small for MIPS16.
8644 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
8645 Add prototype.
8646
8647 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
8648 hook definition.
8649 * config/m32c/m32c.h: Likewise.
8650 * config/pdp11/pdp11.h: Likewise.
8651 * config/avr/avr.h: Likewise.
8652 * config/xtensa/xtensa.h: Likewise.
8653 * config/m68hc11/m68hc11.h: Likewise.
8654 * config/mn10300/mn10300.h: Likewise.
8655 * config/mcore/mcore.h: Likewise.
8656 * config/h8300/h8300.h: Likewise.
8657 * config/bfin/bfin.h: Likewise.
8658
8659 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
8660 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
8661
8662 2010-05-03 Anatoly Sokolov <aesok@post.ru>
8663
8664 * double-int.h (tree_to_double_int): Remove macro.
8665 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
8666 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8667 (tree_to_double_int): New function.
8668 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
8669 Move ...
8670 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
8671
8672 2010-05-03 Richard Guenther <rguenther@suse.de>
8673
8674 PR tree-optimization/43971
8675 * tree-ssa-structalias.c (get_constraint_for_1): Fix
8676 constraints in the !flag_delete_null_pointer_checks case.
8677
8678 2010-05-03 Jakub Jelinek <jakub@redhat.com>
8679
8680 PR debug/43972
8681 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
8682 result mode matches original rtl mode.
8683
8684 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
8685
8686 PR target/43888
8687 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
8688
8689 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8690
8691 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
8692 when processing flag options.
8693
8694 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8695
8696 * gcov-iov.c (main): Change format string placeholder
8697 from %#08x to 0x%08x.
8698 * genchecksum.c (dosum): Change format string placeholder
8699 from %#02x to 0x%02x.
8700
8701 2010-05-02 Richard Guenther <rguenther@suse.de>
8702
8703 PR tree-optimization/43879
8704 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
8705
8706 2010-05-02 Bruno Haible <bruno@clisp.org>
8707
8708 * doc/extend.texi (Function Attributes): Fix a typo.
8709
8710 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8711
8712 Revert:
8713 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
8714 placeholder from 0x%x to %#x.
8715 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8716 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
8717 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
8718 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
8719 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
8720 * config/i386/i386.c (ix86_target_string): Ditto.
8721 * config/i386/i386.c (output_pic_addr_const): Ditto.
8722 (print_operand): Ditto.
8723
8724 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
8725
8726 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
8727 placeholder from 0x%x to %#x.
8728 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
8729 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
8730 (ASM_OUTPUT_DEBUG_DATA): Ditto.
8731 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
8732 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
8733 * optc-gen.awk: Ditto.
8734 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
8735 (HOST_WIDE_INT_PRINT_HEX): Ditto.
8736 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
8737 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
8738
8739 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8740
8741 * target.h (struct calls): Add function_value_regno_p field.
8742 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
8743 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
8744 * targhooks.c (default_function_value_regno_p): New function.
8745 * targhooks.h (default_function_value_regno_p): Declare function.
8746 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
8747 * builtins.c. (apply_result_size): (Ditto.).
8748 * combine.c. (likely_spilled_retval_p): (Ditto.).
8749 * mode-switching.c. Include 'target.h'.
8750 (create_pre_exit): Use function_value_regno_p hook.
8751 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
8752 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
8753 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
8754
8755 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
8756 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
8757 (ix86_function_value_regno_p): Declare as static, change argument
8758 type to const unsigned int.
8759 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
8760
8761 2010-05-01 Richard Guenther <rguenther@suse.de>
8762
8763 PR tree-optimization/43949
8764 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
8765 types.
8766 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
8767
8768 2010-05-01 Anatoly Sokolov <aesok@post.ru>
8769
8770 * rtl.h (CONST_DOUBLE_P): Define.
8771 (rtx_to_double_int): Declare.
8772 * emit-rtl.c (rtx_to_double_int): New function.
8773 * dwarf2out.c (insert_double): New function.
8774 (loc_descriptor, add_const_value_attribute): Clean up, use
8775 rtx_to_double_int and insert_double functions.
8776
8777 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
8778
8779 * doc/extend.texi (Inline): Add missing return keyword to examples.
8780 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
8781 "command-line".
8782
8783 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
8784
8785 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
8786 the variable part of the offset as well. Use highest_pow2_factor for
8787 all alignment checks.
8788
8789 2010-04-30 Richard Guenther <rguenther@suse.de>
8790
8791 PR tree-optimization/43879
8792 * tree-ssa-structalias.c (type_could_have_pointers): Functions
8793 can have pointers.
8794
8795 2010-04-30 Jan Hubicka <jh@suse.cz>
8796
8797 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
8798 varpool.
8799 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
8800
8801 2010-04-30 Jan Hubicka <jh@suse.cz>
8802
8803 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
8804 New.
8805 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
8806 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
8807 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
8808 cgraph_node_set_needs_ltrans_p): Remove.
8809
8810 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8811
8812 * sdbout.c: Include vec.h, do not include varray.h.
8813 (deferred_global_decls, sdbout_global_decl,
8814 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
8815 * toplev.c: Do not include varray.h.
8816 (dump_memory_report): Do not dump VARRAY statistics.
8817 * gengtype.c (open_base_file): Ignore varray.h.
8818 * Makefile.in: Update for abovementioned changes.
8819 Remove all traces of varray.c and varray.h.
8820 * varray.c: Remove file.
8821 * varray.h: Remove file.
8822
8823 2010-04-30 Jan Hubicka <jh@suse.cz>
8824
8825 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
8826 references.
8827
8828 2010-04-30 Jan Hubicka <jh@suse.cz>
8829
8830 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
8831 needed.
8832
8833 2010-04-30 Richard Guenther <rguenther@suse.de>
8834
8835 * tree-ssa-structalias.c (get_constraint_for_1): Generate
8836 constraints for CONSTRUCTOR.
8837
8838 2010-04-30 Richard Guenther <rguenther@suse.de>
8839
8840 PR lto/43946
8841 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
8842 first after all lowering passes.
8843
8844 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
8845
8846 * toplev.c: Include varray.h for statistics dumping.
8847 * tree.h: Do not declare varray_head_tag.
8848 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
8849 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
8850 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
8851 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
8852 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
8853 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
8854 c-common.c, c-common.h, reg-stack.c, basic-block.h,
8855 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
8856 include varray.h.
8857 * Makefile.in: Update for abovementioned changes.
8858
8859 2010-04-30 Jakub Jelinek <jakub@redhat.com>
8860
8861 PR debug/43942
8862 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
8863
8864 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
8865
8866 * config/picochip/picochip.c (picochip_legitimize_address): Define.
8867 Use this function to do machine-specific conversion.
8868 (picochip_legitimize_reload_address): Likewise.
8869 (picochip_legitimate_address_p): Check valid base register only if
8870 strict.
8871 (picochip_check_conditional_copy): Check for modw only if opnd is
8872 register.
8873 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
8874 to call the function in c.
8875 * config/picochip/picochip-protos.h
8876 (picochip_legitimize_reload_address): Define.
8877 * config/picochip/picochip.md (supported_compare1): Define.
8878
8879 2010-04-30 Jan Hubicka <jh@suse.cz>
8880
8881 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
8882 (cgraph_global_info): Remove inlined.
8883 (LTO_cgraph_tag_names): Remove.
8884 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
8885 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
8886 simplify cgraph tags and document.
8887 (lto_output_node): Use only LTO_cgraph_unavail_node and
8888 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
8889 for_functions_valid, global info, process and output flags.
8890 (input_overwrite_node): Initialize estimated stack size and
8891 estimated growth. Do not read flags we no longer store.
8892 (input_node): Likewise do not read info no longer stored.
8893 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
8894 flag.
8895
8896 2010-04-30 Richard Guenther <rguenther@suse.de>
8897
8898 PR tree-optimization/43879
8899 * tree-ssa-structalias.c (get_constraint_for_1): Properly
8900 handle non-zero initializers.
8901
8902 2010-04-30 Richard Guenther <rguenther@suse.de>
8903
8904 * builtins.c (fold_builtin_1): Delete free (0).
8905
8906 2010-04-29 Jan Hubicka <jh@suse.cz>
8907
8908 * gengtype.c (open_base_files): Add lto-streamer.h
8909 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
8910 (pass_ipa_cp): GGC collect.
8911 * toplev. (compile_file): Do not output symbols.
8912 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
8913 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
8914 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
8915 * lto-section-in.c: Include ggc.h
8916 (lto_new_in_decl_state): Alloc in GGC.
8917 (lto_delete_in_decl_state): Likewise.
8918 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
8919 Collect.
8920
8921 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8922
8923 PR target/42895
8924 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
8925 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
8926 (HONOR_REG_ALLOC_ORDER): Describe new macro.
8927 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
8928 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
8929 account only if HONOR_REG_ALLOC_ORDER is not defined.
8930 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
8931 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
8932
8933 2010-04-29 Jon Grant <04@jguk.org>
8934
8935 * collect2.c (vflag): Change type from int to bool.
8936 (debug): Likewise.
8937 (helpflag): New global bool.
8938 (main): Set vflag and debug with boolean, not integer truth values.
8939 Accept new "--help" option and output usage text if found.
8940 * collect2.h (vflag): Update prototype.
8941 (debug): Likewise.
8942
8943 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8944
8945 PR bootstrap/43936
8946 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
8947
8948 2010-04-29 Richard Guenther <rguenther@suse.de>
8949
8950 PR bootstrap/43935
8951 * plugin.h (invoke_plugin_callbacks): Annotate arguments
8952 with ATTRIBUTE_UNUSED.
8953
8954 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
8955
8956 PR target/43921
8957 * config/i386/i386.c (get_some_local_dynamic_name): Replace
8958 INSN_P with NONDEBUG_INSN_P.
8959 (distance_non_agu_define): Likewise.
8960 (distance_agu_use): Likewise.
8961
8962 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
8963
8964 From Dominique d'Humieres <dominiq@lps.ens.fr>
8965 PR bootstrap/43858
8966 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
8967 test_set.
8968
8969 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
8970
8971 * plugin.h (invoke_plugin_callbacks): New inline function.
8972 * plugin.c (flag_plugin_added): New global flag.
8973 (add_new_plugin): Initialize above flag.
8974 (invoke_plugin_callbacks): Rename to ...
8975 (invoke_plugin_callbacks_full): ... this.
8976
8977 2010-04-28 Jan Hubicka <jh@suse.cz>
8978
8979 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
8980 (lto_varpool_replace_node): New.
8981 (lto_symtab_resolve_symbols): Resolve varpool nodes.
8982 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
8983 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
8984 * cgraph.h (varpool_node_ptr): New type.
8985 (varpool_node_ptr): New vector.
8986 (varpool_node_set_def): New structure.
8987 (varpool_node_set): New type.
8988 (varpool_node_set): New vector.
8989 (varpool_node_set_element_def): New structure.
8990 (varpool_node_set_element, const_varpool_node_set_element): New types.
8991 (varpool_node_set_iterator): New type.
8992 (varpool_node): Add prev pointers, add used_from_other_partition,
8993 in_other_partition.
8994 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
8995 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
8996 varpool_get_node, varpool_remove_node): Declare.
8997 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
8998 varpool_node_set_size): New inlines.
8999 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
9000 * tree-pass.h (varpool_node_set_def): Forward declare.
9001 (ipa_opt_pass_d): Summary writting takes vnode sets too.
9002 (ipa_write_optimization_summaries): Update prototype.
9003 * ipa-cp.c (ipcp_write_summary): Update.
9004 * ipa-reference.c (ipa_reference_write_summary): Update.
9005 * lto-cgraph.c (lto_output_varpool_node): New static function.
9006 (output_varpool): New function.
9007 (input_varpool_node): New static function.
9008 (input_varpool_1): New function.
9009 (input_cgraph): Input varpool.
9010 * ipa-pure-const.c (pure_const_write_summary): Update.
9011 * lto-streamer-out.c (lto_output): Update, output varpool too.
9012 (write_global_stream): Kill WPA hack.
9013 (produce_asm_for_decls): Update.
9014 (output_alias_pair_p): Handle variables.
9015 (output_unreferenced_globals): Output only needed partition of varpool.
9016 * ipa-inline.c (inline_write_summary): Update.
9017 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
9018 cgraph.
9019 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
9020 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
9021 varpool_node_set_new, varpool_node_set_add,
9022 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
9023 debug_varpool_node_set): New functions.
9024 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
9025 (execute_one_pass): Process new decls too.
9026 (ipa_write_summaries_2): Pass around vsets.
9027 (ipa_write_summaries_1): Likewise.
9028 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
9029 to add.
9030 (ipa_write_optimization_summaries_1): Pass around vsets.
9031 (ipa_write_optimization_summaries): Likewise.
9032 * varpool.c (varpool_get_node): New.
9033 (varpool_node): Update doubly linked lists.
9034 (varpool_remove_node): New.
9035 (dump_varpool_node): More dumping.
9036 (varpool_enqueue_needed_node): Update doubly linked lists.
9037 (decide_is_variable_needed): Kill ltrans hack.
9038 (varpool_finalize_decl): Kill lto hack.
9039 (varpool_assemble_decl): Skip decls in other partitions.
9040 (varpool_assemble_pending_decls): Update doubly linkes lists.
9041 (varpool_empty_needed_queue): Likewise.
9042 (varpool_extra_name_alias): Likewise.
9043 * lto-streamer.c (lto_get_section_name): Add vars section.
9044 * lto-streamer.h (lto_section_type): Update.
9045 (output_varpool, input_varpool): Declare.
9046
9047 2010-04-28 Mike Stump <mikestump@comcast.net>
9048
9049 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
9050
9051 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9052
9053 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
9054 record or union type with RECORD_OR_UNION_TYPE_P predicate.
9055 (lto_input_ts_type_tree_pointers): Likewise.
9056 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
9057 (lto_output_ts_type_tree_pointers): Likewise.
9058
9059 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9060
9061 Uniquization of constants at the Tree level
9062 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
9063 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
9064 bit to the end.
9065 (tree_output_constant_def): Declare.
9066 * gimplify.c (gimplify_init_constructor): When using block copy, first
9067 uniquize the constant constructor on the RHS.
9068 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
9069 DECL_IN_CONSTANT_POOL flag.
9070 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
9071 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
9072 constant pool.
9073 (assemble_variable): Deal with symbols belonging to the tree constant
9074 pool.
9075 (get_constant_section): Add ALIGN parameter and simplify.
9076 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
9077 (assemble_constant_contents): Use the expression of the VAR_DECL.
9078 (output_constant_def_contents): Use the alignment of the VAR_DECL.
9079 (tree_output_constant_def): New global function.
9080 (mark_constant): Use the expression of the VAR_DECL.
9081 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
9082 its expression.
9083 (output_object_block): Likewise and assemble the expression.
9084
9085 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
9086
9087 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
9088 hash_tree, eq_tree): New tree hash table.
9089 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
9090 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
9091 lto_orig_address_remove): Reimplement.
9092
9093 2010-04-28 Xinliang David Li <davidxl@google.com>
9094
9095 PR c/42643
9096 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
9097 (compute_uninit_opnds_pos): New function.
9098 (is_non_loop_exit_postdominating): New function.
9099 (compute_control_dep_chain): New function.
9100 (find_pdom): New function.
9101 (convert_control_dep_chain_into_preds): New function.
9102 (find_predicates): New function.
9103 (find_control_equiv_block): New function.
9104 (collect_phi_def_edges): New function.
9105 (find_def_preds): New function.
9106 (find_dom): New function.
9107 (dump_predicates): New function.
9108 (get_cmp_code): New function.
9109 (is_value_included_in): New function.
9110 (find_matching_predicate_in_rest_chains): New function.
9111 (use_pred_not_overlap_with_undef_path_pred): New function.
9112 (is_use_properly_guarded): New function.
9113 (normalize_cond_1): New function.
9114 (is_and_or_or): New function.
9115 (normalize_cond): New function.
9116 (is_gcond_subset_of): New function.
9117 (is_subset_of_any): New function.
9118 (is_or_set_subset_of): New function.
9119 (is_and_set_subset_of): New function.
9120 (is_norm_cond_subset_of): New function.
9121 (is_pred_expr_subset_of): New function.
9122 (is_pred_chain_subset_of): New function.
9123 (is_included_in): New function.
9124 (is_superset_of): New function.
9125 (find_uninit_use): New function.
9126 (warn_uninitialized_phi): New function.
9127 (compute_possibly_undefined_names): New function.
9128 (ssa_undefined_value_p): New function.
9129 (execute_late_warn_uninitialized): New function.
9130 * tree-ssa.c (ssa_undefined_value_p): Removed.
9131 (warn_uninit): Changed to extern.
9132 (warn_uninitialized_phi): Removed.
9133 (warn_uninitialized_vars): Changed to extern.
9134 (execute_late_warn_uninitialized): Removed
9135 * tree-flow.h: Add new prototypes.
9136 * timevar.def: Add new time variable.
9137 * Makefile.in: Add new build file.
9138
9139 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
9140
9141 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
9142 type if available.
9143
9144 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9145
9146 PR target/22224
9147 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
9148
9149 2010-04-28 Martin Jambor <mjambor@suse.cz>
9150
9151 * cgraph.h (struct cgraph_node): New field indirect_calls.
9152 (struct cgraph_indirect_call_info): New type.
9153 (struct cgraph_edge): Removed field indirect_call. New fields
9154 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
9155 (cgraph_create_indirect_edge): Declare.
9156 (cgraph_make_edge_direct): Likewise.
9157 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
9158 * ipa-prop.h (struct ipa_param_call_note): Removed.
9159 (struct ipa_node_params): Removed field param_calls.
9160 (ipa_create_all_structures_for_iinln): Declare.
9161 * cgraph.c: Described indirect edges and uids in initial comment.
9162 (cgraph_add_edge_to_call_site_hash): New function.
9163 (cgraph_edge): Search also among the indirect edges, use
9164 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
9165 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
9166 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
9167 site hash.
9168 (initialize_inline_failed): Assign a reason to indirect edges.
9169 (cgraph_create_edge_1): New function.
9170 (cgraph_create_edge): Moved some functionality to
9171 cgraph_create_edge_1.
9172 (cgraph_create_indirect_edge): New function.
9173 (cgraph_edge_remove_callee): Add an assert checking for
9174 non-indirectness.
9175 (cgraph_edge_remove_caller): Special-case indirect edges.
9176 (cgraph_remove_edge): Likewise.
9177 (cgraph_set_edge_callee): New function.
9178 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
9179 (cgraph_make_edge_direct): New function.
9180 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
9181 the declaration of the call statement matches.
9182 (cgraph_node_remove_callees): Special-case indirect edges.
9183 (cgraph_clone_edge): Likewise.
9184 (cgraph_clone_node): Clone also the indirect edges.
9185 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
9186 indirect_call, dump count of indirect_calls edges.
9187 * ipa-prop.c (iinlining_processed_edges): New variable.
9188 (ipa_note_param_call): Create indirect edges instead of
9189 creating notes. New parameter node.
9190 (ipa_analyze_call_uses): New parameter node, pass it on to
9191 ipa_note_param_call.
9192 (ipa_analyze_stmt_uses): Likewise.
9193 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
9194 (print_edge_addition_message): Work on edges rather than on notes.
9195 (update_call_notes_after_inlining): Likewise, renamed to
9196 update_indirect_edges_after_inlining.
9197 (ipa_create_all_structures_for_iinln): New function.
9198 (ipa_free_node_params_substructures): Do not free notes.
9199 (ipa_edge_duplication_hook): Propagate bits within
9200 iinlining_processed_edges bitmap.
9201 (ipa_node_duplication_hook): Do not duplicate notes.
9202 (free_all_ipa_structures_after_ipa_cp): Renamed to
9203 ipa_free_all_structures_after_ipa_cp.
9204 (free_all_ipa_structures_after_iinln): Renamed to
9205 ipa_free_all_structures_after_iinln.
9206 (ipa_write_param_call_note): Removed.
9207 (ipa_read_param_call_note): Removed.
9208 (ipa_write_indirect_edge_info): New function.
9209 (ipa_read_indirect_edge_info): Likewise.
9210 (ipa_write_node_info): Do not stream notes, do stream information
9211 in indirect edges.
9212 (ipa_read_node_info): Likewise.
9213 (lto_ipa_fixup_call_notes): Removed.
9214 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
9215 * ipa-inline.c (pass_ipa_inline): Likewise.
9216 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
9217 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
9218 * tree-inline.c (copy_bb): Removed an unnecessary double check for
9219 is_gimple_call.
9220 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
9221 edges.
9222 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
9223 (output_cgraph): Stream also indirect edges.
9224 (lto_output_edge): Added capability to stream indirect edges.
9225 (input_edge): Likewise.
9226 (input_cgraph_1): Likewise.
9227 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
9228 of indirect edges.
9229
9230 2010-04-28 Richard Guenther <rguenther@suse.de>
9231
9232 PR tree-optimization/43879
9233 PR tree-optimization/43909
9234 * tree-ssa-structalias.c (struct variable_info): Add
9235 only_restrict_pointers flag.
9236 (new_var_info): Initialize it. Increment stats.total_vars here.
9237 (create_function_info_for): Do not increment stats.total_vars here.
9238 (get_function_part_constraint): Fix build with C++.
9239 (insert_into_field_list): Remove.
9240 (push_fields_onto_fieldstack): Properly merge fields.
9241 (create_variable_info_for): Split and simplify.
9242 (create_variable_info_for_1): New piece.
9243 (intra_create_variable_infos): Properly make restrict constraints
9244 from parameters.
9245
9246 2010-04-28 Richard Guenther <rguenther@suse.de>
9247
9248 PR c++/43880
9249 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
9250
9251 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
9252 Jan Hubicka <hubicka@ucw.cz>
9253
9254 * doc/invoke.texi (-Wsuggest-attribute=const,
9255 -Wsuggest-attribute=pure): Document.
9256 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
9257 (function_always_visible_to_compiler_p,
9258 suggest_attribute, warn_function_pure, warn_function_const):
9259 New functions.
9260 (check_call): Improve debug info.
9261 (analyze_function): Do not check availability.
9262 (add_new_function): Check availability.
9263 (propagate): Output warnings.
9264 (skip_function_for_local_pure_const): New function.
9265 (local_pure_const): Use it; output warnings.
9266 * common.opt (Wsuggest-attribute=const,
9267 Wsuggest-attribute=pure): New.
9268
9269 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9270
9271 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
9272 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
9273 or DW_CFA_def_cfa_offset{,_sf}.
9274
9275 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9276
9277 * tree.h: Fix truncated long macros.
9278
9279 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
9280
9281 * collect2.c (TARGET_64BIT): Redefine to target's default.
9282 * tlink.c: Likewise.
9283 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
9284 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
9285 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
9286 for underscoring __USER_LABEL_PREFIX__.
9287 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
9288 (SUB_LINK_ENTRY32): New.
9289 (SUB_LINK_ENTRY64): New.
9290 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
9291 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
9292 (SUB_LINK_ENTRY64): New.
9293 (SUB_LINK_ENTRY): New.
9294 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
9295 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
9296 x64 target is choosen.
9297 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
9298 * configure: Regenerated.
9299 * configure.ac (leading-mingw64-underscores): Option added.
9300
9301 2010-04-27 Jan Hubicka <jh@suse.cz>
9302
9303 * doc/invoke.texi (-fipa-profile): Document.
9304 * opts.c (decode_options): Enable ipa-profile at -O1.
9305 * timevar.def (TV_IPA_PROFILE): Define.
9306 * common.opt (fipa-profile): Add.
9307 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
9308 flag for clones.
9309 (cgraph_propagate_frequency): Handle only local ones.
9310 * tree-pass.h (pass_ipa_profile): Declare.
9311 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
9312 (pass_ipa_profile): Use TV_IPA_PROFILE.
9313 * ipa.c (ipa_profile): New function.
9314 (gate_ipa_profile): Likewise.
9315 (pass_ipa_profile): New global variable.
9316 * passes.c (pass_ipa_profile): New.
9317
9318 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
9319
9320 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
9321
9322 2010-04-27 Martin Jambor <mjambor@suse.cz>
9323
9324 PR middle-end/43812
9325 * ipa.c (dissolve_same_comdat_group_list): New function.
9326 (function_and_variable_visibility): Call
9327 dissolve_same_comdat_group_list when comdat group contains external or
9328 newly local nodes.
9329 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
9330 lists are circular and that they contain only DECL_ONE_ONLY nodes.
9331
9332 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
9333
9334 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
9335 (const_hash_1) <VECTOR_CST>: New case.
9336 (compare_constant) <VECTOR_CST>: Likewise.
9337 <ADDR_EXPR>: Deal with LABEL_REFs.
9338 (copy_constant) <VECTOR_CST>: New case.
9339
9340 2010-04-27 Jan Hubicka <jh@suse.cz>
9341
9342 * cgraph.c (cgraph_propagate_frequency): New function.
9343 * cgraph.h (cgraph_propagate_frequency): Declare.
9344 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
9345 cgraph_propagate_frequency.
9346
9347 2010-04-27 Jakub Jelinek <jakub@redhat.com>
9348
9349 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
9350
9351 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
9352
9353 PR target/40657
9354 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
9355 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
9356 here to determine which regs to push and how much stack to reserve.
9357
9358 2010-04-27 Jie Zhang <jie@codesourcery.com>
9359
9360 * doc/gimple.texi (gimple_statement_with_ops): Remove
9361 addresses_taken field.
9362 (gimple_statement_with_memory_ops): Likewise.
9363
9364 2010-04-27 Jan Hubicka <jh@suse.cz>
9365
9366 * tree-inline.c (eni_inlining_weights): Remove.
9367 (estimate_num_insns): Special case more builtins.
9368
9369 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
9370
9371 PR c/32207
9372 * c-typeck.c (build_binary_op): Move forward check for comparison
9373 pointer with null pointer constant and adjust the diagnostic message.
9374
9375 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
9376
9377 PR lto/42776
9378 * configure.ac (gcc_cv_as_section_has_align): Set if installed
9379 binutils supports extended .section directive needed by LTO, or
9380 warn if older binutils found.
9381 (LTO_BINARY_READER): New AC_SUBST'd variable.
9382 (LTO_USE_LIBELF): Likewise.
9383 * gcc/config.gcc (lto_binary_reader): New target-specific configure
9384 variable.
9385 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
9386 (LTO_USE_LIBELF): Likewise.
9387 * configure: Regenerate.
9388
9389 * collect2.c (is_elf): Rename from this ...
9390 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
9391 object files in addition to ELF-formatted ones.
9392 (scan_prog_file): Caller updated. Also allow for LTO info marker
9393 symbol to be prefixed or not by an extra underscore.
9394
9395 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
9396 * config/i386/winnt.c: Also #include lto-streamer.h
9397 (i386_pe_asm_named_section): Specify 1-byte section alignment for
9398 LTO named sections.
9399 (i386_pe_asm_output_aligned_decl_common): Add comment.
9400 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
9401
9402 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
9403
9404 PR target/43889
9405 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
9406 Add missing earlyclobber for second alternative.
9407
9408 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
9409
9410 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
9411 bits for artificial defs at the top of the block.
9412 * fwprop.c (single_def_use_enter_block): Don't call it.
9413
9414 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
9415
9416 PR 43715
9417 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
9418 instead of "$gcc_cv_objdump -T".
9419 Use "-undefined dynamic_lookup" on darwin.
9420 * gcc/configure: Regenerate.
9421
9422 2010-04-26 Jakub Jelinek <jakub@redhat.com>
9423
9424 PR c/43893
9425 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
9426
9427 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9428
9429 * c-parser.c (struct c_token): Move location field up.
9430 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
9431 (struct c_declspecs): Convert typespec_word, storage_class, and
9432 default_int_p into bitfields.
9433 (struct c_declarator): Move loc field up.
9434
9435 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
9436
9437 * cfgloop.h (struct loop): Move can_be_parallel field up.
9438 * ipa-prop.h (struct ip_node_params): Move bitfields up.
9439 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
9440 down.
9441 (struct iv_cand): Convert pos field into a bitfield.
9442 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
9443 field up.
9444 (struct _stmt_vec_info): Shuffle fields for better packing.
9445
9446 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9447
9448 * varasm.c (IN_NAMED_SECTION): Remove guard.
9449 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
9450 (IN_NAMED_SECTION_P): ...this.
9451 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
9452 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
9453
9454 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
9455
9456 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
9457 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
9458 of shadowing it. Fix comments.
9459
9460 2010-04-26 Jan Hubicka <jh@suse.cz>
9461
9462 * cgraph.c (cgraph_create_node): Set node frequency to normal.
9463 (cgraph_clone_node): Copy function frequency.
9464 * cgraph.h (node_frequency): New enum
9465 (struct cgraph_node): Add.
9466 * final.c (rest_of_clean_state): Update.
9467 * lto-cgraph.c (lto_output_node): Output node frequency.
9468 (input_overwrite_node): Input node frequency.
9469 * tre-ssa-loop-ivopts (computation_cost): Update.
9470 * lto-streamer-out.c (output_function): Do not output function
9471 frequency.
9472 * predict.c (maybe_hot_frequency_p): Update and handle functions
9473 executed once.
9474 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
9475 attribute lookup.
9476 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
9477 (compute_function_frequency): Set noreturn functions to be executed
9478 once.
9479 (choose_function_section): Update.
9480 * lto-streamer-in.c (input_function): Do not input function frequency.
9481 * function.c (allocate_struct_function): Do not initialize function
9482 frequency.
9483 * function.h (function_frequency): Remove.
9484 (struct function): Remove function frequency.
9485 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
9486 (try_update): Update.
9487 * tree-inline.c (initialize_cfun): Do not update function frequency.
9488 * passes.c (pass_init_dump_file): Update.
9489 * i386.c (ix86_compute_frame_layout): Update.
9490 (ix86_pad_returns): Update.
9491
9492 2010-04-26 Jie Zhang <jie@codesourcery.com>
9493
9494 PR tree-optimization/43833
9495 * tree-vrp.c (range_int_cst_p): New.
9496 (range_int_cst_singleton_p): New.
9497 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
9498 when both operands are constants. Use range_int_cst_p in
9499 BIT_IOR_EXPR case.
9500
9501 2010-04-26 Jan Hubicka <jh@suse.cz>
9502
9503 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
9504
9505 2010-04-26 Richard Guenther <rguenther@suse.de>
9506
9507 PR lto/43080
9508 * gimple.c (gimple_decl_printable_name): Deal gracefully
9509 with a NULL DECL_NAME.
9510
9511 2010-04-26 Richard Guenther <rguenther@suse.de>
9512
9513 PR lto/42425
9514 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
9515 if emitting debug information and it is either a function
9516 or a namespace decl.
9517
9518 2010-04-26 Ira Rosen <irar@il.ibm.com>
9519
9520 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
9521 determine if the statement is vectorizable, and a macro to access it.
9522 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9523 Skip statements that can't be vectorized. If the analysis fails,
9524 mark the statement as unvectorizable if vectorizing basic block.
9525 (vect_compute_data_refs_alignment): Likewise.
9526 (vect_verify_datarefs_alignment): Skip statements marked as
9527 unvectorizable. Add print.
9528 (vect_analyze_group_access): Skip statements that can't be
9529 vectorized. If the analysis fails, mark the statement as
9530 unvectorizable if vectorizing basic block.
9531 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
9532 * tree-vect-stmts.c (vectorizable_store): Fix the number of
9533 generated stmts for SLP.
9534 (new_stmt_vec_info): Initialize the new field.
9535 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
9536 statements marked as unvectorizable.
9537
9538 2010-04-25 Joseph Myers <joseph@codesourcery.com>
9539
9540 * c-common.c (flag_isoc1x): New.
9541 (flag_isoc99): Update comment.
9542 * c-common.h (flag_isoc1x): New.
9543 (flag_isoc99): Update comment.
9544 * c-cppbuiltin.c (builtin_define_float_constants): Also define
9545 __<type>_DECIMAL_DIG__.
9546 * c-opts.c (set_std_c1x): New.
9547 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
9548 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
9549 * c.opt (-std=c1x, -std=gnu1x): New options.
9550 * doc/cpp.texi: Mention -std=c1x.
9551 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
9552 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
9553 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
9554 * doc/standards.texi: Mention C1X.
9555 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
9556 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
9557 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
9558 Define for C1X.
9559
9560 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
9561
9562 * config/i386/gmon-sol2.c (_mcleanup): Change format string
9563 placeholder from 0x%x to %#x.
9564 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9565 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9566 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9567 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9568 * config/i386/i386.c (ix86_target_string): Ditto.
9569 (output_pic_addr_const): Ditto.
9570 (print_operand): Ditto.
9571
9572 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
9573
9574 * combine.c (find_split_point): Add third argument. Use it
9575 to find nested multiply-accumulate instructions. Adjust calls.
9576 (try_combine): Adjust call to find_split_point.
9577
9578 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
9579
9580 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
9581
9582 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
9583
9584 PR tree-optimization/41442
9585 * fold-const.c (merge_truthop_with_opposite_arm): New function.
9586 (fold_binary_loc): Call it.
9587
9588 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9589
9590 * toplev.c (general_init): Set default for fdiagnostics-show-option.
9591 * opts.c (common_handle_option): Allow disabling it.
9592 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
9593
9594 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
9595
9596 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
9597 between modes if both types are integral.
9598
9599 2010-04-23 Richard Guenther <rguenther@suse.de>
9600
9601 PR tree-optimization/43572
9602 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
9603
9604 2010-04-23 Richard Guenther <rguenther@suse.de>
9605
9606 PR lto/43455
9607 * tree-inline.c (tree_can_inline_p): Also check compatibility
9608 of return types.
9609
9610 2010-04-23 Martin Jambor <mjambor@suse.cz>
9611
9612 PR tree-optimization/43846
9613 * tree-sra.c (struct access): New flag grp_assignment_read.
9614 (build_accesses_from_assign): Set grp_assignment_read.
9615 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
9616 (enum mark_read_status): New type.
9617 (analyze_access_subtree): Propagate grp_assignment_read, create
9618 accesses also if both direct_read and root->grp_assignment_read.
9619
9620 2010-04-23 Martin Jambor <mjambor@suse.cz>
9621
9622 PR middle-end/43835
9623 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
9624 function does not have type attributes.
9625
9626 2010-04-23 Richard Guenther <rguenther@suse.de>
9627
9628 PR lto/42653
9629 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
9630 of FUNCTION_DECLs.
9631
9632 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9633
9634 * sese.h (create_if_region_on_edge): Remove.
9635
9636 * sese.c (create_if_region_on_edge): Make static.
9637
9638 * tree-inline.c: Do not include ggc.h.
9639
9640 * expr.c: Do not include ggc.h.
9641
9642 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
9643 dependencies.
9644
9645 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
9646
9647 PR target/43744
9648 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9649 in the middle of insns for casesi_worker_2.
9650
9651 2010-04-22 David Edelsohn <edelsohn@gnu.org>
9652
9653 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
9654
9655 2010-04-22 Ira Rosen <irar@il.ibm.com>
9656
9657 PR tree-optimization/43842
9658 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
9659 loop unrolling in update of exit phis. Fix comment.
9660 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
9661 least two reduction statements in the loop before starting SLP
9662 analysis.
9663
9664 2010-04-22 Nick Clifton <nickc@redhat.com>
9665
9666 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
9667
9668 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
9669
9670 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
9671 to simplify a + ~a.
9672
9673 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9674
9675 * tree-parloops.c (loop_parallel_p): New argument
9676 parloop_obstack. Pass it down.
9677 (parallelize_loops): New variable parloop_obstack. Initialize it,
9678 pass it down, free it.
9679
9680 * tree-loop-linear.c (linear_transform_loops): Pass down
9681 lambda_obstack.
9682
9683 * tree-data-ref.h (lambda_compute_access_matrices): New argument
9684 of type struct obstack *.
9685
9686 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
9687 scratch_obstack. Initialize it, pass down, free it.
9688
9689 * lambda.h (lambda_loop_new): Remove.
9690 (lambda_matrix_new, lambda_matrix_inverse)
9691 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
9692 argument of type struct obstack *.
9693
9694 * lambda-trans.c (lambda_trans_matrix_new): New argument
9695 lambda_obstack. Pass it down, use obstack allocation for ret.
9696 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
9697 it down.
9698
9699 * lambda-mat.c (lambda_matrix_get_column)
9700 (lambda_matrix_project_to_null): Remove.
9701 (lambda_matrix_new): New argument lambda_obstack. Use obstack
9702 allocation for mat.
9703 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
9704 lambda_obstack.
9705
9706 * lambda-code.c (lambda_loop_new): New function.
9707 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
9708 (lambda_compute_auxillary_space, lambda_compute_target_space)
9709 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
9710 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
9711 (build_access_matrix): New argument lambda_obstack. Use obstack
9712 allocation for am.
9713 (lambda_compute_step_signs, lambda_compute_access_matrices): New
9714 argument lambda_obstack. Pass it down.
9715
9716 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9717
9718 * optabs.h (expand_widening_mult): Declare.
9719
9720 2010-04-22 Richard Guenther <rguenther@suse.de>
9721
9722 PR tree-optimization/43845
9723 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
9724 lookup the CALL_EXPR function and arguments.
9725
9726 2010-04-22 Nick Clifton <nickc@redhat.com>
9727
9728 * config/stormy16/stormy16.c
9729 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
9730 * config/stormy16/stormy16.h: Tidy up formatting.
9731 (DONT_USE_BUILTIN_SETJMP): Remove definition.
9732 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
9733 (ineqbranchsi): Delete pattern.
9734 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
9735 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
9736 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
9737 stormy16-lib2-ucmpsi2.c.
9738
9739 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9740
9741 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
9742 df_simulate_find_noclobber_defs as appropriate. Keep track of an
9743 extra set merge_set_noclobber, and use it to relax the final test
9744 slightly.
9745 * df.h (df_simulate_find_noclobber_defs): Declare.
9746 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
9747 conditional defs.
9748 (df_simulate_find_noclobber_defs): New function.
9749
9750 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
9751
9752 * config/i386/i386.md: Use {} around multi-line preparation statements.
9753
9754 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9755
9756 * c-tree.h (push_init_level, pop_init_level, set_init_index)
9757 (process_init_element): New argument of type struct obstack *.
9758
9759 * c-typeck.c (push_init_level, pop_init_level, set_designator)
9760 (set_init_index, set_init_label, set_nonincremental_init)
9761 (set_nonincremental_init_from_string, find_init_member)
9762 (output_init_element, output_pending_init_elements)
9763 (process_init_element): New argument braced_init_obstack. Pass it
9764 down.
9765 (push_range_stack, add_pending_init): New argument
9766 braced_init_obstack. Use obstack allocation.
9767
9768 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
9769 braced_init_obstack. Pass it down.
9770 (c_parser_braced_init): New variables ret, braced_init_obstack.
9771 Initialize obstack, pass it down and finally free it.
9772
9773 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
9774
9775 PR middle-end/29274
9776 * tree-pass.h (pass_optimize_widening_mul): Declare.
9777 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
9778 gate_optimize_widening_mul): New static functions.
9779 (pass_optimize_widening_mul): New.
9780 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
9781 <case MULT_EXPR>: Remove support for widening multiplies.
9782 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
9783 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
9784 simplify_gen_unary rather than directly building extensions.
9785 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
9786 WIDEN_MULT_EXPR.
9787 * expmed.c (expand_widening_mult): New function.
9788 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
9789
9790 2010-04-21 Jan Hubicka <jh@suse.cz>
9791
9792 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
9793 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
9794 * lto-wpa-fixup.c: Remove.
9795 * Makefile.in (lto-wpa-fixup.o): Remove.
9796 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
9797 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
9798 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
9799
9800 2010-04-21 Jan Hubicka <jh@suse.cz>
9801
9802 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
9803 add write_optimization_summary, read_optimization_summary.
9804 (ipa_write_summaries_of_cgraph_node_set): Remove.
9805 (ipa_write_optimization_summaries): Declare.
9806 (ipa_read_optimization_summaries): Declare.
9807 * ipa-cp.c (pass_ipa_cp): Update.
9808 * ipa-reference.c (pass_ipa_reference): Update.
9809 * ipa-pure-const.c (pass_ipa_pure_const): Update.
9810 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
9811 Update.
9812 * ipa-inline.c (pass_ipa_inline): Update.
9813 * ipa.c (pass_ipa_whole_program): Update.
9814 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
9815 * passes.c (ipa_write_summaries_1): Do not test wpa.
9816 (ipa_write_optimization_summaries_1): New.
9817 (ipa_write_optimization_summaries): New.
9818 (ipa_read_summaries): Do not test ltrans.
9819 (ipa_read_optimization_summaries_1): New.
9820 (ipa_read_optimization_summaries): New.
9821
9822 2010-04-21 Jan Hubicka <jh@suse.cz>
9823
9824 * lto-cgraph.c (lto_output_node): Do not output comdat groups
9825 for boundary nodes.
9826 (output_cgraph): Do not arrange comdat groups for boundary nodes.
9827
9828 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9829
9830 PR debug/40040
9831 * dwarf2out.c (add_name_and_src_coords_attributes): Add
9832 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
9833
9834 2010-04-21 Jan Hubicka <jh@suse.cz>
9835
9836 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
9837
9838 2010-04-21 Jan Hubicka <jh@suse.cz>
9839
9840 * varpool.c (decide_is_variable_needed): Variable is always needed
9841 during ltrans.
9842
9843 2010-04-21 Jan Hubicka <jh@suse.cz>
9844
9845 * opts.c (decode_options): Enable pure-const pass for whopr.
9846
9847 2010-04-21 Jan Hubicka <jh@suse.cz>
9848
9849 * cgraph.c (dump_cgraph_node): Dump also assembler name.
9850 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
9851 at WPA dumping.
9852 (cgraph_decide_inlining): Do not expect callee to be removed in all
9853 cases.
9854
9855 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
9856
9857 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
9858
9859 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9860
9861 * config/i386/i386.md (x86_shrd): Add athlon_decode and
9862 amdfam10_decode attributes.
9863
9864 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9865
9866 PR middle-end/43570
9867 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
9868 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
9869 (lower_copyprivate_clauses): Use private var in outer
9870 context instead of original var. Make sure the types
9871 are correct for VLAs.
9872
9873 2010-04-21 Richard Guenther <rguenther@suse.de>
9874
9875 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
9876 to non-pointer objects.
9877
9878 2010-04-21 Jakub Jelinek <jakub@redhat.com>
9879
9880 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
9881 last chain entry if it starts with the still current label.
9882 (add_location_or_const_value_attribute): Check that
9883 loc_list->first->next is NULL instead of comparing ->first with ->last.
9884 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
9885 to add_var_loc_to_decl.
9886
9887 * dwarf2out.c (output_call_frame_info): For dw_cie_version
9888 >= 4 add also address size and segment size fields into CIE header.
9889
9890 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
9891 long as address size is the same as sizeof (void *) and
9892 segment size is 0.
9893 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
9894 address size or segment size is unexpected, return DW_EH_PE_omit.
9895 (classify_object_over_fdes): If get_cie_encoding returned
9896 DW_EH_PE_omit, return -1.
9897 (init_object): If classify_object_over_fdes returned -1,
9898 pretend there were no FDEs at all.
9899
9900 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
9901
9902 * config/i386/i386.md (bswap<mode>2): Macroize expander from
9903 bswap{si,di}2 using SWI48 mode iterator.
9904 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
9905 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
9906 set modrm attribute of bswap insn to 0 and remove length attribute.
9907 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
9908 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
9909 set mode attribute to <MODE> and remove length attribute.
9910
9911 2010-04-20 James E. Wilson <wilson@codesourcery.com>
9912
9913 PR rtl-optimization/43520
9914 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
9915 zero available registers.
9916
9917 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9918
9919 * builtins.c (fold_builtin_cproj): Fold more cases.
9920
9921 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9922
9923 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
9924 (fold_builtin_1): Fold builtin cproj.
9925 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
9926 Use ATTR_CONST_NOTHROW_LIST.
9927
9928 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
9929
9930 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
9931 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
9932 ffsi2_no_cmove for !TARGET_CMOVE.
9933 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
9934 (ffssi2): Remove expander.
9935 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
9936 mode iterator.
9937 (ctz<mode>2): Ditto from ctz{si,di}2.
9938 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
9939 mode iterator.
9940 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
9941 mode iterator.
9942
9943 2010-04-20 Jakub Jelinek <jakub@redhat.com>
9944
9945 * dwarf2out.c (AT_linkage_name): Define.
9946 (clone_as_declaration): Handle DW_AT_linkage_name.
9947 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
9948 of DW_AT_MIPS_linkage_name.
9949 (move_linkage_attr): Likewise.
9950 (dwarf2out_finish): Likewise.
9951
9952 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
9953
9954 PR middle-end/41952
9955 * fold-const.c (fold_comparison): New folding rule.
9956
9957 2010-04-20 Anatoly Sokolov <aesok@post.ru>
9958
9959 * double-int.h (double_int_setbit): Declare.
9960 * double-int.c (double_int_setbit): New function.
9961 * rtl.h (immed_double_int_const): Declare.
9962 * emit-rtl.c (immed_double_int_const): New function.
9963 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
9964 and immed_double_int_const functions.
9965 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
9966 expand_copysign_bit): (Ditto.).
9967 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
9968 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
9969 * dojump.c (prefer_and_bit_test): (Ditto.).
9970 * expr.c (convert_modes, reduce_to_bit_field_precision,
9971 const_vector_from_tree): (Ditto.).
9972 * expmed.c (mask_rtx, lshift_value): (Ditto.).
9973
9974 2010-04-20 Jan Hubicka <jh@suse.cz>
9975
9976 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
9977 (dump_cgraph_node): Dump new flags.
9978 * cgraph.h (struct cgraph_node): Add flags
9979 reachable_from_other_partition and in_other_partition.
9980 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
9981 other partition can not be removed.
9982 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
9983 the other partition must be output; silence sanity checking on
9984 leaking functions bodies from other paritition.
9985 * lto-cgraph.c (reachable_from_other_partition_p): New function.
9986 (lto_output_node): Output new flags; do not sanity check that inline
9987 clones are output; drop lto_forced_extern_inline_p code; do not mock
9988 visibility flags at partition boundaries.
9989 (add_node_to): New function.
9990 (output_cgraph): Use it to sort functions so masters appear before
9991 clones.
9992 (input_overwrite_node): Input new flags.
9993 * passes.c (ipa_write_summaries): Do not call
9994 lto_new_extern_inline_states.
9995 * lto-section-out.c (forced_extern_inline,
9996 lto_new_extern_inline_states lto_delete_extern_inline_states,
9997 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
9998 * lto-streamer.h (lto_new_extern_inline_states,
9999 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
10000 lto_forced_extern_inline_p): Kill.
10001
10002 2010-04-20 Richard Guenther <rguenther@suse.de>
10003
10004 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
10005 from vars that can have pointers.
10006 (process_constraint): Dump useless constraints.
10007
10008 2010-04-20 Richard Guenther <rguenther@suse.de>
10009
10010 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
10011 (dump_sa_points_to_info): Remove asserts.
10012 (init_base_vars): nothing_id isn't an escape point nor does it
10013 have pointers.
10014
10015 2010-04-20 Jakub Jelinek <jakub@redhat.com>
10016
10017 * tree.h (TYPE_REF_IS_RVALUE): Define.
10018 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
10019 should_move_die_to_comdat, prune_unused_types_walk): Handle
10020 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
10021 (modified_type_die, gen_reference_type_die): Emit
10022 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
10023 if TYPE_REF_IS_RVALUE and -gdwarf-4.
10024
10025 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10026
10027 PR target/43635
10028 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
10029 calls for -fpic -m31 if they have been sibcall optimized.
10030
10031 2010-04-19 James E. Wilson <wilson@codesourcery.com>
10032
10033 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
10034 ar.lc fixed and call-used.
10035
10036 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
10037
10038 2010-04-19 Jan Hubicka <jh@suse.cz>
10039
10040 * opts.c (decode_options): Disable whpr incompatible passes.
10041 * lto/lto.c (lto_1_to_1_map): Skip clones.
10042 (read_cgraph_and_symbols): Do not mark everything as needed.
10043 (do_whole_program_analysis): Do map only after optimizing;
10044 set proper cgraph_state; use passmanager.
10045
10046 2010-04-19 DJ Delorie <dj@redhat.com>
10047
10048 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
10049 POINTER_PLUS_EXPR and fix them.
10050
10051 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
10052
10053 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
10054 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
10055 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
10056 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
10057 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
10058 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
10059 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
10060 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
10061 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
10062 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
10063 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
10064
10065 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
10066
10067 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
10068 (check_cond_move_block): Likewise.
10069 (cond_move_process_if_block): Likewise.
10070 (noce_find_if_block): Improve formatting.
10071 (find_if_header): Pass 0 to memset and tweak conditions.
10072 (cond_exec_find_if_block): Fix long lines and tweak conditions.
10073
10074 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10075
10076 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
10077 for -gdwarf-4.
10078
10079 PR middle-end/43337
10080 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
10081 with non-local decl doesn't need chain.
10082
10083 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
10084
10085 * ira-color.c (allocno_reload_assign): Avoid accumulating
10086 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
10087
10088 2010-04-19 Martin Jambor <mjambor@suse.cz>
10089
10090 * gimple.h (create_tmp_reg): Declare.
10091 * gimplify.c (create_tmp_reg): New function.
10092 (gimplify_return_expr): Use create_tmp_reg.
10093 (gimplify_omp_atomic): Likewise.
10094 (gimple_regimplify_operands): Likewise.
10095 * tree-dfa.c (make_rename_temp): Likewise.
10096 * tree-predcom.c (predcom_tmp_var): Likewise.
10097 (reassociate_to_the_same_stmt): Likewise.
10098 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
10099 (get_replaced_param_substitute): Likewise.
10100 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
10101 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
10102 * tree-ssa-pre.c (get_representative_for): Likewise.
10103 (create_expression_by_pieces): Likewise.
10104 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
10105 (create_tailcall_accumulator): Likewise.
10106
10107 2010-04-19 Martin Jambor <mjambor@suse.cz>
10108
10109 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
10110 new_stmt.
10111 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
10112
10113 2010-04-19 Richard Guenther <rguenther@suse.de>
10114
10115 PR tree-optimization/43796
10116 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
10117 from SCEV in the lattice.
10118 (vrp_visit_phi_node): Dump change.
10119
10120 2010-04-19 Richard Guenther <rguenther@suse.de>
10121
10122 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
10123 * configure: Re-generated.
10124
10125 2010-04-19 Richard Guenther <rguenther@suse.de>
10126
10127 PR tree-optimization/43783
10128 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
10129 constant ARRAY_REF operands two and three if possible.
10130
10131 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
10132
10133 PR target/43766
10134 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
10135
10136 2010-04-19 Jie Zhang <jie@codesourcery.com>
10137
10138 PR target/43662
10139 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
10140
10141 2010-04-19 Ira Rosen <irar@il.ibm.com>
10142
10143 PR tree-optimization/37027
10144 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
10145 and macro to access it.
10146 (vectorizable_reduction): Add argument.
10147 (vect_get_slp_defs): Likewise.
10148 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
10149 statements for possible use in SLP.
10150 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
10151 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
10152 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
10153 add new argument.
10154 (vectorizable_reduction): Likewise.
10155 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
10156 vect_get_slp_defs.
10157 (vectorizable_type_demotion, vectorizable_type_promotion,
10158 vectorizable_store): Likewise.
10159 (vect_analyze_stmt): Update call to vectorizable_reduction.
10160 (vect_transform_stmt): Likewise.
10161 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
10162 (vect_build_slp_tree): Fix indentation. Check that there are no loads
10163 from different interleaving chains in same node.
10164 (vect_slp_rearrange_stmts): New function.
10165 (vect_supported_load_permutation_p): Allow load permutations for
10166 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
10167 inside SLP nodes if necessary.
10168 (vect_analyze_slp_instance): Handle reductions.
10169 (vect_analyze_slp): Try to build SLP instances originating from groups
10170 of reductions.
10171 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
10172 (vect_get_constant_vectors): Create initial vectors for reductions
10173 according to reduction code. Add new argument.
10174 (vect_get_slp_defs): Add new argument, pass it to
10175 vect_get_constant_vectors.
10176 (vect_schedule_slp_instance): Remove SLP tree root statements.
10177
10178 2010-04-19 Jakub Jelinek <jakub@redhat.com>
10179
10180 * tree.h (ENUM_IS_SCOPED): Define.
10181 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
10182 for ENUM_IS_SCOPED enums.
10183
10184 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
10185
10186 * fold-const.c (fold_comparison): Use ssizetype.
10187 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
10188 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
10189 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
10190 * tree-object-size.c (compute_object_sizes): Use size_type_node.
10191
10192 * tree.h (initialize_sizetypes): Remove parameter.
10193 (build_common_tree_nodes): Remove second parameter.
10194 * stor-layout.c (initialize_sizetypes): Remove parameter.
10195 Always create an unsigned type.
10196 (set_sizetype): Assert that the passed type is unsigned and simplify.
10197 * tree.c (build_common_tree_nodes): Remove second parameter.
10198 Adjust call to initialize_sizetypes.
10199 * c-decl.c (c_init_decl_processing): Remove second argument in call to
10200 build_common_tree_nodes.
10201
10202 2010-04-18 Matthias Klose <doko@ubuntu.com>
10203
10204 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
10205
10206 2010-04-18 Ira Rosen <irar@il.ibm.com>
10207
10208 PR tree-optimization/43771
10209 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
10210 load permutation doesn't have gaps.
10211
10212 2010-04-18 Jan Hubicka <jh@suse.cz>
10213
10214 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
10215 (sse_prologue_save_insn expander): Use new pattern.
10216 (sse_prologue_save_insn1): New pattern and splitter.
10217 (sse_prologue_save_insn): Update to deal also with 64bit aligned
10218 blocks.
10219 * i386.c (setup_incoming_varargs_64): Do not compute jump
10220 destination here.
10221 (ix86_gimplify_va_arg): Update alignment needed.
10222 (ix86_local_alignment): Do not align all local arrays to 128bit.
10223
10224 2010-04-17 Jan Hubicka <jh@suse.cz>
10225
10226 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
10227
10228 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10229
10230 * arm.md (negdi2): Remove redundant code to force values into a
10231 register.
10232
10233 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10234
10235 * arm/bpabi.S: Add EABI alignment attributes to objects.
10236 * arm/bpabi-v6m.S: Likewise.
10237 * arm/crti.asm: Likewise.
10238 * arm/crtn.asm: Likewise.
10239 * arm/lib1funcs.asm: Likewise.
10240 * arm/libunwind.S: Likewise.
10241
10242 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
10243
10244 * arm-protos.h (tune_params): New structure.
10245 * arm.c (current_tune): New variable.
10246 (arm_constant_limit): Delete.
10247 (struct processors): Add pointer to the tune parameters.
10248 (arm_slowmul_tune): New tuning option.
10249 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
10250 (all_cores): Adjust to pick up the tuning model.
10251 (arm_constant_limit): New function.
10252 (arm_override_options): Select the appropriate tuning model. Delete
10253 initialization of arm_const_limit.
10254 (arm_split_constant): Use the new constant-limit model.
10255 (arm_rtx_costs): Pick up the current tuning model.
10256 * arm.md (is_strongarm, is_xscale): Delete.
10257 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
10258 for Xscale variant architectures.
10259 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
10260
10261 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10262
10263 * config/arm/arm.c (arm_gen_constant): Remove unused variable
10264 can_shift.
10265 (arm_rtx_costs_1): Remove unused variable extra_cost.
10266 (arm_unwind_emit_set): Use variable offset.
10267 (thumb1_output_casesi): Remove unused variable flags.
10268
10269 2010-04-16 Jeff Law <law@redhat.com>
10270
10271 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
10272 needing assignment rather than doing a two-phase assignment. Remove
10273 unused variable 'm'.
10274
10275 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10276
10277 PR bootstrap/43767
10278 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
10279
10280 2010-04-16 Doug Kwan <dougkwan@google.com>
10281
10282 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
10283 (next_operand_entry_id): New static variable.
10284 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
10285 (add_to_ops_vec): Assigned unique ID to operand entry.
10286 (struct oecount_s): New field ID.
10287 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
10288 (undistribute_ops_list): Assign unique IDs to oecounts.
10289 (init_reassoc): reset next_operand_entry_id.
10290
10291 2010-04-16 Doug Kwan <dougkwan@google.com>
10292
10293 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
10294 missing left parenthesis.
10295
10296 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
10297
10298 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
10299 *btdi_rex64 using SWI48 mode iterator.
10300 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
10301 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
10302 *jcc_btdi_mask_rex64.
10303
10304 2010-04-16 Anatoly Sokolov <aesok@post.ru>
10305
10306 * double-int.h (tree_to_double_int): Convert to macro.
10307 * double-int.c (tree_to_double_int): Remove.
10308
10309 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10310
10311 PR debug/43762
10312 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
10313 with want_address 2 and in case a single element list might be
10314 possible, call it again with want_address 0.
10315
10316 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10317
10318 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
10319 case 'W' print operands for HI mode.
10320 * config/h8300/h8300.h (Y0, Y2) : New constraints.
10321 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
10322 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
10323 * config/h8300/predicate.md (bit_register_indirect_operand): New.
10324
10325 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
10326
10327 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
10328 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
10329 #xx:3 and #xx:4 mode.
10330
10331 * config/h8300/h8300.md (inverted load with HImode dest): Add
10332 support for H8300SX.
10333
10334 * config/h8300/predicate.md (bit_operand): Allow immediate values that
10335 satisfy 'U' constraint.
10336
10337 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10338
10339 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
10340 * configure: Regenerate.
10341 * config.in: Regenerate.
10342 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
10343 works.
10344
10345 2010-04-16 Richard Guenther <rguenther@suse.de>
10346
10347 * tree.h (struct tree_decl_minimal): Move pt_uid ...
10348 (struct tree_decl_common): ... here.
10349 (DECL_PT_UID): Adjust.
10350 (SET_DECL_PT_UID): Likewise.
10351 (DECL_PT_UID_SET_P): Likewise.
10352
10353 2010-04-16 Richard Guenther <rguenther@suse.de>
10354
10355 PR tree-optimization/43572
10356 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
10357 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
10358 * tree-flow.h (is_call_clobbered): Remove.
10359 * tree-flow-inline.h (is_call_clobbered): Likewise.
10360 * tree-dfa.c (dump_variable): Do not dump call clobber state.
10361 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
10362 (execute_return_slot_opt): Adjust.
10363 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
10364 check for call clobbered vars here.
10365 (find_tail_calls): Move tailcall verification to the
10366 proper place.
10367
10368 2010-04-16 Diego Novillo <dnovillo@google.com>
10369
10370 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
10371
10372 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10373
10374 PR target/40603
10375 * config/arm/arm.md (cbranchqi4): New pattern.
10376 * config/arm/predicates.md (const0_operand,
10377 cbranchqi4_comparison_operator): New predicates.
10378
10379 2010-04-16 Richard Guenther <rguenther@suse.de>
10380
10381 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
10382 (dump_gimple_stmt): Likewise.
10383
10384 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
10385
10386 * recog.h (struct recog_data): New field is_operator.
10387 (struct insn_operand_data): New field is_operator.
10388 * recog.c (extract_insn): Set recog_data.is_operator.
10389 * genoutput.c (output_operand_data): Emit code to set the
10390 is_operator field.
10391 * reload.c (find_reloads): Use it rather than testing for an
10392 empty constraint string.
10393
10394 PR target/41514
10395 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
10396 If the previous insn is a cbranchsi4_insn with the same arguments,
10397 omit the compare instruction.
10398
10399 * config/arm/arm.md (addsi3_cbranch): If destination is a high
10400 register, inputs must be low registers and we need a low register
10401 scratch. Handle alternative 2 like alternative 3.
10402
10403 2010-04-16 Jakub Jelinek <jakub@redhat.com>
10404
10405 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
10406 don't call get_addr on both. If one expression is a VALUE and
10407 the other a REG, check VALUE's locs if the REG isn't among them.
10408
10409 2010-04-16 Christian Bruel <christian.bruel@st.com>
10410
10411 * config/sh/sh.h (sh_frame_pointer_required): New function.
10412 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
10413 (flag_omit_frame_pointer) Set.
10414 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
10415 (rounded_frame_size): Adjust size with outgoing_args_size.
10416 (sh_set_return_address): Must return from stack pointer.
10417 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
10418 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
10419 (ACCUMULATE_OUTGOING_ARGS): Define.
10420 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
10421 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
10422
10423 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10424
10425 PR target/43471
10426 * config/sh/sh.c (sh_legitimize_reload_address): Use
10427 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
10428 Remove a unneeded check for offset_base.
10429
10430 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
10431
10432 * configure: Regenerated.
10433
10434 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10435
10436 * config/s390/s390.c (s390_call_save_register_used): Switch back
10437 to HARD_REGNO_NREGS.
10438
10439 2010-04-15 Richard Guenther <rguenther@suse.de>
10440
10441 * alias.c (alias_set_subset_of): Handle alias-set zero
10442 child properly.
10443
10444 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
10445 Julian Brown <julian@codesourcery.com>
10446
10447 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
10448 alternatives according to use of high and low regs.
10449 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
10450 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
10451 optimizing for size on Thumb-2.
10452
10453 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
10454
10455 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
10456
10457 2010-04-15 Richard Guenther <rguenther@suse.de>
10458
10459 * tree-ssa-structalias.c (struct variable_info): Add
10460 is_fn_info flag.
10461 (new_var_info): Initialize it.
10462 (dump_constraints): Support printing last added constraints.
10463 (debug_constraints): Adjust.
10464 (dump_constraint_graph): Likewise.
10465 (make_heapvar_for): Check for NULL cfun.
10466 (get_function_part_constraint): New function.
10467 (get_fi_for_callee): Likewise.
10468 (find_func_aliases): Properly implement IPA PTA constraints.
10469 (process_ipa_clobber): New function.
10470 (find_func_clobbers): Likewise.
10471 (insert_into_field_list_sorted): Remove.
10472 (create_function_info_for): Properly allocate vars for IPA mode.
10473 Do not use insert_into_field_list_sorted.
10474 (create_variable_info_for): Properly generate constraints for
10475 global vars in IPA mode.
10476 (dump_solution_for_var): Always dump the solution.
10477 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
10478 (find_what_var_points_to): Adjust.
10479 (pt_solution_set): Change.
10480 (pt_solution_ior_into): New function.
10481 (pt_solution_empty_p): Export.
10482 (pt_solution_includes_global): Adjust.
10483 (pt_solution_includes_1): Likewise.
10484 (pt_solutions_intersect_1): Likewise.
10485 (dump_sa_points_to_info): Check some invariants.
10486 (solve_constraints): Move constraint dumping ...
10487 (compute_points_to_sets): ... here.
10488 (ipa_pta_execute): ... and here.
10489 (compute_may_aliases): Do not re-compute points-to info
10490 locally if IPA info is available.
10491 (ipa_escaped_pt): New global var.
10492 (ipa_pta_execute): Properly implement IPA PTA.
10493 * tree-into-ssa.c (dump_decl_set): Support dumping
10494 decls not in referenced-vars.
10495 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
10496 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
10497 (dump_points_to_solution): Likewise.
10498 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
10499 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
10500 (remap_gimple_stmt): Reset call clobber/use information if necessary.
10501 (copy_decl_to_var): Copy DECL_PT_UID.
10502 (copy_result_decl_to_var): Likewise.
10503 * tree.c (make_node_stat): Initialize DECL_PT_UID.
10504 (copy_node_stat): Copy it.
10505 * tree.h (DECL_PT_UID): New macro.
10506 (SET_DECL_PT_UID): Likewise.
10507 (DECL_PT_UID_SET_P): Likewise.
10508 (struct tree_decl_minimal): Add pt_uid member.
10509 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
10510 (pt_solution_empty_p): Declare.
10511 (pt_solution_set): Adjust.
10512 (ipa_escaped_pt): Declare.
10513 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
10514 * gimple-pretty-print.c (pp_points_to_solution): New function.
10515 (dump_gimple_call): Dump call clobber/use information.
10516 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
10517 * tree-pass.h (TDF_ALIAS): New dump option.
10518 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
10519 * doc/invoke.texi (-fipa-pta): Update documentation.
10520
10521 2010-04-15 Richard Guenther <rguenther@suse.de>
10522
10523 * Makefile.in (OBJS-common): Add gimple-fold.o.
10524 (gimple-fold.o): New rule.
10525 * tree.h (maybe_fold_offset_to_reference,
10526 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
10527 prototypes ...
10528 * gimple.h: ... here.
10529 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
10530 may_propagate_address_into_dereference): Move prototypes ...
10531 * gimple.h: ... here.
10532 * tree-ssa-ccp.c (get_symbol_constant_value,
10533 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
10534 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
10535 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
10536 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
10537 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
10538 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
10539 gimplify_and_update_call_from_tree): Move ...
10540 * gimple-fold.c: ... here. New file.
10541 (ccp_fold_builtin): Rename to ...
10542 (gimple_fold_builtin): ... this.
10543 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
10544
10545 2010-04-15 Richard Guenther <rguenther@suse.de>
10546
10547 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
10548 fit_double_type, force_fit_type_double, add_double_with_sign,
10549 neg_double, mul_double_with_sign, lshift_double, rshift_double,
10550 lrotate_double, rrotate_double, div_and_round_double): Move ...
10551 * double-int.c: ... here.
10552 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
10553 add_double, neg_double, mul_double_with_sign, mul_double,
10554 lshift_double, rshift_double, lrotate_double, rrotate_double,
10555 div_and_round_double): Move prototypes ...
10556 * double-int.h: ... here.
10557
10558 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
10559
10560 PR target/43742
10561 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
10562 matching constraints to ensure inputs match the output.
10563
10564 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
10565
10566 PR target/43742
10567 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
10568 in an input-only operand.
10569
10570 2010-04-15 Anatoly Sokolov <aesok@post.ru>
10571
10572 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
10573 (double_int_not, double_int_lshift, double_int_rshift): Declare.
10574 (double_int_negative_p): Convert to static inline function.
10575 * double-int.c (double_int_lshift, double_int_lshift): New functions.
10576 (double_int_negative_p): Remove.
10577 * tree.h (lshift_double, rshift_double):
10578 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
10579 * fold-const.c (fold_convert_const_int_from_real,
10580 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
10581 (lshift_double): Change type of arith argument to bool.
10582 (rshift_double): Change type of arith argument to bool. Correct
10583 comment.
10584 * expmed.c (mask_rtx, lshift_value): (Ditto.).
10585
10586 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
10587
10588 PR target/21803
10589 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
10590 at the start and end of the then/else blocks, and omit them from the
10591 conversion.
10592 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
10593 argument; all callers changed. Pass zero to old_insns_match_p instead.
10594 (flow_find_head_matching_sequence): New function.
10595 (old_insns_match_p): Check REG_EH_REGION notes for calls.
10596 * basic-block.h (flow_find_cross_jump,
10597 flow_find_head_matching_sequence): Declare functions.
10598
10599 2010-04-14 Jason Merrill <jason@redhat.com>
10600
10601 PR c++/36625
10602 * c-common.c (attribute_takes_identifier_p): New fn.
10603 * c-common.h: Declare it.
10604
10605 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10606
10607 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
10608 splitter condition.
10609 (*udivmod<mode>4): Ditto.
10610
10611 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10612
10613 * config/i386/i386.md (maxmin_int): Rename code attribute from
10614 maxminiprefix and update all users.
10615 (maxmin_float): Ditto from maxminfprefix.
10616 (logic): Ditto from logicprefix.
10617 (absneg_mnemonic): Ditto from absnegprefix.
10618 * config/i386/mmx.md: Update all users of maxminiprefix,
10619 maxminfprefix and logicprefix for rename.
10620 * config/i386/sse.md: Ditto.
10621 * config/i386/sync.md (sync_<code><mode>): Update for
10622 logicprefix rename.
10623
10624 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10625
10626 PR 42966
10627 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
10628 warnings converted to errors.
10629
10630 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10631
10632 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
10633 used insn_type variable.
10634 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
10635 to avoid set-but-not-used warning.
10636
10637 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10638
10639 * df-core.c (df_ref_debug): Change format string placeholder
10640 from 0x%x to %#x.
10641 * dwarf2asm.c (dw2_asm_output_data_raw,
10642 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
10643 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
10644 * dwarf2out.c (output_cfi, output_cfi_directive,
10645 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
10646 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
10647 Ditto.
10648 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
10649 * print-rtl.c (print_rtx): Ditto.
10650
10651 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10652
10653 PR middle-end/42694
10654 * builtins.c (expand_builtin_pow_root): New function to expand pow
10655 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
10656 series of sqrt and cbrt calls under -ffast-math.
10657 (expand_builtin_pow): Call it.
10658
10659 2010-04-14 Michael Matz <matz@suse.de>
10660
10661 PR tree-optimization/42963
10662 * tree-cfg.c (touched_switch_bbs): New static variable.
10663 (group_case_labels_stmt): New function broken out from ...
10664 (group_case_labels): ... here, use the above.
10665 (start_recording_case_labels): Allocate touched_switch_bbs.
10666 (end_recording_case_labels): Deallocate it, call
10667 group_case_labels_stmt.
10668 (gimple_redirect_edge_and_branch): Remember index of affected BB.
10669
10670 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10671
10672 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
10673 from insn template.
10674
10675 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
10676
10677 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
10678
10679 2010-04-13 Jan Hubicka <jh@suse.cz>
10680
10681 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
10682 of optimized out static functions.
10683 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
10684 cost computation. Also sanity check for overflows.
10685 (update_caller_keys): Update cgraph_edge_badness call; properly
10686 update fibheap and sanity check that it is up to date.
10687 (add_new_edges_to_heap): Update cgraph_edge_badness.
10688 (cgraph_decide_inlining_of_small_function): Likewise;
10689 add sanity checking that badness in heap is up to date;
10690 improve dumping of reason; Update badness of calls to the
10691 offline copy of function currently inlined; dump badness
10692 of functions not inlined because of unit growth limits.
10693
10694 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10695
10696 PR middle-end/32628
10697 * c-common.c (pointer_int_sum): Disregard overflow that occured only
10698 because of sign-extension change when converting to sizetype here...
10699 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
10700
10701 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
10702 the folding to constants. Remove redundant final conversion.
10703 (fold_binary) <associate>: Do not associate if the re-association of
10704 constants alone overflows.
10705 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
10706 to the end of the list.
10707 (multiple_of_p) <COND_EXPR>: New case.
10708
10709 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
10710
10711 * opt-functions.awk (opt_sanitized_name): New.
10712 (opt_enum): New.
10713 * optc-gen.awk: Use it
10714 * opth-gen.awk: Use it.
10715
10716 2010-04-13 Martin Jambor <mjambor@suse.cz>
10717
10718 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
10719 (sra_modify_assign): Delete stmts loading dead data even if racc has no
10720 children. Call replace_uses_with_default_def_ssa_name to handle
10721 SSA_NAES on lhs.
10722
10723 2010-04-13 Michael Matz <matz@suse.de>
10724
10725 PR middle-end/43730
10726 * builtins.c (expand_builtin_interclass_mathfn): Also create
10727 a register if the predicate doesn't match.
10728
10729 2010-04-13 Diego Novillo <dnovillo@google.com>
10730
10731 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
10732 * c-pch.c: Include timevar.h.
10733 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
10734 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
10735 * ggc-common.c: Include timevar.h.
10736 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
10737 * timevar.def (TV_PCH_SAVE): Define.
10738 (TV_PCH_CPP_SAVE): Define.
10739 (TV_PCH_PTR_REALLOC): Define.
10740 (TV_PCH_PTR_SORT): Define.
10741 (TV_PCH_RESTORE): Define.
10742 (TV_PCH_CPP_RESTORE): Define.
10743
10744 2010-04-13 Michael Matz <matz@suse.de>
10745
10746 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
10747 into MINUS_EXPRs.
10748 (can_reassociate_p): New function.
10749 (break_up_subtract_bb, reassociate_bb): Use it.
10750
10751 2010-04-13 Richard Guenther <rguenther@suse.de>
10752
10753 PR bootstrap/43737
10754 * builtins.c (c_readstr): Fix assert.
10755
10756 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
10757
10758 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
10759 when generating cltd insn.
10760
10761 (*ashl<mode>3_1): Remove special handling for register operand 2.
10762 (*ashlsi3_1_zext): Ditto.
10763 (*ashlhi3_1): Ditto.
10764 (*ashlhi3_1_lea): Ditto.
10765 (*ashlqi3_1): Ditto.
10766 (*ashlqi3_1_lea): Ditto.
10767 (*<shiftrt_insn><mode>3_1): Ditto.
10768 (*<shiftrt_insn>si3_1_zext): Ditto.
10769 (*<shiftrt_insn>qi3_1_slp): Ditto.
10770 (*<rotate_insn><mode>3_1): Ditto.
10771 (*<rotate_insn>si3_1_zext): Ditto.
10772 (*<rotate_insn>qi3_1_slp): Ditto.
10773
10774 2010-04-13 Richard Guenther <rguenther@suse.de>
10775
10776 * tree-ssa-structalias.c (callused_id): Remove.
10777 (call_stmt_vars): New.
10778 (get_call_vi): Likewise.
10779 (lookup_call_use_vi): Likewise.
10780 (lookup_call_clobber_vi): Likewise.
10781 (get_call_use_vi): Likewise.
10782 (get_call_clobber_vi): Likewise.
10783 (make_transitive_closure_constraints): Likewise.
10784 (handle_const_call): Adjust to do per-call call-used handling.
10785 (handle_pure_call): Likewise.
10786 (find_what_var_points_to): Remove general callused handling.
10787 (init_base_vars): Likewise.
10788 (init_alias_vars): Initialize call_stmt_vars.
10789 (compute_points_to_sets): Process call-used and call-clobbered
10790 vars for call statements.
10791 (delete_points_to_sets): Free call_stmt_vars.
10792
10793 2010-04-13 Richard Guenther <rguenther@suse.de>
10794
10795 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10796 Only add RW dependence for dependence distance zero.
10797 Adjust maximal vectorization factor according to dependences.
10798 Move alignment handling ...
10799 (vect_find_same_alignment_drs): ... here. New function.
10800 (vect_analyze_data_ref_dependences): Adjust.
10801 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
10802 (vect_analyze_data_refs): Adjust minimal vectorization factor
10803 according to data references.
10804 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
10805 dependences before determining the vectorization factor.
10806 Analyze alignment after determining the vectorization factor.
10807 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
10808 dependences before alignment.
10809 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
10810 Adjust prototype.
10811 (vect_analyze_data_refs): Likewise.
10812 (MAX_VECTORIZATION_FACTOR): New define.
10813
10814 2010-04-13 Duncan Sands <baldrick@free.fr>
10815
10816 * except.h (lang_eh_type_covers): Remove.
10817 * except.c (lang_eh_type_covers): Likewise.
10818
10819 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10820 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10821
10822 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
10823 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
10824 UNITS_PER_LONG where it is ABI relevant.
10825 (s390_return_addr_rtx): Likewise.
10826 (s390_back_chain_rtx): Likewise.
10827 (s390_frame_area): Likewise.
10828 (s390_frame_info): Likewise.
10829 (s390_initial_elimination_offset): Likewise.
10830 (save_gprs): Likewise.
10831 (s390_emit_prologue): Likewise.
10832 (s390_emit_epilogue): Likewise.
10833 (s390_function_arg_advance): Likewise.
10834 (s390_function_arg): Likewise.
10835 (s390_va_start): Likewise.
10836 (s390_gimplify_va_arg): Likewise.
10837 (s390_function_profiler): Likewise.
10838 (s390_optimize_prologue): Likewise.
10839 (s390_rtx_costs): Likewise.
10840 (s390_secondary_reload): Likewise.
10841 (s390_promote_function_mode): Likewise.
10842 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
10843 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
10844 registers available.
10845 (s390_unwind_word_mode): New function.
10846 (s390_function_value): Split 64 bit values into register pair if
10847 used as return value.
10848 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
10849 function call parameters. Handle parallels.
10850 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
10851 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
10852 (DWARF_CIE_DATA_ALIGNMENT): New macro.
10853 (s390_expand_setmem): Remove unused variable src_addr.
10854 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
10855 deal with 64 bit registers.
10856 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
10857 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
10858 (UNITS_PER_LONG): New macro.
10859 * libjava/include/s390-signal.h: Define extended ucontext
10860 structure containing the upper halfs of the 64 bit registers.
10861
10862 2010-04-13 Simon Baldwin <simonb@google.com>
10863
10864 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
10865
10866 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
10867
10868 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
10869 rvalue on the RHS if the LHS is of a non-renamable type.
10870 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
10871
10872 2010-04-13 Matthias Klose <doko@ubuntu.com>
10873
10874 * gcc.c (cc1_options): Handle -iplugindir before processing
10875 the cc1 spec. Only add -iplugindir once.
10876 (cpp_unique_options): Add -iplugindir option if -fplugin* options
10877 found.
10878 * common.opt (iplugindir): Remove `Separate' property, initialize.
10879 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
10880 option.
10881 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
10882 (distclean): Remove plugin dir.
10883 * doc/invoke.texi: Document -iplugindir.
10884
10885 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
10886
10887 * doc/plugins.texi (Loading Plugins): Document short
10888 -fplugin=foo option.
10889 (Plugin API): Mention default_plugin_dir_name function.
10890
10891 * gcc.c (find_file_spec_function): Add new declaration.
10892 (static_spec_func): Use it for "find-file".
10893 (find_file_spec_function): Add new function.
10894 (cc1_options): Add -iplugindir option if -fplugin* options found.
10895
10896 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
10897
10898 * plugin.c (add_new_plugin): Updated comment, and handle short
10899 plugin name.
10900 (default_plugin_dir_name): Added new function.
10901
10902 * common.opt (iplugindir): New option to set the plugin directory.
10903
10904 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
10905
10906 * config/i386/i386.md (any_rotate): New code iterator.
10907 (rotate_insn): New code attribute.
10908 (rotate): Ditto.
10909 (SWIM124): New mode iterator.
10910 (<rotate_insn>ti3): New expander.
10911 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
10912 any_rotate code iterator.
10913 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
10914 using any_rotate code iterator and SWIM124 mode iterator.
10915 (ix86_rotlti3): New insn_and_split pattern.
10916 (ix86_rotrti3): Ditto.
10917 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
10918 ix86_rotl{di,ti}3 patterns.
10919 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
10920 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
10921 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
10922 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
10923 code iterator and SWI mode iterator.
10924 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
10925 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
10926 code iterator.
10927 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
10928 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
10929 (bswap rotatert splitter): Add splitter.
10930 (bswap splitter): Macroize splitter using any_rotate code iterator.
10931 Add insn predicate to split only for TARGET_USE_XCHGB or when
10932 optimizing function for size.
10933
10934 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10935
10936 * config/pa/pa.c (emit_move_sequence): Remove use of
10937 deleted variable flag_argument_noalias.
10938
10939 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10940
10941 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
10942 configurations.
10943 Add to unsupported targets list.
10944 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
10945 sparc*-sun-solaris2.[567]* from target lists.
10946 * configure: Regenerate.
10947 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
10948 removal.
10949 Remove Solaris 7 patch references.
10950 (Specific, sparc-sun-solaris2.7): Removed.
10951 (sparc-sun-solaris2*): Update Solaris 7 example.
10952 (sparc64-*-solaris2*): Likewise.
10953
10954 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10955
10956 * config.build (alpha*-dec-osf4*): Remove.
10957 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
10958 of obsolete configurations.
10959 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
10960 support.
10961 * config/alpha/t-osf4: Renamed to ...
10962 * config/alpha/t-osf5: ... this.
10963 * config/alpha/osf.h: Renamed to ...
10964 * config/alpha/osf5.h: ... this.
10965 Merged old osf5.h contents.
10966 Update comments.
10967 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
10968 (EXTRA_SPECS): Removed.
10969 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
10970 reflect removal of Tru64 UNIX V4.0/V5.0 support.
10971 Document that.
10972
10973 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10974
10975 * doc/contrib.texi (Contributors, Rainer Orth): Update.
10976
10977 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
10978
10979 PR/43702
10980 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
10981 __thiscall convention.
10982
10983 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10984
10985 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
10986 orig_base.
10987 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
10988
10989 2010-04-12 Steve Ellcey <sje@cup.hp.com>
10990
10991 * function.c (assign_parms_initialize_all): Add unused attribute
10992 to fntype.
10993
10994 2010-04-12 Richard Guenther <rguenther@suse.de>
10995
10996 * gsstruct.def (GSS_CALL): New.
10997 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
10998 * gimple.h: Include tree-ssa-alias.h.
10999 (struct gimple_statement_call): New.
11000 (union gimple_statement_struct_d): Add gimple_call member.
11001 (gimple_call_reset_alias_info): Declare.
11002 (gimple_call_use_set): New function.
11003 (gimple_call_clobber_set): Likewise.
11004 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
11005 * gimple.c (gimple_call_reset_alias_info): New function.
11006 (gimple_build_call_1): Call it.
11007 * lto-streamer-in.c (input_gimple_stmt): Likewise.
11008 * tree-inline.c (remap_gimple_stmt): Likewise.
11009 (expand_call_inline): Remove callused handling.
11010 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
11011 * tree-dfa.c (dump_variable): Likewise.
11012 * tree-parloops.c (parallelize_loops): Likewise.
11013 * tree-ssa.c (init_tree_ssa): Likewise.
11014 (delete_tree_ssa): Likewise.
11015 * tree-flow-inline.h (is_call_used): Remove.
11016 * tree-flow.h (struct gimple_df): Remove callused member.
11017 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
11018 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
11019 (ref_maybe_used_by_call_p_1): Simplify.
11020 (call_may_clobber_ref_p_1): Likewise.
11021 * tree-ssa-structalias.c (compute_points_to_sets): Set
11022 the call stmt used and clobbered sets.
11023 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
11024 (find_tail_calls): Verify the tail call.
11025
11026 2010-04-12 Richard Guenther <rguenther@suse.de>
11027
11028 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
11029 single-iteration always-inline inlining.
11030 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
11031 (cgraph_decide_inlining): Do not handle always-inline specially.
11032 (try_inline): Remove always-inline cycle detection special case.
11033 Do not recurse on always-inlines.
11034 (cgraph_early_inlining): Do not iterate if not optimizing.
11035 (cgraph_gate_early_inlining): remove.
11036 (pass_early_inline): Run unconditionally.
11037 (gate_cgraph_decide_inlining): New function.
11038 (pass_ipa_inline): Use it. Do not run the IPA inliner if
11039 not inlining or optimizing.
11040 (cgraph_decide_inlining_of_small_functions): Also consider
11041 always-inline functions.
11042 (cgraph_default_inline_p): Return true for nodes which should
11043 disregard inline limits.
11044 (estimate_function_body_sizes): Assume zero size and time for
11045 nodes which are marked as disregarding inline limits.
11046 (cgraph_decide_recursive_inlining): Do not perform recursive
11047 inlining on always-inline nodes.
11048
11049 2010-04-12 Jakub Jelinek <jakub@redhat.com>
11050
11051 PR bootstrap/43699
11052 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
11053 for exprs satisfying handled_component_p.
11054
11055 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
11056
11057 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
11058 non-constant aggregate elements.
11059
11060 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
11061 is a real initialization.
11062
11063 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
11064
11065 PR c/36774
11066 * c-decl.c (start_function): Move forward check for nested function.
11067
11068 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
11069
11070 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
11071 * config/sh/sh.c: Include reload.h.
11072 (sh_legitimize_reload_address): New.
11073 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
11074 sh_legitimize_reload_address.
11075
11076 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11077
11078 * config/sh/sh.md (*movqi_pop): New insn pattern.
11079 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
11080
11081 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11082
11083 * config/i386/i386.md (any_shiftrt): New code iterator.
11084 (shiftrt_insn): New code attribute.
11085 (shiftrt): Ditto.
11086 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
11087 using any_shiftrt code iterator.
11088 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
11089 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
11090 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
11091 pattern from corresponding peephole2 patterns.
11092 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
11093 using any_shiftrt code iterator.
11094 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
11095 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
11096 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
11097 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
11098 *{ashr,lshr}<mode>3_cmp_zext.
11099 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
11100
11101 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11102
11103 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
11104 scratch register.
11105 (*lshr<mode>3_cconly): Ditto.
11106
11107 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
11108
11109 * config/i386/i386.md (lshr<mode>3): Macroize expander from
11110 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11111 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11112 pattern from *lshr{di,ti}3_1 and corresponding splitters using
11113 DWI mode iterator.
11114 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11115 from corresponding peephole2 patterns.
11116 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
11117 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
11118 and *lshrdi3_1_rex64 using SWI mode iterator.
11119 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
11120 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
11121 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
11122 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
11123 and *lshrdi3_cmp_rex64 using SWI mode iterator.
11124 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
11125 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
11126 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
11127 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
11128 SWI mode iterator.
11129
11130 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
11131
11132 * config/i386/i386.md (ashr<mode>3): Macroize expander from
11133 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
11134 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
11135 pattern from *ashr{di,ti}3_1 and corresponding splitters using
11136 DWI mode iterator.
11137 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
11138 from corresponding peephole2 patterns.
11139 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
11140 (ashrsi3_cvt): Rename from ashrsi3_31.
11141 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
11142 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
11143 and x86_64_shift_adj_3 using SWI48 mode iterator.
11144 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
11145 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
11146 and *ashrdi3_1_rex64 using SWI mode iterator.
11147 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
11148 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
11149 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
11150 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
11151 and *ashrdi3_cmp_rex64 using SWI mode iterator.
11152 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
11153 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
11154 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
11155 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
11156 SWI mode iterator.
11157 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
11158 * config/i386/i386.c (ix86_split_ashr): Update for renamed
11159 x86_shift<mode>_adj_3 expanders.
11160
11161 2010-04-10 Wei Guozhi <carrot@google.com>
11162
11163 PR target/42601
11164 * config/arm/arm.c (arm_pic_static_addr): New function.
11165 (legitimize_pic_address): Call arm_pic_static_addr when it detects
11166 a static symbol.
11167 (arm_output_addr_const_extra): Output expression for new pattern.
11168 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
11169
11170 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
11171
11172 * ira-costs.c (record_reg_classes): Ignore alternatives that are
11173 not enabled.
11174
11175 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
11176 * web.c: Include "insn-config.h" and "recog.h".
11177 (union_match_dups): New function.
11178 (web_main): Call it.
11179 (union_defs): Don't try to recognize match_dups.
11180
11181 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
11182 if doing so would replace the entire pattern.
11183
11184 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11185
11186 PR target/43707
11187 PR target/43709
11188 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
11189 and splitter pattern. Change splitter operand 1 predicate to
11190 nonmemory_operand.
11191
11192 2010-04-09 Martin Jambor <mjambor@suse.cz>
11193
11194 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
11195 lattices are addresses of CONST_DECLs with the same initial value.
11196 (ipcp_print_all_lattices): Print values of CONST_DECLs.
11197 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
11198
11199 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
11200 Bernd Schmidt <bernds@codesourcery.com>
11201
11202 * loop-invariant.c (replace_uses): New static function.
11203 (move_invariant_reg): Use it to ensure we can replace the uses.
11204
11205 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
11206
11207 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
11208 function template.
11209 (picochip_override_options): Enable section anchors only above -O1.
11210 (picochip_reorg): Fixed a couple of build warnings.
11211
11212 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11213
11214 * configure.ac (plugin -rdynamic test): Log result.
11215 * configure: Regenerate.
11216 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
11217 (RDYNAMIC_SPEC): Define.
11218 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
11219
11220 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11221
11222 * configure.ac: Determine Sun ld version numbers.
11223 (comdat_group): Restrict GNU ld version checks to gld.
11224 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
11225 (enable_comdat): Support --enable-comdat.
11226 * configure: Regenerate.
11227 * doc/install.texi (Configuration): Document --enable-comdat.
11228
11229 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11230
11231 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
11232 * config/sol2-gld.h: ... here.
11233 * config.gcc (sparc*-*-solaris2*): Reflect this.
11234 (i[34567]86-*-solaris2*): Use it.
11235
11236 2010-04-09 Steve Ellcey <sje@cup.hp.com>
11237
11238 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
11239 setup_clocks_p.
11240 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
11241
11242 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11243
11244 PR 42965
11245 * diagnostic.c (diagnostic_initialize): Initialize
11246 some_warnings_are_errors.
11247 (diagnostic_finish): New.
11248 (diagnostic_action_after_output): Call it before exiting.
11249 (diagnostic_report_diagnostic): Do not print message here. Set
11250 some_warnings_are_errors.
11251 * diagnostic.h (diagnostic_context): Delete
11252 issue_warnings_are_errors_message. Add some_warnings_are_errors.
11253 (diagnostic_finish): Declare.
11254 * toplev.c (toplev_main): Call it before exit.
11255
11256 2010-04-09 Jason Merrill <jason@redhat.com>
11257
11258 PR c++/42623
11259 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
11260 for incomplete type.
11261
11262 PR c++/41788
11263 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
11264 based on a warning flag.
11265
11266 2010-04-09 Richard Guenther <rguenther@suse.de>
11267
11268 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
11269
11270 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
11271
11272 PR bootstrap/43684
11273 * varasm.c (default_assemble_visibility): Wrap vars that are
11274 set, but unused, by targets without GAS.
11275 * config/rs6000/rs6000.c (paired_emit_vector_compare):
11276 Remove set, but unused, vars.
11277 (rs6000_legitimize_tls_address): Likewise.
11278 (altivec_expand_dst_builtin): Likewise.
11279 * config/darwin.c (machopic_classify_symbol): Likewise.
11280 (machopic_indirection_name): Likewise.
11281
11282 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
11283
11284 * config/i386/i386.md (DWI): New mode iterator.
11285 (S): New mode attribute.
11286 (shift_operand): Ditto.
11287 (shift_immediate_operand): Ditto.
11288 (ashl_input_operand): Ditto.
11289 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
11290 using SDWIM mode iterator.
11291 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
11292 pattern from *ashl{di,ti}3_1 and corresponding splitters using
11293 DWI mode iterator.
11294 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
11295 from corresponding peephole2 patterns.
11296 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
11297 and x86_64_shift_adj_1 using SWI48 mode iterator.
11298 (x86_shift<mode>_adj_2): Ditto.
11299 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
11300 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
11301 using SWI48 mode iterator.
11302 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
11303 *ashldi3_cmp_rex64 using SWI mode iterator.
11304 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
11305 *ashldi3_cconly_rex64 using SWI mode iterator.
11306 * config/i386/i386.c (ix86_split_ashl): Update for renamed
11307 x86_shift<mode>_adj_{1,2}.
11308 (ix86_split_ashr): Ditto.
11309 (ix86_split_lshr): Ditto.
11310
11311 2010-04-09 Richard Guenther <rguenther@suse.de>
11312
11313 * target.h (builtin_conversion): Pass in input and output types.
11314 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
11315 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
11316 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
11317 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
11318
11319 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
11320 Handle AVX modes.
11321 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
11322
11323 2010-04-09 Richard Guenther <rguenther@suse.de>
11324
11325 PR target/43152
11326 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
11327
11328 2010-04-09 Richard Guenther <rguenther@suse.de>
11329
11330 * tree-vectorizer.h (struct _stmt_vec_info): Document
11331 that vectype is the type of the LHS.
11332 (supportable_widening_operation, supportable_narrowing_operation):
11333 Get both input and output vector types as arguments.
11334 (vect_is_simple_use_1): Declare.
11335 (get_same_sized_vectype): Likewise.
11336 * tree-vect-loop.c (vect_determine_vectorization_factor):
11337 Set STMT_VINFO_VECTYPE to the vector type of the def.
11338 (vectorizable_reduction): Adjust.
11339 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
11340 Adjust. Specify the output vector type.
11341 (vect_pattern_recog_1): Adjust.
11342 * tree-vect-stmts.c (get_same_sized_vectype): New function.
11343 (vectorizable_call): Adjust.
11344 (vectorizable_conversion): Likewise.
11345 (vectorizable_operation): Likewise.
11346 (vectorizable_type_demotion): Likewise.
11347 (vectorizable_type_promotion): Likewise.
11348 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
11349 the def.
11350 (vect_is_simple_use_1): New function.
11351 (supportable_widening_operation): Get both input and output
11352 vector types.
11353 (supportable_narrowing_operation): Likewise.
11354 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
11355
11356 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
11357
11358 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
11359 __thiscall and _thiscall as predefined macros.
11360 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
11361 thiscall attribute handling.
11362 (ix86_comp_type_attributes): Likewise.
11363 (ix86_function_regparm): Likewise.
11364 (ix86_return_pops_args): Likewise.
11365 (init_cumulative_args): Likewise.
11366 (find_drap_reg): Likewise.
11367 (ix86_static_chain): Likewise.
11368 (x86_this_parameter): Likewise.
11369 (x86_output_mi_thunk): Likewise.
11370 (ix86_attribute_table): Add description for thiscall attribute.
11371 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
11372 * doc/extend.texi: Add documentation for thiscall.
11373
11374 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
11375
11376 PR c++/28584
11377 * c.opt (Wint-to-pointer-cast): Available in C++.
11378 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
11379
11380 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
11381
11382 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
11383 * calls.c (expand_call): Pass the function type to aggregate_value_p.
11384 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
11385 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
11386 function type instead. Reorder and simplify checks.
11387
11388 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
11389
11390 2010-04-08 Jing Yu <jingyu@google.com>
11391 Zdenek Dvorak <ook@ucw.cz>
11392
11393 PR tree-optimization/42720
11394 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
11395 loop unswitch conditions here from ...
11396 (tree_unswitch_single_loop): ... here.
11397
11398 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11399
11400 * tree-if-conv.c: Fix comments and simplify logic.
11401
11402 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
11403
11404 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
11405 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
11406 (main_tree_if_conversion): Update call to tree_if_conversion.
11407
11408 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
11409
11410 PR 42485
11411 * doc/invoke.texi (-b,-V): Delete.
11412 * doc/tm.texi: Do not mention -b.
11413 * gcc.c (display_help): Delete -b and -V.
11414 (process_command): Delete -b and -V.
11415 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
11416
11417 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
11418 Wolfgang Gellerich <gellerich@de.ibm.com>
11419
11420 Implement target hook for loop unrolling
11421 * target.h (loop_unroll_adjust): Add a new target hook function.
11422 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
11423 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
11424 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
11425 (s390_loop_unroll_adjust): Implement the new target hook for s390.
11426 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
11427 target hook.
11428 (decide_unroll_stupid): Likewise.
11429
11430 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11431
11432 PR target/43643
11433 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
11434
11435 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11436
11437 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
11438 (Specific, *-*-solaris2*): Likewise.
11439 Don't prefer Sun as over GNU as.
11440
11441 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
11442
11443 * config/s390/s390.c (override_options): Adjust the z10 defaults
11444 for max-unroll-times, max-completely-peeled-insns
11445 and max-completely-peel-times.
11446
11447 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11448
11449 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
11450 instructions for z10.
11451 (s390_expand_setmem): Likewise.
11452 (s390_expand_cmpmem): Likewise.
11453
11454 2010-04-08 Richard Guenther <rguenther@suse.de>
11455
11456 PR tree-optimization/43679
11457 * tree-ssa-pre.c (eliminate): Only propagate copies.
11458
11459 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11460
11461 PR bootstrap/43681
11462 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
11463 set but not used variable warning.
11464
11465 2010-04-08 Wei Guozhi <carrot@google.com>
11466
11467 PR target/41653
11468 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
11469 (arm_size_rtx_costs): Call the new function when optimized for size.
11470
11471 2010-04-08 Jakub Jelinek <jakub@redhat.com>
11472
11473 PR debug/43670
11474 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
11475 op0 is not a MEM, just return NULL instead of assertion
11476 failure.
11477 (discover_nonconstant_array_refs): Don't walk debug stmts.
11478
11479 2010-04-08 Doug Kwan <dougkwan@google.com>
11480
11481 * configure.ac: Recognize gold and do not use its version number
11482 to test ld features.
11483 * configure: Regenerate.
11484
11485 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
11486
11487 PR middle-end/40815
11488 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
11489 (negate_value): Move code to push elements to broken_up_substracts ...
11490 (eliminate_plus_minus_pair): ... here. Push operands that have no
11491 negative pair to plus_negates.
11492 (repropagate_negates, init_reassoc, fini_reassoc): Update.
11493
11494 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11495
11496 * doc/install.texi (Configuration): Move description of
11497 --enable-lto, --with-libelf*, --enable-gold from Java section to
11498 general section.
11499
11500 * doc/generic.texi (Working with declarations)
11501 (Function Properties, C and C++ Trees): Fix typos.
11502 * doc/sourcebuild.texi (Top Level): Likewise.
11503
11504 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11505
11506 PR c/18624
11507 * tree.h (DECL_READ_P): Define.
11508 (struct tree_decl_common): Add decl_read_flag.
11509 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
11510 a set but not used warning.
11511 (merge_decls): Merge DECL_READ_P flag.
11512 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
11513 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
11514 * c-common.c (handle_used_attribute, handle_unused_attribute):
11515 Likewise.
11516 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
11517 New prototypes.
11518 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
11519 New functions.
11520 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
11521 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
11522 c_parser_binary_expression, c_parser_cast_expression,
11523 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
11524 Call default_function_array_read_conversion instead of
11525 default_function_array_conversion where needed.
11526 (c_parser_unary_expression, c_parser_conditional_expression,
11527 c_parser_postfix_expression_after_primary, c_parser_initelt):
11528 Likewise. Call mark_exp_read where needed.
11529 (c_parser_statement_after_labels, c_parser_asm_operands,
11530 c_parser_typeof_specifier, c_parser_sizeof_expression,
11531 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
11532 where needed.
11533 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
11534 New.
11535 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
11536 (warn_unused_but_set_parameter): Default to warn_unused
11537 && extra_warnings.
11538 * doc/invoke.texi: Document -Wunused-but-set-variable and
11539 -Wunused-but-set-parameter.
11540
11541 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
11542 used count variable.
11543 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
11544 when operandN variables aren't used in the body of the expander
11545 or splitter.
11546 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
11547 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
11548 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
11549 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
11550 FOR_EACH_IMM_USE_ON_STMT): Likewise.
11551 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
11552 * tree.c (PROCESS_ARG): Likewise.
11553
11554 2010-04-07 Simon Baldwin <simonb@google.com>
11555
11556 * diagnostic.h (diagnostic_override_option_index): New macro to
11557 set a diagnostic's option_index.
11558 * c-tree.h (c_cpp_error): Add warning reason argument.
11559 * opts.c (_warning_as_error_callback): New.
11560 (register_warning_as_error_callback): Store callback for
11561 warnings enabled via enable_warning_as_error.
11562 (enable_warning_as_error): Call callback, minor code tidy.
11563 * opts.h (register_warning_as_error_callback): Declare.
11564 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
11565 response to -Werror=.
11566 (c_common_init_options): Register warning_as_error_callback in opts.c.
11567 * common.opt: Add -Wno-cpp option.
11568 * c-common.c (struct reason_option_codes_t): Map cpp warning
11569 reason codes to gcc option indexes.
11570 * (c_option_controlling_cpp_error): New function, lookup the gcc
11571 option index for a cpp warning reason code.
11572 * (c_cpp_error): Add warning reason argument, call
11573 c_option_controlling_cpp_error for diagnostic_override_option_index.
11574 * doc/invoke.texi: Document -Wno-cpp.
11575
11576 2010-04-07 Richard Guenther <rguenther@suse.de>
11577
11578 * ipa-reference.c (mark_load): Use get_base_address.
11579 (mark_store): Likewise.
11580
11581 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
11582 inserting GIMPLE_NOPs into the IL.
11583 * tree-ssa-structalias.c (get_constraint_for_component_ref):
11584 Explicitly strip handled components and indirect references.
11585
11586 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
11587 folding address expressions.
11588 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
11589 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
11590 operand_equal_p to compare decls.
11591 (ptr_deref_may_alias_decl_p): Likewise.
11592 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
11593 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
11594 Handle reversed comparison ops.
11595 * tree-sra.c (asm_visit_addr): Use get_base_address.
11596 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
11597 * ipa-reference.c (mark_address): Use get_base_address.
11598
11599 2010-04-07 Richard Guenther <rguenther@suse.de>
11600
11601 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
11602 Propagate constants everywhere.
11603
11604 2010-04-07 Jakub Jelinek <jakub@redhat.com>
11605
11606 PR debug/43516
11607 * tree.c (MAX_INT_CACHED_PREC): Define.
11608 (nonstandard_integer_type_cache): New array.
11609 (build_nonstandard_integer_type): Cache results for precision
11610 <= MAX_INT_CACHED_PREC.
11611
11612 2010-04-07 Richard Guenther <rguenther@suse.de>
11613
11614 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
11615 -fargument-noalias-global, -fargument-noalias-anything): Remove.
11616 * common.opt: Likewise.
11617 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
11618 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
11619 (nonoverlapping_memrefs_p): Likewise.
11620 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11621 * opts.c (common_handle_option): Handle OPT_fargument_alias,
11622 OPT_fargument_noalias, OPT_fargument_noalias_anything and
11623 OPT_fargument_noalias_global for backward compatibility.
11624
11625 2010-04-07 Richard Guenther <rguenther@suse.de>
11626
11627 PR tree-optimization/43270
11628 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
11629 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
11630 * tree-ssa-pre.c (phi_translate_1): Adjust.
11631 (fully_constant_expression): Split out vn_reference handling to ...
11632 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
11633 Fold reads from constant strings.
11634 (vn_reference_lookup): Handle fully constant references.
11635 (vn_reference_lookup_pieces): Likewise.
11636 * Makefile.in (expmed.o-warn): Add -Wno-error.
11637
11638 2010-04-07 Martin Jambor <mjambor@suse.cz>
11639
11640 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
11641
11642 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
11643
11644 PR driver/41594
11645 * gcc.c: Add -static-libstdc++ to list of recognized options.
11646
11647 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11648
11649 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
11650
11651 2010-04-07 Richard Guenther <rguenther@suse.de>
11652
11653 PR middle-end/42617
11654 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
11655 bases build simple mem attributes to retain points-to information.
11656
11657 2010-04-07 Richard Guenther <rguenther@suse.de>
11658
11659 PR middle-end/42617
11660 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
11661 preserve points-to related information.
11662
11663 2010-04-07 Richard Guenther <rguenther@suse.de>
11664
11665 PR middle-end/42617
11666 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
11667 discard plain indirect references.
11668 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
11669 * tree.c (tree_nop_conversion): Likewise.
11670
11671 2010-04-07 Dodji Seketeli <dodji@redhat.com>
11672
11673 PR debug/43628
11674 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
11675
11676 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
11677
11678 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
11679 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
11680
11681 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11682
11683 * tree-if-conv.c: Fix indentation and comments.
11684
11685 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11686
11687 * tree-if-conv.c: Sort static functions in topological order.
11688
11689 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
11690
11691 * tree-if-conv.c: Fix indentation and comments.
11692
11693 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11694
11695 PR middle-end/43519
11696 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
11697 lang_hooks.types.type_for_size instead of
11698 build_nonstandard_integer_type.
11699 When converting an unsigned type to signed, double its precision.
11700 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
11701 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
11702 (graphite_create_new_loop_guard): When ub + 1 wraps around,
11703 use lb <= ub.
11704
11705 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11706
11707 PR middle-end/43519
11708 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11709 POINTER_PLUS_EXPR for pointer types.
11710
11711 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11712
11713 PR middle-end/43519
11714 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
11715 * graphite-clast-to-gimple.c: Include langhooks.h.
11716 (max_signed_precision_type): New.
11717 (max_precision_type): Takes two types as arguments.
11718 (precision_for_value): New.
11719 (precision_for_interval): New.
11720 (gcc_type_for_interval): New.
11721 (gcc_type_for_value): New.
11722 (gcc_type_for_clast_term): New.
11723 (gcc_type_for_clast_red): New.
11724 (gcc_type_for_clast_bin): New.
11725 (gcc_type_for_clast_expr): Split up into several functions.
11726 (gcc_type_for_clast_eq): Rewritten.
11727 (compute_bounds_for_level): New.
11728 (compute_type_for_level_1): New.
11729 (compute_type_for_level): New.
11730 (gcc_type_for_cloog_iv): Removed.
11731 (gcc_type_for_iv_of_clast_loop): Rewritten.
11732 (graphite_create_new_loop): Compute the lower and upper bound types
11733 with gcc_type_for_clast_expr.
11734 (graphite_create_new_loop_guard): Same.
11735 (find_cloog_iv_in_expr): Removed.
11736 (compute_cloog_iv_types_1): Removed.
11737 (compute_cloog_iv_types): Removed.
11738 (gloog): Do not call compute_cloog_iv_types.
11739 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
11740 GBB_CLOOG_IV_TYPES.
11741 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
11742 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
11743 (GBB_CLOOG_IV_TYPES): Removed.
11744
11745 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11746
11747 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
11748 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
11749 (detect_commutative_reduction): Same.
11750
11751 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11752
11753 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
11754 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
11755 argument.
11756 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
11757 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
11758 (rewrite_commutative_reductions_out_of_ssa): Same.
11759 * passes.c (execute_function_todo): Call verify_ssa for every pass
11760 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
11761 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
11762 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
11763 with an extra argument.
11764 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
11765 verify_ssa only when the extra argument is true.
11766 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
11767 with an extra argument.
11768 (tree_transform_and_unroll_loop): Same.
11769
11770 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
11771
11772 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
11773 for all the passes of the LNO having LOOP_CLOSED_SSA.
11774 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
11775 * tree-loop-distribution.c (pass_loop_distribution): Same.
11776 * tree-pass.h (TODO_verify_loops): Removed.
11777 * tree-ssa-loop.c (pass_tree_loop_init): Same.
11778 (pass_lim): Same.
11779 (pass_tree_unswitch): Same.
11780 (pass_predcom): Same.
11781 (pass_vectorize): Same.
11782 (pass_linear_transform): Same.
11783 (pass_graphite_transforms): Same.
11784 (pass_iv_canon): Same.
11785 (pass_complete_unroll): Same.
11786 (pass_complete_unrolli): Same.
11787 (pass_parallelize_loops): Same.
11788 (pass_loop_prefetch): Same.
11789 (pass_iv_optimize): Same.
11790
11791 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
11792
11793 PR middle-end/32824
11794 * passes.c (init_optimization_passes): Move pass_lim before
11795 pass_copy_prop and pass_dce_loop.
11796
11797 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11798
11799 PR target/43667
11800 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
11801 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
11802 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
11803 MULTI_* defines for 4 argument vpermil2p* builtins.
11804
11805 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11806
11807 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
11808 * config/i386/i386.c (x86_maybe_negate_const_int): New.
11809 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
11810 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
11811 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
11812 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
11813 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
11814 Use x86_maybe_negate_const_int to output insn mnemonic.
11815 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
11816 check from instruction predicate. Update comments.
11817 * config/i386/sync.md (sync_add<mode>): Use
11818 x86_maybe_negate_const_int to output insn mnemonic.
11819
11820 2010-04-06 Jan Hubicka <jh@suse.cz>
11821
11822 PR tree-optimization/42906
11823 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
11824 IGNORE_SELF argument. Set visited_control_parents for fully
11825 processed BBs.
11826 (find_obviously_necessary_stmts): Update call of
11827 mark_control_dependent_edges_necessary.
11828 (propagate_necessity): Likewise. Handle PHI edges more curefully.
11829
11830 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
11831
11832 * config/i386/i386.md: Remove comment about 'e' and 'E'
11833 operand modifier.
11834
11835 2010-04-06 Richard Guenther <rguenther@suse.de>
11836
11837 PR tree-optimization/43627
11838 * tree-vrp.c (extract_range_from_unary_expr): Widenings
11839 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
11840 not varying.
11841
11842 2010-04-06 Jakub Jelinek <jakub@redhat.com>
11843
11844 * BASE-VER: Change to 4.6.0.
11845
11846 PR target/43638
11847 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
11848 handling.
11849
11850 2010-04-06 Richard Guenther <rguenther@suse.de>
11851
11852 PR middle-end/43661
11853 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
11854
11855 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11856
11857 * doc/invoke.texi (Optimize Options): Document that LTO
11858 won't remove object access purely due to incompatible
11859 declarations.
11860
11861 2010-04-04 Matthias Klose <doko@ubuntu.com>
11862
11863 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
11864 Initialize variable.
11865
11866 2010-04-03 Richard Guenther <rguenther@suse.de>
11867
11868 PR middle-end/42509
11869 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
11870 require a non-NULL MEM_OFFSET.
11871
11872 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
11873
11874 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
11875 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
11876 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
11877 config/alpha/predicates.md, config/arm/arm.md,
11878 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
11879 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
11880 config/darwin9.h, config/darwin.c, config/darwin.h,
11881 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
11882 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
11883 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
11884 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
11885 config/mips/mips.md, config/mn10300/mn10300.c,
11886 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
11887 config/rs6000/aix.h, config/rs6000/dfp.md,
11888 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
11889 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
11890 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
11891 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
11892 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
11893 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
11894 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
11895 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
11896 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
11897 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
11898 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
11899 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
11900 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
11901 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
11902 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
11903 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
11904 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
11905 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
11906 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
11907 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
11908 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
11909 opt-functions.awk, opth-gen.awk, params.def, passes.c,
11910 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
11911 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
11912 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
11913 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
11914 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
11915 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
11916 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
11917 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
11918 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
11919 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
11920 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
11921 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
11922 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
11923 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
11924
11925 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11926
11927 PR other/43620
11928 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
11929 * aclocal.m4: Regenerate.
11930
11931 2010-04-02 Richard Guenther <rguenther@suse.de>
11932
11933 PR tree-optimization/43629
11934 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
11935 if we have seen a constant value.
11936
11937 2010-04-02 Joseph Myers <joseph@codesourcery.com>
11938
11939 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
11940
11941 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
11942
11943 PR target/43469
11944 * arm.c (legitimize_tls_address): Adjust call to
11945 gen_tls_load_dot_plus_four.
11946 (arm_note_pic_base): New function.
11947 (arm_cannot_copy_insn_p): Use it.
11948 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
11949 constraint.
11950
11951 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11952
11953 PR bootstrap/43531
11954
11955 Revert:
11956 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11957
11958 * Makefile.in ($(out_object_file)): Depend on
11959 gt-$(basename $(notdir $(out_file))).h.
11960
11961 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
11962
11963 * config.gcc (lm32-*-rtems*): Add t-lm32.
11964
11965 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
11966
11967 * config.gcc: Add lm32-*-rtems*.
11968 * config/lm32/rtems.h: New file.
11969
11970 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
11971
11972 PR target/42609
11973 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
11974
11975 2010-04-01 Jakub Jelinek <jakub@redhat.com>
11976
11977 * dwarf2out.c (output_compilation_unit_header): For
11978 -gdwarf-4 use version 4 instead of version 3.
11979 (output_line_info): For version 4 and above emit additional
11980 maximum ops per insn header field.
11981 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
11982
11983 * dwarf2out.c (is_c_family, is_java): Remove.
11984 (lower_bound_default): New function.
11985 (add_bound_info, gen_descr_array_type_die): Use it.
11986
11987 2010-04-01 Dodji Seketeli <dodji@redhat.com>
11988
11989 PR debug/43325
11990 * dwarf2out.c (gen_variable_die): Allow debug info for variable
11991 re-declaration when it happens in a function.
11992
11993 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
11994
11995 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
11996 (cgraph_remove_function_insertion_hook): Same.
11997 (cgraph_call_function_insertion_hooks): Same.
11998
11999 2010-04-01 Richard Guenther <rguenther@suse.de>
12000
12001 PR middle-end/43614
12002 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
12003 and TREE_THIS_VOLATILE.
12004 (copy_ref_info): Likewise.
12005 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
12006 * tree.c (build6_stat): Ignore side-effects of all but arg5
12007 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
12008 TARGET_MEM_REF.
12009
12010 2010-04-01 Richard Guenther <rguenther@suse.de>
12011
12012 PR tree-optimization/43607
12013 * ipa-type-escape.c (check_call): Do not access non-existing
12014 arguments.
12015
12016 2010-04-01 Richard Guenther <rguenther@suse.de>
12017
12018 PR middle-end/43602
12019 Revert
12020 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12021 Jack Howarth <howarth@bromo.med.uc.edu>
12022
12023 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12024 variables TLS.
12025
12026 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12027
12028 * doc/install.texi (Prerequisites): Document libelf usability on
12029 IRIX 5/6 and Solaris 2.
12030 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
12031 Update GNU as, GNU ld requirements.
12032 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
12033 Document Sun Studio compiler download.
12034 Update and simplify as, ld recommendations.
12035 (Specific, *-*-solaris2.7): Note obsoletion, removal.
12036
12037 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12038
12039 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
12040 with_tune_32 to pentium4.
12041
12042 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
12043
12044 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
12045
12046 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12047
12048 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
12049 obsoletion, removal.
12050 Update IDO URL.
12051 Document GNU as requirement.
12052 Update configure requirements.
12053 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
12054 Recomment IRIX 6.5.18+.
12055 Document IDF/IDL requirement.
12056 Document GNU as requirement.
12057 Document GNU ld bootstrap failure.
12058 Remove freeware.sgi.com reference.
12059
12060 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12061
12062 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
12063 UNIX V4.0, V5.0 obsoletion, removal.
12064 Remove --with-gc=simple reference.
12065 Update VM requirements during bootstrap.
12066 Remove -oldas bootstrap description.
12067 Update binutils reference.
12068 Remove comparison failure note.
12069
12070 2010-03-31 Richard Guenther <rguenther@suse.de>
12071 Zdenek Dvorak <ook@ucw.cz>
12072 Sebastian Pop <sebastian.pop@amd.com>
12073
12074 PR middle-end/43464
12075 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
12076 with multiple arguments.
12077 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
12078
12079 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12080
12081 * graphite-dependences.c (print_pddr): Call print_pdr with an
12082 extra argument.
12083 * graphite-poly.c (debug_pdr): Add an extra argument for the
12084 verbosity level.
12085 (print_pdr): Same.
12086 (print_pbb_domain): Same.
12087 (print_pbb): Same.
12088 (print_scop_context): Same.
12089 (print_scop): Same.
12090 (print_cloog): Same.
12091 (debug_pbb_domain): Same.
12092 (debug_pbb): Same.
12093 (print_pdrs): Same.
12094 (debug_pdrs): Same.
12095 (debug_scop_context): Same.
12096 (debug_scop): Same.
12097 (debug_cloog): Same.
12098 (print_scop_params): Same.
12099 (debug_scop_params): Same.
12100 (print_iteration_domain): Same.
12101 (print_iteration_domains): Same.
12102 (debug_iteration_domain): Same.
12103 (debug_iteration_domains): Same.
12104 (print_scattering_function): Same.
12105 (print_scattering_functions): Same.
12106 (debug_scattering_function): Same.
12107 (debug_scattering_functions): Same.
12108 * graphite-poly.h (debug_pdr): Update declaration.
12109 (print_pdr): Same.
12110 (print_pbb_domain): Same.
12111 (print_pbb): Same.
12112 (print_scop_context): Same.
12113 (print_scop): Same.
12114 (print_cloog): Same.
12115 (debug_pbb_domain): Same.
12116 (debug_pbb): Same.
12117 (print_pdrs): Same.
12118 (debug_pdrs): Same.
12119 (debug_scop_context): Same.
12120 (debug_scop): Same.
12121 (debug_cloog): Same.
12122 (print_scop_params): Same.
12123 (debug_scop_params): Same.
12124 (print_iteration_domain): Same.
12125 (print_iteration_domains): Same.
12126 (debug_iteration_domain): Same.
12127 (debug_iteration_domains): Same.
12128 (print_scattering_function): Same.
12129 (print_scattering_functions): Same.
12130 (debug_scattering_function): Same.
12131 (debug_scattering_functions): Same.
12132
12133 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12134
12135 * graphite-poly.c (print_scattering_function_1): New.
12136 (print_scattering_function): Call it.
12137 (print_scop_params): Remove spaces at the end of lines.
12138 (print_cloog): New.
12139 (debug_cloog): New.
12140 * graphite-poly.h (print_cloog): Declared.
12141 (debug_cloog): Declared.
12142
12143 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12144
12145 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
12146 in loop->header.
12147 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
12148 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
12149 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
12150 to switch between adding the IV bump in loop->latch or in loop->header.
12151
12152 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
12153
12154 * graphite-poly.c (print_scattering_function): Pretty print following
12155 the scoplib format.
12156 (print_pdr): Same.
12157 (print_pbb_domain): Same.
12158 (dump_gbb_cases): Same.
12159 (dump_gbb_conditions): Same.
12160 (print_pdrs): Same.
12161 (print_pbb): Same.
12162 (print_scop_params): Same.
12163 (print_scop_context): Same.
12164 (print_scop): Same.
12165 (print_pbb_body): New.
12166 (lst_indent_to): New.
12167 (print_lst): Start new lines with a #.
12168 * graphite-poly.h (pbb_bb): New.
12169 (pbb_index): Use pbb_bb.
12170 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
12171 disjuncts.
12172 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
12173
12174 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12175
12176 * dwarf2out.c (size_of_die): For -gdwarf-4 use
12177 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
12178 and 0 instead of 1 for dw_val_class_flag.
12179 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
12180 dw_val_class_range_list, dw_val_class_loc_list,
12181 dw_val_class_lineptr and dw_val_class_macptr, use
12182 DW_FORM_flag_present for dw_val_class_flag and
12183 DW_FORM_exprloc for dw_val_class_loc.
12184 (output_die): For -gdwarf-4 print dw_val_class_loc
12185 size as uleb128 instead of 1 or 2 bytes and don't print
12186 anything for dw_val_class_flag.
12187
12188 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
12189 instead of cselib_lookup following by tweaking locs->setting_insn.
12190
12191 PR bootstrap/43596
12192 * cselib.c (cselib_process_insn): Clear cselib_current_insn
12193 even before returning from label, setjmp call or volatile asm
12194 handling.
12195
12196 2010-03-31 Richard Guenther <rguenther@suse.de>
12197
12198 PR middle-end/43600
12199 * cgraphunit.c (cgraph_output_in_order): Do not allocate
12200 temporary data on stack.
12201
12202 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12203
12204 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
12205 (PUSHSECTION_ASM_OP): Remove.
12206 (POPSECTION_ASM_OP): Remove.
12207 (PUSHSECTION_FORMAT): Remove.
12208 * config/sol2.h (PUSHSECTION_FORMAT): Define.
12209 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
12210 * config/sol2.c (solaris_output_init_fini): Use it.
12211
12212 2010-03-31 Jie Zhang <jie@codesourcery.com>
12213
12214 PR 43574
12215 * opt-functions.awk (var_type_struct): Use signed char type
12216 for simple variables.
12217
12218 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12219
12220 * config/sol2.c: Include output.h.
12221 (solaris_assemble_visibility): New function.
12222 * config/t-sol2 (sol2.o): Add output.h dependency.
12223 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
12224 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
12225 Redefine.
12226
12227 2010-03-31 Jakub Jelinek <jakub@redhat.com>
12228
12229 PR target/43580
12230 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
12231 V2SImode or XFmode on PRE_DEC.
12232
12233 PR debug/43557
12234 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
12235 BLKmode.
12236
12237 2010-03-31 Jie Zhang <jie@codesourcery.com>
12238
12239 PR 43562
12240 * reload.h (caller_save_initialized_p): Declare.
12241 * toplev.c (backend_init_target): Don't call
12242 init_caller_save but set caller_save_initialized_p to false.
12243 * caller-save.c (caller_save_initialized_p): Define.
12244 (init_caller_save): Check caller_save_initialized_p.
12245 * ira.c (ira): Call init_caller_save if flag_caller_saves.
12246
12247 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12248
12249 PR target/39048
12250 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
12251 and soft-fp/t-softfp to tmake_file.
12252 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
12253 (LIBGCC2_TF_CEXT): Define.
12254 (TF_SIZE): Define.
12255
12256 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
12257
12258 PR debug/42977
12259 * cselib.c (n_useless_values): Document handling of debug locs.
12260 (n_useless_debug_values, n_debug_values): New variables.
12261 (new_elt_loc_list): Don't add to debug values, keep count.
12262 (promote_debug_loc): New.
12263 (cselib_reset_table): Zero new variables.
12264 (entry_and_rtx_equal_p): Promote debug locs.
12265 (discard_useless_locs): Increment n_useless_debug_values for
12266 debug values.
12267 (remove_useless_values): Adjust n_useless_values and n_debug_values
12268 with n_useless_debug_values.
12269 (add_mem_for_addr): Promote debug locs.
12270 (cselib_lookup_mem): Likewise.
12271 (cselib_lookup_addr): Renamed to...
12272 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
12273 (cselib_log_lookup): ... this. Turn into...
12274 (cselib_lookup_addr): ... new wrapper.
12275 (cselib_lookup_from_insn): New.
12276 (cselib_invalidate_regno): Increment n_useless_debug_values for
12277 debug values.
12278 (cselib_invalidate_mem): Likewise.
12279 (cselib_process_insn): Take n_deleted and n_debug_values into
12280 account to guard remove_useless_value call.
12281 (cselib_finish): Zero n_useless_debug_values.
12282 * cselib.h (cselib_lookup_from_insn): Declare.
12283 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
12284 (sched_analyze_2): Likewise.
12285
12286 2010-03-30 Jakub Jelinek <jakub@redhat.com>
12287
12288 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
12289 functions.
12290 (adjust_mems): Replace narrowing SUBREG of expression containing
12291 just PLUS, MINUS, MULT and ASHIFT of registers and constants
12292 with operations in the narrower mode.
12293
12294 PR debug/43593
12295 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
12296 regs_invalidated_by_call instead all call_used_reg_set registers.
12297
12298 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
12299
12300 PR middle-end/43430
12301 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
12302 pointer comparisons with types_compatible_p.
12303 * tree-vect-stmts.c (vectorizable_call): Same.
12304 (vectorizable_condition): Same.
12305
12306 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12307
12308 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
12309 stack check if the mask would be zero.
12310
12311 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
12312 Jack Howarth <howarth@bromo.med.uc.edu>
12313
12314 * tree-profile.c (tree_init_ic_make_global_vars): Make static
12315 variables TLS.
12316
12317 2010-03-30 Joseph Myers <joseph@codesourcery.com>
12318
12319 PR other/25232
12320 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
12321 and __unordtf2.
12322 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
12323 Include ___unordxf2 and ___unordtf2.
12324 * config/i386/libgcc-glibc.ver: Do not define inheritance from
12325 GCC_4.4.0 here.
12326
12327 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
12328
12329 * config/lm32/t-lm32: New file.
12330 * config.gcc: Use the above file when targetting lm32.
12331
12332 2010-03-28 Duncan Sands <baldrick@free.fr>
12333
12334 * Makefile.in (PLUGIN_HEADERS): Add except.h.
12335
12336 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12337
12338 PR middle-end/43431
12339 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
12340 Improve vectorization cost model diagnostic.
12341
12342 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
12343
12344 PR middle-end/43436
12345 * tree-vect-data-refs.c (vect_analyze_data_refs): When
12346 compute_data_dependences_for_loop returns false, early exit
12347 and output an extra diagnostic for the failed data reference
12348 analysis.
12349
12350 2010-03-29 Richard Guenther <rguenther@suse.de>
12351
12352 PR tree-optimization/43560
12353 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
12354 (can_sm_ref_p): Treat stores to readonly locations as trapping.
12355
12356 2010-03-29 Jie Zhang <jie@codesourcery.com>
12357
12358 PR 43564
12359 * toplev.c (process_options): Set optimization_default_node
12360 and optimization_current_node.
12361 * opts.c (decode_options): Don't set optimization_default_node
12362 and optimization_current_node.
12363
12364 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
12365
12366 * config/rtems.h: Abandon -qrtems_debug.
12367
12368 2010-03-28 Jan Hubicka <jh@suse.cz>
12369
12370 PR tree-optimization/43505
12371 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
12372 map should not be copied.
12373
12374 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12375
12376 PR middle-end/41674
12377 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
12378 cdtors, set DECL_PRESERVE_P.
12379 * ipa.c (cgraph_externally_visible_p): Return true if declaration
12380 should be preseved.
12381
12382 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
12383
12384 PR tree-optimization/43528
12385 * stor-layout.c (place_field): Check that constant fits into
12386 unsigned HWI when skipping calculation of MS bitfield layout.
12387
12388 2010-03-27 Jan Hubicka <jh@suse.cz>
12389
12390 PR middle-end/43391
12391 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
12392 notice_global_symbol work.
12393
12394 2010-03-27 Jakub Jelinek <jakub@redhat.com>
12395
12396 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
12397 instead of dwarf2out_decl.
12398 (struct var_loc_node): Remove section_label field.
12399 (dwarf2out_function_decl): New function.
12400 (dwarf2out_var_location): Don't set section_label field.
12401 (dwarf2out_begin_function): Don't empty decl_loc_table here.
12402
12403 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12404
12405 PR tree-optimization/43544
12406 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
12407 First argument for builtin vectorized function hook is now a
12408 tree to be able to distinguish between machine specific and
12409 standard builtins.
12410 * targhooks.c (default_builtin_vectorized_function): Ditto.
12411 * targhooks.h (default_builtin_vectorized_function): Ditto.
12412 * target.h (struct gcc_target): Ditto.
12413 * tree-vect-stmts.c (vectorizable_function): Ditto.
12414 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
12415 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
12416 Ditto.
12417
12418 2010-03-26 Joseph Myers <joseph@codesourcery.com>
12419
12420 PR c/43381
12421 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
12422 nested binding iff it is a FUNCTION_DECL.
12423 (store_parm_decls_newstyle): Pass nested=true to bind for
12424 FUNCTION_DECLs amongst parameters.
12425
12426 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12427
12428 * var-tracking.c (vt_expand_loc_callback): Don't run
12429 cselib_expand_value_rtx_cb in dummy mode if
12430 cselib_dummy_expand_value_rtx_cb returned false.
12431
12432 * var-tracking.c (emit_note_insn_var_location): For one part
12433 notes with offset 0, don't add EXPR_LIST around the location.
12434 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
12435 add_location_or_const_value_attribute): Adjust for that change.
12436
12437 PR debug/43540
12438 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
12439 into first operand and location into second.
12440 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
12441 dw_cfi_oprnd_loc for DW_CFA_expression.
12442 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
12443 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
12444 assume first argument is regnum and second argument is location.
12445
12446 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12447
12448 PR target/42113
12449 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
12450 of scratch register to DImode. Split to DImode comparison operator.
12451 Use SImode subreg of scratch register in the multiplication.
12452 (*cmp_sadd_sidi): Ditto.
12453 (*cmp_ssub_si): Ditto.
12454 (*cmp_ssub_sidi): Ditto.
12455
12456 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
12457
12458 PR target/43524
12459 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
12460 Remove invalid assert and wrong comment.
12461
12462 2010-03-26 Jakub Jelinek <jakub@redhat.com>
12463
12464 PR debug/43516
12465 * flags.h (final_insns_dump_p): New extern.
12466 * final.c (final_insns_dump_p): New variable.
12467 (rest_of_clean_state): Set it before -fdump-final-insns=
12468 dumping, clear afterwards.
12469 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
12470 MEM_ALIAS_SET on MEMs.
12471
12472 2010-03-26 David S. Miller <davem@davemloft.net>
12473
12474 * configure.ac: Fix sparc GOTDATA_OP bug check.
12475 * configure: Rebuild.
12476
12477 2010-03-26 Alan Modra <amodra@gmail.com>
12478
12479 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
12480
12481 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12482
12483 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
12484 TLS_SECTION_ASM_FLAG.
12485
12486 2010-03-25 Jakub Jelinek <jakub@redhat.com>
12487
12488 PR bootstrap/43511
12489 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
12490 Clear first_function_block_is_cold.
12491
12492 PR c/43385
12493 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
12494 argument if the argument is truth_value_p.
12495
12496 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12497
12498 * config/rs6000/constraints.md: Update copyright year for my changes.
12499
12500 PR target/43484
12501 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
12502 used in reg+reg addressing, swap registers.
12503
12504 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12505
12506 PR debug/43293
12507 * target.h (struct gcc_target): Add code_end hook.
12508 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
12509 if not yet defined.
12510 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
12511 * toplev.c (compile_file): Call targetm.asm_out.code_end
12512 hook before unwind info/debug info output.
12513 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
12514 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
12515 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12516 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
12517 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
12518 * config/i386/i386.c (ix86_file_end): Renamed to...
12519 (ix86_code_end): ... this. Make static. Don't call
12520 file_end_indicate_exec_stack. Emit unwind info using
12521 final_start_function/final_end_function.
12522 (darwin_x86_file_end): Remove.
12523 (TARGET_ASM_CODE_END): Define.
12524 * config/i386/i386.h (TARGET_ASM_FILE_END,
12525 NEED_INDICATE_EXEC_STACK): Don't define.
12526 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
12527 (TARGET_ASM_FILE_END): Define to darwin_file_end.
12528 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
12529 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
12530
12531 PR target/43498
12532 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
12533 at the beginning and final_end_function at the end.
12534 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12535
12536 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12537
12538 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
12539 and Sun as TLS syntax.
12540 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
12541 * configure: Regenerate.
12542 * config.in: Regenerate.
12543 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
12544 (default_elf_asm_named_section): Use it.
12545 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
12546 (i386_output_dwarf_dtprel): Likewise.
12547 (output_addr_const_extra): Likewise.
12548 (output_pic_addr_const): Lowercase @GOTTPOFF.
12549 (output_addr_const_extra): Likewise.
12550 (output_pic_addr_const): Lowercase @GOTNTPOFF.
12551 (output_addr_const_extra): Likewise.
12552 (output_pic_addr_const): Lowercase @INDNTPOFF.
12553 (output_addr_const_extra): Likewise.
12554 (output_pic_addr_const): Lowercase @NTPOFF.
12555 (output_addr_const_extra): Likewise.
12556 (output_pic_addr_const): Lowercase @TPOFF.
12557 (output_addr_const_extra): Likewise.
12558 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
12559 (*tls_global_dynamic_64): Likewise.
12560 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
12561 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
12562
12563 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
12564 (ASM_OUTPUT_TLS_COMMON): Use it.
12565 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
12566
12567 PR target/38118
12568 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
12569 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
12570 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
12571 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
12572 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12573 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
12574
12575 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12576
12577 * config/i386/i386.c (override_options): Don't accept
12578 -mtls-dialect=sun any longer.
12579 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
12580 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
12581 (*tls_local_dynamic_base_32_sun): Likewise.
12582 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
12583
12584 2010-03-24 Jakub Jelinek <jakub@redhat.com>
12585
12586 PR debug/43508
12587 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
12588 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
12589
12590 PR debug/43479
12591 * ira.c (adjust_cleared_regs): New function.
12592 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
12593
12594 PR debug/19192
12595 PR debug/43479
12596 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
12597 from gimple_block.
12598 * expr.c (expand_expr_real): Restore previous
12599 curr_insn_source_location and curr_insn_block after
12600 expand_expr_real_1 call.
12601 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
12602 instead of expand_expr_real_1.
12603
12604 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
12605
12606 PR rtl-optimization/43413
12607 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
12608 hard regs too.
12609
12610 2010-03-22 James E. Wilson <wilson@codesourcery.com>
12611
12612 PR target/43348
12613 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
12614 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
12615
12616 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
12617
12618 * config/i386/i386.c (ix86_target_string): Add -mfma.
12619 Fix a typo in comment.
12620
12621 2010-03-22 Mike Stump <mikestump@comcast.net>
12622
12623 PR target/23071
12624 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
12625 Don't overly align based upon packed packed fields.
12626
12627 2010-03-22 Jason Merrill <jason@redhat.com>
12628
12629 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
12630 Use () rather than [], and move before the element type.
12631
12632 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12633
12634 * doc/configfiles.texi (Configuration Files): Removed
12635 fixinc/Makefile*, intl/Makefile.*.
12636 * doc/makefile.texi: Fixed markup. Abstract from version
12637 control system used.
12638 (Makefile): Removed obsolete gcc/java/parse.y example.
12639 * doc/sourcebuild.texi: Likewise.
12640 (Top Level): Added config, gnattools, libdecnumber, libgcc,
12641 libgomp, libssp. Removed fastjar.
12642 (Miscellaneous Docs): Clarify location.
12643 Added COPYING3, COPYING3.LIB.
12644 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
12645
12646 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12647
12648 PR target/38085
12649 * config/i386/i386.c (x86_function_profiler)
12650 [!NO_PROFILE_COUNTERS]: Fix typo.
12651 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
12652 instead of callq.
12653
12654 2010-03-22 Janis Johnson <janis187@us.ibm.com>
12655 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12656
12657 * doc/sourcebuild.texi (Test Directives): Split into six
12658 subsections, with most of the current text in new subsections
12659 Directives, Selectors, and Final Actions.
12660 (Directives): Split list of test directives into multiple
12661 subsubsections.
12662 (Selectors): Describe use and syntax of selectors.
12663 (Effective-Target Keywords): Describe all existing keywords.
12664 (Add Options): Describe features for dg-add-options.
12665 (Require Support): Describe variants of dg-require-support.
12666 (Final Actions): Describe commands to use in dg-final.
12667
12668 2010-03-22 Michael Matz <matz@suse.de>
12669
12670 PR middle-end/43475
12671 * recog.c (validate_replace_rtx_group): Replace also in
12672 REG_EQUAL and REG_EQUIV notes.
12673
12674 2010-03-22 Richard Guenther <rguenther@suse.de>
12675
12676 PR tree-optimization/43390
12677 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
12678 sure vector extracts are type correct.
12679
12680 2010-03-22 Richard Guenther <rguenther@suse.de>
12681
12682 PR middle-end/40106
12683 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
12684 x * sqrt (x) even when optimizing for size if the target
12685 has native support for sqrt.
12686
12687 2010-03-22 Jakub Jelinek <jakub@redhat.com>
12688
12689 * varasm.c (make_decl_rtl_for_debug): Also clear
12690 flag_mudflap for the duration of make_decl_rtl call.
12691
12692 PR debug/43443
12693 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
12694 locs from preserved VALUEs.
12695
12696 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12697
12698 PR middle-end/42718
12699 * pa.md (movmemsi): Set align to one if zero.
12700 (movmemdi): Likewise.
12701
12702 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
12703
12704 PR target/42321
12705 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
12706 with their corresponding prologue pushes.
12707
12708 2010-03-20 Andrew Pinski <pinskia@gmail.com>
12709
12710 PR target/43156
12711 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
12712 at the begining or end.
12713 (spu_expand_epilogue): Likewise.
12714
12715 2010-03-20 Richard Guenther <rguenther@suse.de>
12716
12717 PR rtl-optimization/43438
12718 * combine.c (make_extraction): Properly zero-/sign-extend an
12719 extraction of the low part of a CONST_INT. Also handle
12720 CONST_DOUBLE.
12721
12722 2010-03-19 Mike Stump <mikestump@comcast.net>
12723
12724 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
12725 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
12726 (override_options): Use SUBTARGET32_DEFAULT_CPU.
12727
12728 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
12729
12730 PR c/43211
12731 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
12732 an error.
12733
12734 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
12735
12736 PR rtl-optimization/42258
12737 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
12738 use that may match DEF.
12739
12740 PR target/40697
12741 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
12742 the cost of loading the constant rather than assuming
12743 COSTS_N_INSNS (1).
12744 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
12745 outer code is AND, do the same tests as the andsi3 expander and
12746 return COSTS_N_INSNS (1) if and is cheap.
12747
12748 * optabs.c (avoid_expensive_constant): Fix formatting.
12749
12750 2010-03-19 Michael Matz <matz@suse.de>
12751
12752 PR c++/43116
12753 * attribs.c (decl_attributes): When rebuilding a function pointer
12754 type use the same qualifiers as the original pointer type.
12755
12756 2010-03-19 Martin Jambor <mjambor@suse.cz>
12757
12758 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
12759 and is_gimple_ip_invariant_address.
12760
12761 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12762
12763 Revert
12764 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12765
12766 * config/arm/arm.c (arm_override_options): Turn off
12767 flag_dwarf2_cfi_asm for AAPCS variants.
12768
12769 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12770
12771 PR target/43399
12772 * config/arm/arm.c (emit_multi_reg_push): Update comments.
12773 Use PRE_MODIFY instead of PRE_DEC.
12774 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
12775 (vfp_emit_fstmd): Likewise.
12776
12777 2010-03-19 Michael Matz <matz@suse.de>
12778
12779 PR target/43305
12780 * builtins.c (expand_builtin_interclass_mathfn,
12781 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
12782 if that fails.
12783
12784 2010-03-19 Richard Guenther <rguenther@suse.de>
12785
12786 PR tree-optimization/43415
12787 * tree-ssa-pre.c (phi_translate): Split out worker to ...
12788 (phi_translate_1): ... this.
12789 (phi_translate): Move all caching here. Cache all NARY
12790 and REFERENCE translations.
12791
12792 2010-03-19 David S. Miller <davem@davemloft.net>
12793
12794 With help from Eric Botcazou.
12795 * config/sparc/sparc.c: Include dwarf2out.h.
12796 (emit_pic_helper): Delete.
12797 (pic_helper_symbol_name): Delete.
12798 (pic_helper_emitted_p): Delete.
12799 (pic_helper_needed): New.
12800 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
12801 (get_pc_thunk_name): New.
12802 (load_pic_register): Remove 'delay_pic_helper' arg. Use
12803 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
12804 Set pic_helper_needed to true. Don't call emit_pic_helper.
12805 (sparc_expand_prologue): Update load_pic_register call.
12806 (sparc_output_mi_thunk): Likewise.
12807 (sparc_file_end): Emit a hidden comdat symbol for the PIC
12808 thunk if possible. Output CFI information as needed.
12809
12810 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12811 Jack Howarth <howarth@bromo.med.uc.edu>
12812
12813 PR target/36399
12814 * config/i386/i386.h: Fix ABI on darwin x86-32.
12815
12816 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
12817
12818 * tree.h: Declare make_decl_rtl_for_debug.
12819 * varasm.c (make_decl_rtl_for_debug): New.
12820 * dwarf2out.c (rtl_for_decl_location): Call it.
12821 * cfgexpand.c (expand_debug_expr): Call it.
12822
12823 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12824
12825 PR bootstrap/43399
12826 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
12827 mem_mode.
12828
12829 PR bootstrap/43403
12830 * var-tracking.c (vt_init_cfa_base): Do nothing if
12831 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
12832
12833 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
12834
12835 PR debug/42873
12836 * var-tracking.c (canonicalize_vars_star): New.
12837 (dataflow_post_merge_adjust): Use it.
12838
12839 2010-03-18 Jakub Jelinek <jakub@redhat.com>
12840
12841 PR debug/43058
12842 * var-tracking.c (non_suitable_const): New function.
12843 (add_uses): For DEBUG_INSNs with constants, don't record any
12844 value, instead just the constant value itself.
12845 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
12846 is not VAR_LOC_UNKNOWN_P, set var to the constant.
12847 (emit_notes_in_bb): Likewise.
12848 (emit_note_insn_var_location): For onepart variables if
12849 cur_loc is a VOIDmode constant, use DECL_MODE.
12850
12851 2010-03-18 Martin Jambor <mjambor@suse.cz>
12852
12853 PR middle-end/42450
12854 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
12855 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
12856 all non-clones. Moved call redirection...
12857 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
12858 (cgraph_materialize_all_clones): Dispose of all
12859 combined_args_to_skip bitmaps.
12860 (verify_cgraph_node): Do not check for edges pointing to wrong
12861 nodes in inline clones.
12862 * tree-inline.c (copy_bb): Call
12863 cgraph_redirect_edge_call_stmt_to_callee.
12864 * ipa.c (cgraph_remove_unreachable_nodes): Call
12865 cgraph_node_remove_callees even when there are used clones.
12866
12867 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12868
12869 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
12870
12871 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
12872
12873 PR target/43383
12874 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
12875 for 32bit.
12876
12877 2010-03-18 Michael Matz <matz@suse.de>
12878
12879 PR middle-end/43419
12880 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
12881 into sqrt(x) if we need to preserve signed zeros.
12882
12883 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
12884 Eric Botcazou <ebotcazou@adacore.com>
12885
12886 PR rtl-optimization/43360
12887 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
12888 note if we don't know its invariant status.
12889
12890 2010-03-18 Michael Matz <matz@suse.de>
12891
12892 PR tree-optimization/43402
12893 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
12894 PHI chains of ssa names registered for update.
12895
12896 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
12897
12898 PR target/42427
12899 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
12900 non-offsettable and pre_modify update addressing.
12901 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
12902 and "2" alternatives "#".
12903 (*movdd_softfloat32): Make all alternatives "#";
12904 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
12905 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
12906 (*movdf_softfloat32): Make all alternatives "#";
12907 (movdi): Use the new DIFD mode iterator to create a common splitter
12908 for movdi, movdf and movdd patterns.
12909
12910 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
12911
12912 * common.opt (dumpdir): Remove redundant tab.
12913
12914 2010-03-17 Martin Jambor <mjambor@suse.cz>
12915
12916 PR tree-optimization/43347
12917 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
12918 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
12919
12920 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
12921
12922 PR rtl-optimization/42216
12923 * regrename.c (create_new_chain): New function, broken out from...
12924 (scan_rtx_reg): ... here. Call it. Handle the case where we are
12925 appending a use to an empty chain.
12926 (build_def_use): Remove previous changes that convert OP_INOUT to
12927 OP_OUT operands; instead detect the case where an OP_INOUT operand
12928 uses a previously untracked register and create an empty chain for it.
12929
12930 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12931
12932 * doc/extend.texi (Function Attributes): Rewrite unfinished
12933 sentence in ms_abi documentation.
12934
12935 2010-03-17 Alan Modra <amodra@gmail.com>
12936
12937 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
12938 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
12939 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
12940 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
12941
12942 2010-03-16 Richard Henderson <rth@redhat.com>
12943
12944 PR middle-end/43365
12945 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
12946 (lower_try_finally): Save and restore eh_seq around the expansion
12947 of the try-finally.
12948
12949 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12950
12951 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
12952 statements before splitting block.
12953
12954 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12955
12956 * doc/sourcebuild.texi (Testsuites): Fix markup.
12957 Use pathnames relative to gcc/testsuite.
12958 (Test Directives): Move description of how timeout is determined.
12959 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
12960 (C Tests): Correct gcc.misc-tests directory.
12961 Framework tests now live in gcc.test-framework.
12962
12963 2010-03-16 Richard Guenther <rguenther@suse.de>
12964
12965 PR middle-end/43379
12966 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
12967 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
12968
12969 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
12970 Alexandre Oliva <aoliva@redhat.com>
12971
12972 PR tree-optimization/42917
12973 * lambda-code.c (remove_iv): Skip debug statements.
12974 (lambda_loopnest_to_gcc_loopnest): Likewise.
12975 (not_interesting_stmt): Debug statements are not interesting.
12976
12977 2010-03-16 Jakub Jelinek <jakub@redhat.com>
12978
12979 PR debug/43051
12980 PR debug/43092
12981 * cselib.c (cselib_preserve_constants,
12982 cfa_base_preserved_val): New static variables.
12983 (preserve_only_constants): New function.
12984 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
12985 clear its REG_VALUES. If cselib_preserve_constants, don't
12986 empty the whole hash table, but preserve there VALUEs with constants,
12987 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
12988 (cselib_preserve_cfa_base_value): New function.
12989 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
12990 (cselib_init): Change argument to int bitfield. Set
12991 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
12992 is in it.
12993 (cselib_finish): Clear cselib_preserve_constants and
12994 cfa_base_preserved_val.
12995 * cselib.h (enum cselib_record_what): New enum.
12996 (cselib_init): Change argument to int.
12997 (cselib_preserve_cfa_base_value): New prototype.
12998 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
12999 * dse.c (dse_step1): Likewise.
13000 * cfgcleanup.c (thread_jump): Likewise.
13001 * sched-deps.c (sched_analyze): Likewise.
13002 * gcse.c (local_cprop_pass): Likewise.
13003 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
13004 If FN is non-NULL, call the callback always and whenever it returns
13005 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
13006 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
13007 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
13008 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
13009 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
13010 * var-tracking.c: Include recog.h.
13011 (bb_stack_adjust_offset): Remove.
13012 (vt_stack_adjustments): Don't call it, instead just gather the
13013 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
13014 (adjust_stack_reference): Remove.
13015 (compute_cfa_pointer): New function.
13016 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
13017 (struct adjust_mem_data): New type.
13018 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
13019 functions.
13020 (get_address_mode): New function.
13021 (replace_expr_with_values): Use it.
13022 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
13023 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
13024 (adjust_sets): Remove.
13025 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
13026 Use get_address_mode.
13027 (get_adjusted_src): Remove.
13028 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
13029 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
13030 (add_with_sets): Don't call adjust_sets.
13031 (fp_setter, vt_init_cfa_base): New functions.
13032 (vt_initialize): Change return type to bool. Move most of pool etc.
13033 initialization to the beginning of the function from end. Pass
13034 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
13035 If !frame_pointer_needed, call vt_stack_adjustment before mos
13036 vector is filled, call vt_init_cfa_base if argp/framep has been
13037 eliminated to sp. If frame_pointer_needed and argp/framep has
13038 been eliminated to hard frame pointer, set
13039 hard_frame_pointer_adjustment and call vt_init_cfa_base after
13040 encountering fp setter in the prologue. For MO_ADJUST, call
13041 log_op_type before pusing the op into mos vector, not afterwards.
13042 Call adjust_insn before cselib_process_insn/add_with_sets,
13043 call cancel_changes (0) afterwards.
13044 (variable_tracking_main_1): Adjust for vt_initialize calling
13045 vt_stack_adjustments and returning whether it succeeded or not.
13046
13047 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
13048
13049 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
13050 debug statements.
13051
13052 2010-03-15 Jakub Jelinek <jakub@redhat.com>
13053
13054 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
13055 has been set.
13056 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
13057 drap_reg has not been set.
13058
13059 2010-03-15 Michael Matz <matz@suse.de>
13060
13061 PR middle-end/43300
13062 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
13063 use it to expand block copies.
13064 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
13065 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
13066 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
13067
13068 2010-03-15 Richard Guenther <rguenther@suse.de>
13069
13070 PR tree-optimization/43367
13071 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
13072 elimination check.
13073
13074 2010-03-15 Richard Guenther <rguenther@suse.de>
13075
13076 PR tree-optimization/43317
13077 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
13078
13079 2010-03-15 Martin Jambor <mjambor@suse.cz>
13080
13081 PR tree-optimization/43141
13082 * tree-sra.c (create_abstract_origin): New function.
13083 (modify_function): Call create_abstract_origin.
13084
13085 2010-03-15 Chris Demetriou <cgd@google.com>
13086
13087 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
13088 wasn't copied.
13089
13090 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13091
13092 PR middle-end/43354
13093 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
13094 call insert_out_of_ssa_copy for default definitions.
13095
13096 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13097
13098 * graphite-clast-to-gimple.c (my_long_long): Defined.
13099 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
13100 * graphite-sese-to-poly.c (my_long_long): Defined.
13101 (scop_ivs_can_be_represented): Use it.
13102
13103 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13104
13105 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
13106 graphite-max-bbs-per-function, and loop-block-tile-size.
13107 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
13108 with "maximum".
13109 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
13110
13111 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13112
13113 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
13114 forward declaration.
13115 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
13116 (add_upper_bounds_from_estimated_nit): New.
13117 (build_loop_iteration_domains): Use it.
13118
13119 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13120
13121 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
13122
13123 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13124
13125 PR middle-end/43306
13126 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
13127 should be an INTEGER_CST. Also handle CASE_CONVERT.
13128
13129 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13130
13131 * graphite.c (graphite_initialize): To bound the number of bbs per
13132 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
13133 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
13134 * doc/invoke.texi: Document it.
13135
13136 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13137
13138 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
13139 * graphite-sese-to-poly.h (build_poly_scop): Same.
13140
13141 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
13142
13143 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
13144 the number of parameters in the scop. Use as an upper bound
13145 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
13146 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
13147 * doc/invoke.texi: Document it.
13148
13149 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
13150
13151 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
13152 * doc/c-tree.texi: Remove.
13153 * doc/generic.texi: Merge c-tree.texi here.
13154 * doc/gccint.texi (Trees): Remove menu entry.
13155 (c-tree.texi): Remove @include.
13156 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
13157 * doc/languages.texi (Reading RTL): Ditto.
13158
13159 2010-03-12 Steve Ellcey <sje@cup.hp.com>
13160
13161 PR target/42869
13162 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
13163
13164 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13165
13166 PR middle-end/42431
13167 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
13168 code added to work around reload clobbering CONST insns.
13169
13170 2010-03-12 Jakub Jelinek <jakub@redhat.com>
13171
13172 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
13173 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
13174 (cselib_preserve_only_values): Remove retain argument, don't
13175 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
13176 * cselib.h (cselib_preserve_only_values): Remove retain argument.
13177 * var-tracking.c (micro_operation): Move insn field before union.
13178 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
13179 (struct variable_tracking_info_def): Remove n_mos field, change
13180 mos into a vector of micro_operations.
13181 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
13182 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
13183 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
13184 changing into a vector.
13185 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
13186 come before all other uops generated by add_stores.
13187 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
13188 argument removal.
13189 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
13190 a vector. Run just one pass over the bbs instead of separate counting
13191 and computation phase.
13192 (vt_finalize): Free VTI (bb)->mos vector instead of array.
13193
13194 PR debug/43329
13195 * tree-inline.c (remap_decls): Put old_var rather than origin_var
13196 into *nonlocalized_list vector.
13197 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
13198 even if origin is non-NULL.
13199 (gen_variable_die): Likewise.
13200 (process_scope_var): Don't change origin.
13201 (gen_decl_die): Likewise.
13202 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
13203 before adding new edges instead of after it, fix moving over
13204 debug stmts.
13205
13206 2010-03-11 David S. Miller <davem@davemloft.net>
13207
13208 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
13209 of four.
13210 * configure: Rebuild.
13211
13212 2010-03-11 Martin Jambor <mjambor@suse.cz>
13213
13214 PR tree-optimization/43257
13215 * tree.c (assign_assembler_name_if_neeeded): New function.
13216 (free_lang_data_in_cgraph): Assembler name assignment moved to the
13217 above new function.
13218 * tree.h (assign_assembler_name_if_neeeded): Declare.
13219 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
13220 the function if needed.
13221
13222 2010-03-11 Chris Demetriou <cgd@google.com>
13223
13224 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
13225 include/stdint-gcc.h, and include/stdint.h world-readable.
13226
13227 2010-03-11 Richard Guenther <rguenther@suse.de>
13228
13229 PR tree-optimization/43255
13230 * tree-vrp.c (process_assert_insertions_for): Do not insert
13231 asserts for trivial conditions.
13232
13233 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13234
13235 PR tree-optimization/43280
13236 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
13237 generation. Move calculation of size out of the if branch.
13238 (find_bswap): Modify compare number generation.
13239
13240 2010-03-11 Richard Guenther <rguenther@suse.de>
13241
13242 PR lto/43200
13243 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
13244 (input_gimple_stmt): Fixup handled component types during
13245 operand read. Also fix up decls in ADDR_EXPRs.
13246
13247 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
13248
13249 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
13250 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
13251
13252 2010-03-10 Jan Hubicka <jh@suse.cz>
13253
13254 PR c/43288
13255 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
13256 * varasm.c (get_variable_section): Don't do that here...
13257 (make_decl_rtl): ... and here.
13258 (do_assemble_alias): Produce decl RTL.
13259 (assemble_alias): Likewise.
13260
13261 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13262
13263 PR debug/43290
13264 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
13265 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
13266 of fde->vdrap_reg.
13267 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
13268 (based_loc_descr): Only express drap or vdrap regno based expressions
13269 using DW_OP_fbreg when not optimizing.
13270 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
13271 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
13272 REG_CFA_SET_VDRAP note.
13273
13274 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
13275
13276 PR tree-optimization/43236
13277 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
13278 error in calculation of base address in reverse iteration case.
13279 (generate_builtin): Take number of latch executions if the statement
13280 is in the latch.
13281
13282 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
13283
13284 PR middle-end/42859
13285 * tree-eh.c: Include pointer-set.h.
13286 (lower_eh_dispatch): Filter out duplicate case labels and
13287 remove the unneeded edge when the label is unused. Return
13288 true when some edges are removed.
13289 (execute_lower_eh_dispatch): When any lowering resulted in
13290 removing an edge, also delete unreachable blocks.
13291
13292 2010-03-10 Jakub Jelinek <jakub@redhat.com>
13293
13294 PR bootstrap/43287
13295 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13296 UNSPEC_MACHOPIC_OFFSET.
13297
13298 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
13299
13300 PR target/43294
13301 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
13302 (m68k_delegitimize_address): New function.
13303
13304 2010-03-09 Jakub Jelinek <jakub@redhat.com>
13305
13306 PR debug/43299
13307 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
13308
13309 PR debug/43299
13310 * var-tracking.c (adjust_sets): New function.
13311 (count_with_sets, add_with_sets): Use it.
13312 (get_adjusted_src): New inline function.
13313 (add_stores): Use it.
13314
13315 PR debug/43304
13316 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
13317 call cselib_dummy_expand_value_rtx_cb instead of
13318 cselib_expand_value_rtx_cb.
13319
13320 PR debug/43293
13321 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
13322 * config/i386/i386.c: Include debug.h and dwarf2out.h.
13323 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
13324 and .cfi_endproc around the pic thunks.
13325 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
13326 all queued unwind info register saves are saved before the call.
13327 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
13328 considered as sp-=4 for unwind info and the pop as sp+=4 which
13329 also clobbers dest, but doesn't actually restore it.
13330
13331 PR debug/43290
13332 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
13333 RTX_FRAME_RELATED_P.
13334
13335 2010-03-09 Jie Zhang <jie@codesourcery.com>
13336
13337 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
13338 whitespaces in output template.
13339
13340 2010-03-09 Jie Zhang <jie@codesourcery.com>
13341
13342 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
13343 out array boundary.
13344
13345 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13346
13347 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
13348 builtins.exp in a separate job.
13349
13350 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13351
13352 * graphite-sese-to-poly.c (add_param_constraints): Use
13353 lower_bound_in_type and upper_bound_in_type.
13354
13355 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13356
13357 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
13358 instead of unsigned_type_node.
13359
13360 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13361 Reza Yazdani <reza.yazdani@amd.com>
13362
13363 PR middle-end/43065
13364 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
13365 on pointer type parameters.
13366
13367 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13368
13369 PR middle-end/42644
13370 PR middle-end/42130
13371 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
13372 handle conversions from pointer to integers.
13373 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
13374 induction variable, to be able to work with code generated by CLooG.
13375 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
13376 (build_poly_scop): Bail out if we cannot codegen a loop.
13377
13378 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
13379
13380 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
13381 code generation with gloog_error.
13382
13383 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13384
13385 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
13386 Call fold_convert on all the returned values.
13387 (expand_scalar_variables_expr): Pass to
13388 expand_scalar_variables_ssa_name the type of the resulting expression.
13389
13390 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13391
13392 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
13393 ppl_min_for_le_pointset.
13394 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
13395 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
13396
13397 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13398
13399 * graphite-dependences.c (map_into_dep_poly): Removed.
13400 (dependence_polyhedron_1): Use combine_context_id_scat.
13401
13402 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13403
13404 * graphite-poly.h (struct poly_scattering): Add layout documentation.
13405 (struct poly_bb): Same.
13406 (combine_context_id_scat): New.
13407
13408 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13409
13410 PR middle-end/42326
13411 * sese.c (name_defined_in_loop_p): Return false for default
13412 definitions.
13413
13414 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13415
13416 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
13417 and clean up the logic.
13418
13419 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
13420
13421 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
13422 early return.
13423
13424 2010-03-08 Jakub Jelinek <jakub@redhat.com>
13425
13426 * var-tracking.c (remove_cselib_value_chains): Define only for
13427 ENABLE_CHECKING.
13428 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
13429 delete_slot_part, emit_notes_for_differences_1): Don't call
13430 remove_cselib_value_chains here.
13431 (set_slot_part, emit_notes_for_differences_2): Don't call
13432 add_cselib_value_chains here.
13433 (preserved_values): New vector.
13434 (preserve_value): New function.
13435 (add_uses, add_stores, vt_add_function_parameters): Use it
13436 instead of cselib_preserve_value.
13437 (changed_values_stack): New vector.
13438 (check_changed_vars_0): New function.
13439 (check_changed_vars_1, check_changed_vars_2): Use it.
13440 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
13441 changed_values_stack VALUEs.
13442 (vt_emit_notes): For all preserved_values call
13443 add_cselib_value_chains. If ENABLE_CHECKING call
13444 remove_cselib_value_chains before verifying value_chains is empty.
13445 Initialize and free changed_values_stack.
13446 (vt_initialize): Initialize preserved_values.
13447 (vt_finalize): Free preserved_values.
13448
13449 2010-03-08 Richard Guenther <rguenther@suse.de>
13450
13451 PR tree-optimization/43269
13452 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
13453 region detection.
13454
13455 2010-03-08 Martin Jambor <mjambor@suse.cz>
13456
13457 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
13458 (ipa_is_param_called): Removed.
13459 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
13460 (ipa_print_node_params): Do not print the called flag.
13461 (ipa_write_node_info): Do not stream the called flag.
13462 (ipa_read_node_info): Likewise.
13463
13464 2010-03-07 Jakub Jelinek <jakub@redhat.com>
13465
13466 PR debug/43176
13467 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
13468 * cselib.c (struct expand_value_data): Add dummy field.
13469 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
13470 dummy to false.
13471 (cselib_dummy_expand_value_rtx_cb): New function.
13472 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
13473 any rtl.
13474 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
13475 * var-tracking.c: Include pointer-set.h.
13476 (variable): Change n_var_parts to char from int. Add
13477 cur_loc_changed and in_changed_variables fields.
13478 (variable_canonicalize): Remove.
13479 (shared_var_p): New inline function.
13480 (unshare_variable): Maintain cur_loc_changed and
13481 in_changed_variables fields. If var was in changed_variables,
13482 replace it there with new_var. Just copy cur_loc instead of
13483 resetting it to something else.
13484 (variable_union): Don't recompute cur_loc. Use shared_var_p.
13485 (dataflow_set_union): Don't call variable_canonicalize.
13486 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
13487 of their DEBUG_EXPR_TREE_DECLs.
13488 (canonicalize_loc_order_check): Verify that cur_loc is NULL
13489 and in_changed_variables and cur_loc_changed is false.
13490 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
13491 and cur_loc_changed. Don't update cur_loc here.
13492 (variable_merge_over_src): Don't call variable_canonicalize.
13493 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
13494 removing loc that is equal to cur_loc, clear cur_loc,
13495 set cur_loc_changed and ensure variable_was_changed is called.
13496 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
13497 compare pointers in cur_loc check, if it is equal to loc,
13498 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
13499 (variable_different_p): Remove compare_current_location argument,
13500 don't compare cur_loc.
13501 (dataflow_set_different_1): Adjust variable_different_p caller.
13502 (variable_was_changed): If dv had some var in changed_variables
13503 already, reset in_changed_variables flag for it and propagate
13504 cur_loc_changed over to the new variable. On empty var
13505 always set cur_loc_changed. Set in_changed_variables on whatever
13506 var is added to changed_variables.
13507 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
13508 Use shared_var_p. When removing loc that is equal to cur_loc,
13509 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
13510 end, don't set it to something else, just call variable_was_changed.
13511 (delete_slot_part): Use shared_var_p. When cur_loc equals to
13512 loc being removed, clear cur_loc and set cur_loc_changed.
13513 Set cur_loc_changed if all locations have been removed.
13514 (struct expand_loc_callback_data): New type.
13515 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
13516 allocated. Always create SUBREGs if simplify_subreg failed.
13517 Prefer to use cur_loc, when that fails and still in
13518 changed_variables (and seen first time) recompute it. Set
13519 cur_loc_changed of variables which had to change cur_loc and
13520 compute elcd->cur_loc_changed if any of the subexpressions used
13521 had to change cur_loc.
13522 (vt_expand_loc): Adjust to pass arguments in
13523 expand_loc_callback_data structure.
13524 (vt_expand_loc_dummy): New function.
13525 (emitted_notes): New variable.
13526 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
13527 that weren't used for any other decl in current
13528 emit_notes_for_changes call call vt_expand_loc_dummy to update
13529 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
13530 first loc_chain location if NULL before. Always use just
13531 cur_loc instead of first loc_chain location. When cur_loc_changed
13532 is false, when not --enable-checking=rtl just don't emit any note.
13533 When rtl checking, compute the note and assert it is the same
13534 as previous note. Clear cur_loc_changed and in_changed_variables
13535 at the end before removing from changed_variables.
13536 (check_changed_vars_3): New function.
13537 (emit_notes_for_changes): Traverse changed_vars to call
13538 check_changed_vars_3 on each changed var.
13539 (emit_notes_for_differences_1): Clear cur_loc_changed and
13540 in_changed_variables. Recompute cur_loc of new_var.
13541 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
13542 (vt_emit_notes): Initialize and destroy emitted_notes.
13543
13544 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
13545
13546 PR rtl-optimization/42220
13547 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
13548 Use verify_reg_tracked to determine if we should use OP_OUT rather
13549 than OP_INOUT.
13550 (build_def_use): If we see an in-out operand for a register that we
13551 know nothing about, treat is an output if possible, fail the block if
13552 not.
13553
13554 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13555
13556 PR debug/42897
13557 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
13558 permanently.
13559
13560 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13561
13562 PR debug/42897
13563 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
13564 uses of relevant DEFs that are dead outside the loop too.
13565
13566 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
13567
13568 * var-tracking.c (dataflow_set_merge): Swap src and src2.
13569 Reverted:
13570 2010-01-13 Jakub Jelinek <jakub@redhat.com>
13571 PR debug/41371
13572 * var-tracking.c (values_to_unmark): New variable.
13573 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
13574 values_to_unmark vector. Moved body to...
13575 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
13576 instead queue it into values_to_unmark vector.
13577 (vt_find_locations): Free values_to_unmark vector.
13578
13579 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
13580
13581 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
13582 (site.exp): Export them when plugins are enabled.
13583
13584 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
13585
13586 PR middle-end/42326
13587 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
13588 that contain scevs.
13589 (chrec_fold_multiply): Same.
13590
13591 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13592
13593 PR c/43248
13594 * c-decl.c (build_compound_literal): Return early if init is
13595 an error_mark_node.
13596
13597 2010-03-04 Martin Jambor <mjambor@suse.cz>
13598
13599 PR tree-optimization/43164
13600 PR tree-optimization/43191
13601 * tree-sra.c (type_consists_of_records_p): Reject records with
13602 zero-size bit-fields at the end.
13603
13604 2010-03-04 Mike Stump <mikestump@comcast.net>
13605
13606 * Makefile.in (TAGS): Remove *.y.
13607
13608 2010-03-04 Richard Guenther <rguenther@suse.de>
13609
13610 PR tree-optimization/40761
13611 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
13612 in reverse order.
13613 (my_rev_post_order_compute): New function.
13614 (init_pre): Call it.
13615
13616 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
13617
13618 PR middle-end/43209
13619 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
13620 decrease the cost of an IV candidate when the cost is infinite.
13621
13622 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13623
13624 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
13625 Use '3DNow!' for the extension of that name, ensure normal space
13626 after the string.
13627 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
13628
13629 2010-03-03 Jeff Law <law@redhat.com>
13630
13631 * PR middle-end/32693
13632 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
13633 than gen_rtx_SUBREG.
13634 (extract_bit_field_1): Likewise.
13635
13636 2010-03-03 Janis Johnson <janis187@us.ibm.com>
13637
13638 * doc/sourcebuild.texi (Test directives): Document that arguments
13639 include-opts and exclude-opts are now optional for dg-skip-if,
13640 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
13641
13642 2010-03-03 Jason Merrill <jason@redhat.com>
13643
13644 PR c++/12909
13645 * cgraph.h (varpool_node): Add extra_name field.
13646 * varpool.c (varpool_extra_name_alias): New.
13647 (varpool_assemble_decl): Emit extra name aliases.
13648 (varpool_mark_needed_node): Look past an extra name alias.
13649 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
13650 * lto-streamer-in.c (lto_input_tree): Read it.
13651 * lto-streamer-out.c (output_unreferenced_globals): Write it.
13652
13653 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
13654
13655 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
13656 (sparc*-*-solaris2*): ...this.
13657
13658 2010-03-03 Jakub Jelinek <jakub@redhat.com>
13659
13660 PR debug/43229
13661 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
13662 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
13663 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
13664 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
13665
13666 PR debug/43237
13667 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
13668 fallthrough to default handling, just with want_address 0 instead of 2.
13669 For single element lists, add_AT_loc directly, otherwise create an
13670 artificial variable DIE and stick location list to it.
13671
13672 PR debug/43177
13673 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
13674 (VAL_EXPR_HAS_REVERSE): Define.
13675 (reverse_op): New function.
13676 (add_stores): For reversible operations add an extra MO_VAL_USE.
13677
13678 2010-03-02 Jason Merrill <jason@redhat.com>
13679
13680 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
13681
13682 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
13683
13684 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
13685 (sparc64-*-linux*): Likewise.
13686 (sparc64-*-solaris2*): Include assembler files before linker ones.
13687 (sparc-*-solaris2*): Simplify and reorder to match previous case.
13688 * config/sparc/gas.h: Delete.
13689 * config/sparc/sol2-64.h: Add copyright notice.
13690 * config/sparc/sol2-gas-bi.h: Likewise.
13691 * config/sparc/sol2-gld.h: Likewise.
13692 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
13693 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
13694 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
13695 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
13696 (sparc_elf_asm_named_section): Rename into...
13697 (sparc_solaris_elf_asm_named_section): ...this. Always define.
13698
13699 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
13700
13701 * config/alpha/alpha.c (override_options): Fix -mtune error message.
13702
13703 2010-03-02 Jeff Law <law@redhat.com>
13704
13705 PR middle-end/42431
13706 * reload1.c (rtx_p, substitute_stack): Declare.
13707 (substitute): Record addresses of changed rtxs.
13708 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
13709 Restore the original rtx when complete.
13710 (reload): Free subsitute_stack when complete.
13711
13712 2010-03-02 Janis Johnson <janis187@us.ibm.com>
13713
13714 * doc/gccint.texi (menu): Add Testsuites as a chapter.
13715 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
13716 new chapter.
13717 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
13718 LTO Testing, gcov Testing, profopt Testing, compat Testing,
13719 Torture Tests): Change from subsection to section.
13720
13721 2010-03-02 Jakub Jelinek <jakub@redhat.com>
13722 Steven Bosscher <steven@gcc.gnu.org>
13723
13724 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
13725 instead of bb.
13726
13727 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
13728
13729 PR middle-end/42640
13730 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
13731 the assignment from the new induction variable to the assignment
13732 of the value from the original loop PHI function.
13733
13734 2010-03-01 Janis Johnson <janis187@us.ibm.com>
13735 Daniel Jacobowitz <dan@codesourcery.com>
13736
13737 * doc/sourcebuild.texi (Test directives): Clarify options to
13738 dg-skip-if.
13739
13740 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13741
13742 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
13743 Disable cfi directives unless GCC and gas agree on using read-only
13744 .eh_frame sections for 64-bit.
13745 * configure: Regenerate.
13746
13747 2010-03-01 Richard Guenther <rguenther@suse.de>
13748
13749 PR tree-optimization/43220
13750 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
13751 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
13752
13753 2010-03-01 Richard Guenther <rguenther@suse.de>
13754 Martin Jambor <mjambor@suse.cz>
13755
13756 PR middle-end/41250
13757 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
13758 gimplified parameters.
13759
13760 2010-03-01 Christian Bruel <christian.bruel@st.com>
13761
13762 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
13763
13764 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
13765
13766 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
13767
13768 2010-03-01 Richard Guenther <rguenther@suse.de>
13769
13770 PR middle-end/43213
13771 * expr.c (expand_assignment): Use the alias-oracle to tell
13772 if the rhs aliases the result decl.
13773
13774 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13775
13776 PR pch/14940
13777 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
13778 to sol_gt_pch_get_address.
13779 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
13780 64-bit, SPARC and x86.
13781 (sol_gt_pch_get_address): New function.
13782
13783 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
13784
13785 * toplev.h (inform_n, error_n): Declare.
13786 * diagnostic.c (inform_n, error_n): New function.
13787
13788 2010-03-01 Jakub Jelinek <jakub@redhat.com>
13789
13790 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
13791 has no rtl yet when processing local_decls, queue it and recheck
13792 if deferred stack allocation hasn't assigned it rtl.
13793
13794 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
13795
13796 * config/sh/sh.c (unspec_bbr_uid): New.
13797 (gen_block_redirect): Use it instead of INSN_UID.
13798 (gen_far_branch): Likewise.
13799
13800 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
13801
13802 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
13803 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
13804
13805 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13806
13807 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
13808 (Warning Options): -Wno-conversion-null is valid for
13809 Objective-C++ as well.
13810 * doc/tm.texi (Named Address Spaces): Likewise.
13811 * doc/plugins.texi (Plugins): Replace TABs with spaces.
13812 * doc/tree-ssa.texi (Tree SSA): Likewise.
13813
13814 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13815
13816 PR bootstrap/43202
13817 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
13818 by default. Don't set the default arch for
13819 i[34567]86-*-darwin*|x86_64-*-darwin*.
13820
13821 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13822
13823 PR bootstrap/43202
13824 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
13825 default. Set the default 32bit/64bit archs with $with_arch
13826 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
13827
13828 2010-02-27 Richard Guenther <rguenther@suse.de>
13829
13830 PR tree-optimization/43186
13831 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
13832 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
13833 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
13834 unroller iterations.
13835
13836 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
13837
13838 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
13839 required and i[34567]86-*-* targets don't support 64bit ISA.
13840
13841 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
13842
13843 PR ada/43096
13844 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
13845 the same alias set.
13846
13847 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13848
13849 * config.gcc: Set the default arch at least to Prescott for
13850 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
13851 if SSE math is enabled.
13852
13853 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13854
13855 * diagnostic.c (diagnostic_initialize): Update.
13856 (diagnostic_report_diagnostic): Test inhibit_notes_p for
13857 informative notes.
13858 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
13859 (diagnostic_inhibit_notes): New.
13860 * toplev.c (process_options): inhibit notes with -fcompare-debug.
13861
13862 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13863
13864 PR c/20631
13865 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
13866 * doc/standards.texi: Likewise.
13867 * doc/extend.texi: Likewise.
13868 * doc/trouble.texi: Likewise.
13869 * doc/cppopts.texi: Likewise.
13870 * doc/install.texi: Likewise.
13871 * c.opt (std=c90,std=gnu90): New options.
13872 * c-opts.c (c_common_handle_option): Handle them.
13873
13874 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
13875
13876 PR c/24577
13877 * c-decl.c (undeclared_variable): Use an informative note.
13878
13879 2010-02-26 Richard Guenther <rguenther@suse.de>
13880
13881 PR tree-optimization/43186
13882 * gimple.h (gimple_fold): Remove.
13883 * gimple.c (gimple_fold): Remove. Inline into single user ...
13884 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
13885 Try harder for conditions.
13886
13887 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13888
13889 PR debug/43190
13890 * function.c (used_types_insert): Don't skip through named pointer
13891 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
13892 and it is different from the main variant's type.
13893
13894 2010-02-26 Nick Clifton <nickc@redhat.com>
13895
13896 * config/rx/rx.md (sminsi3): Remove bogus alternative.
13897
13898 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
13899
13900 * config.gcc: Support --with-fpmath=sse for x86.
13901
13902 * config/i386/ssemath.h: New.
13903
13904 * doc/install.texi (--with-fpmath=sse): Documented.
13905
13906 2010-02-26 Richard Guenther <rguenther@suse.de>
13907
13908 PR tree-optimization/43188
13909 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
13910 vector types of over-aligned element type.
13911
13912 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
13913
13914 PR target/43175
13915 * config/i386/i386.c (expand_vec_perm_blend): Use correct
13916 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
13917
13918 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
13919
13920 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
13921
13922 2010-02-26 Jakub Jelinek <jakub@redhat.com>
13923
13924 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
13925 * var-tracking.c: Include diagnostic.h.
13926 (debug_dv): New function.
13927 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
13928
13929 PR debug/43160
13930 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
13931 (add_value_chain, add_value_chains, remove_value_chain,
13932 remove_value_chains): Handle DEBUG_EXPRs.
13933 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
13934
13935 PR debug/43161
13936 * regcprop.c (struct queued_debug_insn_change): New type.
13937 (struct value_data_entry): Add debug_insn_changes field.
13938 (struct value_data): Add n_debug_insn_changes field.
13939 (debug_insn_changes_pool): New variable.
13940 (free_debug_insn_changes, apply_debug_insn_changes,
13941 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
13942 (kill_value_one_regno): Call free_debug_insn_changes if needed.
13943 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
13944 fields.
13945 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
13946 changes for them.
13947 (copyprop_hardreg_forward_1): Don't call apply_change_group for
13948 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
13949 changes, call cprop_find_used_regs via note_stores.
13950 (copyprop_hardreg_forward): When copying vd from predecessor
13951 which has any queued DEBUG_INSN changes, make sure the pointers are
13952 cleared. At the end call df_analyze and then if there are any
13953 DEBUG_INSN changes queued at the end of some basic block for still
13954 live registers, apply them.
13955 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
13956
13957 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
13958
13959 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
13960 (arm*-*-*): Ditto.
13961
13962 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
13963
13964 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
13965 targets. Set the default with_cpu/with_arch from arch/cpu.
13966 Allow x86-64 and native for with_cpu/with_arch.
13967
13968 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
13969
13970 * ebitmap.c: Change calls to verify_popcount with calls to
13971 sbitmap_verify_popcount.
13972 (ebitmap_clear_bit): Fixed map->cacheindex test and
13973 map>cache update when bit clearing results in an empty
13974 element.
13975
13976 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
13977
13978 PR target/43154
13979 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
13980 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
13981 and support both V2DF and V2DI modes.
13982 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
13983 support both V2DF and V2DI modes.
13984 (general): Delete trailing whitespace from a few patterns.
13985
13986 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13987 V2DF/V2DI interleave high/low builtins.
13988
13989 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
13990 new VSX builtins.
13991
13992 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
13993 interleave high/low functions.
13994
13995 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
13996
13997 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
13998 #pragma extern_prefix.
13999
14000 2010-02-25 Jakub Jelinek <jakub@redhat.com>
14001
14002 PR debug/43166
14003 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
14004 BLKmode, assert op0 is a MEM and just adjust its mode.
14005
14006 PR debug/43165
14007 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
14008 if bitpos isn't multiple of mode's bitsize.
14009
14010 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14011
14012 * c.opt (-ftemplate-depth=): New.
14013 (-ftemplate-depth-): Deprecate.
14014 * optc-gen.awk: Handle -ftemplate-depth=.
14015 * opth-gen.awk: Likewise.
14016 * c-opts.c (c_common_handle_option): Likewise.
14017 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
14018
14019 2010-02-24 Jason Merrill <jason@redhat.com>
14020
14021 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
14022
14023 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14024
14025 * cfg.c (alloc_aux_for_block): Remove inline.
14026 (alloc_aux_for_edge): Likewise.
14027
14028 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14029
14030 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
14031
14032 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14033
14034 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
14035 * config/i386/sol2-gas.h: New file.
14036 * config.gcc (i[34567]86-*-solaris2*): Use it.
14037
14038 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14039
14040 PR c/43128
14041 * c-typeck.c (ep_convert_and_check): New.
14042 (build_conditional_expr): Use it.
14043 (build_binary_op): Likewise.
14044
14045 2010-02-24 Jakub Jelinek <jakub@redhat.com>
14046
14047 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
14048
14049 PR debug/43150
14050 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
14051 bounds even for -O+.
14052 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
14053 expr needs to have DECL_NAME set.
14054
14055 2010-02-24 Nick Clifton <nickc@redhat.com>
14056
14057 * config/mep/mep.c: Include gimple.h.
14058 (mep_function_uses_sp): Delete unused function.
14059 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
14060 parameters. Use unsigned integers to count args. Return a
14061 NULL_RTX instead of an error_mark_node. Toidy up formatting.
14062
14063 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14064
14065 PR target/43107
14066 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
14067 greater or equal to nelt instead of 2 * nelt.
14068 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
14069 with nelt - 1.
14070
14071 2010-02-23 Jason Merrill <jason@redhat.com>
14072
14073 PR debug/42800
14074 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
14075 in cfun->local_decls even if they have register types.
14076
14077 PR c++/42837
14078 * stor-layout.c (place_field): Don't warn about unnecessary
14079 DECL_PACKED if the type is packed.
14080
14081 2010-02-23 Jakub Jelinek <jakub@redhat.com>
14082
14083 PR target/43139
14084 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
14085 GOTOFF relocs, even when the base reg isn't pic pointer.
14086
14087 2010-02-23 Michael Matz <matz@suse.de>
14088
14089 PR debug/43077
14090 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
14091 (expand_gimple_basic_block): Generate and use debug temps if there
14092 are debug uses left after the last real use of TERed ssa names.
14093 Unlink debug immediate uses when they are expanded.
14094
14095 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
14096
14097 PR 43123
14098 * config/i386/i386.c (override_options): Reorganise to provide
14099 better error messages.
14100
14101 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14102
14103 PR middle-end/43083
14104 * graphite-scop-detection.c (create_single_exit_edge): Move
14105 the call to find_single_exit_edge to....
14106 (create_sese_edges): ...here. Don't handle multiple edges
14107 exiting the function.
14108 (build_graphite_scops): Don't handle multiple edges
14109 exiting the function.
14110
14111 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14112
14113 PR middle-end/43097
14114 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
14115 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
14116
14117 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
14118
14119 PR middle-end/43026
14120 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
14121
14122 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
14123
14124 PR c++/43126
14125 * c-typeck.c (convert_arguments): Print declaration location.
14126 * c-common.c (validate_nargs): Rename as
14127 builtin_function_validate_nargs.
14128 (check_builtin_function_arguments): Update.
14129
14130 2010-02-22 Richard Guenther <rguenther@suse.de>
14131
14132 PR lto/43045
14133 * tree-inline.c (declare_return_variable): Use the type of
14134 the call stmt lhs if available.
14135
14136 2010-02-22 Duncan Sands <baldrick@free.fr>
14137
14138 * passes.c (register_pass): Always consider all pass lists when
14139 ref_pass_instance_number is zero.
14140
14141 2010-02-22 Richard Guenther <rguenther@suse.de>
14142
14143 PR tree-optimization/42749
14144 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
14145 parameter. Do arithmetic in the original type.
14146 (update_accumulator_with_ops): Likewise.
14147 (adjust_accumulator_values): Adjust.
14148
14149 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14150
14151 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
14152 (QI to BLKmode splitter): New splitter.
14153
14154 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
14155
14156 * config/i386/i386.c (initial_ix86_tune_features): Turn on
14157 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
14158
14159 2010-02-22 Richard Guenther <rguenther@suse.de>
14160
14161 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
14162
14163 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
14164
14165 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
14166 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
14167 ($(T)crti.o, $(T)crtn.o): Remove rules.
14168
14169 2010-02-21 Tobias Burnus <burnus@net-b.de>
14170
14171 PR fortran/35259
14172 * doc/invoke.texi (-fassociative-math): Document that this
14173 option is automatically enabled for Fortran.
14174
14175 2010-02-20 David S. Miller <davem@davemloft.net>
14176
14177 * configure.ac: Test if linker and assembler properly support
14178 GOTDATA_OP relocations.
14179 * configure: Rebuild.
14180 * config.in: Likewise.
14181 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
14182 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
14183 (movsi_high_pic): Likewise.
14184 (movdi_lo_sum_pic): Likewise.
14185 (movdi_high_pic): Likewise.
14186 (movsi_pic_gotdata_op): New pattern.
14187 (movdi_pic_gotdata_op): Likewise.
14188 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
14189 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
14190
14191 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
14192
14193 PR target/43067
14194 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
14195 attribute to ssemul.
14196 (xop_mulv2div2di3_high): Ditto.
14197
14198 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14199
14200 PR c++/35669
14201 * c.opt (Wconversion-null): New option.
14202 * doc/invoke.texi (Wconversion-null): Document.
14203
14204 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14205
14206 * common.opt (Wlarger-than-): Add Undocumented.
14207
14208 2010-02-19 Mike Stump <mikestump@comcast.net>
14209
14210 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
14211
14212 2010-02-19 Jason Merrill <jason@redhat.com>
14213
14214 PR target/40332
14215 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
14216 * configure: Likewise.
14217
14218 2010-02-20 Alan Modra <amodra@gmail.com>
14219
14220 PR middle-end/42344
14221 * cgraph.h (cgraph_make_decl_local): Declare.
14222 * cgraph.c (cgraph_make_decl_local): New function.
14223 (cgraph_make_node_local): Use it.
14224 * cgraphunit.c (cgraph_function_versioning): Likewise.
14225 * ipa.c (function_and_variable_visibility): Likewise.
14226
14227 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14228
14229 PR bootstrap/43121
14230 * except.c (sjlj_emit_function_enter): Don't call
14231 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
14232 directly.
14233 * rtl.h (add_reg_br_prob_note): Remove prototype.
14234
14235 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
14236
14237 PR 41779
14238 * c-common.c (conversion_warning): Remove widening conversions
14239 before checking the conversion of integers to reals.
14240
14241 2010-02-19 Mike Stump <mikestump@comcast.net>
14242
14243 PR middle-end/43125
14244 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
14245
14246 PR objc/43061
14247 * cgraphunit.c (process_function_and_variable_attributes): Check
14248 DECL_PRESERVE_P instead of looking up attribute "used".
14249 * ipa-pure-const.c (check_decl): Likewise.
14250 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
14251 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
14252 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
14253 instead of attribute "used".
14254 * config/sol2-c.c (solaris_pragma_init): Likewise.
14255 (solaris_pragma_fini): Likewise.
14256
14257 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14258
14259 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
14260 Use XCNEW instead of xcalloc.
14261 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
14262 XNEW instead of xmalloc.
14263 (get_fields): Use XNEWVEC instead of xmalloc.
14264
14265 PR debug/43084
14266 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
14267 populate vars array.
14268 (create_new_general_access): For debug stmts just reset value.
14269 (get_stmt_accesses): For accesses within debug stmts just record them
14270 using add_access_to_acc_sites instead of preventing the peeling or
14271 counting them as accesses.
14272
14273 PR middle-end/42233
14274 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
14275
14276 2010-02-19 Richard Guenther <rguenther@suse.de>
14277
14278 PR tree-optimization/42916
14279 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
14280 instructions.
14281
14282 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
14283
14284 * configure.ac: Replace all uses of changequote in macro arguments
14285 with proper quoting.
14286
14287 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14288
14289 PR middle-end/42233
14290 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
14291
14292 2010-02-19 Richard Guenther <rguenther@suse.de>
14293
14294 PR tree-optimization/42944
14295 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
14296 test for aliasing with errno.
14297
14298 2010-02-19 Jakub Jelinek <jakub@redhat.com>
14299
14300 PR middle-end/42233
14301 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
14302 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
14303 * dojump.c: Include output.h.
14304 (inv): New inline function.
14305 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
14306 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
14307 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
14308 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
14309 argument, pass it down to other calls.
14310 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
14311 add REG_BR_PROB note to the conditional jump.
14312 * cfgexpand.c (add_reg_br_prob_note): Removed.
14313 (expand_gimple_cond): Don't call it, add the probability
14314 as last argument to jumpif_1/jumpifnot_1.
14315 * Makefile.in (dojump.o): Depend on output.h.
14316 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
14317 callers.
14318 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
14319 * stmt.c (do_jump_if_equal): Likewise.
14320 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
14321 * loop-unswitch.c (compare_and_jump_seq): Likewise.
14322 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
14323 Likewise.
14324 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
14325 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
14326 jumpifnot_1 callers.
14327 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
14328 callers.
14329 (store_expr): Adjust jumpifnot caller.
14330 (store_constructor): Adjust jumpif caller.
14331
14332 PR middle-end/42233
14333 * gimplify.c (gimple_boolify): For __builtin_expect call
14334 gimple_boolify also on its first argument.
14335
14336 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
14337
14338 * configure.ac (gnu-unique-object): Wrap regexps using [] in
14339 changequote block.
14340 (__stack_chk_fail): Ditto. Remove quadrigraphs.
14341 * configure: Regenerated.
14342
14343 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14344
14345 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
14346 lang_hooks.types_compatible_p instead of comptypes.
14347
14348 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
14349
14350 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
14351 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
14352 if __prefer_thumb__ is defined.
14353
14354 2010-02-18 Martin Jambor <mjambor@suse.cz>
14355
14356 PR tree-optimization/43066
14357 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
14358 array with zero-sized element type.
14359
14360 2010-02-18 Jakub Jelinek <jakub@redhat.com>
14361
14362 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
14363 rtx, allocate struct var_loc_node here and return it to the
14364 caller, and only if it is actually needed.
14365 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
14366 move it earlier and return immediately if it returns NULL.
14367
14368 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
14369
14370 * config/sparc/gas.h: New file. Restore
14371 TARGET_ASM_NAMED_SECTION to its ELF default.
14372 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
14373 check !HAVE_GNU_AS.
14374 * config/sparc/sparc.c (sparc_elf_asm_named_section):
14375 Likewise. Add ATTRIBUTE_UNUSED to prototype.
14376 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
14377 after sparc/sysv4.h.
14378
14379 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
14380
14381 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
14382
14383 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
14384
14385 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
14386 patterns from predicated pattern.
14387
14388 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
14389
14390 PR target/43103
14391 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
14392 for insn mnemonic suffix.
14393
14394 2010-02-17 Richard Guenther <rguenther@suse.de>
14395
14396 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
14397 to loop PHI nodes.
14398
14399 2010-02-17 Jakub Jelinek <jakub@redhat.com>
14400
14401 PR debug/42918
14402 * caller-save.c (save_call_clobbered_regs): If BB ends with
14403 a DEBUG_INSN, move any notes in between last real insn and the last
14404 DEBUG_INSN after the last DEBUG_INSN.
14405
14406 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
14407
14408 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
14409 Fix return type. Fix argument type. Explain meaning of return value.
14410
14411 2010-02-16 Richard Guenther <rguenther@suse.de>
14412
14413 PR tree-optimization/41043
14414 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
14415 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
14416 statements ...
14417 (vrp_visit_phi_node): ... but only for loop PHI nodes.
14418
14419 2010-02-16 Ira Rosen <irar@il.ibm.com>
14420
14421 PR tree-optimization/43074
14422 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
14423 * tree-vect-loop.c (vect_analyze_loop_operations): Add
14424 vectorizable cycles in hybrid SLP check.
14425 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
14426
14427 2010-02-16 Richard Guenther <rguenther@suse.de>
14428
14429 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
14430 (true_dependence): If memrefs_conflict_p computes must-alias
14431 trust it. Move TBAA check after offset-based disambiguation.
14432 (canon_true_dependence): Likewise.
14433
14434 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
14435
14436 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
14437 * doc/invoke.texi: Document it.
14438 * var-tracking.c: Include toplev.h and params.h.
14439 (vt_find_locations): Return bool indicating success. Compute
14440 hash sizes unconditionally. Check new parameter, report.
14441 (variable_tracking_main_1): Check vt_find_locations results and
14442 retry. Renamed from...
14443 (variable_tracking_main): ... this. New wrapper to preserve
14444 flag_var_tracking_assignments.
14445 * Makefile.in (var-tracking.o): Adjust dependencies.
14446
14447 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
14448 Jakub Jelinek <jakub@redhat.com>
14449
14450 PR target/42854
14451 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
14452 if weak_import attribute is present.
14453 * config/darwin.c (machopic_select_section): Likewise.
14454
14455 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
14456
14457 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
14458 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
14459 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
14460 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
14461
14462 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
14463 types.
14464
14465 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14466 Fix argument types.
14467
14468 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
14469 Rewrite text to refer to the names.
14470
14471 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
14472
14473 * config/i386/i386-builtin-types.def
14474 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
14475 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
14476 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
14477 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
14478 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
14479 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
14480 IX86_BUILTIN_VPERMIL2PS256.
14481 (MULTI_ARG_4_DF2_DI_I): Defined.
14482 (MULTI_ARG_4_DF2_DI_I1): Defined.
14483 (MULTI_ARG_4_SF2_SI_I): Defined.
14484 (MULTI_ARG_4_SF2_SI_I1): Defined.
14485 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
14486 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
14487 __builtin_ia32_vpermil2ps256.
14488 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14489 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14490 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
14491 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
14492 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
14493 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
14494 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
14495 CODE_FOR_xop_vpermil2v8sf3.
14496 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
14497 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
14498 * config/i386/xopintrin.h (_mm_permute2_pd): New.
14499 (_mm256_permute2_pd): New.
14500 (_mm_permute2_ps): New.
14501 (_mm256_permute2_ps): New.
14502
14503 2010-02-15 Nick Clifton <nickc@redhat.com>
14504
14505 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
14506 boolean parameters. Use emit_jump_insn when emitting a pop
14507 instruction containing a return insn.
14508 (push): Use 'true' rather than '1' as second parameter to F.
14509 (h8300_expand_prologue): Likewise.
14510 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
14511 (h8300_expand_epilogue): Likewise.
14512
14513 2010-02-15 Richard Guenther <rguenther@suse.de>
14514
14515 PR middle-end/43068
14516 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
14517 if that is zero.
14518
14519 2010-02-15 Nick Clifton <nickc@redhat.com>
14520
14521 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
14522 delta.
14523
14524 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
14525
14526 * intl.c (fake_ngettext): New function.
14527 * intl.h (fake_ngettext): Declare.
14528 (ngettext): Define macro.
14529 * collect2.c (notice_translated): New function.
14530 (main): Use notice_translated and ngettext.
14531 * collect2.h (notice_translated): Declare.
14532
14533 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
14534
14535 * reorg.c (delete_computation): Comment fixes.
14536 * caller-save.c (setup_save_areas): Idem.
14537 * sel-sched-dump.c (dump_lv_set): Idem.
14538 * rtl.def: Idem.
14539
14540 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14541
14542 * config/s390/s390.c (s390_sched_init): New function.
14543 (TARGET_SCHED_INIT): Target hook defined.
14544
14545 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
14546 Jack Howarth <howarth@bromo.med.uc.edu>
14547 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
14548
14549 PR target/42982
14550 Partial revert of unintended change in fix for PR41605.
14551 * config/darwin.h: Fix typo.
14552 * config/darwin9.h: Same.
14553
14554 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14555
14556 * c-pch.c (pch_init): Clear v.
14557
14558 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14559
14560 PR middle-end/42930
14561 * graphite-scop-detection.c (graphite_can_represent_scev): Call
14562 graphite_can_represent_init for MULT_EXPR.
14563
14564 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14565
14566 PR middle-end/42914
14567 PR middle-end/42530
14568 * graphite-sese-to-poly.c (remove_phi): New.
14569 (translate_scalar_reduction_to_array): Call remove_phi.
14570
14571 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14572
14573 PR middle-end/42771
14574 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
14575 * graphite-clast-to-gimple.h (gloog): Update declaration.
14576 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
14577 * graphite-poly.h (struct poly_bb): Add missing comments.
14578 (struct scop): Add poly_scop_p field.
14579 (POLY_SCOP_P): New.
14580 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
14581 * graphite.c (graphite_transform_loops): Build the polyhedral
14582 representation for each scop before code generation.
14583 * sese.c (rename_variables_in_operand): Removed.
14584 (rename_variables_in_expr): Return the renamed expression.
14585 (rename_sese_parameters): New.
14586 * sese.h (rename_sese_parameters): Declared.
14587
14588 2010-02-11 Richard Guenther <rguenther@suse.de>
14589
14590 PR tree-optimization/42998
14591 * tree-ssa-pre.c (create_expression_by_pieces): Treat
14592 POINTER_PLUS_EXPR properly.
14593
14594 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
14595 Changpeng Fang <changpeng.fang@amd.com>
14596
14597 PR middle-end/40886
14598 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
14599 the cost of an IV candidate when the IV is used in a test against zero.
14600
14601 * gcc.dg/tree-ssa/ivopts-3.c: New.
14602
14603 2010-02-11 Richard Guenther <rguenther@suse.de>
14604
14605 PR lto/41664
14606 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
14607 pointer-vs-decl case by swapping refs. Handle some cases
14608 of pointer-vs-decl disambiguations more conservatively.
14609 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
14610 to false after expanding.
14611
14612 2010-02-11 Richard Guenther <rguenther@suse.de>
14613
14614 PR driver/43021
14615 * gcc.c (process_command): Handle LTO file@offset case more
14616 appropriately.
14617
14618 2010-02-11 Jakub Jelinek <jakub@redhat.com>
14619
14620 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
14621 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
14622 of DEBUG_INSNs.
14623 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
14624
14625 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
14626 if MEM's mode size isn't DWARF2_ADDR_SIZE.
14627 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
14628 Optimize eq/ne comparisons when both arguments are known to be
14629 zero-extended.
14630 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
14631 Don't mask operands unnecessarily if they are known to be already
14632 zero-extended.
14633
14634 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
14635
14636 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
14637 instead of loop.
14638
14639 2010-02-10 Richard Guenther <rguenther@suse.de>
14640
14641 PR tree-optimization/43017
14642 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
14643 for wrapping signed arithmetic.
14644
14645 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14646
14647 PR debug/43010
14648 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
14649 if no debug info should be emitted for it.
14650
14651 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
14652
14653 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
14654 note when flag_exceptions is set.
14655
14656 2010-02-10 Duncan Sands <baldrick@free.fr>
14657
14658 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
14659
14660 2010-02-10 Richard Guenther <rguenther@suse.de>
14661
14662 PR c/43007
14663 * tree.c (get_unwidened): Handle constants.
14664 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
14665
14666 2010-02-10 Martin Jambor <mjambor@suse.cz>
14667
14668 PR lto/42985
14669 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
14670 check for variable argument counts independently.
14671
14672 2010-02-10 Christian Bruel <christian.bruel@st.com>
14673
14674 PR target/42841
14675 * config/sh/sh.c (find_barrier): Increase length for non delayed
14676 conditional branches.
14677
14678 2010-02-10 Christian Bruel <christian.bruel@st.com>
14679
14680 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
14681
14682 2010-02-10 Jakub Jelinek <jakub@redhat.com>
14683
14684 * builtins.c (set_builtin_user_assembler_name): Also handle
14685 ffs if int is smaller than word.
14686
14687 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
14688
14689 PR middle-end/42973
14690 * ira-conflicts.c (get_dup): Remove.
14691 (process_reg_shuffles): Add new parameter. Use it as an
14692 additional guard for copy generation.
14693 (add_insn_allocno_copies): Rewrite.
14694
14695 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
14696
14697 * common.opt (fsched2-use-traces): Preserved for backward
14698 compatibility.
14699 * doc/invoke.texi: Remove the documentation about option
14700 -fsched2-use-traces.
14701 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
14702 flag_sched2_use_traces.
14703 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
14704 the backward compatibility flag section.
14705
14706 2010-02-09 Richard Guenther <rguenther@suse.de>
14707
14708 PR tree-optimization/43008
14709 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
14710 make HEAP variables initialized from global memory if they
14711 are not known builtin functions.
14712 (find_func_aliases): Adjust.
14713
14714 2010-02-09 Richard Guenther <rguenther@suse.de>
14715
14716 PR tree-optimization/43000
14717 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
14718 arithmetic manually.
14719
14720 2010-02-08 Jakub Jelinek <jakub@redhat.com>
14721
14722 PR tree-optimization/42931
14723 * tree-loop-linear.c (try_interchange_loops): Don't call
14724 double_int_mul if estimated_loop_iterations failed.
14725
14726 2010-02-08 Martin Jambor <mjambor@suse.cz>
14727
14728 PR middle-end/42898
14729 * tree-sra.c (build_accesses_from_assign): Do not mark in
14730 should_scalarize_away_bitmap if stmt has volatile ops.
14731 (sra_modify_assign): Do not process assigns piecemeal if if stmt
14732 has volatile ops.
14733
14734 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
14735
14736 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
14737
14738 2010-02-07 Adam Nemet <adambnmet@gmail.com>
14739
14740 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
14741 before the pattern.
14742
14743 2010-02-07 Andrew Pinski <pinskia@gmail.com>
14744
14745 PR middle-end/42946
14746 * df-core.c (df_finish_pass): Change type of saved_flags to int.
14747
14748 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14749
14750 PR middle-end/42988
14751 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
14752 to unknown_dependence.
14753 (graphite_legal_transform_dr): Handle the unknown_dependence.
14754 (graphite_carried_dependence_level_k): Same.
14755
14756 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
14757
14758 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
14759
14760 2010-02-07 Richard Guenther <rguenther@suse.de>
14761
14762 PR middle-end/42991
14763 * expr.c (get_inner_reference): Always initialize *pbitsize.
14764
14765 2010-02-07 Richard Guenther <rguenther@suse.de>
14766
14767 PR middle-end/42956
14768 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
14769 new ARRAY_REFs on variable size element or minimal index arrays.
14770 Complete.
14771 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
14772 gimple_fold_indirect_ref.
14773
14774 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
14775
14776 PR target/42957
14777 * arm.c (arm_override_options): Just return if the user has specified
14778 an invalid fpu name.
14779
14780 2010-02-03 Jason Merrill <jason@redhat.com>
14781
14782 PR c++/42870
14783 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
14784 i386_pe_maybe_record_exported_symbol.
14785
14786 2010-02-05 Steve Ellcey <sje@cup.hp.com>
14787
14788 PR target/42924
14789 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
14790 (pa_delegitimize_address): New function.
14791
14792 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
14793
14794 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
14795 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
14796
14797 2010-02-05 Richard Guenther <rguenther@suse.de>
14798
14799 PR lto/42762
14800 * lto-streamer-in.c (get_resolution): Deal with references
14801 to undefined functions.
14802
14803 2010-02-05 Richard Guenther <rguenther@suse.de>
14804
14805 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
14806 (fold_const_aggregate_ref): Likewise.
14807 (ccp_fold_stmt): Substitute loads.
14808 (maybe_fold_reference): Verify types before substituting.
14809 Unshare properly.
14810 (fold_gimple_assign): Unshare properly.
14811 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
14812
14813 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
14814
14815 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
14816 for rs6000_gen_cell_microcode.
14817
14818 2010-02-04 Richard Guenther <rguenther@suse.de>
14819
14820 PR rtl-optimization/42952
14821 * dse.c (const_or_frame_p): Remove MEM handling.
14822
14823 2010-02-04 Nick Clifton <nickc@redhat.com>
14824
14825 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
14826 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
14827 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
14828 (mn10300_asm_output_mi_thunk): New function.
14829 (mn10300_can_output_mu_thunk): New function.
14830 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
14831 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
14832 (FUNCTION_ARG): Delete incorrect comment.
14833
14834 2010-02-03 Jason Merrill <jason@redhat.com>
14835
14836 PR c++/40138
14837 * fold-const.c (operand_equal_p): Handle erroneous types.
14838
14839 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14840
14841 * config/h8300/h8300.md (can_delay): Fix attibute condition.
14842
14843 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
14844
14845 PR rtl-optimization/42941
14846 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
14847 of xmalloc.
14848
14849 2010-02-03 Jason Merrill <jason@redhat.com>
14850
14851 PR c++/35652
14852 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
14853
14854 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
14855
14856 PR debug/42896
14857 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
14858 (cselib_reset_table): Renamed from...
14859 (cselib_reset_table_with_next_value): ... this.
14860 (cselib_get_next_uid): Renamed from...
14861 (cselib_get_next_unknown_value): ... this.
14862 * cselib.c (next_uid): Renamed from...
14863 (next_unknown_value): ... this.
14864 (cselib_clear_table): Adjust.
14865 (cselib_reset_table): Adjust. Renamed from...
14866 (cselib_reset_table_with_next_value): ... this.
14867 (cselib_get_next_uid): Adjust. Renamed from...
14868 (cselib_get_next_unknown_value): ... this.
14869 (get_value_hash): Use hash.
14870 (cselib_hash_rtx): Likewise.
14871 (new_cselib_val): Adjust. Set and dump uid.
14872 (cselib_lookup_mem): Pass next_uid as hash.
14873 (cselib_subst_to_values): Likewise.
14874 (cselib_log_lookup): Dump uid.
14875 (cselib_lookup): Pass next_uid as hash. Adjust.
14876 (cselib_process_insn): Adjust.
14877 (cselib_init): Initialize next_uid.
14878 (cselib_finish): Adjust.
14879 (dump_cselib_table): Likewise.
14880 * dse.c (canon_address): Dump value uid.
14881 * print-rtl.c (print_rtx): Print value uid.
14882 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
14883 (dvuid): New type.
14884 (dv_uid): New function, sort of renamed from...
14885 (dv_htab_hash): ... this, reimplemented in terms of it and...
14886 (dv_uid2hash): ... this. New.
14887 (variable_htab_eq): Drop excess assertions.
14888 (tie_break_pointers): Removed.
14889 (canon_value_cmp): Compare uids.
14890 (variable_post_merge_New_vals): Print uids.
14891 (vt_add_function_parameters): Adjust.
14892 (vt_initialize): Reset table. Adjust.
14893
14894 2010-02-03 Richard Guenther <rguenther@suse.de>
14895
14896 PR tree-optimization/42944
14897 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
14898 (call_may_clobber_ref_p_1): Likewise. Properly handle
14899 malloc and calloc clobbering errno.
14900
14901 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
14902
14903 * doc/invoke.texi: Fix name of sched1 dump.
14904
14905 * opts.c (decode_options): Set flag_tree_switch_conversion
14906 only conditionally on optimize >= 2.
14907
14908 * gcse.c: Assorted comment fixes in pass description.
14909
14910 2010-02-03 Anthony Green <green@moxielogic.com>
14911
14912 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
14913 nop padding in order to maintain alignment of storage location of
14914 target function address.
14915 (moxie_trampoline_init): Store target function address at newly
14916 aligned location.
14917 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
14918 to 32.
14919 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
14920
14921 2010-02-03 Richard Guenther <rguenther@suse.de>
14922
14923 PR middle-end/42927
14924 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
14925
14926 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14927
14928 * config.gcc: Reenable check for obsolete targets.
14929 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
14930 mips-sgi-irix6.[0-4]*.
14931
14932 2010-02-02 Nick Clifton <nickc@redhat.com>
14933
14934 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
14935 constant size of 4 as being the same as 0.
14936 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
14937 can take values in the range 0..4.
14938
14939 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
14940
14941 PR java/41991
14942 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
14943 as _darwin10_Unwind_FindEnclosingFunction().
14944 * libgcc-libsystem.ver: New.
14945
14946 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
14947
14948 PR target/41399
14949 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
14950 implicitly set registers.
14951
14952 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
14953
14954 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
14955 (arm_override_options): Allow automatic selection of the thread
14956 pointer register if thumb2.
14957 (legitimize_pic_address): Improve code sequences for Thumb2.
14958 (arm_call_tls_get_addr): Likewise.
14959 (legitimize_tls_address): Likewise.
14960 * arm.md (pic_load_addr_arm): Delete. Replace with ...
14961 (pic_load_addr_32bit): ... this. New named pattern.
14962 * thumb2.md (pic_load_addr_thumb2): Delete.
14963 (pic_load_dot_plus_four): Delete.
14964 (tls_load_dot_plus_four): New named pattern.
14965
14966 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14967
14968 PR libgomp/29986
14969 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
14970 Document fix for TLS bug.
14971
14972 2010-01-31 Richard Guenther <rguenther@suse.de>
14973
14974 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
14975 conservatively correct.
14976
14977 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14978
14979 PR target/42850
14980 Revert:
14981 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14982
14983 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
14984
14985 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14986
14987 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
14988
14989 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
14990
14991 * config.gcc: Adjust order of makefile fragments for mingw targets.
14992
14993 2010-01-31 Richard Guenther <rguenther@suse.de>
14994
14995 PR middle-end/42898
14996 * gimplify.c (gimplify_init_constructor): For volatile LHS
14997 initialize a temporary.
14998
14999 2010-01-31 Matthias Klose <doko@ubuntu.com>
15000
15001 * configure.ac: Fix __stack_chk_fail check for cross builds configured
15002 --with-headers
15003 * configure: Regenerate.
15004
15005 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
15006
15007 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15008 the same alias set and their sizes different constantness.
15009 (aliasing_component_refs_p): Revert 2009-10-24 change.
15010
15011 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15012
15013 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
15014 unused.
15015
15016 2010-01-29 Richard Guenther <rguenther@suse.de>
15017
15018 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
15019 Assert we successfully updated the call.
15020
15021 2010-01-29 Jakub Jelinek <jakub@redhat.com>
15022
15023 PR rtl-optimization/42889
15024 * df.h (df_set_bb_dirty_nonlr): New prototype.
15025 * df-core.c (df_set_bb_dirty_nonlr): New function.
15026 * df-scan.c (df_insn_rescan): Call it instead of
15027 df_set_bb_dirty for DEBUG_INSNs.
15028
15029 2010-01-29 Richard Guenther <rguenther@suse.de>
15030
15031 PR middle-end/37448
15032 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
15033 quadratic behavior in most cases.
15034
15035 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
15036
15037 PR target/42891
15038 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
15039 in the call to gen_x86_movsicc_0_m1.
15040
15041 2010-01-28 Richard Guenther <rguenther@suse.de>
15042
15043 PR tree-optimization/42871
15044 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
15045
15046 2010-01-28 Richard Guenther <rguenther@suse.de>
15047
15048 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
15049 into call arguments.
15050
15051 2010-01-28 Richard Guenther <rguenther@suse.de>
15052
15053 PR middle-end/42883
15054 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
15055 the forwarder if the destination is an EH landing pad.
15056
15057 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
15058
15059 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
15060 block list passed to gimple_duplicate_sese_tail.
15061 (parallelize_loops): Avoid parallelization when the function
15062 has_nonlocal_label.
15063 Avoid parallelization when the preheader is IRREDUCIBLE.
15064 Try to optimize when estimated_loop_iterations_int is unresolved.
15065 Add the loop's location to the dump file.
15066 * tree-cfg.c (add_phi_args_after_redirect): Remove.
15067 (gimple_duplicate_sese_tail): Remove the check for the latch.
15068 Redirect nexits to the exit block.
15069 Remove handling of the incoming edges to the latch.
15070 Redirect the backedge from the copied latch to the exit bb.
15071
15072 2010-01-28 Michael Matz <matz@suse.de>
15073
15074 PR target/42881
15075 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
15076 Wrap force_reg into a sequence, emit it before user.
15077
15078 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
15079
15080 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
15081 (arm_rev): New.
15082 (arm_legacy_rev): Likewise.
15083 (thumb_legacy_rev): Likewise.
15084
15085 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15086
15087 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
15088 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
15089 on MEM's address failed, try avoid_constant_pool_reference and
15090 recurse if it returned something different.
15091 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
15092 address, try avoid_constant_pool_reference and recurse if it
15093 returned something different.
15094 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
15095 address and avoid_constant_pool_reference returned something
15096 different, don't set have_address.
15097
15098 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
15099
15100 PR debug/42861
15101 * var-tracking.c (val_store): Add modified argument, obey it.
15102 Adjust callers.
15103 (count_uses): Move down logging of main.
15104 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
15105 don't need resolution.
15106 (emit_notes_in_bb): Likewise.
15107
15108 2010-01-27 Richard Guenther <rguenther@suse.de>
15109
15110 PR middle-end/42878
15111 * tree-inline.c (remap_decl): Delay remapping of SSA name
15112 default definitions until we need them.
15113
15114 2010-01-27 Jakub Jelinek <jakub@redhat.com>
15115
15116 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15117 (rs6000_delegitimize_address): New function.
15118
15119 * config/s390/s390.c (s390_delegitimize_address): Call
15120 delegitimize_mem_from_attrs.
15121
15122 PR middle-end/42874
15123 * tree-inline.c (cannot_copy_type_1): Removed.
15124 (copy_forbidden): Don't forbid copying of functions containing
15125 records/unions with variable length fields.
15126
15127 2010-01-27 Christian Bruel <christian.bruel@st.com>
15128
15129 Revert:
15130 PR target/42841
15131 * config/sh/sh.c (find_barrier): Increase length for non delayed
15132 conditional branches.
15133
15134 2010-01-27 Matthias Klose <doko@ubuntu.com>
15135
15136 * configure.ac (gnu-unique-object): Fix ldd version check.
15137 * configure: Regenerate.
15138
15139 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15140
15141 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
15142 HAVE_GNU_AS value.
15143 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
15144 Test for HAVE_GNU_AS value.
15145
15146 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15147
15148 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
15149 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
15150 INT64_TYPE): Define.
15151 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
15152 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
15153 INT_LEAST64_TYPE): Define.
15154 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
15155 UINT_LEAST64_TYPE): Define.
15156 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
15157 INT_FAST64_TYPE): Define.
15158 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
15159 UINT_FAST64_TYPE): Define.
15160 (INTMAX_TYPE, UINTMAX_TYPE): Define.
15161 (INTPTR_TYPE, UINTPTR_TYPE): Define.
15162 (SIG_ATOMIC_TYPE): Define.
15163
15164 2010-01-26 Richard Guenther <rguenther@suse.de>
15165
15166 * df-scan.c (df_scan_set_bb_info): Remove assert.
15167 (df_insn_rescan_debug_internal): Merge asserts.
15168 (df_install_ref): Likewise.
15169 (df_mark_reg): Use bitmap_set_range.
15170 (df_hard_reg_used_p): Remove assert.
15171 (df_hard_reg_used_count): Likewise.
15172
15173 2010-01-26 Richard Guenther <rguenther@suse.de>
15174
15175 PR rtl-optimization/42685
15176 * web.c (web_main): Ignore DEBUG_INSNs.
15177
15178 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
15179
15180 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
15181
15182 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
15183 Fix types of fndecl and arglist parameters.
15184
15185 2010-01-26 Richard Guenther <rguenther@suse.de>
15186
15187 PR middle-end/42806
15188 * tree-eh.c (unsplit_eh): Skip debug insns.
15189
15190 2010-01-26 Richard Guenther <rguenther@suse.de>
15191
15192 PR tree-optimization/42250
15193 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
15194
15195 2010-01-26 Jakub Jelinek <jakub@redhat.com>
15196
15197 PR fortran/42866
15198 * omp-low.c (expand_omp_sections): Only use single_pred if
15199 l2_bb is single_pred_p.
15200
15201 2010-01-25 Christian Bruel <christian.bruel@st.com>
15202
15203 PR target/42841
15204 * config/sh/sh.c (find_barrier): Increase length for non delayed
15205 conditional branches.
15206 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
15207
15208 2010-01-24 David S. Miller <davem@davemloft.net>
15209
15210 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
15211 define if not using GAS.
15212 * config/sparc/sparc.c (sparc_elf_asm_named_section):
15213 Likewise. Delete SECTION_MERGE code, which is only applicable
15214 when using GAS.
15215
15216 2010-01-24 Mark Mitchell <mark@codesourcery.com>
15217
15218 PR c++/42748
15219 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
15220 mangling of va_list in system headers.
15221
15222 2010-01-23 Toon Moene <toon@moene.org>
15223
15224 * tree-predcom.c (combine_chains): Return NULL, not false.
15225
15226 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
15227
15228 * tree-loop-distribution.c (distribute_loop): Fix declaration and
15229 initialization of variable res to agree with return type.
15230
15231 2010-01-22 Steve Ellcey <sje@cup.hp.com>
15232
15233 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
15234 * tree-sra.c: Add include of expr.h.
15235
15236 2010-01-22 Jakub Jelinek <jakub@redhat.com>
15237
15238 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
15239 insert the debug stmt on the single non-EH edge from the stmt.
15240
15241 2010-01-22 Richard Henderson <rth@redhat.com>
15242
15243 PR tree-opt/42833
15244 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
15245 the RHS until after generate_subtree_copies has insertted its
15246 code before the current statement.
15247
15248 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
15249
15250 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
15251
15252 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
15253
15254 2010-01-21 Martin Jambor <mjambor@suse.cz>
15255
15256 PR tree-optimization/42585
15257 * tree-sra.c (struct access): New field grp_total_scalarization.
15258 (dump_access): Dump the new field.
15259 (should_scalarize_away_bitmap): New variable.
15260 (cannot_scalarize_away_bitmap): Likewise.
15261 (sra_initialize): Allocate new bitmaps.
15262 (sra_deinitialize): Free new bitmaps.
15263 (create_access_1): New function.
15264 (create_access): Parts moved to create_access_1.
15265 (type_consists_of_records_p): New function.
15266 (completely_scalarize_record): Likewise.
15267 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
15268 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
15269 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
15270 access.
15271 (analyze_all_variable_accesses): Completely scalarize small eligible
15272 records.
15273
15274 2010-01-21 Martin Jambor <mjambor@suse.cz>
15275
15276 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
15277
15278 2010-01-21 Andrew Haley <aph@redhat.com>
15279
15280 * gcc.c (process_command): Move lang_specific_driver before
15281 setting cc_libexec_prefix.
15282
15283 2010-01-21 Richard Guenther <rguenther@suse.de>
15284
15285 PR middle-end/19988
15286 * fold-const.c (negate_expr_p): Pretend only negative
15287 real constants are easily negatable.
15288
15289 2010-01-20 Janis Johnson <janis187@us.ibm.com>
15290 Jason Merrill <jason@redhat.com>
15291
15292 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
15293 (TYPE_TRANSPARENT_AGGR): this, for union and record.
15294 * calls.c (initialize argument_information): Handle it.
15295 * c-common.c (handle_transparent_union_attribute): Use new name.
15296 * c-decl.c (finish_struct): Ditto.
15297 * c-typeck.c (type_lists_compatible_p): Ditto.
15298 (convert_for_assignment): Use new name and also handle record.
15299 * function.c (aggregate_value_p): Handle it.
15300 (pass_by_reference): Ditto.
15301 (assign_parm_data_types): Ditto.
15302 * print-tree.c (print_node): Ditto.
15303 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
15304 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
15305 * tree.c (first_field): New fn.
15306
15307 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
15308
15309 PR target/42818
15310 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
15311 even when linking statically, for now.
15312
15313 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15314
15315 PR debug/42715
15316 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
15317 without a cselib val.
15318 (count_uses): Accept MO_VAL_SET with no val on stores.
15319 (add_stores): Likewise.
15320
15321 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15322
15323 * var-tracking.c (check_value_val): Add a compile time assertion.
15324 (dv_is_decl_p): Simplify.
15325 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
15326 gcc_assert if ENABLE_CHECKING.
15327
15328 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
15329
15330 PR debug/42782
15331 * var-tracking.c: Include tree-flow.h.
15332 (mem_dies_at_call): New.
15333 (dataflow_set_preserve_mem_locs): Use it.
15334 (dataflow_set_remove_mem_locs): Likewise.
15335 (dump_var): Renamed from dump_variable. Adjust all callers.
15336 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
15337 * Makefile.in (var-tracking.o): Adjust deps.
15338
15339 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
15340
15341 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
15342
15343 2010-01-20 Richard Guenther <rguenther@suse.de>
15344
15345 PR tree-optimization/42717
15346 * tree-ssa-dce.c (get_live_post_dom): Remove.
15347 (forward_edge_to_pdom): Take an arbitrary edge to copy
15348 degenerate PHI args from.
15349 (remove_dead_stmt): Use the first post-dominator even if it
15350 does not contain live statements as redirection destination.
15351
15352 2010-01-20 Richard Guenther <rguenther@suse.de>
15353
15354 * tree-inline.c (estimate_num_insns): Handle EH builtins.
15355
15356 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15357
15358 * sel-sched.c (create_speculation_check): Remove set but not used
15359 variable twin.
15360 (try_transformation_cache): Remove set but not used variable ds.
15361 (calculate_privileged_insns): Remove set but not used variables
15362 cur_insn and min_spec_insn.
15363 (find_best_expr): Remove set but not used variable avail_n.
15364 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
15365 variable e.
15366 * cgraphunit.c (assemble_thunk): Remove set but not used variable
15367 false_label.
15368 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
15369 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
15370 new_scop_exit_edge.
15371
15372 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
15373
15374 PR bootstrap/42786
15375 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
15376 cpu types. Add support for *-sse3 cpu types.
15377 (x86_64-*-*): Ditto.
15378
15379 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15380
15381 PR middle-end/42803
15382 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
15383 argument, call initializer_constant_valid_p_1 instead of
15384 initializer_constant_valid_p, pass CACHE to it, return NULL
15385 immediately if first call returns NULL.
15386 (initializer_constant_valid_p_1): New function.
15387 (initializer_constant_valid_p): Use it.
15388
15389 2010-01-20 Thomas Quinot <quinot@adacore.com>
15390
15391 * tree.def (PLACEHOLDER_EXPR): Fix comment.
15392
15393 2010-01-20 Jakub Jelinek <jakub@redhat.com>
15394
15395 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
15396 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
15397 (loc_list_from_tree): Don't handle unsigned division. Handle
15398 signed modulo using DW_OP_{over,over,div,mul,minus}.
15399 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
15400 modulo instead of signed.
15401
15402 2010-01-20 DJ Delorie <dj@redhat.com>
15403
15404 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
15405 (Fpa): Pass it
15406 (h8300_emit_stack_adjustment): Propogate it.
15407 (push): Pass it.
15408 (h8300_expand_prologue): Likewise.
15409 (h8300_expand_epilogue): Likewise.
15410
15411 2010-01-19 Michael Matz <matz@suse.de>
15412
15413 PR tree-optimization/41783
15414 * tree-data-ref.c (toplevel): Include flags.h.
15415 (dump_data_dependence_relation): Also dump the inputs if the
15416 result will be unknown.
15417 (split_constant_offset_1): Look through some conversions.
15418 * tree-predcom.c (determine_roots_comp): Restart a new chain if
15419 the offset from last element is too large.
15420 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
15421 (reassociate_to_the_same_stmt): Handle vector registers.
15422 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
15423 (e.g. conversions).
15424 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
15425 wide_prolog_niters argument, emit widening instructions.
15426 (vect_do_peeling_for_alignment): Adjust caller, use widened
15427 variant of the iteration cound.
15428 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
15429
15430 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15431
15432 PR target/38697
15433 * config/arm/neon-testgen.m (emit_automatics): New parameter
15434 features. Adjust for Fixed_return_reg feature.
15435 (test_intrinsic): Call emit_automatics with new feature.
15436 * config/arm/neon.ml: Update copyright years.
15437 (features): New Fixed_return_reg feature.
15438 (ops): Update feature for Vget_low.
15439
15440 2010-01-19 Jakub Jelinek <jakub@redhat.com>
15441
15442 PR tree-optimization/42719
15443 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
15444 stmt uses.
15445
15446 PR debug/42728
15447 * fwprop.c (all_uses_available_at): Return false if def_set dest
15448 is a REG that is used in def_insn.
15449
15450 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
15451
15452 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
15453
15454 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
15455 Add argument names.
15456
15457 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
15458
15459 * target.h (struct gcc_target) <secondary_reload>: Change type
15460 of last argument to secondary_reload_info *.
15461
15462 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
15463
15464 PR target/42774
15465 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
15466 memory references with unaligned offsets. Remove CQImode handling.
15467 (unaligned_memory_operand): Return 1 for memory references with
15468 unaligned offsets. Remove CQImode handling.
15469
15470 2010-01-18 Richard Guenther <rguenther@suse.de>
15471
15472 PR middle-end/39954
15473 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
15474 builtin calls.
15475
15476 2010-01-18 Richard Guenther <rguenther@suse.de>
15477
15478 PR tree-optimization/42781
15479 * tree-ssa-structalias.c (find_what_var_points_to): Skip
15480 restrict processing only if the original variable was artificial.
15481
15482 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
15483
15484 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
15485 find number of popped argument bytes.
15486
15487 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
15488 Fix the text that describes the return value for invalid insns.
15489
15490 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
15491
15492 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
15493 Clarify what 'cost of the -dependence' is. Fix quoting.
15494
15495 * toplev.c (default_get_pch_validity): Rename argument to "sz".
15496 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
15497
15498 2010-01-17 Jakub Jelinek <jakub@redhat.com>
15499
15500 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15501 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
15502
15503 2010-01-17 Richard Guenther <rguenther@suse.de>
15504
15505 PR middle-end/42248
15506 * function.c (split_complex_args): Take a VEC to modify.
15507 (assign_parms_augmented_arg_list): Build a VEC instead of
15508 a chain of PARM_DECLs.
15509 (assign_parms_unsplit_complex): Take a VEC of arguments.
15510 Do not fixup unmodified parms.
15511 (assign_parms): Deal with the VEC.
15512 (gimplify_parameters): Likewise.
15513
15514 2010-01-17 Richard Guenther <rguenther@suse.de>
15515
15516 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
15517 node existence check.
15518 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
15519 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
15520 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
15521 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
15522 (gimple_execute_on_growing_pred): Likewise.
15523
15524 2010-01-17 Richard Guenther <rguenther@suse.de>
15525
15526 PR tree-optimization/42773
15527 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
15528 (compute_antic_aux): Likewise.
15529 (compute_partial_antic_aux): Likewise.
15530
15531 2010-01-17 Jie Zhang <jie.zhang@analog.com>
15532
15533 PR debug/42767
15534 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
15535 and US_TRUNCATE.
15536
15537 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
15538
15539 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
15540 appearance.
15541
15542 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
15543 Fix markup for strict argument.
15544
15545 (TARGET_SCHED_REORDER2): Fix argument types.
15546
15547 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
15548 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
15549
15550 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
15551 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
15552
15553 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
15554 Add argument name.
15555
15556 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
15557 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
15558 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
15559 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
15560 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
15561
15562 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
15563
15564 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
15565
15566 (TARGET_ASM_RELOC_RW_MASK): Add return type.
15567 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
15568
15569 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
15570
15571 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
15572 Use prototype.
15573
15574 (TARGET_ASM_NAMED_SECTION): Fix argument list.
15575
15576 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
15577 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
15578
15579 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
15580
15581 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
15582
15583 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
15584 referring to it. Fix language.
15585
15586 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
15587
15588 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
15589
15590 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
15591
15592 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
15593
15594 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
15595 '@var{stream}. Remove stray 'and'.
15596
15597 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
15598
15599 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
15600
15601 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
15602
15603 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
15604 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
15605
15606 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
15607 Fix description of return value.
15608 Rename argument "sz" to "len."
15609
15610 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
15611 Clarify meaning of 'true' return value.
15612
15613 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
15614
15615 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
15616 rep_mode versus mode_rep.
15617
15618 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
15619
15620 (TARGET_BUILTIN_DECL): Fix name.
15621
15622 (TARGET_COMMUTATIVE_P): Fix type of first argument.
15623
15624 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
15625
15626 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
15627
15628 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
15629
15630 (TARGET_RELAXED_ORDERING): Use @deftypevr.
15631
15632 (TARGET_GET_DRAP_RTX): Note that this is a hook.
15633 Clarify language.
15634
15635 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
15636 Rename argument tm_fn to md_fn.
15637
15638 (TARGET_OPTION_PRINT): Fix argument list.
15639
15640 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
15641
15642 PR target/42664
15643 * config/i386/i386.c (ix86_fixup_binary_operands):
15644 Revert FMA4 fixup of operands.
15645
15646 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15647
15648 PR gcc/42525
15649 * Makefile.in (write_entries_to_file, install-plugin):
15650 Use \012 instead of \n with tr.
15651
15652 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
15653
15654 * configure.ac (HAVE_AS_REF): New C macro.
15655 * configure: Regenerate.
15656 * config.in: Likewise.
15657 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
15658 if HAVE_AS_REF.
15659 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
15660 if HAVE_AS_REF.
15661
15662 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
15663
15664 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
15665
15666 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
15667
15668 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
15669
15670 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
15671
15672 (TARGET_IN_SMALL_DATA_P): Fix argument type.
15673
15674 (TARGET_BINDS_LOCAL_P): Fix argument type.
15675
15676 (TARGET_ASM_FILE_END): Use prototype.
15677
15678 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
15679
15680 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
15681
15682 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
15683
15684 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
15685
15686 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
15687 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
15688
15689 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
15690 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
15691
15692 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
15693 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
15694 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
15695 (TARGET_ADDR_SPACE_CONVERT): Likewise.
15696
15697 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
15698
15699 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
15700
15701 (TARGET_INIT_BUILTINS): Use prototype.
15702
15703 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
15704 Put 'const char *' in braces. Fix parameter types.
15705 (TARGET_INVALID_CONVERSION): Fix parameter types.
15706 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
15707 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
15708
15709 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
15710 Fix argument type.
15711
15712 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
15713
15714 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
15715
15716 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
15717
15718 * doc/tm.texi (TARGET_HELP): Fix return type.
15719
15720 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
15721 in braces. Fix argument types.
15722
15723 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
15724
15725 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
15726
15727 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
15728
15729 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
15730 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
15731
15732 (TARGET_MANGLE_TYPE): Fix argument types.
15733
15734 (TARGET_IRA_COVER_CLASSES): Use prototype.
15735
15736 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
15737
15738 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
15739
15740 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
15741
15742 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
15743
15744 (TARGET_CALLEE_COPIES): Fix argument types.
15745
15746 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
15747
15748 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
15749
15750 (TARGET_FUNCTION_VALUE): Fix argument types.
15751
15752 (TARGET_RETURN_IN_MSB): Fix argument type.
15753
15754 (TARGET_RETURN_IN_MEMORY): Fix argument types.
15755
15756 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
15757
15758 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
15759
15760 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
15761 agree with return type.
15762
15763 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
15764
15765 2010-01-15 Jing Yu <jingyu@google.com>
15766
15767 PR rtl-optimization/42691
15768 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
15769 a pseudo to a constant and are merged, and adjust comments.
15770
15771 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
15772
15773 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
15774
15775 2010-01-15 Richard Guenther <rguenther@suse.de>
15776
15777 PR middle-end/42739
15778 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
15779 labels of computed or non-local gotos to the destination.
15780 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
15781 landing pad label is the first label.
15782
15783 2010-01-15 Richard Guenther <rguenther@suse.de>
15784
15785 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
15786
15787 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15788
15789 PR target/42747
15790 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
15791 to allow generation of the xssqrtdp instruction on power7.
15792 (sqrtdf2_fpr): Ditto.
15793
15794 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15795
15796 PR middle-end/42674
15797 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
15798 functions with noreturn attribute.
15799
15800 PR c++/42608
15801 * varasm.c (declare_weak): Add weak attribute to decl if it
15802 doesn't have one already.
15803 (assemble_external): Only add decls to weak_decls if they also
15804 have weak attribute.
15805
15806 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
15807
15808 * var-tracking.c (var_reg_delete): Don't delete the association
15809 between REGs and values or one-part variables if the register
15810 isn't clobbered.
15811
15812 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15813
15814 PR debug/42657
15815 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
15816 because its first operand is a non-localized variable.
15817
15818 2010-01-14 Martin Jambor <mjambor@suse.cz>
15819
15820 PR tree-optimization/42706
15821 * tree-sra.c (encountered_recursive_call): New variable.
15822 (encountered_unchangable_recursive_call): Likewise.
15823 (sra_initialize): Initialize both new variables.
15824 (callsite_has_enough_arguments_p): New function.
15825 (scan_function): Call decl and flags check only for IPA-SRA, check
15826 whether there is a recursive call and whether it has enough arguments.
15827 (all_callers_have_enough_arguments_p): New function.
15828 (convert_callers): Look for recursive calls only when
15829 encountered_recursive_call is set.
15830 (ipa_early_sra): Bail out either if
15831 !all_callers_have_enough_arguments_p or
15832 encountered_unchangable_recursive_call.
15833
15834 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15835
15836 * sel-sched.c: Add 2010 to copyright years.
15837 * sel-sched-ir.c: Likewise.
15838 * sel-sched-ir.h: Likewise.
15839
15840 2010-01-14 Martin Jambor <mjambor@suse.cz>
15841
15842 PR tree-optimization/42714
15843 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
15844 constructors specially.
15845
15846 2010-01-14 Andi Kleen <ak@linux.intel.com>
15847
15848 * config/i386/drivers-i386.c (detect_caches_intel):
15849 Add l2sizekb parameter and fill in.
15850 (host_detect_local_cpu): Add l2sizekb, fill in.
15851 Add Atom small cache heuristic.
15852
15853 2010-01-14 Andi Kleen <ak@linux.intel.com>
15854
15855 * config/i386/drivers-i386.c (detect_caches_cpuid4):
15856 Add level3 parameter and fill in.
15857 (detect_caches_intel): Handle level3 cache.
15858
15859 2010-01-14 Andi Kleen <ak@linux.intel.com>
15860
15861 * config/i386/drivers-i386.c (host_detect_local_cpu):
15862 Fix core duo detection.
15863
15864 2010-01-14 Andi Kleen <ak@linux.intel.com>
15865
15866 * config/i386/drivers-i386.c (host_detect_local_cpu):
15867 Fix Atom detection.
15868
15869 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15870
15871 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
15872 (rs6000_variable_issue_1): this. Use...
15873 (rs6000_variable_issue): here. Reimplement. Print debug info.
15874
15875 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15876
15877 * sel-sched-ir.c (sel_restore_other_notes): Rename to
15878 sel_restore_notes. Update all callers. Call reemit_notes
15879 for all insns.
15880
15881 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15882
15883 PR rtl-optimization/42246
15884 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
15885 loops.
15886
15887 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15888
15889 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
15890 all successors is the same as number of successors in current region.
15891
15892 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15893
15894 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
15895 to rename is not separable. Otherwise check that its LHS is not NULL.
15896
15897 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15898
15899 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
15900
15901 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15902
15903 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
15904 available registers when failed to discover LHS register class.
15905 Fix indentation. Update comment.
15906
15907 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15908 Alexander Monakov <amonakov@ispras.ru>
15909
15910 PR rtl-optimization/42389
15911 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
15912 to can_issue_more.
15913 (advance_state_on_fence): Likewise.
15914 (sel_target_adjust_priority): Print debug output only when
15915 sched_verbose >= 4, not 2.
15916 (get_expr_cost): Do not issue all unique insns on the next cycle.
15917 (fill_insns): Initialize can_issue_more from the value saved
15918 with the fence.
15919 * sel-sched-ir.c (flist_add): New parameter issue_more.
15920 Init FENCE_ISSUE_MORE with it.
15921 (merge_fences): Likewise.
15922 (init_fences): Update call to flist_add.
15923 (add_to_fences, add_clean_fence_to_fences)
15924 (add_dirty_fence_to_fences): Likewise.
15925 (move_fence_to_fences): Update call to merge_fences.
15926 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
15927 sched groups.
15928 * sel-sched-ir.h (struct _fence): New field issue_more.
15929 (FENCE_ISSUE_MORE): New accessor macro.
15930
15931 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15932
15933 PR rtl-optimization/42388
15934 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
15935 that have no predecessors nor successors. Do not call move_bb_info
15936 for empty blocks outside of current region.
15937
15938 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15939
15940 PR rtl-optimization/42294
15941 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
15942 * sel-sched.c (move_exprs_to_boundary): Transitively add all
15943 originators' originators.
15944
15945 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
15946
15947 PR rtl-optimization/39453
15948 PR rtl-optimization/42246
15949 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
15950 for pipelining_p.
15951 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
15952
15953 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15954 Alexander Monakov <amonakov@ispras.ru>
15955
15956 PR middle-end/42245
15957 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
15958 (maybe_tidy_empty_bb): ... here. Make static. Add new
15959 argument. Update all callers.
15960 (tidy_control_flow): ... and here. Recompute topological order
15961 of basic blocks in region if necessary.
15962 (sel_redirect_edge_and_branch): Change return type. Return true
15963 if topological order might have been invalidated.
15964 (purge_empty_blocks): Export and move from...
15965 * sel-sched.c (purge_empty_blocks): ... here.
15966 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
15967 (maybe_tidy_empty_bb): Delete prototype.
15968 (purge_empty_blocks): Declare.
15969
15970 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
15971
15972 PR rtl-optimization/42249
15973 * sel-sched.c (try_replace_dest_reg): When chosen register
15974 and original register is the same, do not bail out early, but
15975 still check all original insns for validity of replacing destination
15976 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
15977 in this case.
15978
15979 2010-01-14 Jakub Jelinek <jakub@redhat.com>
15980
15981 PR c/42721
15982 Port from no-undefined-overflow branch:
15983 2009-03-09 Richard Guenther <rguenther@suse.de>
15984
15985 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
15986
15987 2010-01-14 Richard Guenther <rguenther@suse.de>
15988
15989 PR lto/42665
15990 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
15991
15992 2010-01-14 Ira Rosen <irar@il.ibm.com>
15993
15994 PR tree-optimization/42709
15995 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
15996 as scalar type in creation of constant vector operand.
15997
15998 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15999
16000 PR testsuite/42414
16001 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
16002 (check-parallel-%): Match `testsuite' directory component only
16003 at the end.
16004
16005 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
16006
16007 PR translation/39521
16008 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
16009 strings with _().
16010
16011 2010-01-13 Richard Guenther <rguenther@suse.de>
16012
16013 PR tree-optimization/42730
16014 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
16015 offset zero.
16016
16017 2010-01-13 Steve Ellcey <sje@cup.hp.com>
16018
16019 PR target/pr42542
16020 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
16021 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
16022 them signed.
16023
16024 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
16025
16026 * config/bfin/libgcc-bfin.ver: Regenerate based on current
16027 libgcc-std.ver. Add entries for ___smulsi3_highpart and
16028 ___umulsi3_highpart.
16029
16030 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
16031 rather than schedule_insns if the pass is enabled.
16032
16033 2010-01-13 Martin Jambor <mjambor@suse.cz>
16034
16035 PR tree-optimization/42704
16036 * tree-sra.c (sra_modify_assign): Do not delete assignments to
16037 SSA_NAMEs.
16038
16039 2010-01-13 Martin Jambor <mjambor@suse.cz>
16040
16041 PR tree-optimization/42703
16042 * tree-sra.c (analyze_access_subtree): Check that we can build a
16043 reference to the original data within the aggregate.
16044
16045 2010-01-13 Richard Guenther <rguenther@suse.de>
16046
16047 PR tree-optimization/42705
16048 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
16049
16050 2010-01-13 Richard Guenther <rguenther@suse.de>
16051
16052 PR middle-end/42716
16053 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
16054
16055 2010-01-13 Jakub Jelinek <jakub@redhat.com>
16056
16057 PR debug/41371
16058 * var-tracking.c (values_to_unmark): New variable.
16059 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16060 values_to_unmark vector. Moved body to...
16061 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
16062 instead queue it into values_to_unmark vector.
16063 (vt_find_locations): Free values_to_unmark vector.
16064
16065 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
16066
16067 * config/s390/s390.c (override_options): Set
16068 default of max-pending-list-length to 256
16069
16070 2010-01-13 Richard Guenther <rguenther@suse.de>
16071
16072 PR lto/42678
16073 * tree-pass.h (PROP_gimple_lcx): New.
16074 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
16075 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
16076 before the final cleanup_eh.
16077 (dump_properties): Dump PROP_gimple_lcx.
16078 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
16079 (tree_lower_complex_O0): Remove.
16080 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
16081 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
16082 tree_lower_complex, schedule TODO_update_ssa.
16083 * lto-streamer-out.c (output_function): Stream the functions
16084 properties.
16085 * lto-streamer-in.c (input_function): Likewise.
16086 (lto_read_body): Do not override them here.
16087
16088 2010-01-12 Joseph Myers <joseph@codesourcery.com>
16089
16090 PR c/42708
16091 * c-typeck.c (build_c_cast): Fold value cast to union type before
16092 wrapping it in a CONSTRUCTOR.
16093
16094 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16095
16096 PR rtl-optimization/42699
16097 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
16098 involved.
16099
16100 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16101
16102 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16103 SUBTARGET_WARN_UNUSED_SPEC): Move ...
16104 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
16105 SUBTARGET_WARN_UNUSED_SPEC): ... here
16106 * config/mips/iris5.h (LIBGCC_SPEC): Define.
16107
16108 2010-01-12 Julian Brown <julian@codesourcery.com>
16109
16110 * config/arm/neon-schedgen.ml (Utils): Don't try to
16111 open missing module.
16112 (find_with_result): New.
16113
16114 2010-01-12 Jakub Jelinek <jakub@redhat.com>
16115
16116 PR debug/42662
16117 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
16118 sharing when canonicalizing ({lt,ge}u (plus a b) b).
16119
16120 PR tree-optimization/42645
16121 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
16122 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
16123 decl_map, set processing_debug_stmt to -1 and return name without
16124 any remapping.
16125
16126 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
16127
16128 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
16129 binutils version, and reword target configuration description.
16130
16131 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16132
16133 * config/avr/avr.h (LINKER_NAME): Remove.
16134
16135 2010-01-11 Janis Johnson <janis187@us.ibm.com>
16136
16137 PR target/42416
16138 * config/rs6000/rs6000.c (rs6000_override_options): On targets
16139 that support VSX, warn for -mno-altivec if vsx is not disabled,
16140 and disable vsx.
16141
16142 2010-01-11 Joseph Myers <joseph@codesourcery.com>
16143 Shujing Zhao <pearly.zhao@oracle.com>
16144
16145 PR translation/42469
16146 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
16147 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
16148 character between option name and help text.
16149 * c.opt (imultilib): Likewise.
16150
16151 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
16152
16153 * lto-streamer-out.c (output_unreferenced_globals): Output static
16154 variables.
16155
16156 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
16157
16158 PR rtl-optimization/42621
16159 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
16160 optimizing for size.
16161 (duplicate_computed_gotos): Remove now-redundant check.
16162
16163 2010-01-10 Steve Ellcey <sje@cup.hp.com>
16164
16165 PR target/37454
16166 * configure.ac: Save and restore LDFLAGS and LIBS
16167 * configure: Regenerate.
16168
16169 2010-01-10 Richard Guenther <rguenther@suse.de>
16170
16171 PR middle-end/42667
16172 * builtins.c (fold_builtin_strlen): Add type argument and
16173 convert the resulting length to it.
16174 (fold_builtin_1): Adjust.
16175
16176 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16177
16178 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
16179 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
16180 1 insn.
16181 (num_insns_constant_wide): Adjust for that change.
16182
16183 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16184
16185 PR debug/42631
16186 * web.c (union_defs): Add used argument, to combine uses of
16187 uninitialized regs.
16188 (entry_register): Adjust type and tests of used argument.
16189 (web_main): Widen used for new use. Pass it to union_defs.
16190 * df.h (union_defs): Adjust prototype.
16191
16192 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16193
16194 PR debug/42630
16195 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
16196 uses in new incoming argument. Free body.
16197 (reset_debug_uses_in_loop): New.
16198 (analyze_insn_to_expand_var): Call the latter if the former found
16199 anything. Fix whitespace. Reject invalid dest overlaps before
16200 going through all insns in the loop.
16201
16202 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16203
16204 PR debug/42629
16205 * haifa-sched.c (dying_use_p): Debug insns don't count.
16206
16207 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16208
16209 PR middle-end/42363
16210 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
16211 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
16212 (verify_gimple_call): Reject LHS in noreturn calls.
16213
16214 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16215
16216 PR debug/42604
16217 PR debug/42395
16218 * tree-vect-loop-manip.c (adjust_info): New type.
16219 (adjust_vec): New pointer to vector.
16220 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
16221 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
16222 (slpeel_update_phis_for_duplicate_loop): Use them.
16223 (slpeel_update_phi_nodes_for_guard1): Likewise.
16224 (slpeel_update_phi_nodes_for_guard2): Likewise.
16225 (slpeel_tree_peel_loop_to_edge): Likewise.
16226 (vect_update_ivs_after_vectorizer): Likewise.
16227
16228 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16229
16230 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
16231 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
16232
16233 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
16234
16235 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
16236 bogus uninitialized warning.
16237
16238 2010-01-09 Richard Guenther <rguenther@suse.de>
16239
16240 PR middle-end/42512
16241 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
16242 the evolution is compatible with the initial condition.
16243
16244 2010-01-09 Jakub Jelinek <jakub@redhat.com>
16245
16246 * gcc.c (process_command): Update copyright notice dates.
16247 * gcov.c (print_version): Likewise.
16248 * gcov-dump.c (print_version): Likewise.
16249 * mips-tfile.c (main): Likewise.
16250 * mips-tdump.c (main): Likewise.
16251
16252 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
16253
16254 PR target/41885
16255 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
16256 (rotlhi3): Delete.
16257 (rotlhi3_8): Delete.
16258 (rotlsi3): Delete.
16259 (rotlsi3_8): Delete.
16260 (rotlsi3_16): Delete.
16261 (rotlsi3_24): Delete.
16262 (rotl<mode>3): New.
16263 (*rotw<mode>3): New.
16264 (*rotb<mode>3): New.
16265 * config/avr/avr.c (avr_rotate_bytes): New function.
16266 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
16267
16268 2010-01-08 Steve Ellcey <sje@cup.hp.com>
16269
16270 PR target/37454
16271 * configure.ac: Modify -rdynamic check.
16272 * configure: Regenerate.
16273
16274 2010-01-08 DJ Delorie <dj@redhat.com>
16275
16276 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
16277 register popping order.
16278
16279 2010-01-08 Richard Guenther <rguenther@suse.de>
16280
16281 PR lto/42528
16282 * c.opt (fsigned-char): Also let LTO handle this option.
16283 (funsigned-char): Likewise.
16284
16285 2010-01-07 Richard Guenther <rguenther@suse.de>
16286
16287 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
16288 (gimple_op): Likewise.
16289 (gimple_op_ptr): Likewise.
16290 (gimple_assign_set_lhs): Remove gcc_assert.
16291 (gimple_assign_set_rhs1): Likewise.
16292 (gimple_assign_set_rhs2): Likewise.
16293 (gimple_call_set_lhs): Likewise.
16294 (gimple_call_set_fn): Likewise.
16295 (gimple_call_set_fndecl): Likewise.
16296 (gimple_call_fndecl): Likewise.
16297 (gimple_call_return_type): Likewise.
16298 (gimple_call_set_chain): Likewise.
16299 (gimple_call_num_args): Likewise.
16300 (gimple_call_set_arg): Likewise.
16301 (gimple_cond_set_code): Likewise.
16302 (gimple_cond_set_lhs): Likewise.
16303 (gimple_cond_set_rhs): Likewise.
16304 (gimple_cond_set_true_label): Likewise.
16305 (gimple_cond_set_false_label): Likewise.
16306 (gimple_label_set_label): Likewise.
16307 (gimple_goto_set_dest): Likewise.
16308 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
16309 (gimple_debug_bind_get_value): Likewise.
16310 (gimple_debug_bind_get_value_ptr): Likewise.
16311 (gimple_debug_bind_set_var): Likewise.
16312 (gimple_debug_bind_set_value): Likewise.
16313 (gimple_debug_bind_reset_value): Likewise.
16314 (gimple_debug_bind_has_value_p): Likewise.
16315 (gimple_return_retval_ptr): Remove gcc_assert.
16316 (gimple_return_retval): Likewise.
16317 (gimple_return_set_retval): Likewise.
16318 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
16319 (safe_referenced_var_iterator): Remove.
16320 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
16321 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
16322 (fill_referenced_var_vec): Remove.
16323 (first_readonly_imm_use): Remove redundant gcc_assert.
16324 (phi_arg_index_from_use): Combine gcc_asserts.
16325 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
16326 (first_imm_use_stmt): Remove redundant gcc_assert.
16327 * tree-cfg.c (verify_gimple_call): Verify function and chain
16328 operands. Verify arguments.
16329 (verify_types_in_gimple_stmt): Verify condition code and labels.
16330
16331 2010-01-07 Richard Guenther <rguenther@suse.de>
16332
16333 PR tree-optimization/42641
16334 * sese.c (rename_map_elt_info): Use the SSA name version, do
16335 not hash pointers.
16336
16337 2010-01-07 Jakub Jelinek <jakub@redhat.com>
16338
16339 PR tree-optimization/42625
16340 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
16341 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
16342
16343 2010-01-07 Duncan Sands <baldrick@free.fr>
16344
16345 * Makefile.in (PLUGIN_HEADERS): Add version.h.
16346
16347 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
16348
16349 PR target/42511
16350 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
16351 note itself is not function_invariant_p.
16352
16353 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
16354
16355 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
16356 Do not add the DF_NOTE problem.
16357 * store-motion.c (execute_rtl_store_motion): Likewise.
16358
16359 2010-01-07 Martin Jambor <mjambor@suse.cz>
16360
16361 PR tree-optimization/42157
16362 * tree-sra.c (compare_access_positions): Stabilize sort if both
16363 accesses have integer types, return zero immediately if they are the
16364 same.
16365
16366 2010-01-06 Richard Henderson <rth@redhat.com>
16367
16368 PR middle-end/41883
16369 * haifa-sched.c (add_to_note_list): Merge into ...
16370 (concat_note_lists): ... here, and ...
16371 (unlink_other_notes, rm_other_notes): Merge into...
16372 (remove_notes): ... here. Create REG_SAVE_NOTEs for
16373 NOTE_INSN_EPILOGUE_BEG.
16374
16375 2010-01-06 Richard Guenther <rguenther@suse.de>
16376
16377 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
16378 not inline regular functions into always-inline functions.
16379
16380 2010-01-06 Nick Clifton <nickc@redhat.com>
16381
16382 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
16383 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
16384 used together.
16385 (OVERRIDE_OPTIONS): Delete.
16386 (OPTIMIZATION_OPTIONS): Define.
16387 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
16388 * config/rx/rx.c (rx_handle_option): Issue an error message if
16389 -mcpu=rx200 and -fpu are used together.
16390 (rx_set_optimization_options): New function. Issue an error
16391 message if an optimization attribute attempts to reset the FPU/
16392 math optimization pairing.
16393 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
16394 * config/rx/rx.opt: Set the default to 32-bit doubles.
16395 * config/rx/t-rx: Add multilibs for -nofpu option.
16396 * doc/invoke.texi: Update documentation of RX options.
16397
16398 2010-01-06 Richard Guenther <rguenther@suse.de>
16399
16400 * tree-ssa-pre.c (name_to_id): New global.
16401 (alloc_expression_id): Simplify SSA name handling.
16402 (lookup_expression_id): Likewise.
16403 (init_pre): Zero name_to_id.
16404 (fini_pre): Free it.
16405
16406 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
16407
16408 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
16409
16410 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
16411
16412 PR target/42542
16413 * config/i386/sse.md (smaxv2di3): New.
16414 (umaxv2di3): Likewise.
16415 (sminv2di3): Likewise.
16416 (uminv2di3): Likewise.
16417
16418 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
16419
16420 PR target/42564
16421 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
16422 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
16423 (legitimize_tls_address): Likewise.
16424 (sparc_tls_referenced_p): Likewise.
16425 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
16426 and adjust calls to legitimize_pic_address.
16427 (legitimate_constant_p) Use sparc_tls_referenced_p.
16428 (legitimate_pic_operand_p): Likewise.
16429 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
16430 (sparc_tls_symbol_ref_1): Delete.
16431 (sparc_tls_referenced_p): Make static, recognize specific patterns.
16432 (legitimize_tls_address): Make static, handle CONST patterns.
16433 (legitimize_pic_address): Make static, remove unused parameter and
16434 adjust recursive calls.
16435 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
16436 and adjust call to legitimize_pic_address.
16437 (sparc_output_mi_thunk): Likewise.
16438
16439 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
16440 H.J. Lu <hongjiu.lu@intel.com>
16441
16442 PR target/42542
16443 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
16444 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
16445 operands to make them signed.
16446
16447 Revert:
16448 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16449
16450 PR target/42542
16451 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16452 GTU to GT for V4SI and V2DI.
16453
16454 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16455 (umin<mode>3): Removed.
16456 (uminv8hi3): New.
16457 (uminv4si3): Likewise.
16458
16459 2010-01-05 Martin Jambor <mjambor@suse.cz>
16460
16461 PR tree-optimization/42462
16462 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
16463 current_function_decl to helper functions and macros.
16464
16465 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16466
16467 PR bootstrap/41771
16468 * flags.h: Don't include real.h.
16469 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
16470 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
16471 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
16472 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
16473 * dominance.c: Update copyright.
16474 * gimple.c (walk_gimple_op): Remove inline.
16475 * tree-ssa-reassoc.c: Include real.h.
16476 * Makefile.in (FLAGS_H): Remove $(REAL_H).
16477 (tree-ssa-reassoc.o): Depend on $(REAL_H).
16478
16479 2010-01-05 Nick Clifton <nickc@redhat.com>
16480
16481 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
16482 register to push into the stack frame when the accumulator has to
16483 be saved during interrupts.
16484
16485 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
16486
16487 * doc/invoke.texi: Remove the documentation about option
16488 -Wunreachable-code.
16489 * common.opt (Wunreachable-code): Preserved for backward
16490 compatibility.
16491 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
16492 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
16493 the backward compatibility flag section.
16494
16495 2010-01-05 Richard Guenther <rguenther@suse.de>
16496
16497 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
16498
16499 2010-01-05 Jakub Jelinek <jakub@redhat.com>
16500
16501 PR other/42611
16502 * cfgexpand.c (expand_one_var): Diagnose too large variables.
16503
16504 PR tree-optimization/42508
16505 * tree-sra.c (convert_callers): Check for recursive call
16506 by comparing cgraph nodes instead of decls.
16507 (modify_function): Call ipa_modify_formal_parameters also
16508 on all same_body aliases.
16509
16510 * cgraphunit.c (cgraph_materialize_all_clones): Compare
16511 cgraph nodes when checking for same_body aliases.
16512
16513 2010-01-05 Richard Guenther <rguenther@suse.de>
16514
16515 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
16516 allocation and lookup.
16517 (get_or_alloc_expr_for_constant): Likewise.
16518 (phi_translate): Sink allocation.
16519
16520 2010-01-04 Richard Guenther <rguenther@suse.de>
16521
16522 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
16523 a new entry only if needed.
16524 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
16525 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
16526 hashtable lookup.
16527 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
16528 the result array.
16529 (phi_translate): Handle CONSTANTs early.
16530
16531 2010-01-04 Martin Jambor <mjambor@suse.cz>
16532
16533 PR tree-optimization/42398
16534 * tree-sra.c (struct access): Removed flag grp_different_types.
16535 (dump_access): Do not dump the removed flag.
16536 (sort_and_splice_var_accesses): Do not set the removed flag.
16537 (sra_modify_expr): Check for type compatibility directly.
16538
16539 2010-01-04 Martin Jambor <mjambor@suse.cz>
16540
16541 PR tree-optimization/42366
16542 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
16543 edges with variable number of parameters.
16544 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
16545 flag instead of asserting it.
16546 (ipa_read_node_info): Read uses_analysis_done flag.
16547
16548 2010-01-04 Richard Guenther <rguenther@suse.de>
16549
16550 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
16551 iterative_hash_* as intended.
16552 (vn_reference_compute_hash): Likewise. Simplify hashing
16553 SSA names.
16554 (vn_reference_lookup_2): Likewise.
16555 (vn_nary_op_compute_hash): Likewise.
16556 (vn_phi_compute_hash): Likewise.
16557 (expressions_equal_p): Remove strange code.
16558 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
16559 (pre_expr_hash): Likewise. Simplify hashing SSA names.
16560 (bitmap_insert_into_set_1): Take value-id as parameter.
16561 (add_to_value): Pass it.
16562 (bitmap_insert_into_set): Likewise.
16563 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
16564
16565 2010-01-04 Jakub Jelinek <jakub@redhat.com>
16566
16567 PR driver/42442
16568 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
16569 (do_self_spec): For switches with SWITCH_IGNORE set set also
16570 SWITCH_IGNORE_PERMANENTLY.
16571 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
16572 of SWITCH_IGNORE.
16573
16574 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
16575
16576 * lto-streamer-out.c (output_unreferenced_globals): Output the full
16577 tree of an unreferenced global var.
16578
16579 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16580
16581 PR target/42542
16582 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
16583 GTU to GT for V4SI and V2DI.
16584
16585 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
16586 (umin<mode>3): Removed.
16587 (uminv8hi3): New.
16588 (uminv4si3): Likewise.
16589
16590 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
16591
16592 PR lto/42581
16593 * collect2.c (main): Turn on trace in collect2 if -v is passed
16594 to gcc with LTO.
16595
16596 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
16597
16598 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
16599 description of expression operand.
16600
16601 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
16602
16603 * configure.ac: Add install-html to target_list for Make-hooks.
16604 * configure: Regenerate.
16605 * fortran/Make-lang.in (F95_HTMLFILES): New.
16606 (fortran.html): Use it.
16607 (fortran.install-html): New.
16608 * Makefile.in (install-html): Add lang.install-html.
16609 * java/Make-lang.in (JAVA_HTMLFILES): New.
16610 (java.html): Use it.
16611 (java.install-html): New.
16612 * objc/Make-lang.in (objc.install-html): New.
16613 * objcp/Make-lang.in (obj-c++.install-html): New.
16614 * cp/Make-lang.in (c++.install-html): New.
16615 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
16616 * lto/Make-lang.in (lto.install-html): New.
16617
16618 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16619
16620 PR lto/42520
16621 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
16622
16623 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
16624
16625 PR rtl-optimization/41862
16626 * store-motion.c (store_killed_in_insn, compute_store_table,
16627 remove_reachable_equiv_notes, replace_store_insn,
16628 build_store_vectors): Ignore all DEBUG_INSNs.
16629
16630 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
16631
16632 PR lto/41564
16633 * common.opt: Add dumpdir.
16634
16635 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
16636 isn't specified.
16637 (option_map): Add --dumpdir.
16638
16639 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
16640
16641 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
16642
16643 * opts.c (decode_options): Try dump_dir_name first if
16644 dump_base_name isn't an absolute path.
16645 (common_handle_option): Handle OPT_dumpdir.
16646
16647 * toplev.c (dump_dir_name): New.
16648 (print_switch_values): Also ignore -dumpdir.
16649
16650 * toplev.h (dump_dir_name): New.
16651
16652 2010-01-03 Richard Guenther <rguenther@suse.de>
16653
16654 PR tree-optimization/42589
16655 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
16656 double-word expansion of bswap32.
16657
16658 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
16659
16660 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
16661 with BLOCK_FOR_INSN.
16662 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
16663 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
16664 noce_process_if_block): Likewise.
16665 * gcse.c (compute_local_properties, insert_expr_in_table,
16666 insert_set_in_table, canon_list_insert, find_avail_set,
16667 pre_insert_copy_insn): Likewise.
16668
16669 * basic-block.h (BLOCK_NUM): Move from here...
16670 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
16671
16672 2010-01-03 Richard Guenther <rguenther@suse.de>
16673
16674 PR tree-optimization/42438
16675 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
16676 contains_may_not_return_call flag.
16677 (BB_MAY_NOTRETURN): New.
16678 (valid_in_sets): Trapping nary operations are not valid
16679 in blocks that may not return.
16680 (insert_into_preds_of_block): Remove check for trapping expressions.
16681 (compute_avail): Compute also BB_MAY_NOTRETURN.
16682
16683 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
16684
16685 * doc/invoke.texi: Add 2010 to copyright years.
16686
16687 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
16688
16689 * config/sparc/sparc.c: Fix formatting nits.
16690
16691 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
16692 Alexander Monakov <amonakov@ispras.ru>
16693
16694 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
16695
16696 2010-01-02 Richard Guenther <rguenther@suse.de>
16697
16698 PR middle-end/42577
16699 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
16700 (simplify_switch_using_ranges): Mark to be removed edges
16701 as non-executable.
16702
16703 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16704
16705 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16706
16707 * collect2.c (scan_libraries): Add missing argument in call to
16708 scan_prog_file.
16709
16710 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
16711
16712 PR target/42448
16713 * config/alpha/predicates.md (aligned_memory_operand): Return false
16714 for CQImode.
16715 (unaligned_memory_operand): Return true for CQImode.
16716 * config/alpha/alpha.c (get_aligned_mem): Assert that location
16717 doesn not cross aligned SImode word boundary.
16718
16719 2010-01-02 Anatoly Sokolov <aesok@post.ru>
16720
16721 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
16722 Remove.
16723 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
16724 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
16725
16726 2010-01-02 Richard Guenther <rguenther@suse.de>
16727
16728 PR lto/41597
16729 * toplev.c (compile_file): Emit LTO marker properly. Change
16730 it to __gnu_lto_v1.
16731 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
16732
16733 2010-01-01 Richard Guenther <rguenther@suse.de>
16734
16735 PR debug/42455
16736 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
16737
16738 2010-01-01 Richard Guenther <rguenther@suse.de>
16739
16740 PR c/42570
16741 * c-decl.c (grokdeclarator): For zero-size arrays force
16742 structural equality checks as layout_type does.
16743
16744 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16745
16746 * builtins.c: Update copyright to 2010.
16747
16748 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
16749
16750 PR lto/42531
16751 * lto-streamer-out.c (produce_asm): Revert the last change.
16752 (copy_function): Likewise.
16753
16754 * lto-streamer.c (lto_get_section_name): Skip any leading
16755 asterisk in name.
16756
16757 2010-01-01 Richard Guenther <rguenther@suse.de>
16758
16759 PR middle-end/42559
16760 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
16761 for LABEL_DECLs.
16762
16763 \f
16764 Copyright (C) 2010 Free Software Foundation, Inc.
16765
16766 Copying and distribution of this file, with or without modification,
16767 are permitted in any medium without royalty provided the copyright
16768 notice and this notice are preserved.