1 2010-07-08 Andi Kleen <ak@linux.intel.com>
3 * lto-section-in.c (lto_section_name): Add missing comma.
5 2010-07-08 Anatoly Sokolov <aesok@post.ru>
7 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
8 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
9 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10 (ia64_override_options): Rename to...
11 (ia64_option_override): ... this one. Make static.
13 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
16 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
17 pointed-to type of the offset in a MEM_REF to compute the alignment.
19 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
21 * final.c (final_scan_insn): Replace
22 TARGET_UNWIND_INFO macro check by unwind_emit
24 * targhooks.c (default_unwind_emit): Removed.
25 * targhooks.h (default_unwind_emit): Likewise.
26 * target.def (unwind_emit): Set default value to NULL.
28 * config/i386/i386-protos.h (ix86_asm_output_function_label):
30 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
31 for NULL fntype argument and allow 64-bit targets.
32 (ix86_asm_output_function_label): New function.
33 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
34 (ix86_handle_fndecl_attribute): Likewise.
35 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
36 * doc/doc/tm.texi: Regenerated.
37 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
38 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
39 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
40 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
41 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
42 * config/elfos.h: Likewise.
43 * config/i386/cygming.h: Likewise.
44 * config/netbsd-aout.h: Likewise.
45 * config/openbsd.h: Likewise.
46 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
47 by ix86_asm_output_function_label function call.
48 * varasm.c (assemble_start_function): Use
49 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
51 2010-07-08 Jan Hubicka <jh@suse.cz>
53 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
55 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
57 * ipa-cp.c (ipcp_estimate_growth): Use it.
58 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
61 2010-07-08 Jan Hubicka <jh@suse.cz>
63 * tree-inline.c (declare_return_variable): Allocate annotation for new
66 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
68 PR tree-optimization/44710
69 * tree-if-conv.c (parse_predicate): New.
70 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
71 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
73 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
75 * common.opt (ftree-loop-if-convert): New flag.
76 * doc/invoke.texi (ftree-loop-if-convert): Documented.
77 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
78 when flag_tree_loop_if_convert is set.
80 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
82 * config/i386/i386.c: Use short syntax for function calls
83 through function pointers.
84 * config/i386/i386.md: Ditto.
86 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
88 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
90 2010-07-08 Richard Guenther <rguenther@suse.de>
92 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
93 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
95 2010-07-08 Jakub Jelinek <jakub@redhat.com>
97 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
98 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
99 (loc_list_from_tree): Likewise.
100 (output_loc_operands): Handle outputting DW_OP_const[48]u
101 with loc->dtprel set.
102 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
104 2010-07-08 Jan Hubicka <jh@suse.cz>
106 * ipa.c: Include pointer-set.h
107 (cgraph_externally_visible_p): New attribute ALIASED;
108 when in LTO, hidden symbols are local unless they are aliased.
109 (function_and_variable_visibility): Compute aliased nodes;
110 handle LTO and hidden symbol on functions and vars.
111 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
112 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
114 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
116 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
117 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
118 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
119 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
120 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
121 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
122 (ix86_gen_probe_stack_range): Likewise.
123 (override_options): Set them.
124 (ix86_target_stack_probe): New function.
125 (ix86_compute_frame_layout): Force use of push instructions to
126 save registers if stack checking with probes is enabled.
127 (get_scratch_register_on_entry): New function.
128 (release_scratch_register_on_entry): Likewise.
129 (ix86_adjust_stack_and_probe): Likewise.
130 (output_adjust_stack_and_probe): Likewise.
131 (ix86_emit_probe_stack_range): Likewise.
132 (output_probe_stack_range): Likewise.
133 (ix86_expand_prologue): Emit stack checking code if static built-in
134 stack checking is enabled.
135 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
136 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
137 (output_adjust_stack_and_probe): Likewise.
138 (output_probe_stack_range): Likewise.
139 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
140 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
142 (allocate_stack_worker_64): Likewise.
143 (allocate_stack): Likewise.
144 (adjust_stack_and_probe): New insn.
145 (probe_stack_range): Likewise.
147 2010-07-08 Richard Guenther <rguenther@suse.de>
149 PR tree-optimization/44831
150 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
151 a MEM_REF preserving TBAA info of the original dereference.
152 Dereference the original pointer if the address is not
154 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
155 at least one invariant address that we are going to dereference.
157 2010-07-08 Richard Guenther <rguenther@suse.de>
159 PR tree-optimization/44861
160 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
161 information when building MEM_REFs.
162 (vectorizable_load): Likewise.
163 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
165 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
167 * config/sol2-c.c: Do not include diagnostic-core.h.
169 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
172 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
173 with respect to current_function_decl. Pass decl of the function.
174 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
175 * ipa-inline.c (compute_inline_parameters): Pass decl to
176 estimated_stack_frame_size.
178 2010-07-08 Richard Guenther <rguenther@suse.de>
180 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
182 (valueize_refs): Call it.
184 2010-07-08 Richard Guenther <rguenther@suse.de>
186 PR rtl-optimization/44838
187 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
188 SSA form do not use pointer equivalence.
190 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
192 * dwarf2out.c (AT_linkage_name): Delete.
193 (add_linkage_attr): New function.
194 (add_linkage_name): Call it to emit the linkage attribute.
195 (dwarf2out_finish): Likewise.
196 (move_linkage_attr): Explicitly accept both attribute variants.
198 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
200 * toplev.h: Do not include diagnostic-core.h.
201 Include diagnostic-core.h in every file that includes toplev.h.
202 * c-tree.h: Do not include toplev.h.
203 * pretty-print.h: Update comment.
204 * Makefile.in: Update dependencies.
205 * alias.c: Include diagnostic-core.h in every file that includes
207 * attribs.c: Likewise.
208 * auto-inc-dec.c: Likewise.
209 * bb-reorder.c: Likewise.
210 * bt-load.c: Likewise.
211 * caller-save.c: Likewise.
214 * cfganal.c: Likewise.
215 * cfgbuild.c: Likewise.
216 * cfgcleanup.c: Likewise.
217 * cfghooks.c: Likewise.
218 * cfgloop.c: Likewise.
219 * combine.c: Likewise.
220 * config/alpha/alpha.c: Likewise.
221 * config/arc/arc.c: Likewise.
222 * config/arm/arm.c: Likewise.
223 * config/arm/pe.c: Likewise.
224 * config/avr/avr.c: Likewise.
225 * config/bfin/bfin.c: Likewise.
226 * config/cris/cris.c: Likewise.
227 * config/crx/crx.c: Likewise.
228 * config/darwin-c.c: Likewise.
229 * config/darwin.c: Likewise.
230 * config/fr30/fr30.c: Likewise.
231 * config/frv/frv.c: Likewise.
232 * config/h8300/h8300.c: Likewise.
233 * config/host-darwin.c: Likewise.
234 * config/i386/i386.c: Likewise.
235 * config/i386/netware.c: Likewise.
236 * config/i386/nwld.c: Likewise.
237 * config/i386/winnt-cxx.c: Likewise.
238 * config/i386/winnt-stubs.c: Likewise.
239 * config/i386/winnt.c: Likewise.
240 * config/ia64/ia64-c.c: Likewise.
241 * config/ia64/ia64.c: Likewise.
242 * config/iq2000/iq2000.c: Likewise.
243 * config/lm32/lm32.c: Likewise.
244 * config/m32c/m32c-pragma.c: Likewise.
245 * config/m32c/m32c.c: Likewise.
246 * config/m32r/m32r.c: Likewise.
247 * config/m68hc11/m68hc11.c: Likewise.
248 * config/m68k/m68k.c: Likewise.
249 * config/mcore/mcore.c: Likewise.
250 * config/mep/mep-pragma.c: Likewise.
251 * config/mep/mep.c: Likewise.
252 * config/mmix/mmix.c: Likewise.
253 * config/mn10300/mn10300.c: Likewise.
254 * config/moxie/moxie.c: Likewise.
255 * config/pa/pa.c: Likewise.
256 * config/pdp11/pdp11.c: Likewise.
257 * config/picochip/picochip.c: Likewise.
258 * config/rs6000/rs6000-c.c: Likewise.
259 * config/rs6000/rs6000.c: Likewise.
260 * config/rx/rx.c: Likewise.
261 * config/s390/s390.c: Likewise.
262 * config/score/score.c: Likewise.
263 * config/score/score3.c: Likewise.
264 * config/score/score7.c: Likewise.
265 * config/sh/sh.c: Likewise.
266 * config/sh/symbian-base.c: Likewise.
267 * config/sh/symbian-c.c: Likewise.
268 * config/sh/symbian-cxx.c: Likewise.
269 * config/sol2-c.c: Likewise.
270 * config/sol2.c: Likewise.
271 * config/sparc/sparc.c: Likewise.
272 * config/spu/spu.c: Likewise.
273 * config/stormy16/stormy16.c: Likewise.
274 * config/v850/v850-c.c: Likewise.
275 * config/v850/v850.c: Likewise.
276 * config/vax/vax.c: Likewise.
277 * config/vxworks.c: Likewise.
278 * config/xtensa/xtensa.c: Likewise.
279 * convert.c: Likewise.
281 * cselib.c: Likewise.
282 * dbgcnt.c: Likewise.
283 * dbxout.c: Likewise.
285 * dominance.c: Likewise.
286 * emit-rtl.c: Likewise.
287 * explow.c: Likewise.
288 * expmed.c: Likewise.
289 * fixed-value.c: Likewise.
290 * fold-const.c: Likewise.
291 * fwprop.c: Likewise.
293 * ggc-common.c: Likewise.
294 * ggc-page.c: Likewise.
295 * ggc-zone.c: Likewise.
296 * gimple-low.c: Likewise.
297 * gimplify.c: Likewise.
299 * haifa-sched.c: Likewise.
301 * implicit-zee.c: Likewise.
302 * integrate.c: Likewise.
303 * ira-build.c: Likewise.
304 * ira-color.c: Likewise.
305 * ira-conflicts.c: Likewise.
306 * ira-costs.c: Likewise.
307 * ira-lives.c: Likewise.
310 * loop-doloop.c: Likewise.
311 * loop-iv.c: Likewise.
312 * lto-opts.c: Likewise.
313 * lto-symtab.c: Likewise.
315 * modulo-sched.c: Likewise.
316 * optabs.c: Likewise.
317 * params.c: Likewise.
318 * plugin.c: Likewise.
319 * postreload-gcse.c: Likewise.
320 * postreload.c: Likewise.
321 * predict.c: Likewise.
322 * profile.c: Likewise.
324 * regcprop.c: Likewise.
325 * reginfo.c: Likewise.
326 * regmove.c: Likewise.
328 * resource.c: Likewise.
330 * rtlanal.c: Likewise.
331 * sched-deps.c: Likewise.
332 * sched-ebb.c: Likewise.
333 * sched-rgn.c: Likewise.
334 * sdbout.c: Likewise.
335 * sel-sched-dump.c: Likewise.
336 * sel-sched-ir.c: Likewise.
337 * simplify-rtx.c: Likewise.
339 * stor-layout.c: Likewise.
340 * store-motion.c: Likewise.
341 * targhooks.c: Likewise.
342 * tree-cfg.c: Likewise.
343 * tree-cfgcleanup.c: Likewise.
344 * tree-dump.c: Likewise.
345 * tree-eh.c: Likewise.
346 * tree-inline.c: Likewise.
347 * tree-nomudflap.c: Likewise.
348 * tree-object-size.c: Likewise.
349 * tree-optimize.c: Likewise.
350 * tree-outof-ssa.c: Likewise.
351 * tree-phinodes.c: Likewise.
352 * tree-profile.c: Likewise.
353 * tree-ssa-ccp.c: Likewise.
354 * tree-ssa-coalesce.c: Likewise.
355 * tree-ssa-live.c: Likewise.
356 * tree-ssa-loop-niter.c: Likewise.
357 * tree-ssa-loop-prefetch.c: Likewise.
358 * tree-ssa-loop.c: Likewise.
359 * tree-ssa-structalias.c: Likewise.
360 * tree-ssa-uninit.c: Likewise.
361 * tree-ssa.c: Likewise.
362 * tree-vect-data-refs.c: Likewise.
363 * tree-vect-loop-manip.c: Likewise.
364 * tree-vect-loop.c: Likewise.
365 * tree-vect-patterns.c: Likewise.
366 * tree-vect-stmts.c: Likewise.
367 * tree-vrp.c: Likewise.
368 * varasm.c: Likewise.
371 * xcoffout.c: Likewise.
373 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
375 * gengtype.c (write_field_root): New function.
376 (write_root): Use it.
378 2010-07-07 Wei Guozhi <carrot@google.com>
380 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
381 of lowest bits to lshift/compare): Add a missing line.
383 2010-07-07 Wei Guozhi <carrot@google.com>
385 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
386 of lowest bits to lshift/compare): New.
388 2010-07-07 Tom Tromey <tromey@redhat.com>
390 * doc/tm.texi: Update.
391 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
393 * target.def (want_debug_pub_sections): New hook.
394 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
395 * dwarf2out.c (add_pubname_string): Check
396 targetm.want_debug_pub_sections.
397 (add_pubname): Likewise.
398 (add_pubtype): Likewise.
400 2010-07-07 Jie Zhang <jie@codesourcery.com>
402 * genautomata.c (output_automata_list_min_issue_delay_code):
403 Correctly decompress min_issue_delay.
405 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
407 PR rtl-optimization/44404
408 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
409 possible, use reg_overlap_mentioned_p instead.
411 2010-07-07 Duncan Sands <baldrick@free.fr>
414 * tree.c (build_function_type_skip_args): Copy the original type using
415 build_distinct_type_copy rather than copy_node.
417 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
420 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
422 (ix86_expand_prologue): Likewise.
423 (ix86_handle_fndecl_attribute): Likewise.
424 (ix86_asm_declare_function_name): Likewise.
425 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
426 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
427 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
428 * config/i386/i386-protos.h (ix86_asm_declare_function_name):
430 * doc/extend.texi: Likewise.
432 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
435 * config/i386/i386.md (rdrand<mode>): Changed to expand to
436 retry if the carry flag isn't valid.
437 (rdrand<mode>_1): New.
439 2010-07-07 Richard Guenther <rguenther@suse.de>
442 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
443 for expanding the constant offset for MEM_REFs.
445 2010-07-07 Richard Guenther <rguenther@suse.de>
447 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
448 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
449 * gimple.h (is_gimple_operand): Remove.
450 * gimple.c (is_gimple_operand): Likewise.
451 (walk_gimple_op): Fix wi->val_only setting for calls.
452 * tree-cfg.c (verify_gimple_call): Fix argument validation.
453 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
454 invalid gimple calls.
456 2010-07-06 Jan Hubicka <jh@suse.cz>
458 * lto-cgraph.c (output_cgraph): Add missing declaration.
460 2010-07-06 Jan Hubicka <jh@suse.cz>
462 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
465 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
467 * doc/gimple.texi (GIMPLE_DEBUG): Document.
468 * doc/rtl.texi (Debug Information): New node.
469 (NOTE_INSN_VAR_LOCATION): Document.
470 (debug_insn): Likewise.
471 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
473 2010-07-07 Jan Hubicka <jh@suse.cz>
475 With parts by Richard Guenther
478 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
479 for functions passed by reference.
480 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
481 in memory when passed by reference.
482 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
484 * ipa-split.c (split_function): Cleanup way return value is passed;
485 handle SSA DECL_BY_REFERENCE retvals.
486 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
487 DECL_BY_REFERENCE is set.
488 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
489 find_what_p_points_to): Handle RESULT_DECL.
490 * tree-inline.c (declare_return_variable): Get new entry_block argument;
491 when passing by reference ensure that RESULT_DECL is gimple_val.
492 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
493 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
495 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
497 PR rtl-optimization/44787
498 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
499 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
501 2010-07-06 Jan Hubicka <jh@suse.cz>
503 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
504 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
505 with body can prevail.
506 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
507 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
508 * cgraph.c (cgraph_get_node_or_alias): New function.
509 * cgraph.h (cgraph_get_node_or_alias): Declare.
511 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
513 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
515 (ix86_expand_prologue): Likewise.
516 (ix86_handle_fndecl_attribute): Likewise.
517 (ix86_asm_declare_function_name): New function for
518 ASM_DECLARE_FUNCTION_NAME.
519 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
520 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
521 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
522 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
523 * doc/extend.texi: Adjust documentation about ms_hook_prologue
526 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
528 * config/i386/i386.md (immediate_operand): New mode attribute.
530 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
531 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
532 using P mode iterator.
533 (pro_epilogue_adjust_stack_di_2): Rename from
534 pro_epilogue_adjust_stack_rex64_2.
536 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
538 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
540 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
541 through gen_mov_insv_1 function pointer.
542 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
543 gen_truncxf<mode>2 through gen_truncxf function pointer.
544 (remainder<mode>3): Ditto.
545 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
546 (allocate_stack): Call gen_allocate_stack_worker_64 or
547 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
549 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
552 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
555 operand constraint instead of <r><i>m.
557 2010-07-06 Richard Guenther <rguenther@suse.de>
560 * convert.c (convert_to_integer): Watch out for overflowing
563 2010-07-05 Jan Hubicka <jh@suse.cz>
565 * lto-streamer.c (write_symbol_vec): Rename to ...
566 (write_symbol) ... this one; write only symbol given and when
567 present in cache. Sanity check that what is defined is present
568 in cgraph/varpool with body/finalized decl.
569 (write_symbols_of_kind): Remove.
570 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
571 pairs to produce symtab.
572 (produce_asm_for_decls): Update call of produce_symtab; don't do so
573 when doing WPA streaming.
575 2010-07-05 Jan Hubicka <jh@suse.cz>
577 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
578 function is still available to fold into.
580 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
582 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
583 * function.h (struct_function): Change type of local_decls field
585 (add_local_decl): New function.
586 (FOR_EACH_LOCAL_DECL): New macro.
587 * cfgexpand.c (init_vars_expansion): Adjust for new type of
589 (estimated_stack_frame_size): Likewise.
590 (expand_used_vars): Likewise.
591 * cgraphbuild.c (build_cgraph_edges): Likewise.
592 * function.c (instantiate_decls_1): Likewise.
593 * ipa-struct-reorg.c (build_data_structure): Likewise.
594 * ipa-type-escape.c (analyze_function): Likewise.
595 * lto-streamer-in.c (input_function): Likewise.
596 * lto-streamer-out.c (output_function): Likewise.
597 * tree-ssa-live.c (remove_unused_locals): Likewise.
598 * tree.c (free_lang_data_in_decl): Likewise.
599 (find_decls_types_in_node): Likewise.
600 * omp-low.c (remove_exit_barrier): Likewise.
601 (expand_omp_taskreg): Likewise.
602 (list2chain): Rename to...
603 (vec2chain): ...this. Adjust.
604 * cgraphunit.c (assemble_thunk): Call add_local_decl.
605 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
606 * gimple-low.c (record_vars_into): Likewise.
607 * tree-inline.c (remap_decls): Likewise.
608 (declare_return_variable): Likewise.
609 (declare_inline_vars): Likewise.
610 (copy_forbidden): Adjust for new type of cfun->local_decls.
611 (add_local_variables): New function.
612 (expand_call_inline): Call it.
613 (tree_function_versioning): Likewise.
615 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
617 AVX Programming Reference (June, 2010)
618 * config/i386/cpuid.h (bit_F16C): New.
619 (bit_RDRND): Likewise.
620 (bit_FSGSBASE): Likewise.
622 * config/i386/i386-builtin-types.def: Add
623 "DEF_FUNCTION_TYPE (UINT16)", function types for
624 float16 <-> float conversions and
625 "DEF_FUNCTION_TYPE (VOID, UINT64)".
627 * config/i386/i386-c.c (ix86_target_macros_internal): Support
628 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
629 OPTION_MASK_ISA_F16C.
631 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
632 (OPTION_MASK_ISA_RDRND_SET): Likewise.
633 (OPTION_MASK_ISA_F16C_SET): Likewise.
634 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
635 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
636 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
637 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
638 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
639 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
640 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
641 (override_options): Handle them.
642 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
643 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
644 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
645 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
646 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
647 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
648 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
649 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
650 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
651 (bdesc_args): Likewise.
652 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
653 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
654 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
655 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
656 Handle non-memory store.
658 * config/i386/i386.h (TARGET_FSGSBASE): New.
659 (TARGET_RDRND): Likewise.
660 (TARGET_F12C): Likewise.
662 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
663 (UNSPEC_VCVTPS2PH): Likewise.
664 (UNSPECV_RDFSBASE): Likewise.
665 (UNSPECV_RDGSBASE): Likewise.
666 (UNSPECV_WRFSBASE): Likewise.
667 (UNSPECV_WRGSBASE): Likewise.
668 (UNSPECV_RDRAND): Likewise.
669 (rdfsbase<mode>): Likewise.
670 (rdgsbase<mode>): Likewise.
671 (wrfsbase<mode>): Likewise.
672 (wrgsbase<mode>): Likewise.
673 (rdrand<mode>): Likewise.
675 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
677 * config/i386/immintrin.h (_rdrand_u16): New.
678 (_rdrand_u32): Likewise.
679 (_readfsbase_u32): Likewise.
680 (_readfsbase_u64): Likewise.
681 (_readgsbase_u32): Likewise.
682 (_readgsbase_u64): Likewise.
683 (_writefsbase_u32): Likewise.
684 (_writefsbase_u64): Likewise.
685 (_writegsbase_u32): Likewise.
686 (_writegsbase_u64): Likewise.
687 (_rdrand_u64): Likewise.
688 (_cvtsh_ss): Likewise.
689 (_mm_cvtph_ps): Likewise.
690 (_mm256_cvtph_ps): Likewise.
691 (_cvtss_sh): Likewise.
692 (_mm_cvtps_ph): Likewise.
693 (_mm256_cvtps_ph): Likewise.
695 * config/i386/sse.md (vcvtph2ps): New.
696 (*vcvtph2ps_load): Likewise.
697 (vcvtph2ps256): Likewise.
698 (vcvtps2ph): Likewise.
699 (*vcvtps2ph): Likewise.
700 (*vcvtps2ph_store): Likewise.
701 (vcvtps2ph256): Likewise.
703 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
705 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
707 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
710 * genenums.c (main): Output include of insn-constants.h
711 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
713 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
715 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
716 (override_options): Initialize it.
717 (ix86_expand_prologue): Use it.
719 2010-07-05 Jakub Jelinek <jakub@redhat.com>
721 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
723 2010-07-05 Anatoly Sokolov <aesok@post.ru>
725 * double-int.h (fit_double_type): Remove declaration.
726 * double-int.c (fit_double_type): Remove function.
727 * tree.h (int_fits_type_p): Adjust prototype.
728 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
729 instead of fit_double_type.
730 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
731 instead of fit_double_type and build_int_cst_wide.
732 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
733 instead of fit_double_type and build_int_cst_wide.
734 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
737 2010-07-05 Jan Hubicka <jh@suse.cz>
739 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
741 * lto-cgraph.c (referenced_from_other_partition_p,
742 reachable_from_other_partition_p): Use in_other_partition flags.
743 (output_node, output_varpool_node): COMDAT nodes always have private
744 copies and thus are never used from other partition.
746 2010-07-05 Anatoly Sokolov <aesok@post.ru>
748 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
749 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
750 * config/ia64/ia64.c Include reload.h.
751 (ia64_memory_move_cost): New function.
752 (TARGET_MEMORY_MOVE_COST): Define.
753 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
756 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
759 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
760 comments about cost model.
761 (try_add_cand_for): Add second strategy for choosing initial set
762 based on original IVs, controlled by ORIGINALP argument.
763 (get_initial_solution): Add ORIGINALP argument.
764 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
765 (find_optimal_iv_set): Try two different strategies for choosing
766 the IV set, and return the one with lower cost.
768 2010-07-05 Richard Guenther <rguenther@suse.de>
770 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
772 2010-07-05 Richard Guenther <rguenther@suse.de>
774 * tree.c (reference_alias_ptr_type): New function.
775 * tree.h (reference_alias_ptr_type): Declare.
776 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
777 allow non-TARGET_MEM_REF new refs.
778 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
779 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
780 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
781 (create_mem_ref): Get alias pointer type. Adjust calls to
783 (maybe_fold_tmr): Likewise.
784 * tree-flow.h (create_mem_ref): Adjust prototype.
786 2010-07-05 Jakub Jelinek <jakub@redhat.com>
789 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
792 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
794 * tree.h (build_call_list): Remove.
795 * tree.c (build_call_list): Remove.
797 2010-07-05 Richard Guenther <rguenther@suse.de>
799 * double-int.h (double_int_sub): Declare.
800 * double-int.c (double_int_sub): New function.
801 * dwarf2out.c (field_byte_offset): Use it.
802 * fixed-value.c (do_fixed_add): Likewise.
803 (do_fixed_multiply): Likewise.
804 (do_fixed_divide): Likewise.
805 * tree-predcom.c (add_ref_to_chain): Likewise.
806 (determine_roots_comp): Likewise.
807 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
809 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
811 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
814 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
816 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
817 * arm-modes.def (CC_NOTB): Don't define.
818 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
819 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
820 (LTUGEU): New code_iterator.
821 (cnb, optab): New corresponding code_attrs.
822 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
823 to canonical form. Operands 1 and 2 are commutative. Parametrize
825 (addsi3_carryin_shift_<optab>): Likewise.
826 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
827 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
828 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
829 (subsi3_compare): Renamed from subsi3_compare0_c.
830 Change CC_NOTB to CC.
831 (arm_subsi3_insn): Allow constants for operand 0.
832 (compare_scc peephole for eq case): New.
833 (compare_scc splitters): Change CC_NOTB to CC.
835 2010-07-05 Richard Guenther <rguenther@suse.de>
837 * tree-ssa-loop-im.c (for_each_index): Do not handle
839 (gen_lsm_tmp_name): Likewise.
840 * tree-dump.c (dequeue_and_dump): Likewise.
841 * tree-pretty-print.c (dump_generic_node): Likewise.
842 (op_code_prio): Likewise.
843 (op_symbol_code): Likewise.
844 * tree.c (staticp): Likewise.
845 (build1_stat): Likewise.
846 * tree.h (INDIRECT_REF_P): Likewise.
847 * fold-const.c (maybe_lvalue_p): Likewise.
848 (operand_equal_p): Likewise.
849 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
850 (ao_ref_init_from_vn_reference): Likewise.
851 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
852 (find_interesting_uses_address): Likewise.
853 * dwarf2out.c (loc_list_from_tree): Likewise.
854 * gimplify.c (gimplify_expr): Likewise.
855 * tree-eh.c (tree_could_trap_p): Likewise.
856 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
857 * cfgexpand.c (expand_debug_expr): Likewise.
858 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
859 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
860 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
861 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
862 * tree-ssa-operands.c (get_expr_operands): Likewise.
863 * expr.c (safe_from_p): Likewise.
864 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
865 * tree-vect-data-refs.c (vect_setup_realignment): Build
866 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
867 * tree-vect-stmts.c (vectorizable_load): Likewise.
868 * tree.def (ALIGN_INDIRECT_REF): Remove.
870 2010-07-05 Richard Guenther <rguenther@suse.de>
872 PR tree-optimization/44784
873 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
875 (find_or_generate_expression): Fix SCCVN insertion check.
877 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
879 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
880 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
881 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
884 2010-07-05 Ira Rosen <irar@il.ibm.com>
886 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
887 statements that are not vectorized.
888 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
891 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
894 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
896 2010-07-05 Richard Guenther <rguenther@suse.de>
898 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
899 RESULT_DECLs properly.
901 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
903 PR rtl-optimization/44695
904 * config/i386/i386.md (extract_code): Removed.
905 (<u>divmodqi4): Likewise.
907 (udivmodqi4): Likewise.
908 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
909 (udivmodhiqi3): Likewise.
911 2010-07-04 Jan Hubicka <jh@suse.cz>
913 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
915 2010-07-04 Jan Hubicka <jh@suse.cz>
917 * cgraphunit.c (init_cgraph): Only initialize dump file if it
918 is not already initialized.
920 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
922 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
923 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
924 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
925 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
926 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
927 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
928 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
929 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
930 (sync_new_nand_optab): Redefine as macros.
931 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
933 (direct_optab_index): New enum.
934 (direct_optab_d): New structure.
935 (direct_optab): New typedef.
936 (direct_optab_table): Declare.
937 (direct_optab_handler, set_direct_optab_handler): New functions.
938 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
939 (sync_lock_release_optab): New macros.
940 * optabs.c (direct_optab_table): New variable.
941 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
942 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
943 cmpstr_optab and cmpstrn_optab.
944 (emit_conditional_move): Likewise for movcc_optab.
945 (can_conditionally_move_p): Likewise for movcc_gen_code.
946 (init_insn_codes): Clear direct_optab_table.
947 (init_optabs): Don't initialize the new "direct optabs" here.
948 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
950 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
951 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
952 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
953 (expand_sync_operation): Likewise other sync_*_optabs.
954 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
955 to sync_compare_and_swap_optab.
956 (expand_sync_lock_test_and_set): Use direct_optab_handler for
957 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
958 to the names of both.
959 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
960 cmpstr_optab and cmpstrn_optab.
961 (expand_builtin_lock_release): Likewise sync_lock_release.
962 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
963 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
964 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
965 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
966 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
967 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
968 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
969 (sync_lock_test_and_set, sync_lock_release): Delete.
970 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
971 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
972 * genopinit.c (optabs): Use set_direct_optab_handler for the new
974 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
975 the "optab" local variable. Use direct_optab_handler for optab and
976 sync_compare_and_swap_optab.
977 * reload1.c (reload_in_optab, reload_out_optab): Delete.
978 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
979 reload_in_optab and reload_out_optab.
980 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
981 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
982 * config/pa/pa.c (pa_secondary_reload): Likewise.
983 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
984 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
985 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
986 (VMSupportsCS8_builtin): Likewise.
988 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
990 * optabs.h (optab_handlers): Change type of insn_code to int.
991 (optab_handler, set_optab_handler, convert_optab_handler)
992 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
994 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
995 (init_insn_codes): Zero both the above arrays.
996 (init_optabs): Never call init_insn_codes first time around.
998 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
1000 * optabs.h (optab_handler, convert_optab_handler): Turn into
1001 inline functions that return an insn code.
1002 (set_optab_handler, set_convert_optab_handler): New functions.
1003 * builtins.c: Replace optab_handler(X)->insn_code with
1004 optab_handler or set_optab_handler thoughout. Likewise
1005 convert_optab_handler(X)->insn_code with convert_optab_handler
1006 and set_convert_optab_handler.
1007 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1008 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1009 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1010 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1011 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1012 config/spu/spu.c: Likewise.
1014 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
1017 * config.gcc (sh*-*-*): Use regular expressions instead of
1018 the 'i' modifier for sed substitutions.
1020 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
1022 * gimple.c (gimple_body): Comments added.
1024 2010-07-04 Richard Guenther <rguenther@suse.de>
1027 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1030 2010-07-04 Richard Guenther <rguenther@suse.de>
1032 PR tree-optimization/44479
1033 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1034 extra SSA name copy statements which preserves points-to
1036 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1037 Copy points-to information for all pointers. Properly handle
1039 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
1041 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1044 2010-07-04 Richard Guenther <rguenther@suse.de>
1047 * tree-inline.c (initialize_inlined_parameters): Do not
1048 re-use pointer-map slot over remap_type call.
1050 2010-07-04 Richard Guenther <rguenther@suse.de>
1052 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1054 2010-07-04 Richard Guenther <rguenther@suse.de>
1056 PR tree-optimization/44656
1057 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1058 again after value-replacing in the defintions lhs.
1060 2010-07-04 Ira Rosen <irar@il.ibm.com>
1061 Revital Eres <eres@il.ibm.com>
1063 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1064 Document new arguments.
1065 * doc/tm.texi: Regenerate.
1066 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1067 Handle unaligned store.
1068 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1069 * target.def (builtin_vectorization_cost): Add new arguments.
1070 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1071 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1072 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1073 (vect_vfa_segment_size): Fix indentation.
1074 * tree-vectorizer.h (struct _vect_peel_info): New.
1075 (struct _vect_peel_extended_info): New.
1076 (struct _loop_vec_info): Add new field for peeling hash table and a
1077 macro for its access.
1078 (VECT_MAX_COST): Define.
1079 (vect_get_load_cost): Declare.
1080 (vect_get_store_cost, vect_get_known_peeling_cost,
1081 vect_get_single_scalar_iteraion_cost): Likewise.
1082 (vect_supportable_dr_alignment): Add new argument.
1083 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1085 (destroy_loop_vec_info): Free peeling hash table.
1086 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1087 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1088 vect_analyze_slp. Fix indentation.
1089 (vect_get_single_scalar_iteraion_cost): New function.
1090 (vect_get_known_peeling_cost): Likewise.
1091 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1092 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1093 statement. Move outside cost calculation inside unknown peeling case.
1094 Call vect_get_known_peeling_cost for known amount of peeling.
1095 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1096 reference to the print message of forced alignment.
1097 (vect_verify_datarefs_alignment): Update call to
1098 vect_supportable_dr_alignment.
1099 (vect_get_data_access_cost): New function.
1100 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1101 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1102 vect_peeling_hash_choose_best_peeling): Likewise.
1103 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1104 to store all the accesses in the loop and find best possible access to
1105 align using peeling for known alignment case. For unknown alignment
1106 check if stores are preferred or if peeling is worthy.
1107 (vect_find_same_alignment_drs): Analyze pairs of loads too.
1108 (vect_supportable_dr_alignment): Add new argument and check aligned
1109 accesses according to it.
1110 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1111 (cost_for_stmt): Call vect_get_stmt_cost.
1112 (vect_model_simple_cost): Likewise.
1113 (vect_model_store_cost): Call vect_get_stmt_cost. Call
1114 vect_get_store_cost to calculate the cost of the statement.
1115 (vect_get_store_cost): New function.
1116 (vect_model_load_cost): Call vect_get_stmt_cost. Call
1117 vect_get_load_cost to calculate the cost of the statement.
1118 (vect_get_load_cost): New function.
1119 (vectorizable_store): Update call to vect_supportable_dr_alignment.
1120 (vectorizable_load): Likewise.
1121 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1122 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1123 arguments. Handle unaligned store.
1124 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1125 (rs6000_builtin_support_vector_misalignment): Return true for word and
1126 double word alignments for VSX.
1127 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1128 vect_supportable_dr_alignment and builtin_vectorization_cost.
1130 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1133 * config/pa/predicates.md (prefetch_cc_operand): Remove.
1134 (prefetch_nocc_operand): Likewise.
1135 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1136 (prefetch_20): New insn.
1137 (prefetch_cc): Remove.
1138 (prefetch_nocc): Likewise.
1140 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1142 * expr.c (vector_mode_valid_p): Move to c-common.c.
1143 * expr.h (vector_mode_valid_p): Do not declare here.
1144 * system.h: Poison GCC_EXPR_H in front-ends.
1145 * Makefile.in: Update dependencies.
1147 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1150 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1152 2010-07-03 Jan Hubicka <jh@suse.cz>
1154 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1155 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1156 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1157 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1160 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1162 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1163 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1164 TV_IPA_LTO_DECL_OUT): New.
1165 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1167 2010-07-03 Jan Hubicka <jh@suse.cz>
1169 * ipa-inline.c (update_edge_key): Break out from ...
1170 update_callers_keys): ... here;
1171 (update_callee_keys): Update only the edges from caller to callee.
1172 (update_all_calle_keys): Do what update_calle_keys did.
1173 (decide_inlining_of_small_functions): Avoid recomputing of all
1174 callees when badness increase.
1176 2010-07-03 Jie Zhang <jie@codesourcery.com>
1178 * config/arm/arm.c (arm_attr_length_move_neon): New.
1179 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1180 * config/arm/neon.md (define_mode_attr V_slen): Remove.
1181 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1182 to compute length attribute.
1184 2010-07-03 Jie Zhang <jie@codesourcery.com>
1186 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1187 as predicate for operand 1 and remove its constraint.
1188 * config/arm/predicates.md (vfp_register_operand): New.
1189 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1190 (*push_fp_multi): Likewise.
1192 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
1194 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1196 2010-07-03 Jan Hubicka <jh@suse.cz>
1198 * config/i386/i386.c (override_options): Revert accidental commit.
1200 2010-07-02 Le-Chun Wu <lcwu@google.com>
1203 * doc/invoke.texi: Update documentation of -Wshadow.
1205 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
1206 Julian Brown <julian@codesourcery.com>
1207 Sandra Loosemore <sandra@codesourcery.com>
1209 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1210 comparisons. Adjust to take both operands.
1211 (arm_select_cc_mode): Handle DImode comparisons.
1212 (arm_gen_compare_reg): Generate a scratch register for DImode
1213 comparisons which require one. Use xor for Thumb equality checks.
1214 (arm_const_double_by_immediates): New.
1215 (arm_print_operand): Allow 'Q' and 'R' for constants.
1216 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1217 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1218 arm_canonicalize_comparison.
1219 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1220 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1222 (arm_const_double_by_immediates): Declare.
1223 * config/arm/constraints.md (Di): New constraint.
1224 * config/arm/predicates.md (arm_immediate_di_operand)
1225 (arm_di_operand, cmpdi_operand): New.
1226 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1227 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1228 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1229 (cstoredi4): Handle non-Cirrus also.
1231 2010-07-02 Julian Brown <julian@codesourcery.com>
1232 Sandra Loosemore <sandra@codesourcery.com>
1235 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1236 (smax<mode>3): Disable for NEON float modes when
1237 flag_unsafe_math_optimizations is false.
1238 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1240 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1241 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1242 for NEON float modes when flag_unsafe_math_optimizations is false.
1243 (quad_halves_<code>v4sf): Only enable if
1244 flag_unsafe_math_optimizations is true.
1245 * doc/invoke.texi (ARM Options): Add note about floating point
1246 vectorization requiring -funsafe-math-optimizations.
1248 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1249 Julian Brown <julian@codesourcery.com>
1251 * config/arm/neon.md (UNSPEC_VABA): Delete.
1252 (UNSPEC_VABAL): Delete.
1253 (UNSPEC_VABS): Delete.
1254 (UNSPEC_VMUL_N): Delete.
1257 (mul<mode>3add<mode>_neon): Make the pattern named.
1258 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1259 (neon_vadd<mode>): Replace with define_expand, and move the remaining
1261 (neon_vadd<mode>_unspec): ...to this.
1262 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1263 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1264 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1265 (neon_vaba<mode>): Rewrite in terms of vabd.
1266 (neon_vabal<mode>): Rewrite in terms of vabdl.
1267 (neon_vabs<mode>): Rewrite without unspec.
1268 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1269 (*arm_subdi3): Likewise.
1270 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1271 No_op attribute to disable assembly output checks.
1272 * config/arm/arm_neon.h: Regenerated.
1273 * doc/arm-neon-intrinsics.texi: Regenerated.
1275 2010-07-02 Jan Hubicka <jh@suse.cz>
1277 * ipa-split.c (split_function): For aggregate values, set the return
1278 slot optimization bit. When passing DECL_BY_REFERENCE, produce
1279 *<retval> = fncall.part ().
1280 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1282 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1284 * config/arm/neon.md (UNSPEC_VAND): Delete.
1285 (UNSPEC_VBIC): Delete.
1286 (UNSPEC_VCLZ): Delete.
1287 (UNSPEC_VCNT): Delete.
1288 (UNSPEC_VEOR): Delete.
1289 (UNSPEC_VORN): Delete.
1290 (UNSPEC_VORR): Delete.
1291 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
1293 (anddi3_neon): Likewise.
1294 (orndi3_neon): Likewise.
1295 (bicdi3_neon): Likewise.
1296 (xordi3_neon): Likewise.
1297 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1298 rid of unspec and handle unused operand.
1299 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1300 * config/arm/predicates.md (imm_for_neon_logic_operand):
1301 Require TARGET_NEON.
1302 (imm_for_neon_inv_logic_operand): Likewise.
1303 * config/arm/arm.md (define_split for logical_binary_operator):
1304 Disable for NEON registers.
1305 (anddi3): Add new define_expand, and rename the insn. Disable
1306 this insn for NEON, where anddi3_neon now applies.
1307 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1308 (iordi3): As for anddi3.
1310 * config/arm/neon.ml (Vand): Split DImode variants and mark them
1311 as No_op to disable testing for exact instruction match.
1316 * config/arm/arm_neon.h: Regenerated.
1317 * doc/arm-neon-intrinsics.texi: Regenerated.
1319 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1321 * expr.h (emit_stack_probe): Declare.
1322 * explow.c (emit_stack_probe): Make global.
1323 (anti_adjust_stack_and_probe): Fix comments.
1324 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1325 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1326 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1327 * config/sparc/sparc.c: Include except.h.
1328 (sparc_emit_probe_stack_range): New function.
1329 (output_probe_stack_range): Likewise.
1330 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1331 built-in stack checking is enabled.
1332 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1333 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1334 (probe_stack_range): New insn.
1336 2010-07-02 Richard Guenther <rguenther@suse.de>
1339 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1340 for argument alignment.
1342 2010-07-02 Jan Hubicka <jh@suse.cz>
1344 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1345 walk backwards from entry_bb to check only those basic block of header
1346 that might lead to execution of split part.
1347 (consider_split) ... here.
1348 (find_return_bb): Allow assignment in return BB.
1350 (split_function): Fix name of cloned function; take care of updating
1351 return value in return_bb containing move.
1353 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
1356 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1359 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
1361 * implicit-zee.c (combine_reaching_defs): Fix long lines.
1362 (is_set_with_extension_DI): Delete.
1363 (struct zero_extend_info): New structure.
1364 (add_removable_zero_extend): New function.
1365 (find_removable_zero_extends): Use note_stores to find SETs.
1366 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1368 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1370 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1371 is_miss_rate_acceptable. Pull total_positions computation
1372 out of the loops. Early return if miss_positions exceeds
1373 the acceptable threshold.
1374 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1375 is_miss_rate_acceptable after renaming of compute_miss_rate.
1377 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
1380 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1381 of 1000) for miss rate if the address diference is greater than or
1382 equal to the cache line size (the two reference will never hit the
1385 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
1388 * config/arm/arm-modes.def (CC_NOTB): New mode.
1389 * config/arm/arm.c (get_arm_condition_code): Handle it.
1390 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1391 * config/arm/arm.md (subsi3_compare0_c): New pattern.
1392 (compare_scc): Now a define_and_split. Add a number of extra
1393 splitters before it.
1396 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1398 (arm_rtx_costs_1): Likewise.
1399 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1400 * config/arm/arm.md (is_arch6): New attribute.
1401 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1402 extendqisi2): Tighten the code somewhat, avoiding invalid
1403 RTL to occur in the expander patterns.
1404 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1405 (thumb1_zero_extendhisi2_v6): Delete.
1406 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1407 (thumb1_extendhisi2_v6): Delete.
1408 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1409 (thumb1_extendqisi2_v6): Delete.
1410 (zero_extendhisi2 for register input splitter): New.
1411 (zero_extendqisi2 for register input splitter): New.
1412 (thumb1_extendhisi2 for register input splitter): New.
1413 (extendhisi2 for register input splitter): New.
1414 (extendqisi2 for register input splitter): New.
1415 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1416 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1417 and add support for a register alternative requiring a split.
1418 (thumb1_zero_extendqisi2): Likewise.
1419 (arm_zero_extendqisi2): Likewise.
1420 (arm_extendhisi2): Likewise.
1421 (arm_extendqisi2): Likewise.
1423 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1425 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1426 instead of an unspec.
1427 (neon_expand_vector_init): Likewise.
1428 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1429 (UNSPEC_VDUP_LANE): Delete.
1430 (UNSPEC VDUP_N): Delete.
1431 (UNSPEC_VGET_HIGH): Delete.
1432 (UNSPEC_VGET_LANE): Delete.
1433 (UNSPEC_VGET_LOW): Delete.
1434 (UNSPEC_VMVN): Delete.
1435 (UNSPEC_VSET_LANE): Delete.
1436 (V_double_vector_mode): New.
1437 (vec_set<mode>_internal): Make code emitted match that for the
1438 corresponding intrinsics.
1439 (vec_setv2di_internal): Likewise.
1440 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1441 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1442 (neon_vset_lane<mode>): Combine double and quad patterns and
1443 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1444 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1445 (neon_vdup_n<mode>): Rewrite RTL without unspec.
1446 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1447 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1448 with neon_vdup_lanev2di, adjusting the pattern from the latter
1449 to be predicable for consistency.
1450 (neon_vdup_lane<mode>_internal): New.
1451 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1452 to avoid using an unspec.
1453 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1454 (neon_vdup_lanev2di): Turn into a define_expand.
1455 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1456 (neon_vget_high<mode>): Replace with....
1457 (neon_vget_highv16qi): New pattern using canonical RTL.
1458 (neon_vget_highv8hi): Likewise.
1459 (neon_vget_highv4si): Likewise.
1460 (neon_vget_highv4sf): Likewise.
1461 (neon_vget_highv2di): Likewise.
1462 (neon_vget_low<mode>): Replace with....
1463 (neon_vget_lowv16qi): New pattern using canonical RTL.
1464 (neon_vget_lowv8hi): Likewise.
1465 (neon_vget_lowv4si): Likewise.
1466 (neon_vget_lowv4sf): Likewise.
1467 (neon_vget_lowv2di): Likewise.
1469 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1470 test for this emitting vmov.
1471 (Vset_lane): Likewise.
1475 * doc/arm-neon-intrinsics.texi: Regenerated.
1477 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
1479 * config/arm/neon.md (vec_extractv2di): Correct error in register
1480 numbering to reconcile with neon_vget_lanev2di.
1482 2010-07-02 Richard Guenther <rguenther@suse.de>
1484 * tree-ssa-structalias.c (pt_solution_set_var): New function.
1485 * tree-ssa-alias.h (pt_solution_set_var): Declare.
1486 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1487 points-to information.
1489 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
1491 * config/s390/s390.c (override_options): Adopt prefetching
1492 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1494 2010-07-02 Jan Hubicka <jh@suse.cz>
1496 * df-problems.c (df_kill_notes): Do not collect dead notes.
1497 (df_set_note): Just call add_reg_note.
1498 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1499 df_create_unused_note): Do not deal with lists of old notes.
1500 (df_note_bb_compute): Likewise.
1502 2010-07-02 Richard Guenther <rguenther@suse.de>
1504 * tree-ssa-structalias.c (find_func_aliases): Handle
1505 pointer alignment via BIT_AND_EXPR.
1506 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1508 2010-07-02 Richard Guenther <rguenther@suse.de>
1510 * tree-data-ref.c (initialize_data_dependence_relation): Handle
1511 mismatching number of dimensions properly.
1513 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1516 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1517 (lo_sum (high ...) ...) patterns generated by earlier passes.
1519 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1521 * doc/install.texi (Prerequisites): Document Perl requirement on
1523 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1525 2010-07-02 Richard Guenther <rguenther@suse.de>
1528 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1530 2010-07-02 Jan Hubicka <jh@suse.cz>
1533 * predict.c (predict_paths_for_bb): Handle case when control dependence
1534 BB has only abnormal edges.
1536 2010-07-02 Richard Guenther <rguenther@suse.de>
1538 PR tree-optimization/44748
1539 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1540 the embedded conversion in MEM_REFs.
1542 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
1544 * reload.c: Include toplev.h.
1545 * recog.c: Likewise.
1546 * Makefile.in: Adjust dependencies.
1548 2010-07-01 Jakub Jelinek <jakub@redhat.com>
1551 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1552 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1554 2010-07-01 Richard Guenther <rguenther@suse.de>
1556 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1559 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
1562 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1565 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
1568 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1569 Make sure operand 0 dies.
1571 2010-07-01 Richard Guenther <rguenther@suse.de>
1575 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1576 * doc/generic.texi (References to storage): Document MEM_REF.
1577 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1578 (print_call_name): Likewise.
1579 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1580 (build_simple_mem_ref_loc): New function.
1581 (mem_ref_offset): Likewise.
1582 * tree.h (build_simple_mem_ref_loc): Declare.
1583 (build_simple_mem_ref): Define.
1584 (mem_ref_offset): Declare.
1585 * fold-const.c: Include tree-flow.h.
1586 (operand_equal_p): Handle MEM_REF.
1587 (build_fold_addr_expr_with_type_loc): Likewise.
1588 (fold_comparison): Likewise.
1589 (fold_unary_loc): Fold
1590 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1591 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1592 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1593 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1594 (ptr_deref_may_alias_ref_p_1): Likewise.
1595 (ao_ref_base_alias_set): Properly differentiate base object for
1597 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1598 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1599 (indirect_refs_may_alias_p): Likewise.
1600 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
1602 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1603 (call_may_clobber_ref_p_1): Likewise.
1604 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1605 * expr.c (expand_assignment): Handle MEM_REF.
1606 (store_expr): Handle MEM_REFs from STRING_CSTs.
1607 (store_field): If expanding a MEM_REF of a non-addressable
1608 decl use bitfield operations.
1609 (get_inner_reference): Handle MEM_REF.
1610 (expand_expr_addr_expr_1): Likewise.
1611 (expand_expr_real_1): Likewise.
1612 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1613 * alias.c (ao_ref_from_mem): Handle MEM_REF.
1614 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
1615 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1616 (dr_analyze_indices): Likewise.
1617 (dr_analyze_alias): Likewise.
1618 (object_address_invariant_in_loop_p): Likewise.
1619 * gimplify.c (mark_addressable): Handle MEM_REF.
1620 (gimplify_cond_expr): Build MEM_REFs.
1621 (gimplify_modify_expr_to_memcpy): Likewise.
1622 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1623 (gimple_fold_indirect_ref): Adjust.
1624 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
1625 * tree.def (MEM_REF): New tree code.
1626 * tree-dfa.c: Include toplev.h.
1627 (get_ref_base_and_extent): Handle MEM_REF.
1628 (get_addr_base_and_unit_offset): New function.
1629 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1630 * gimple-fold.c (may_propagate_address_into_dereference): Handle
1632 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1633 accesses if the array has just one dimension. Remove always true
1634 parameter. Do not require type compatibility here.
1635 (maybe_fold_offset_to_component_ref): Remove.
1636 (maybe_fold_stmt_indirect): Remove.
1637 (maybe_fold_reference): Remove INDIRECT_REF handling.
1638 Fold back to non-MEM_REF.
1639 (maybe_fold_offset_to_address): Simplify. Deal with type
1641 (maybe_fold_reference): Likewise.
1642 (maybe_fold_stmt_addition): Likewise. Also handle
1643 &ARRAY + I in addition to &ARRAY[0] + I.
1644 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1645 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1646 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1647 * tree-ssa.c (useless_type_conversion_p): Make most pointer
1648 conversions useless.
1649 (warn_uninitialized_var): Handle MEM_REF.
1650 (maybe_rewrite_mem_ref_base): New function.
1651 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1653 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1654 INDIRECT_REF handling.
1655 (copy_tree_body_r): Handle MEM_REF.
1656 * gimple.c (is_gimple_addressable): Adjust.
1657 (is_gimple_address): Likewise.
1658 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1659 invariant base are invariant.
1660 (is_gimple_min_lval): Adjust.
1661 (is_gimple_mem_ref_addr): New function.
1662 (get_base_address): Handle MEM_REF.
1663 (count_ptr_derefs): Likewise.
1664 (get_base_loadstore): Likewise.
1665 * gimple.h (is_gimple_mem_ref_addr): Declare.
1666 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1667 * tree-cfg.c (verify_address): New function, split out from ...
1668 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
1669 the address operand of MEM_REFs. Verify MEM_REFs. Reject
1671 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
1672 INDIRECT_REF. Allow conversions.
1673 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1674 a register does not change its size.
1675 (verify_types_in_gimple_reference): Verify MEM_REF.
1676 (verify_gimple_assign_single): Disallow INDIRECT_REF.
1678 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1680 (mark_address_taken): Handle MEM_REF.
1681 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1682 (get_asm_expr_operands): Pass opf_not_non_addressable.
1683 (get_expr_operands): Handle opf_[not_]non_addressable.
1684 Handle MEM_REF. Remove INDIRECT_REF handling.
1685 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1686 (search_for_addr_array): Likewise.
1687 (check_array_bounds): Likewise.
1688 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1689 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1690 (ref_always_accessed_p): Likewise.
1691 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
1692 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1694 * cgraphbuild.c (mark_load): Properly check for NULL result
1695 from get_base_address.
1696 (mark_store): Likewise.
1697 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1698 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1699 handling for MEM_REF.
1700 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1701 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1702 * builtins.c (stabilize_va_list_loc): Use the function ABI
1703 valist type if we couldn't canonicalize the argument type.
1704 Always dereference with the canonical va-list type.
1705 (maybe_emit_free_warning): Handle MEM_REF.
1706 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1708 * builtins.c (fold_builtin_memory_op): Use ref-all types
1709 for all memcpy foldings.
1710 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1711 (build_outer_var_ref): Likewise.
1712 (scan_omp_1_op): Likewise.
1713 (lower_rec_input_clauses): Likewise.
1714 (lower_lastprivate_clauses): Likewise.
1715 (lower_reduction_clauses): Likewise.
1716 (lower_copyprivate_clauses): Likewise.
1717 (expand_omp_atomic_pipeline): Likewise.
1718 (expand_omp_atomic_mutex): Likewise.
1719 (create_task_copyfn): Likewise.
1720 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1721 Remove old union trick. Initialize constant offsets.
1722 (ao_ref_init_from_vn_reference): Likewise. Do not handle
1723 INDIRECT_REF. Init base_alias_set properly.
1724 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1725 (vn_reference_fold_indirect): Adjust for MEM_REFs.
1726 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
1728 (may_insert): Remove.
1729 (visit_reference_op_load): Do not test may_insert.
1730 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1731 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1732 a field to store the constant offset this op applies.
1733 (run_scc_vn): Adjust prototype.
1734 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1735 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1736 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
1737 bother about volatile qualifiers on pointers.
1738 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1739 * tree-ssa-loop-ivopts.c
1740 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1741 (strip_offset_1): Likewise.
1742 (find_interesting_uses_address): Replace INDIRECT_REF handling with
1744 (get_computation_cost_at): Likewise.
1745 * ipa-pure-const.c (check_op): Handle MEM_REF.
1746 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1747 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1749 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1750 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1751 (eliminate_local_variables_1): Likewise.
1752 (create_call_for_reduction_1): Likewise.
1753 (create_loads_for_reductions): Likewise.
1754 (create_loads_and_stores_for_name): Likewise.
1755 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1756 (ssa_accessed_in_tree): Handle MEM_REF.
1757 (ssa_accessed_in_assign_rhs): Likewise.
1758 (update_type_size): Likewise.
1759 (analyze_accesses_for_call_stmt): Likewise.
1760 (analyze_accesses_for_assign_stmt): Likewise.
1761 (transform_access_sites): Likewise.
1762 (transform_allocation_sites): Likewise.
1763 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1764 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1765 not handle INDIRECT_REF.
1766 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1767 (cond_store_replacement): Likewise.
1768 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1769 MEM_REF, no not handle INDIRECT_REFs.
1770 (insert_into_preds_of_block): Properly initialize avail.
1771 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
1772 for ARRAY_REFs. Properly handle reference lookups that
1773 require a bit re-interpretation.
1774 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
1775 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1776 (build_ref_for_offset_1): Remove.
1777 (build_ref_for_offset): Build MEM_REFs.
1778 (gate_intra_sra): Disable for now.
1779 (sra_ipa_modify_expr): Handle MEM_REF.
1780 (ipa_early_sra_gate): Disable for now.
1781 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1783 (disqualify_base_of_expr): Likewise.
1784 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1786 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1787 Use mem_ref_offset. Remove bogus folding.
1788 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1789 (make_fancy_name_1): Add support for MEM_REF.
1790 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1791 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1792 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1793 (compute_complex_ancestor_jump_func): Likewise.
1794 (ipa_analyze_virtual_call_uses): Likewise.
1795 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1796 INDIRECT_REF folding with more generalized MEM_REF folding.
1797 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1798 (forward_propagate_addr_into_variable_array_index): Also handle
1799 &ARRAY + I in addition to &ARRAY[0] + I.
1800 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1801 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1802 creates assignments with overlap.
1803 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1804 (get_frame_field): Likewise.
1805 (get_nonlocal_debug_decl): Likewise.
1806 (convert_nonlocal_reference_op): Likewise.
1807 (struct nesting_info): Add mem_refs pointer-set.
1808 (create_nesting_tree): Allocate it.
1809 (convert_local_reference_op): Insert to be folded mem-refs.
1810 (fold_mem_refs): New function.
1811 (finalize_nesting_tree_1): Perform defered folding of mem-refs
1812 (free_nesting_tree): Free the pointer-set.
1813 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1814 (vectorizable_load): Likewise.
1815 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1816 (propagate_with_phi): Likewise.
1817 * tree-object-size.c (addr_object_size): Handle MEM_REFs
1818 instead of INDIRECT_REFs.
1819 (compute_object_offset): Handle MEM_REF.
1820 (plus_stmt_object_size): Handle MEM_REF.
1821 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1823 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1824 (symbol_marked_for_renaming): Likewise.
1825 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1826 (fold-const.o): Add $(TREE_FLOW_H).
1827 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1828 (find_func_clobbers): Likewise.
1829 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1830 (decompose_access): Likewise.
1831 (replace_field_acc): Likewise.
1832 (replace_field_access_stmt): Likewise.
1833 (insert_new_var_in_stmt): Likewise.
1834 (get_stmt_accesses): Likewise.
1835 (reorg_structs_drive): Disable.
1836 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1837 (ix86_canonical_va_list_type): Likewise.
1839 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1842 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1843 * target.def (struct gcc_target): Replace enum reg_class with
1844 reg_class_t in hook argument / return types.
1845 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1846 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1847 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1848 * targhooks.h (default_branch_target_register_class): Likewise.
1849 (default_ira_cover_classes, default_secondary_reload): Likewise.
1850 (default_memory_move_cost, default_register_move_cost): Likewise.
1851 * targhooks.c (default_branch_target_register_class): Likewise.
1852 (default_ira_cover_classes, default_secondary_reload): Likewise.
1853 (default_memory_move_cost, default_register_move_cost): Likewise.
1854 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1855 * bt-load.c (branch_target_load_optimize): Likewise.
1856 * ira.c (setup_cover_and_important_classes): Likewise.
1857 * ira-costs.c (copy_cost): Likewise.
1858 * reload1.c (emit_input_reload_insns): Likewise.
1859 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1860 * config/frv/frv.c (frv_secondary_reload): Likewise.
1861 * config/s390/s390.c (s390_secondary_reload): Likewise.
1862 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1863 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1864 (ix86_register_move_cost): Likewise.
1865 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1866 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1867 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1868 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1869 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1870 (rs6000_ira_cover_classes): Likewise.
1871 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1872 * config/picochip/picochip-protos.h (picochip_secondary_reload):
1874 * config/pa/pa.c (pa_secondary_reload): Likewise.
1875 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1876 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1877 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1878 * doc/tm.texi: Regenerate.
1880 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
1883 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1885 (build_alias_set_optimal_p): Likewise.
1886 (build_base_obj_set_for_drs): Likewise.
1888 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
1890 * target.def: Remove comment about licensing problems of function
1893 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
1894 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1895 * doc/tm.texi: Regenerate.
1897 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
1898 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1900 * target.def (enum_va_list_p): Use DEFHOOK.
1901 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1902 Rename ptype to ptree.
1903 * doc/tm.texi: Regenerate.
1905 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
1906 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1907 * doc/tm.texi: Regenerate.
1909 * target.def (memory_move_cost): Use DEFHOOK.
1910 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1911 Rename regclass AKA class to rclass.
1912 * doc/tm.texi: Regenerate.
1914 * target.def (pragma_parse): Use DEFHOOK.
1915 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1916 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1917 * doc/tm.texi: Regenerate.
1919 * target.def (pass_by_reference): Use DEFHOOK.
1920 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1921 * doc/tm.texi: Regenerate.
1923 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1925 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1926 * doc/tm.texi: Regenerate.
1928 * target.def (return_pops_args): Use DEFHOOK.
1929 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1930 Rename stack-size to size.
1931 * doc/tm.texi: Regenerate.
1933 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1934 last-sched_cycle to last_clock, cur_cycle to clock.
1935 * doc/tm.texi.in: Use @hook.
1936 * doc/tm.texi: Regenerate.
1938 * target.def (print_operand, print_operand_address): Update comment.
1939 (print_operand_punct_valid_p): Likewise.
1941 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1943 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1945 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1946 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1948 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1949 * rtl-error.c: Likewise.
1950 * reload.c: Likewise.
1951 * recog.c: Likewise.
1952 * sel-sched.c: Likewise.
1953 * function.c: Likewise.
1954 * reg-stack.c: Likewise.
1955 * cfgrtl.c: Likewise.
1956 * reload1.c: Likewise.
1957 * final.c: Include rtl-error.
1958 * Makefile.in: Adjust dependencies.
1960 2010-06-30 Jan Hubicka <jh@suse.cz>
1962 PR middle-end/PR44706
1963 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1964 to return the value.
1966 2010-06-30 Michael Matz <matz@suse.de>
1969 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1970 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1971 a gimple reg, attach the original VDEF to the last store in the
1974 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1977 * config/darwin.c (darwin_override_options): Use renamed
1978 targetm.asm_out.emit_unwind_label.
1980 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1982 PR tree-optimization/39799
1983 * tree-inline.c (remap_ssa_name): Initialize variable only if
1984 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1986 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1988 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1990 2010-06-30 Richard Guenther <rguenther@suse.de>
1993 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1994 against oscillation with reverse peephole2.
1996 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
1999 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2002 2010-06-30 Nick Clifton <nickc@redhat.com>
2004 * config/rx/rx-modes.def: New file.
2005 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2006 (CC_REGNUM): Define.
2007 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2009 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2010 (SELECT_CC_MODE): Define.
2011 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
2012 (reg:CC CC_REG) instead of (cc0).
2013 (attr "cc"): Delete.
2014 (cbranchsi4): Do not split compare and branch here. Instead move
2016 (cbranchsi4_<code>): ... here. New patterns.
2017 (cmpsi): Call rx-compare_redundant to find out if it is necessary
2018 to emit the compare instruction.
2019 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2021 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2022 FIRST_PSEUDO_REGNUM.
2023 (rx_expand_prologue, rx_expand_epilogue): Likewise.
2024 (rx_notice_update_cc): Delete.
2025 (rx_cc_modes_compatible): New function.
2026 (flags_needed_for_conditional): New function.
2027 (flags_from_mode): New function.
2028 (rx_compare_redundant): New function - scans backwards through
2029 insn list to find out if condition flags are already set correctly.
2030 (TARGET_CC_MODES_COMPATIBLE): Define.
2031 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2033 * config/rx/rx.h (BRANCH_COST): Define.
2034 (REGISTER_MOVE_COST): Define.
2035 * config/rx/predicates (rx_source_operand): Allow all constant types.
2036 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2037 (tstsi4): New pattern.
2038 * config/rx/rx.c (rx_memory_move_cost): Define.
2039 (TARGET_MEMORY_MOVE_COST): Define.
2041 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
2043 * tree.h (block_may_fallthru): Declare here.
2044 * tree-flow.h (block_may_fallthru): Do not declare here.
2045 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2047 * Makefile.in (c-typeck.o): Update dependencies.
2049 2010-06-30 Jakub Jelinek <jakub@redhat.com>
2052 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2053 * cselib.c (cfa_base_preserved_regno): New static variable.
2054 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2055 of REGNO (cfa_base_preserved_val->locs->loc).
2056 (cselib_preserve_cfa_base_value): Add regno argument, set
2057 cfa_base_preserved_regno to it.
2058 (cselib_invalidate_regno): Allow removal of registers other than
2059 cfa_base_preserved_regno from cfa_base_preserved_val.
2060 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2061 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2062 of MEM addresses, if not on LHS.
2063 (reverse_op): Don't add reverse ops for cfa_base_rtx.
2064 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2066 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
2068 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2070 (peep2_buf_position): New static function.
2071 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2072 peephole2_optimize): Use it.
2073 (peep2_attempt, peep2_update_life): New static functions, broken out
2074 of peephole2_optimize.
2075 (peep2_fill_buffer): New static function.
2076 (peephole2_optimize): Change the main loop to try to fill the buffer
2077 with the maximum number of insns before matching them against
2078 peepholes. Use a forward scan. Remove special case for targets with
2079 conditional execution.
2080 * genrecog.c (change_state): Delete dead code.
2081 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2082 Rewrite so as not to expect the second insn to have had a peephole
2085 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2087 * genhooks.c (emit_findices): Cast field precision to int.
2088 (emit_documentation): Likewise.
2090 2010-06-29 Jakub Jelinek <jakub@redhat.com>
2092 PR tree-optimization/43801
2093 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2094 if old_decl was DECL_ONE_ONLY.
2097 * dwarf2out.c (add_accessibility_attribute): New function.
2098 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2099 instead of adding DW_AT_accessibility manually.
2100 (gen_enumeration_type_die, gen_struct_or_union_type_die,
2101 gen_typedef_die): Use it.
2103 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2105 * vmsdbgout.c (full_name): Just output the file name if not native.
2107 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2109 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2110 (funcnam_table): New static table.
2111 (funcnum_table): New static table.
2112 (write_rtnbeg): Write value saved in funcnum_table.
2113 (write_rtnend): Write value saved in funcnum_table.
2114 (vmsdbgout_begin_function): Save current function info in
2115 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2116 (vmsdbgout_finish): Iterate over funcnum_table.
2118 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2120 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2121 (vmsdbgout_type_decl): Declare
2122 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2123 (FUNC_EPILOGUE_LABEL): New macro
2124 (vmsdbgout_begin_epilogue): New function.
2125 (vmsdbgout_type_decl): New function.
2127 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2129 * vmsdbg.h: Update copyright.
2131 2010-06-29 Douglas B Rupp <rupp@gnat.com>
2133 * vmsdbg.h (DST_K_TBG): New DST constant.
2134 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2135 (write_modbeg): Cast module_language to avoid warning.
2136 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2138 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2141 * target.def, doc/tm.texi.in, genhooks.c: New files.
2142 * target.h: Instead of defining individual hook members,
2143 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2145 * target-def.h: Instead of defining individual hook initializers,
2146 include target-hooks-def.h.
2147 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2148 targetm.live_on_entry -> targetm.extra_live_on_entry
2149 targetm.sched.md_finish ->targetm.sched.finish
2150 targetm.sched.md_init -> targetm.sched.init
2151 targetm.sched.md_init_global -> targetm.sched.init_global
2152 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2153 targetm.asm_out.except_table_label ->
2154 targetm.asm_out.emit_except_table_label
2155 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2156 targetm.target_help -> targetm.help
2157 targetm.vectorize.builtin_support_vector_misalignment ->
2158 targetm.vectorize.support_vector_misalignment
2159 targetm.file_start_app_off -> targetm.asm_file_start_app_off
2160 targetm.file_start_file_directive ->
2161 targetm.asm_file_start_file_directive
2162 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2163 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2164 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2165 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2166 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2167 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2168 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2169 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2170 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2171 * Makefile.in (TARGET_H): Depend on target.def.
2172 (TARGET_DEF_H): Depend on target-hooks-def.h.
2173 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2174 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2175 * doc/tm.texi: Regenerate.
2177 * Makefile.in (s-tm-texi): Remove stray tab / rule.
2179 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2180 (targetm.sched.init): Likewise.
2182 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2185 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2186 (function_arg_advance_32): Const-ify TYPE parameter.
2187 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
2188 (ix86_function_arg_advance): Change type of NAMED to bool.
2189 (function_arg_32): Const-ify CUM and TYPE parameters.
2190 (function_arg_64): Likewise. Change type of NAMED to bool.
2191 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2193 (ix86_function_arg): Change type of NAMED to bool.
2194 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
2195 last argument as a bool.
2197 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
2199 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2200 (OVERRIDE_OPTIONS): Add note of obsolescence.
2201 Replace references with references to TARGET_OPTION_OVERRIDE.
2202 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2204 * targhooks.c (default_target_option_override): New function.
2205 * targhooks.h (default_target_option_override): Declare.
2206 * target.h (struct gcc_target): Add override member to
2207 target_option member.
2208 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2209 targetm.target_option.override call.
2210 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2211 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2213 2010-06-29 Jan Hubicka <jh@suse.cz>
2215 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2217 2010-06-29 Jan Hubicka <jh@suse.cz>
2219 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2221 (rebuild_frequencies): New function.
2222 * predict.h (rebuild_frequencies): Declare.
2223 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2224 entry block and edge reaching new_entry.
2225 (tree_function_versioning): When doing partial cloning, rebuild
2226 frequencies when done.
2227 * passes.c (execute_function_todo): Use rebild_frequencies.
2229 2010-06-29 Richard Guenther <rguenther@suse.de>
2231 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2232 * tree-flow.h (enum noalias_state): Remove.
2233 (struct var_ann_d): Remove noalias_state member.
2235 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
2238 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2239 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
2240 (maddhidi4): Likewise.
2242 Revert parts of the change for PR25130.
2243 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2246 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2248 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2249 targetm.calls.function_incoming_arg, and
2250 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2251 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2252 * target.h (struct gcc_target): Add function_arg_advance,
2253 function_arg, and function_incoming_arg fields.
2254 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2255 (TARGET_FUNCTION_INCOMING_ARG): Define.
2256 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2257 and TARGET_FUNCTION_INCOMING_ARG.
2258 * targhooks.h (default_function_arg_advance): Declare.
2259 (default_function_arg, default_function_incoming_arg): Declare.
2260 * targhooks.c (default_function_arg_advance): New function.
2261 (default_function_arg, default_function_incoming_arg): New function.
2262 * config/i386/i386.c (function_arg_advance): Rename to...
2263 (ix86_function_arg_advance): ...this. Make static.
2264 (function_arg): Rename to...
2265 (ix86_function_arg): ...this. Make static.
2266 (TARGET_FUNCTION_ARG_ADVANCE): Define.
2267 (TARGET_FUNCTION_ARG): Define.
2268 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2269 (FUNCTION_ARG): Delete.
2270 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2271 (function_arg): Delete prototype.
2273 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
2275 * reginfo.c (init_reg_sets_1): Adjust comments.
2276 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2277 * calls.c (prepare_call_address): Likewise.
2278 (emit_call_1): Use targetm.calls.return_pops_args.
2279 (expand_call): Likewise.
2280 * function.c (assign_parms): Likewise.
2281 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2282 * target.h (struct gcc_target) [struct calls]: Add
2283 return_pops_args field.
2284 * targhooks.h (default_return_pops_args): Declare.
2285 * targhooks.c (default_return_pops_args): Define.
2286 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2287 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2288 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2289 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
2291 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2292 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2293 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2294 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2295 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2296 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2297 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2298 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2299 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2300 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2301 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2302 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2303 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2304 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2305 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2306 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2307 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2308 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2309 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2310 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2311 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2312 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2313 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2314 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2315 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2316 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2317 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2318 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2319 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2320 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2321 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2322 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2323 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2324 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2325 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2326 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2327 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2328 * config/i386/i386.c (ix86_return_pops_args): Make static.
2330 (TARGET_RETURN_POPS_ARGS): Define.
2331 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2332 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
2333 (TARGET_RETURN_POPS_ARGS): Define.
2334 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2335 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
2336 (TARGET_RETURN_POPS_ARGS): Define.
2338 2010-06-29 Richard Guenther <rguenther@suse.de>
2341 * tree-inline.c (initialize_inlined_parameters): Make sure
2342 to remap the inlined parameter variable substitutions types.
2344 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
2346 PR rtl-optimization/44659
2347 * combine.c (make_compound_operation) <SUBREG>: Do not return the
2348 result of force_to_mode if it partially re-expanded the compound.
2350 2010-06-28 Jan Hubicka <jh@suse.cz>
2353 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2356 2010-06-28 Anatoly Sokolov <aesok@post.ru>
2358 * double-int.h (force_fit_type_double): Remove declaration.
2359 * double-int.c (force_fit_type_double): Move to tree.c.
2360 * tree.h (force_fit_type_double): Declare.
2361 * tree.h (force_fit_type_double): Moved from double-int.c. Use
2362 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2363 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2364 * convert.c (convert_to_pointer): Adjust call to
2365 force_fit_type_double.
2366 * tree-vrp.c (extract_range_from_assert,
2367 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2368 * fold-const.c: Update comment.
2369 (int_const_binop, fold_convert_const_int_from_int,
2370 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2371 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2372 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2373 round_up_loc): Adjust call to force_fit_type_double.
2375 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2377 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2379 2010-06-28 Martin Jambor <mjambor@suse.cz>
2381 * tree-sra.c (convert_callers): New parameter, change fndecls of
2383 (modify_function): Pass the old decl to convert_callers.
2385 2010-06-28 Martin Jambor <mjambor@suse.cz>
2387 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2388 ipa_check_create_node_params and ipa_initialize_node_params with
2389 checking asserts they are not necessary.
2391 2010-06-28 Jan Hubicka <jh@suse.cz>
2393 PR tree-optimization/44687
2394 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2396 2010-06-28 Martin Jambor <mjambor@suse.cz>
2399 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2400 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2401 instead of BINFO_BASE_BINFO.
2403 2010-06-28 Michael Matz <matz@suse.de>
2406 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2407 proper VDEF chain for intermediate stores in the sequence.
2409 2010-06-28 Jan Hubicka <jh@suse.cz>
2411 PR tree-optimization/44357
2412 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2413 uninlinable functions.
2415 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2417 * config.gcc (powerpc*-*-*): Handle titan.
2418 * config/rs6000/rs6000.c (titan_cost): New costs.
2419 (rs6000_override_options): Add "titan" to processor_target_table.
2420 Add Titan to branch alignment logic.
2421 Correctly set rs6000_cost for titan.
2422 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
2423 * config/rs6000/titan.md: New file.
2424 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2426 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2428 * tree-browser.c (TB_history_stack): Convert to a VEC.
2429 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2430 (TB_history_prev): Likewise.
2432 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
2434 * vec.h (vec_heap_free): Add parentheses around free.
2436 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
2438 * system.h: Poison GCC_EXCEPT_H for front-end files.
2440 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2442 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2443 Define to NULL by default.
2444 * except.h: Define GCC_EXCEPT_H.
2445 (doing_eh): Remove prototype.
2446 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2447 (lang_protect_cleanup_actions): Remove.
2448 * except.c (lang_protect_cleanup_actions): Remove.
2450 (gen_eh_region): Don't check doing_eh here.
2451 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2452 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2453 instead of lang_protect_cleanup_actions.
2454 * omp-low.c (maybe_catch_exception): Likewise.
2455 * Makefile.in: Update dependencies.
2457 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
2459 * cgraph.h (struct varpool_node): new used_from_object_file flag.
2460 (struct cgraph_local_info): new used_from_object_file flag.
2461 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2462 (cgraph_clone_node): initialize used_from_object_file.
2463 (cgraph_create_virtual_clone): initialize used_from_object_file.
2464 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2465 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2466 when compiling with -fwhole-program.
2467 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2469 * ipa.c (function_and_variable_visibility): Set externally_visible
2470 flag of varpool_node if used_from_object_file flag is set.
2471 (cgraph_externally_visible_p): check used_from_object_file flag.
2472 * doc/invoke.texi (-fwhole-program option): Change description of
2473 externally_visible attribute accordingly.
2474 * doc/extend.texi (externally_visible): Ditto.
2476 2010-06-27 Jan Hubicka <jh@suse.cz>
2478 * params.def (max-inline-insns-auto): Default to 40.
2479 * doc/invoke.texi (max-inline-insns-auto): Document the change.
2481 2010-06-27 Jan Hubicka <jh@suse.cz>
2485 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2487 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2488 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2490 2010-06-27 Anatoly Sokolov <aesok@post.ru>
2492 * target.h (struct gcc_target): Add register_move_cost field.
2493 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2494 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2495 * targhooks.c (default_register_move_cost): New function.
2496 * targhooks.h (default_register_move_cost): Declare function.
2497 * defaults.h (REGISTER_MOVE_COST): Delete.
2498 * ira-int.h (ira_register_move_cost): Update comment.
2499 * ira.c: (ira_register_move_cost): Update comment.
2500 * reload.h (register_move_cost): Declare.
2501 * reginfo.c (register_move_cost): New function.
2502 (move_cost): Update comment.
2503 (init_move_cost, memory_move_secondary_cost): Replace
2504 REGISTER_MOVE_COST with register_move_cost.
2505 * postreload.c (reload_cse_simplify_set): (Ditto.).
2506 * reload.c (find_valid_class, find_reloads): (Ditto.).
2507 * reload1.c (choose_reload_regs): (Ditto.).
2508 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2509 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2510 * doc/md.texi (can_create_pseudo_p): Update documentation.
2512 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2513 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2514 * config/i386/i386.h (ix86_memory_move_cost): Make static.
2515 (TARGET_MEMORY_MOVE_COST): Define.
2517 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2518 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2519 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2520 (TARGET_MEMORY_MOVE_COST): Define.
2522 2010-06-27 Richard Guenther <rguenther@suse.de>
2524 PR tree-optimization/44683
2525 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2526 false edge from the inverted condition.
2528 2010-06-27 Richard Guenther <rguenther@suse.de>
2531 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2532 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2533 for register LHS. Or non-store assignments.
2535 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
2537 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2538 (sparc_emit_set_const64): Likewise. Remove disabled code.
2539 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2540 (sparc_emit_set_const64): Likewise.
2542 2010-06-26 Catherine Moore <clm@codesourcery.com>
2544 * config/mips/mips.md (alu_type): New attribute.
2545 (type): Infer type from alu_type.
2546 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2547 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2548 *subsi3_extended, negsi2, negdi2, *low<mode>,
2549 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2550 xor<mode>3, *nor<mode>3,
2551 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2552 *zero_extendhi_truncqi): Set alu_type instead of type.
2554 2010-06-26 Douglas B Rupp <rupp@gnat.com>
2556 * config/alpha/alpha.c (alpha_need_linkage): Adjust
2557 splay_tree_new_ggc call.
2558 (alpha_use_linkage): Likewise.
2560 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2562 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2563 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2564 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2565 (static_specs): Remove switches_need_spaces.
2566 (process_command, do_self_spec): Hardcode handling "-o" instead of
2567 checking switches_need_spaces.
2568 * system.h (SWITCHES_NEED_SPACES): Poison.
2570 2010-06-26 Richard Guenther <rguenther@suse.de>
2572 PR tree-optimization/44393
2573 * tree-loop-distribution.c (generate_loops_for_partition): Fix
2574 stmt removal and VOP renaming.
2575 (generate_memset_zero): Remove redundant stmt updating.
2576 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2577 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2579 2010-06-26 Jan Hubicka <jh@suse.cz>
2581 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2582 edges comming from header are equivalent.
2583 (visit_bb): Handle PHIs correctly.
2584 * tree-inline.c (copy_phis_for_bb): Be able to copy
2585 PHI from entry edge.
2586 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2588 2010-06-26 Richard Guenther <rguenther@suse.de>
2591 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2592 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
2594 2010-06-26 Joseph Myers <joseph@codesourcery.com>
2596 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2597 add_infile, alloc_switch): New.
2598 (process_command): Remove variable lang_n_infiles. Process
2599 options in a single pass. Use new functions for allocating
2600 infiles and switches arrays. Properly skip operands of
2601 -Xpreprocessor and -Xassembler.
2603 2010-06-26 Jan Hubicka <jh@suse.cz>
2606 * cgraphunit.c (cgraph_function_versioning): Remove wrong
2607 cgraph_make_decl_local call; fix typo copying RTL data.
2609 2010-06-25 DJ Delorie <dj@redhat.com>
2611 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2612 (m32c_output_aligned_common): Likewise.
2613 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2614 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2615 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2616 (m32c_register_pragmas): Register it.
2617 * config/m32c/m32c.c (m32c_get_pragma_address): New.
2618 (m32c_insert_attributes): Set #pragma address decls volatile.
2619 (pragma_entry_eq): New.
2620 (pragma_entry_hash): New.
2621 (m32c_note_pragma_address): New.
2622 (m32c_get_pragma_address): New.
2623 (m32c_output_aligned_common): New.
2624 * doc/extend.texi: Document the new pragma.
2626 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2628 * config/m32c/predicates.md (m32c_any_operand): Check the code
2629 instead of memory_operand so as to allow matching volatile MEMs.
2630 (m32c_nonimmediate_operand): Likewise.
2631 (mra_operand): Allow volatiles.
2633 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
2636 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2637 address if the offset is unknown.
2639 2010-06-25 Douglas B Rupp <rupp@gnat.com>
2641 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2642 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2643 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2644 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2645 to ia64_start_function. Invoke it.
2646 * config/ia64/ia64.c (ia64_start_function): Call new function
2647 dwarf2out_vms_debug_main_pointer.
2649 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2651 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2652 statements computing the true predicate.
2654 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2656 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2657 to boolean_true_node.
2658 (reset_bb_predicate): New.
2659 (predicate_bbs): Call reset_bb_predicate.
2661 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2663 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2664 (tree_if_conversion): Returns true when something has been changed.
2665 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2668 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
2670 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2671 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2672 * tree-if-conv.c: Include dbgcnt.h.
2673 (tree_if_conversion): Use if_conversion_tree to count the number of
2674 if-convertible loops.
2676 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
2678 * common.opt (fprefetch-loop-arrays): Re-define
2679 -fprefetch-loop-arrays as a tri-state option with the initial
2681 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2682 pass only when flag_prefetch_loop_arrays > 0.
2683 * toplev.c (process_options): Note that, with tri-states,
2684 flag_prefetch_loop_arrays>0 means prefetching is enabled.
2685 * config/i386/i386.c (override_options): Enable prefetching at -O3
2686 for a set of CPUs that sw prefetching is helpful.
2687 (software_prefetching_beneficial_p): New. Return TRUE if software
2688 prefetching is beneficial for the given CPU.
2690 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
2692 PR rtl-optimization/44326
2693 * implicit-zee.c (find_removable_zero_extends): Replace
2694 INSN_P with NONDEBUG_INSN_P.
2696 2010-06-25 Martin Jambor <mjambor@suse.cz>
2698 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2699 (struct ipa_node_params): Removed the modification_analysis_done flag.
2700 (ipa_is_param_modified): Removed.
2701 (ipa_analyze_node): Declare.
2702 (ipa_compute_jump_functions): Remove declaration.
2703 (ipa_count_arguments): Likewise.
2704 (ipa_detect_param_modifications): Likewise.
2705 (ipa_analyze_params_uses): Likewise.
2706 * ipa-prop.c (struct param_analysis_info): New type.
2707 (visit_store_addr_for_mod_analysis): Removed.
2708 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2709 moved down in the file.
2710 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2711 (ipa_count_arguments): Made static.
2712 (mark_modified): New function.
2713 (is_parm_modified_before_call): New function.
2714 (compute_pass_through_member_ptrs): New parameter parms_info, call
2715 is_parm_modified_before_call instead of ipa_is_param_modified.
2716 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2717 it to compute_pass_through_member_ptrs.
2718 (ipa_compute_jump_functions): New parameter parms_info, pass it to
2719 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
2720 on the callee if it is analyzed. Made static.
2721 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2722 is_parm_modified_before_call instead of ipa_is_param_modified.
2723 (ipa_analyze_call_uses): New parameter parms_info, pass it to
2724 ipa_analyze_indirect_call_uses.
2725 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2726 ipa_analyze_call_uses.
2727 (ipa_analyze_params_uses): New parameter parms_info, pass it to
2728 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
2729 (ipa_analyze_node): New function.
2730 (ipa_print_node_params): Do not dump the modified flag.
2731 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2732 it. Do not stream the modified parameter flag.
2733 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2734 it. Do not stream the modified parameter flag.
2735 * ipa-cp.c (ipcp_analyze_node): Removed.
2736 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2737 with only a call to ipa_analyze_node.
2738 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2739 node with only a call to ipa_analyze_node.
2741 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2743 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2745 2010-06-25 Jan Hubicka <jh@suse.cz>
2747 * tree-pass.h (pass_split_functions): Declare.
2748 * opts.c (decode_options): Enable function splitting at -O2
2749 * timevar.def (TV_IPA_FNSPLIT): New macro.
2750 * ipa-split.c: New file.
2751 * common.opt (-fpartial-inlining): New flag.
2752 * Makefile.in (ipa-split.o): New object file.
2753 * passes.c (init_optimization_passes): Add ipa-split.
2754 * params.def (partial-inlining-entry-probability): New parameters.
2755 * doc/invoke.texi (-fpartial-inlining): New.
2757 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
2760 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2761 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2762 (gimplify_expr): Likewise.
2764 2010-06-25 Martin Jambor <mjambor@suse.cz>
2766 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2767 statements instead of bailing out on them.
2768 (ipa_analyze_indirect_call_uses): Do not require that loads from the
2769 parameter are in the same BB as the condition. Update comments.
2771 2010-06-25 Jakub Jelinek <jakub@redhat.com>
2774 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2775 true or always false, return NULL_TREE.
2776 (tree_unswitch_single_loop): Optimize conditions even when reaching
2777 max-unswitch-level parameter. If num > 0, optimize first all conditions
2778 using entry checks, then do still reachable block discovery and consider
2779 only conditions in still reachable basic blocks in the loop.
2781 PR tree-optimization/44539
2782 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2783 the call doesn't have LHS, but has VDEF.
2785 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2787 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2788 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2789 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2790 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2791 * system.h (MODIFY_TARGET_NAME): Poison.
2793 2010-06-25 Alan Modra <amodra@gmail.com>
2795 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2796 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2797 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2798 CMODEL_LARGE as default.
2799 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2800 (offsettable_ok_by_alignment): Delete.
2801 (rs6000_emit_move): Remove mcmodel=medium optimization.
2803 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2805 With large parts from Jim Wilson:
2807 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2808 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2809 * optabs.c (optab_for_tree_code): Likewise.
2810 (expand_widen_pattern_expr): Likewise.
2811 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2812 out of execute_optimize_widening_mul.
2813 (convert_plusminus_to_widen): New function.
2814 (execute_optimize_widening_mul): Use the two new functions.
2815 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2816 Remove code to generate widening multiply-accumulate. Add support
2817 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2818 * gimple-pretty-print.c (dump_ternary_rhs): New function.
2819 (dump_gimple_assign): Call it when appropriate.
2820 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2821 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2822 (expand_gimple_stmt_1): Likewise.
2823 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2824 WIDEN_MULT_MINUS_EXPR.
2825 * tree-ssa-operands.c (get_expr_operands): Likewise.
2826 * tree-inline.c (estimate_operator_cost): Likewise.
2827 * gimple.c (extract_ops_from_tree_1): Renamed from
2828 extract_ops_from_tree. Add new arg for a third operand; fill it.
2829 (gimple_build_assign_stat): Support operations with three operands.
2830 (gimple_build_assign_with_ops_stat): Likewise.
2831 (gimple_assign_set_rhs_from_tree): Likewise.
2832 (gimple_assign_set_rhs_with_ops_1): Renamed from
2833 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
2834 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2835 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2836 WIDEN_MULT_MINUS_EXPR.
2837 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2838 (extract_ops_from_tree_1): Adjust declaration.
2839 (gimple_assign_set_rhs_with_ops_1): Likewise.
2840 (gimple_build_assign_with_ops): Pass NULL for last operand.
2841 (gimple_build_assign_with_ops3): New macro.
2842 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2843 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2845 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2846 (verify_gimple_assign): Call it.
2847 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2848 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2849 functions for dealing with three-operand statements.
2850 * tree.c (commutative_ternary_tree_code): New function.
2851 * tree.h (commutative_ternary_tree_code): Declare it.
2852 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2854 (gimple_assign_nonzero_warnv_p): Likewise.
2855 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2856 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2857 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
2858 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2859 (struct hashtable_expr): New member ternary in the union.
2860 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2861 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
2862 (iterative_hash_hashable_expr): Likewise.
2863 (print_expr_hash_elt): Handle EXPR_TERNARY.
2864 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2865 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2866 statements. Handle GIMPLE_TERNARY_RHS.
2868 2010-06-25 Jan Hubicka <jh@suse.cz>
2870 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2872 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
2875 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2876 parameters are not good.
2877 (c_parser_parameter_declaration): Error unknown type name if the type
2878 name can't start declaration specifiers.
2880 2010-06-25 Joseph Myers <joseph@codesourcery.com>
2882 * gcc.c (translate_options): Don't mention +e in comment.
2883 (process_command): Don't handle +e specially.
2885 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
2887 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2889 * ira-build.c (merge_hard_reg_conflicts): New function.
2890 (create_cap_allocno, copy_info_to_removed_store_destinations,
2891 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2892 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2893 (remove_unnecessary_allocnos, remove_low_level_allocnos)
2894 copy_nifo_to_removed_store_destination): Use them.
2895 * ira-lives.c (make_hard_regno_born): New function, split out of
2897 (make_allocno_born): Likewise.
2898 (make_hard_regno_dead): New function, split out of make_regno_dead.
2899 (make_allocno_dead): Likewise.
2900 (inc_register_pressure): New function, split out of set_allocno_live.
2901 (dec_register_pressure): New function, split out of clear_allocno_live.
2902 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2903 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
2904 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2905 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
2906 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2907 mark_pseudo_regno_live.
2908 (process_bb_node_lives): Use mark_pseudo_regno_live,
2909 make_hard_regno_born and make_allocno_dead.
2910 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2911 set_allocno_live, clear_allocno_live): Delete functions.
2913 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2914 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2916 (ira_flattening): Use ira_parent_allocno.
2917 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2918 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2920 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2923 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2924 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2925 minmax_set_iter_cond, minmax_set_iter_next,
2926 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2927 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2928 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2929 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2932 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2933 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2934 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2937 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2939 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2940 (peephole2 to convert zero_extract/compare of single bit to
2941 lshift/compare): New.
2943 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2945 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2946 recursive call and call to 'int_const_binop'.
2947 (build_range_check, fold_cond_expr_with_comparison, unextend,
2948 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2949 multiple_of_p): Adjust call to const_binop.
2951 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2953 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2954 determine size of XFmode operand.
2955 (XFmode extended DFmode push splitter): Ditto.
2956 (XFmode extended SFmode push splitter): Ditto.
2958 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2961 * config/i386/i386.md (extract_code): New.
2962 (<u>divmodqi4): Likewise.
2963 (divmodhiqi3): Likewise.
2964 (udivmodhiqi3): Likewise.
2965 (<u>divqi3): Remvoved.
2967 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2970 * recog.h (struct recog_data): Add is_asm field.
2971 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2972 present in constraints of inline-asm operand and memory operand
2973 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2974 (extract_insn): Initialize recog_data.is_asm.
2975 * doc/md.texi (Constraints): Document operand side-effect rules.
2977 2010-06-24 Andi Kleen <ak@linux.intel.com>
2979 * c-parser.c (c_parser_conditional_expression): Call
2980 warn_for_omitted_condop.
2981 * doc/invoke.texi: Document omitted condop warning.
2983 2010-06-24 Nick Clifton<nickc@redhat.com>
2985 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2986 insn in the sequence is a jump insn before setting its label.
2988 2010-06-24 Alan Modra <amodra@gmail.com>
2990 * collect2.c (main): Match exactly --version and --help.
2992 2010-06-24 DJ Delorie <dj@redhat.com>
2994 * config/m32c/m32c-pragma.c: Don't include rtl.h.
2996 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
2998 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2999 using X87MODEF mode iterator.
3000 (pushsf splitter): Macroize splitter using P mode iterator.
3001 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3004 (*movxf_internal): Rename from *movxf_integer.
3005 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3006 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3007 (*movdf_internal): Rename from *movdf_integer.
3008 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3009 (*movsf_internal): Rename from *movdf_1.
3011 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
3013 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3014 (const_gimple_seq_node): Removed typedefs.
3016 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3017 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3019 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
3021 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3022 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3023 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3024 and CODE_FOR_vec_extract_lo_v4df.
3026 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3027 Changed to define_insn_and_split.
3028 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3029 (vec_extract_lo_v16hi): Likewise.
3030 (vec_extract_lo_v32qi): Likewise.
3031 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3032 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3034 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
3037 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3038 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3039 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3040 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3041 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3044 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3047 * df-core.c (struct df): Rename to df_d.
3048 * df.h (struct df): Likewise.
3049 * dse.h (struct df): Remove forward declaration.
3050 * recog.h (struct insn_data): Rename to:
3051 (struct_insn_data_d). Adjusted all users.
3053 2010-06-23 Arnaud Charlet <charlet@adacore.com
3056 * doc/install.texi: Update requirements to build GNAT.
3058 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
3060 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3062 (m68k_sched_attr_opx_type): Remove unreachable return.
3063 (m68k_sched_attr_opy_type): Likewise.
3064 (m68k_sched_attr_size): Likewise.
3065 (sched_get_opxy_mem_type): Likewise.
3066 (m68k_sched_attr_op_mem): Likewise.
3068 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
3070 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3071 new statement and adjust VDEF only if necessary. Remove superfluous
3072 call to maybe_clean_or_replace_eh_stmt.
3073 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3075 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3076 * tree-inline.c (copy_bb): ...and not there.
3078 2010-06-22 Cary Coutant <ccoutant@google.com>
3080 * dwarf2out.c (is_nested_in_subprogram): New function.
3081 (should_move_die_to_comdat): Use it.
3082 (copy_ancestor_tree): Don't mark DIEs here.
3083 (copy_decls_walk): Start walk from root of newly-added tree;
3084 mark DIEs here instead.
3086 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
3088 * config/i386/i386.md (unit): Also check sseishft1.
3090 2010-06-22 Jan Hubicka <jh@suse.cz>
3092 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3095 2010-06-22 Jan Hubicka <jh@suse.cz>
3097 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3098 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3099 Return true if something changed.
3100 * df.h (df_confluence_function_n): Return bool.
3101 * df-core.c (df_worklist_propagate_forward,
3102 df_worklist_propagate_backward): Track changes and ages.
3103 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3105 * dse.c (dse_confluence_n): Return always true.
3107 2010-06-22 Jan Hubicka <jh@suse.cz>
3109 * bitmap.c (bitmap_clear_bit): Micro optimize.
3111 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
3113 * config/i386/i386.md (SWI1248x): New mode iterator.
3118 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3119 SWI1248x mode iterator.
3120 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3121 using SWI124 mode iterator.
3122 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3124 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
3125 *pushdi2_prologue_rex64 using P mode iterator.
3126 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3127 using SWI48 mode iterator.
3128 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3129 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3130 using SWI1248x mode iterator.
3131 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3132 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3133 SWI48 mode iterator.
3134 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3136 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3137 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3138 SWI12 mode iterator.
3139 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3140 SWI12 mode iterator.
3141 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3142 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3143 SWI24 mode iterator.
3144 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3145 SWI48 mode iterator.
3146 (mov<mode>_insn_1): New expander.
3147 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3148 using SWI48x mode iterator.
3150 (*movoi_internal_avx): Rename from *movoi_internal.
3151 (*movti_internal_rex64): Rename from *movti_rex64.
3152 (*movti_internal_sse): Rename from *movti_sse.
3153 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3154 (*movdi_internal): Rename from *movdi_2.
3155 (*movsi_internal): Rename from *movsi_1.
3156 (*movhi_internal): Rename from *movhi_1.
3157 (*movqi_internal): Rename from *movqi_1.
3159 (insv): Update the call to gen_movsi_insv_1 for rename.
3160 * config/i386/i386.c (promote_duplicated_reg): Ditto.
3162 2010-06-22 Jan Hubicka <jh@suse.cz>
3164 * passes.c (execute_function_todo): Move call of statistics_fini_pass
3166 (execute_todo) ... this one.
3168 2010-06-22 Alan Modra <amodra@gmail.com>
3171 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3172 * caller-save.c (insert_restore, insert_save): Use non-validate
3173 form of adjust_address.
3175 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3178 * config/pa/pa.c (override_options): Disable
3179 -freorder-blocks-and-partition.
3181 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
3184 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3186 * config/i386/i386.md (type): Add sseishft1
3188 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3189 (ppro_insn_load): Likewise.
3190 (ppro_insn_store): Likewise.
3191 (ppro_insn_both): Likewise.
3193 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3194 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3196 (*vec_extractv2di_1_avx): Likewise.
3197 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3198 type. Remove atom_unit.
3199 (*vec_extractv2di_1_sse2): Likewise.
3201 2010-06-21 DJ Delorie <dj@redhat.com>
3203 * diagnostic.h (diagnostic_classification_change_t): New.
3204 (diagnostic_context): Add history and push/pop list.
3205 (diagnostic_push_diagnostics): Declare.
3206 (diagnostic_pop_diagnostics): Declare.
3207 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3208 from pragmas in a history chain instead of the global table.
3209 (diagnostic_push_diagnostics): New.
3210 (diagnostic_pop_diagnostics): New.
3211 (diagnostic_report_diagnostic): Scan history chain to find state
3212 of diagnostics as of the diagnostic location.
3213 * opts.c (set_option): Pass UNKNOWN_LOCATION to
3214 diagnostic_classify_diagnostic.
3215 (enable_warning_as_error): Likewise.
3216 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3217 use in the history chain.
3218 * doc/extend.texi: Document pragma GCC diagnostic changes.
3220 2010-06-21 Jakub Jelinek <jakub@redhat.com>
3222 * dwarf2out.c (add_linkage_name): New function. Don't add
3223 anything to DW_TAG_member DIEs.
3224 (add_name_and_src_coords_attributes): Use it.
3225 (gen_variable_die): Call it for C++ static data members if
3226 specification is DW_TAG_member.
3228 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3229 C++ char16_t and char32_t.
3231 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3232 * genattrtab.c: Include vecprim.h.
3233 (cached_attrs, cached_attr_count, attrs_seen_once,
3234 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3235 attrs_cached_after): New variables.
3236 (find_attrs_to_cache): New function.
3237 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3238 (write_test_expr): Add attrs_cached argument, return it too,
3239 attempt to cache non-const attributes used more than once in
3240 a single case handling.
3241 (write_attr_get): Use find_attrs_to_cache, for caching candidates
3242 emit cached_* variables. Adjust write_attr_set callers.
3243 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3244 to find attributes that should be cached in this block. Adjust
3245 write_test_expr callers.
3246 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
3248 (make_automaton_attrs): Adjust write_test_expr caller.
3250 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3251 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3252 (make_automaton_attrs): If find_tune_attr returns non-NULL,
3253 write separate internal_dfa_insn_code_* and insn_default_latency_*
3254 functions for each attribute's value and emit init_sched_attrs
3255 function and function pointers.
3256 * genattr.c (const_attrs, reservations): New variables.
3257 (gen_attr): Add const attributes to const_attrs vector.
3258 (check_tune_attr, find_tune_attr): New functions.
3259 (main): Add reservations to reservations vector. If find_tune_attr
3260 returns true, add prototype for init_sched_attrs and make
3261 internal_dfa_insn_code and insn_default_latency function pointers,
3262 otherwise define init_sched_attrs as dummy macro.
3263 * cfgexpand.c: Include insn-attr.h.
3264 (gimple_expand_cfg): Call init_sched_attrs.
3266 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3269 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3270 va_arg from a set of register save slots into a temporary,
3271 if the container is bigger than type size, do the copying
3272 using smaller mode or using memcpy.
3275 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3277 (sel_print_to_dot): Remove macro.
3278 (sel_print): Likewise. New prototype.
3279 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3280 (sel_print): New function.
3282 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3284 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3285 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3287 2010-06-21 Nick Clifton <nickc@redhat.com>
3289 * config/rx/rx.h (PTRDIFF_TYPE): Define.
3290 (SMALL_REGISTER_CLASS): Define (to zero).
3291 (PRINT_OPERAND): Delete.
3292 (PRINT_OPERAND_ADDRESS): Delete.
3293 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3294 (rx_print_operand_address): Delete prototype.
3295 * config/rx/rx.c (rx_print_operand): Make static.
3296 Allow %H and %L to handle CONST_DOUBLEs.
3297 (rx_print_operand_address): Make static.
3298 (rx_gen_move_template): Rename local variable 'template' to
3300 (rx_function_arg): Do not pass unknown sized objects in registers.
3301 (TARGET_PRINT_OPERAND): Define.
3302 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3304 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3308 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
3310 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3311 stack-alignment for simple leaf-functions.
3313 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3315 * doc/install.texi: Document bootstrap-lto.
3317 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
3320 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3321 (input_function): Drop them here, if VTA is disabled.
3323 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
3326 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3328 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3329 ix86_swapped_fp_comparsion_operator instead of
3330 ix86_fp_comparison_operator.
3332 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3333 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3334 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3335 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3336 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3337 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3339 2010-06-20 Joseph Myers <joseph@codesourcery.com>
3342 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3343 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3344 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3345 (decode_cmdline_option): Update for this return value. Set
3346 orig_option_with_args_text field. Set arg field for unknown
3347 options. Make static.
3348 (decode_cmdline_options_to_array): New.
3349 (prune_options): Update handling of find_opt return value.
3350 * opts.c (read_cmdline_option): Take decoded option. Return void.
3351 (read_cmdline_options): Take decoded options.
3352 (decode_options): Add parameters for decoded options. Use
3353 decode_cmdline_options_to_array. Use decoded options for -O
3354 scan. Use integral_argument for -O parameters. Update call to
3355 read_cmdline_options.
3356 (enable_warning_as_error): Update handling of find_opt return value.
3357 * opts.h: Update comment on unknown options.
3358 (struct cl_decoded_option): Update comments on opt_index and arg.
3359 Add orig_option_with_args_text.
3360 (decode_cmdline_option): Remove.
3361 (decode_cmdline_options_to_array): Declare.
3362 (decode_options): Update prototype.
3363 * toplev.c (save_argv): Remove.
3364 (save_decoded_options, save_decoded_options_count): New.
3365 (read_integral_parameter): Remove.
3366 (print_switch_values): Use decoded options.
3367 (toplev_main): Don't set save_argv. Update call to decode_options.
3368 * toplev.h (read_integral_parameter): Remove.
3369 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3371 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
3374 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3376 * constraints.md (Pw, Px): New constraints.
3377 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3379 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
3381 * config/i386/sse.md (fma4modesuffixf4): Removed.
3382 (ssemodesuffixf2s): Likewise.
3383 (ssemodesuffixf4): Likewise.
3384 (ssemodesuffixf2c): Likewise.
3385 (ssescalarmodesuffix2s): Likewise.
3386 (avxmodesuffixf2c): Likewise.
3387 (ssemodesuffix): New.
3388 (ssescalarmodesuffix): Likewise.
3389 Update patterns with ssemodesuffix and ssescalarmodesuffix.
3391 2010-06-19 Philip Herron <herron.philip@googlemail.com>
3393 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3395 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
3397 * stor-layout.c (debug_rli): Remove unused local variables.
3399 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
3401 PR rtl-optimization/40900
3402 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
3403 original expression for later reuse.
3404 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3405 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3407 2010-06-18 Anatoly Sokolov <aesok@post.ru>
3409 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3410 double_int_fits_in_uhwi_p): Implement as static inline.
3411 (double_int_xor): New inline function.
3412 (double_int_lrotate, double_int_rrotate, double_int_max,
3413 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3414 double_int_smin): Declare.
3415 (lrotate_double, rrotate_double): Remove declaration.
3416 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3417 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3418 (double_int_lrotate, double_int_rrotate, double_int_max,
3419 double_int_umax, double_int_smax, double_int_min, double_int_umin,
3420 double_int_smin): New function.
3421 * fold-const.c (int_const_binop): Clean up, use double_int_*
3423 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3424 double_int_* and immed_double_int_const functions.
3426 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3428 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3429 * function.c (types_used_by_cur_var_decl): Likewise.
3430 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3432 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
3434 * tree.h (record_layout_info): Change type of pending_statics field
3436 * stor-layout.c (start_record_layout): Store NULL into
3438 (debug_rli): Call debug_vec_tree instead of debug_tree.
3439 (place_field): Likewise.
3440 (finish_record_layout): Likewise.
3442 2010-06-18 Alan Modra <amodra@gmail.com>
3444 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3446 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3449 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3450 for SET source operand from SET destination operand.
3452 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
3454 PR rtl-optimization/39871
3455 * reload1.c (init_eliminable_invariants): For flag_pic, disable
3456 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3457 (function_invariant_p): Rule out a plus of frame or arg pointer with
3459 * ira.c (find_reg_equiv_invariant_const): Likewise.
3461 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
3463 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3464 print_operand_address and puts to output the operand for CONST.
3466 2010-06-17 Jakub Jelinek <jakub@redhat.com>
3469 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3472 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3474 * v850-protos.h (print_operand): Delete.
3475 (print_operand_address): Delete.
3476 * v850.h (PRINT_OPERAND): Delete.
3477 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3478 (PRINT_OPERAND_ADDRESS): Delete.
3479 * v850.c (print_operand_address): Rename to...
3480 (v850_print_operand_address): ...this. Make static. Call
3482 (print_operand): Rename to...
3483 (v850_print_operand): ...this. Make static. Call
3484 v850_print_operand_address.
3485 (v850_print_operand_punct_valid_p): New function.
3486 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3487 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3489 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3491 * config/sh/sh-protos.h (print_operand): Delete.
3492 (print_operand_address): Delete.
3493 * config/sh/sh.h (PRINT_OPERAND): Delete.
3494 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3495 (PRINT_OPERAND_ADDRESS): Delete.
3496 * config/sh/sh.c (sh_print_operand_address): Make static.
3497 (sh_print_operand): Make static. Call sh_print_operand_address
3498 and sh_print_operand.
3499 (sh_print_operand_punct_valid_p): New function.
3500 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3501 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3503 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3505 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3506 (mcore_print_operand_address): Delete.
3507 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3508 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3509 (PRINT_OPERAND_ADDRESS): Delete.
3510 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3511 (mcore_print_operand): Make static.
3512 (mcore_print_operand_punct_valid_p): New function.
3513 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3514 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3516 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3518 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3519 (print_operand_address): Delete.
3520 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3521 (PRINT_OPERAND_ADDRESS): Delete.
3522 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3524 (m68hc11_print_operand): Make static.
3525 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3527 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3529 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3530 (m32r_print_operand_address): Delete.
3531 * config/m32r/m32r.h (m32r_punct_chars): Delete.
3532 (PRINT_OPERAND): Delete.
3533 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3534 (PRINT_OPERAND_ADDRESS): Delete.
3535 * config/m32r/m32r.c (m32r_punct_chars): Make static.
3536 (m32r_print_operand_address): Make static.
3537 (m32r_print_operand): Make static.
3538 (m32r_print_operand_punct_valid_p): New function.
3539 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3540 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3542 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3544 * config/iq2000/iq2000-protos.h (print_operand): Delete.
3545 (print_operand_address): Delete.
3546 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3547 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3548 (PRINT_OPERAND_ADDRESS): Delete.
3549 (iq2000_print_operand_punct): Delete.
3550 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3551 (iq2000_print_operand_address): Make static.
3552 (iq2000_print_operand): Make static.
3553 (iq2000_print_operand_punct_valid_p): New function.
3554 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3555 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3557 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3559 * config/frv/frv-protos.h (frv_print_operand): Delete.
3560 (frv_print_operand_address): Delete.
3561 * config/frv/frv.h (PRINT_OPERAND): Delete.
3562 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3563 (PRINT_OPERAND_ADDRESS): Delete.
3564 * config/frv/frv.c (frv_print_operand_address): Make static.
3565 (frv_print_operand): Make static.
3566 (frv_print_operand_punct_valid_p): New function.
3567 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3568 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3570 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
3572 * tree.h (vec_member): Declare.
3573 * tree.c (vec_member): Define.
3575 2010-06-17 Richard Guenther <rguenther@suse.de>
3577 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3578 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3580 2010-06-17 Richard Guenther <rguenther@suse.de>
3582 * tree-inline.c (declare_return_variable): Remove bogus code.
3584 2010-06-17 Richard Guenther <rguenther@suse.de>
3586 * gimplify.c (gimplify_bind_expr): Always promote complex
3587 and vector variables to registers if possible.
3589 2010-06-17 Richard Guenther <rguenther@suse.de>
3591 * expr.c (get_inner_reference): Use double_int for bit_offset
3594 2010-06-16 DJ Delorie <dj@redhat.com>
3596 * common.opt (-fstrict-volatile-bitfields): new.
3597 * doc/invoke.texi: Document it.
3598 * fold-const.c (optimize_bit_field_compare): For volatile
3599 bitfields, use the field's type to determine the mode, not the
3601 * expr.c (expand_assignment): Likewise.
3602 (get_inner_reference): Likewise.
3603 (expand_expr_real_1): Likewise.
3604 * expmed.c (store_fixed_bit_field): Likewise.
3605 (extract_bit_field_1): Likewise.
3606 (extract_fixed_bit_field): Likewise.
3608 2010-06-16 Richard Guenther <rguenther@suse.de>
3610 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3612 2010-06-16 Douglas B Rupp <rupp@gnat.com>
3614 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3615 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3616 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3617 * debug.c: Likewise.
3618 * sdbout.c: Likewise.
3619 * vmsdbgout.c: Likewise.
3620 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3621 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3622 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3623 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3624 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3625 * dwarf2out.c (dw_fde_struct): New fields
3626 dw_fde_vms_{end,begin}_prologue.
3627 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3628 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3629 (dwarf2out_vms_end_prologue): New function.
3630 (dwarf2out_vms_begin_epilogue): New function.
3631 (dw_val_struct): New value dw_val_class_vms_delta.
3632 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3633 begin_epilogue for VMS.
3634 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3635 new static functions.
3636 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3637 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3639 (print_die): New case dw_val_class_vms_delta.
3640 (attr_checksum): Likewise.
3641 (same_dw_val_p: Likewise.
3642 (size_of_die): Likewise.
3643 (value_format): Likewise.
3644 (output_die): Likewise.
3645 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3646 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3647 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3648 dwarf2out_cfi_begin_epilogue
3649 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3651 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3653 * config/cris/cris-protos.h (cris_print_operand): Delete.
3654 (cris_print_operand_address): Delete.
3655 * config/cris/cris.h (PRINT_OPERAND): Delete.
3656 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3657 (PRINT_OPERAND_ADDRESS): Delete.
3658 * config/cris/cris.c (cris_print_operand_address): Make static.
3659 (cris_print_operand): Make static.
3660 (cris_print_operand_punct_valid_p): New function.
3661 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3662 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3664 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
3666 * config/arm/arm-protos.h (arm_print_operand): Delete.
3667 (arm_print_operand_address): Delete.
3668 * config/arm/arm.h (PRINT_OPERAND): Delete.
3669 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3670 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3671 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3672 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
3673 (arm_print_operand): Make static.
3674 (arm_print_operand_punct_valid_p): New function.
3675 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3676 (TARGET_PRINT_OPERAND_ADDRESS): Define.
3678 2010-06-16 Nick Clifton <nickc@redhat.com>
3680 * config/rx/constraints.md (NEGint4): New constraint.
3681 * config/rx/rx.md (attr cc): Add set_zsc.
3682 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3685 (call_internal): Clobber the cc0 register.
3686 (call_value_internal): Likewise.
3687 (cstoresi4): Likewise.
3688 (movsieq): Likewise.
3689 (movsine): Likewise.
3690 (addsi3): Add alternative to handle small negative constants.
3692 (addsi3): Do not set the O bit in the cc0 register.
3696 (andsi3): Reorder alternatives to prefer shorter forms.
3699 (negsi2): Note that the cc0 flags are set.
3700 (rotlsi3): Note that only the Z and S bits are set in cc0.
3701 (lshrsi3): Likewise.
3702 (ashlsi3): Likewise.
3703 (subsf3): Use %Q for the MEM operand.
3704 (fix_truncsfsi2): Likewise.
3705 (floatsisf2): Likewise.
3706 (bitset): Remove early clobber from destination.
3707 (bitset_in_memory): Likewise.
3708 (lrintsf2): Clobber the cc0 register.
3709 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3710 (rx_print_operand): Handle %N.
3712 2010-06-16 Jan Hubicka <jh@suse.cz>
3714 * df-core.c (df_compact_blocks): Free problem_temps vector.
3716 2010-06-16 Martin Jambor <mjambor@suse.cz>
3718 PR tree-optimization/43905
3719 * tree-sra.c: Include tree-inline.h.
3720 (create_abstract_origin): Removed.
3721 (modify_function): Version the call graph node instead of creating
3722 abstract origins and dealing with same_body aliases.
3723 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3724 function is versionable.
3725 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3727 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
3729 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3730 (CHOOSE_DYNAMIC_LINKER): Update.
3732 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
3734 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
3735 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3736 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3737 *prefetch_3dnow_rex.
3739 2010-06-15 Anatoly Sokolov <aesok@post.ru>
3741 * target.h (struct asm_out):Add declare_constant_name field.
3742 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3743 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3744 * output.h (default_asm_declare_constant_name): Declare.
3745 (assemble_label): Update prototype.
3746 * varasm.c (assemble_constant_contents): Use
3747 targetm.asm_out.declare_constant_name target hook.
3748 (assemble_label): Add 'file' argument.
3749 (default_asm_declare_constant_name): New function.
3750 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3751 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3752 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3754 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3755 * config/darwin.c (darwin_asm_declare_constant_name): New function.
3756 (machopic_output_indirection): Update assemble_label argument list.
3757 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3758 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3760 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
3763 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3764 size_one_node for pointer types. Do not call gmp_cst_to_tree.
3766 2010-06-15 Richard Guenther <rguenther@suse.de>
3768 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3770 2010-06-15 Paul Brook <paul@codesourcery.com>
3772 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3775 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
3777 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3778 don't get a vector type for output.
3780 2010-06-15 Jakub Jelinek <jakub@redhat.com>
3783 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3784 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3785 (LANG_HOOKS_DECLS): Add it.
3786 * gimplify.c (omp_notice_variable): Call
3787 lang_hooks.decls.omp_report_decl.
3789 2010-06-15 Martin Jambor <mjambor@suse.cz>
3792 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3793 on the newly dead SSA name.
3795 2010-06-15 Alan Modra <amodra@gmail.com>
3797 * doc/invoke.texi: Add mcmodel to powerpc options.
3798 * configure.ac: Add HAVE_LD_LARGE_TOC test.
3799 * configure: Regenerate.
3800 * config.in: Regenerate.
3801 * config/rs6000/linux64.opt (mcmodel): New.
3802 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3803 (TARGET_CMODEL, SET_CMODEL): Define.
3804 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3805 select CMODEL_MEDIUM default.
3806 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3807 (TARGET_CMODEL): Define default.
3808 * config/rs6000/rs6000.c (cmodel): New variable.
3809 (rs6000_explicit_options): Add cmodel field.
3810 (rs6000_handle_option): Handle -mcmodel.
3811 (create_TOC_reference): Add largetoc_reg param. Generate high,
3812 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
3813 (rs6000_delegitimize_address): Recognise new toc reference rtl
3814 and minimal-toc rtl.
3815 (rs6000_legitimize_reload_address): Handle new toc references.
3816 (print_operand_address): Handle legitimate_constant_pool_address_p
3817 match before lo_sum.
3818 (rs6000_eliminate_indexed_memrefs): Tidy.
3819 (rs6000_emit_move): Tweak threshold for inlining constants.
3820 Keep rs6000_emit_allocate_stack large stack frame offsets
3821 loaded into r0 inline.
3822 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3823 (tocrel_base, tocrel_offset): New variables.
3824 (toc_relative_expr_p): Set them here.
3825 (print_operand_address): Skip over any offset on constant pool address.
3826 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3827 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3828 (offsettable_ok_by_alignment): New function.
3829 (rs6000_emit_move): Address suitably aligned local symbol_refs
3830 relative to the toc pointer for -mcmodel=medium.
3831 (legitimate_constant_pool_address_p): Make param const_rtx. Add
3832 strict param. Allow lo_sum version of addressing. Verify reg
3833 used for -mminimal-toc and -mcmodel != small. Update all callers.
3834 * config/rs6000/constraints.md: Update for above change.
3835 * config/rs6000/predicates.md: Likewise.
3836 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3838 (tls_gd): Split for -mcmodel=medium/large.
3839 (tls_gd_high, tls_gd_low): New.
3840 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3841 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3842 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3843 (largetoc_high, largetoc_low): New.
3844 (cmptf_internal2): Add clobber.
3845 * config/rs6000/rs6000-protos.h: Update.
3847 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
3849 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
3850 true if no prefetch is going to be generated for a given group.
3851 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3852 estimate the prefetch_count.
3853 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3854 prefetch count by considering the unroll_factor and prefetch_mod
3855 for is_loop_prefetching_profitable.
3857 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
3859 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3860 anything if the argument is not a MEM.
3862 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3867 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3869 (canonicalize_loop_ivs): Likewise.
3871 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
3874 * haifa-sched.c (setup_insn_reg_pressure_info,
3875 update_register_pressure): Reject debug insns.
3876 (ready_sort): Don't setup reg pressure for debug insns.
3877 (schedule_insn): Don't update reg pressure for debug insns.
3879 2010-06-14 Richard Guenther <rguenther@suse.de>
3881 * lto-streamer.c (cached_bp): Remove.
3882 (bitpack_delete): Likewise.
3883 (bitpack_create): Likewise.
3884 (bp_get_next_word): Likewise.
3885 (bp_pack_value, bp_unpack_value): Move ...
3886 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3888 (struct bitpack_d): Likewise.
3889 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3890 New inline functions.
3891 * lto-streamer-out.c (lto_output_bitpack): Remove.
3892 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3893 (pack_value_fields): Adjust.
3894 (lto_write_tree): Likewise.
3895 (output_gimple_stmt): Likewise.
3896 (output_function): Likewise.
3897 * lto-streamer-in.c (input_gimple_stmt): Adjust.
3898 (input_function): Likewise.
3899 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
3900 (lto_input_bitpack): Remove.
3901 (lto_materialize_tree): Adjust.
3902 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3903 * lto-cgraph.c (lto_output_edge): Adjust.
3904 (lto_output_node): Likewise.
3905 (lto_output_varpool_node): Likewise.
3906 (lto_output_ref): Likewise.
3907 (input_node): Likewise.
3908 (input_varpool_node): Likewise.
3909 (input_ref): Likewise.
3910 (input_edge): Likewise.
3911 (output_node_opt_summary): Likewise.
3912 (input_node_opt_summary): Likewise.
3913 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3914 (pure_const_read_summary): Likewise.
3915 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3916 (ipa_read_indirect_edge_info): Likewise.
3917 (ipa_write_node_info): Likewise.
3918 (ipa_read_node_info): Likewise.
3920 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3923 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3924 (vec_extract_lo_v16hi): Likewise.
3925 (vec_extract_lo_v32qi): Likewise.
3927 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3930 * tree.h (build_call_expr): Don't define as vararg macro, instead
3932 * builtins.c (build_call_nofold): Remove.
3933 (expand_builtin_int_roundingfn, expand_builtin_pow,
3934 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3935 expand_builtin_memset_args, expand_builtin_strcmp,
3936 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3937 build_call_nofold_loc instead of build_call_nofold.
3938 (build_call_expr): New function.
3940 PR tree-optimization/44508
3941 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3942 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3943 don't eliminate trivially dead stmts.
3944 * tree-vrp.c (vrp_finalize): Pass false as last argument
3945 to substitute_and_fold.
3946 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3947 to substitute_and_fold.
3948 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3951 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3953 2010-06-14 Ira Rosen <irar@il.ibm.com>
3955 PR tree-optimization/44507
3956 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3957 to build initial vector for BIT_AND_EXPR.
3958 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3960 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3962 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3963 adjust z10prop set_attr.
3965 2010-06-13 Jan Hubicka <jh@suse.cz>
3967 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3968 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3969 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3970 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3971 datastructure checks into checking asserts.
3972 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3973 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3974 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3975 df_ref_create_structure): Likewise.
3976 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3977 pool_free): Use gcc_checking_assert.
3978 * alias.c (get_alias_set): Likewise.
3979 * var-tracking.c (variable_htab_free, shared_hash_copy,
3980 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3981 * lto-streamer.c (bp_unpack_value): Likewise.
3983 2010-06-13 Richard Guenther <rguenther@suse.de>
3985 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3986 Do not stream but initialize TYPE_CANONICAL to NULL.
3987 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3988 * gimple.c (gimple_types_compatible_p): Disregard
3989 TYPE_STRUCTURAL_EQUALITY_P.
3990 (gimple_register_type): Use TYPE_CANONICAL as cache.
3991 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3992 before registering common types.
3993 * config/i386/i386.c (ix86_function_arg_boundary): Do not
3994 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3995 * tree.h (TYPE_CANONICAL): Clarify documentation.
3997 2010-06-13 Anatoly Sokolov <aesok@post.ru>
3999 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4000 LIBCALL_VALUE): Remove macros.
4001 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4002 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4003 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4004 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4005 (ia64_function_value): Make static. Handle receiving the function
4006 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4008 2010-06-12 Jan Hubicka <jh@suse.cz>
4010 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4013 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
4015 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4017 2010-06-12 Jan Hubicka <jh@suse.cz>
4019 * df-core.c (df_clear_bb_info): New function.
4020 (df_set_blocks): bb_info is always allocated.
4021 (df_get_bb_info): Use block_info_elt_size.
4022 (df_set_bb_info): Likewise.
4023 (df_compact_blocks): Update for new block_info.
4024 (grow_bb_info): New function.
4025 * df-problems.c (df_grow_bb_info): Move to df-core.c
4026 (df_rd_set_bb_info): Remove.
4027 (df_rd_free_bb_info): Do not free block pool.
4028 (df_rd_alloc): Do not create pool, use check for
4029 obstack presence instead of NULL pointer for new blocks.
4030 (df_rd_free): DO not free alloc pool; clear block_info.
4031 (problem_RD): Add size of block info structure.
4032 (df_lr_set_bb_info): Remove.
4033 (df_lr_free_bb_info): Do not free block pool.
4034 (df_lr_alloc): Do not create pool, use check for
4035 obstack presence instead of NULL pointer for new blocks.
4036 (df_lr_free): DO not free alloc pool; clear block_info.
4037 (problem_LR): Add size of block info structure.
4038 (df_live_set_bb_info): Remove.
4039 (df_live_free_bb_info): Do not free block pool.
4040 (df_live_alloc): Do not create pool, use check for
4041 obstack presence instead of NULL pointer for new blocks.
4042 (df_live_free): DO not free alloc pool; clear block_info.
4043 (problem_LIVE): Add size of block info structure.
4044 (problem_CHAIN): Add size of block info structure.
4045 (df_byte_lr_set_bb_info): Remove.
4046 (df_byte_lr_free_bb_info): Do not free block pool.
4047 (df_byte_lr_alloc): Do not create pool, use check for
4048 obstack presence instead of NULL pointer for new blocks.
4049 (df_byte_lr_free): DO not free alloc pool; clear block_info.
4050 (problem_BYTE_LR): Add size of block info structure.
4051 (problem_NOTE): Add size of block info structure.
4052 (df_byte_MD_set_bb_info): Remove.
4053 (df_byte_MD_free_bb_info): Do not free block pool.
4054 (df_byte_MD_alloc): Do not create pool, use check for
4055 obstack presence instead of NULL pointer for new blocks.
4056 (df_byte_MD_free): DO not free alloc pool; clear block_info.
4057 (problem_BD): Add size of block info structure.
4058 * df-scan.c (df_scan_free_internal): Free block pool.
4059 (df_scan_set_bb_info): Remove.
4060 (df_scan_free_bb_info): Check for artificial_defs instead
4061 of bb_info being non-NULL.
4062 (df_scan_alloc): DO not create df_scan_block pool.
4063 (problem_SCAN): Set size of block info.
4064 (df_bb_refs_record): Do not allocate bb_info.
4065 * df.h (df_problem): Add block_info_elt_size.
4066 (struct dataflow): Change block_info to void *.
4067 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4068 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4071 2010-06-12 Jan Hubicka <jh@suse.cz>
4073 PR tree-optimize/44485
4074 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4075 containing use of return value of noreturn function.
4077 2010-06-12 Anatoly Sokolov <aesok@post.ru>
4079 * targhooks.c (default_function_value): Don't use
4080 FUNCTION_OUTGOING_VALUE.
4081 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4082 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4084 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
4086 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4087 Add crtfastmath.o to extra_parts.
4088 * config/mips/crtfastmath.c: New.
4089 * config/mips/linux.h (ENDFILE_SPEC): New.
4091 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
4093 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4094 old_type in parameter.
4095 (gcc_type_for_value): Update call to gcc_type_for_interval.
4096 (compute_type_for_level_1): Renamed compute_type_for_level.
4097 Update call to gcc_type_for_interval.
4099 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4101 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4102 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4104 2010-06-11 Joseph Myers <joseph@codesourcery.com>
4106 * opts-common.c: Include options.h.
4107 (integral_argument): Move from opts.c.
4108 (decode_cmdline_option): New. Based on read_cmdline_option.
4109 * opts.c (integral_argument): Move to opts-common.c.
4110 (read_cmdline_option): Move most contents to
4111 decode_cmdline_option. Use %qs in diagnostics.
4112 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4113 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4114 decode_cmdline_option): New.
4116 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4119 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4120 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4121 (partiysi2_cmp): Ditto.
4122 (*partiyhi2_cmp): Ditto.
4123 (*parityqi2_cmp): Remove.
4125 2010-06-11 Jan Hubicka <jh@suse.cz>
4127 * bitmap.h (bmp_iter_next_bit): New.
4128 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4130 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
4131 Eric Botcazou <ebotcazou@adacore.com>
4133 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4136 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4138 * config/i386/i386.md (unspec): New define_c_enum.
4141 2010-06-10 Jakub Jelinek <jakub@redhat.com>
4143 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4145 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
4148 * tree-if-conv.c (bb_predicate_s): New struct.
4149 (bb_predicate_p): New.
4150 (bb_has_predicate): New.
4151 (bb_predicate): New.
4152 (set_bb_predicate): New.
4153 (bb_predicate_gimplified_stmts): New.
4154 (set_bb_predicate_gimplified_stmts): New.
4155 (add_bb_predicate_gimplified_stmts): New.
4156 (init_bb_predicate): New.
4157 (free_bb_predicate): New.
4158 (is_predicated): Use bb_predicate.
4159 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4160 (predicate_bbs): Same. Gimplify the condition of the basic blocks
4161 before processing their successors.
4162 (clean_predicate_lists): Removed.
4163 (find_phi_replacement_condition): Use bb_predicate.
4164 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
4166 (insert_gimplified_predicates): New.
4167 (combine_blocks): Call insert_gimplified_predicates.
4168 (tree_if_conversion): Call free_bb_predicate instead of
4169 clean_predicate_lists.
4171 2010-10-11 Paul Brook <paul@codesourcery.com>
4173 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4174 * config/arm/arm.c (all_architectures): Change v7e-m default to
4176 * config/arm/arm-cores.def: Add cortex-m4.
4177 * config/arm/arm-tune.md: Regenerate.
4179 2010-06-11 Jan Hubicka <jh@suse.cz>
4181 * ipa-pure-const.c (special_builtlin_state): New function.
4182 (check_call): Use it instead of special casign BUILT_IN_RETURN.
4183 (propagate_pure_const): Use it.
4185 2010-06-11 Jan Hubicka <jh@suse.cz>
4187 * df-problems.c (df_live_scratch): Convert to bitmap_head.
4188 (df_live_alloc): Initialize df_live_scratch when initializing
4190 (df_live_transfer_function): Update uses of df_live_scratch.
4191 (df_live_free): Free problem_data; clear df_live_scratch before
4192 releasing the obstack.
4193 (df_md_free): Free problem data.
4195 2010-06-11 Jan Hubicka <jh@suse.cz>
4197 * doc/invoke.texi (Wsuggest-attribute): Document.
4198 (Wmissing-noreturn): Remove.
4199 * ipa-pure-const.c (warn_function_noreturn): New function.
4200 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4201 warn_missing_noreturn.
4202 * common.opt (Wsuggest-attribute=noreturn): New.
4203 * tree-flow.h (warn_function_noreturn): Declare.
4204 * tree-cfg.c (execute_warn_function_noreturn): Use
4205 warn_function_noreturn.
4206 (gate_warn_function_noreturn): New.
4207 (pass_warn_function_noreturn): Update.
4209 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
4211 * c-typeck.c (handle_warn_cast_qual): Add loc
4212 parameter. Improve warning message.
4213 (build_c_cast): Pass location to handle_warn_cast_qual.
4215 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
4217 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4218 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
4220 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4222 2010-06-10 Dodji Seketeli <dodji@redhat.com>
4224 Fix bootstap on mips
4225 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4228 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
4230 * system.h (helper_const_non_const_cast): New inline for
4232 (CONST_CAST2): For gcc version <= 4.0 use
4233 new helper to do const/non-const casting.
4235 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4237 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4238 * Makefile.in (OBJS-common): Include insn-enums.o.
4239 (insn-enums.o): New rule.
4240 (simple_generated_c): Add insn-enums.c.
4241 (build/genenums.o): New rule.
4242 (genprogmd): Add "enums".
4243 * genconstants.c (print_enum_type): Declare a C string array
4245 * genenums.c: New file.
4246 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4247 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
4248 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4250 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4252 * doc/md.texi (define_enum_attr): Document.
4253 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4254 * read-md.h (lookup_enum_type): Declare.
4255 * read-md.c (lookup_enum_type): New function.
4256 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4257 * genattrtab.c (attr_desc): Add an enum_name field.
4258 (evaluate_eq_attr): Take the associated attribute as argument.
4259 Get the enum prefix from the enum_name field, if defined.
4260 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
4261 (simplify_test_exp): Pass attr to evaluate_eq_attr.
4262 (add_attr_value): New function, split out from...
4263 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
4264 (write_test_expr): Pass attr to evaluate_eq_attr.
4265 (write_attr_get): Use the enum_name as the enum tag, if defined.
4266 (write_attr_valueq): Use the enum_name as a prefix, if defined.
4267 (find_attr): Initialize enum_name.
4268 (main): Handle DEFINE_ENUM_ATTR.
4269 * gensupport.c (process_rtx): Likewise.
4270 * config/mips/mips.h (mips_tune_attr): Delete.
4271 * config/mips/mips.md (cpu): Use define_attr_enum.
4273 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4275 * doc/md.texi (define_c_enum, define_enum): Document.
4276 * read-md.h (md_constant): Add a parent_enum field.
4277 (enum_value, enum_type): New structures.
4278 (upcase_string, traverse_enum_types): Declare.
4279 * read-md.c (enum_types): New variable.
4280 (upcase_string, add_constant): New functions.
4281 (handle_constants): Don't create the hash table here.
4283 (traverse_md_constants): Don't check for a null md_constants.
4284 (decimal_string, handle_enum, traverse_enum_types): New functions.
4285 (read_md_files): Initialize md_constants and md_enums.
4286 * genconstants.c (print_md_constant): Ignore info argument.
4287 Only print constants that belong to no enum.
4288 (print_enum_type): New function.
4289 (main): Don't pass stdout to print_md_constant. Call print_enum_type
4290 for each defined enum type.
4291 * config/mips/mips.md (processor): New define_enum.
4292 (unspec): New define_c_enum.
4293 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4294 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4295 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4296 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4297 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4298 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4299 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4300 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4301 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4302 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4303 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4304 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4305 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4306 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4307 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4308 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4309 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4310 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4311 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4312 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4313 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4314 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4315 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4316 (UNSPEC_RDDSP): Move to mips-dsp.md.
4317 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4318 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4319 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4320 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4321 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4322 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4323 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4324 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4325 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4326 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4327 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4328 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4329 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4330 Moved to mips-dspr2.md.
4331 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4332 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4333 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4334 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4335 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4336 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4337 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4338 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4339 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4340 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4341 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4342 UNSPEC_LOONGSON_PSADBH)
4343 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4344 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4345 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4346 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4347 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4348 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4349 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4350 (cpu): Update comment.
4351 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4352 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4353 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4354 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4355 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4356 UNSPEC_LOONGSON_PCMPEQ)
4357 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4358 UNSPEC_LOONGSON_PINSR_0)
4359 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4360 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4361 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4362 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4363 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4364 UNSPEC_LOONGSON_PSADBH)
4365 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4366 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4367 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4368 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4369 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4370 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4371 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4372 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4373 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4374 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4375 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4376 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4377 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4378 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4379 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4380 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4381 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4382 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4383 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4384 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4385 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4386 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4387 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4388 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4389 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4390 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4391 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4392 (UNSPEC_RDDSP): Moved from mips.md.
4393 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4394 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4395 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4396 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4397 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4398 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4399 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4400 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4401 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4402 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4403 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4404 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4405 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4406 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4407 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4408 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4409 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4410 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4411 (UNSPEC_SCC): Moved from mips.md.
4412 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4413 "processor_type" to "processor".
4414 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4415 * config/mips/mips.h (processor_type): Delete.
4416 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4417 "processor_type" to "processor".
4419 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4421 * configure.ac (tm_include_list): Add insn-constants.h.
4422 * configure: Regenerate.
4423 * Makefile.in (GTM_H): Move insn-constants.h here from...
4425 * mkconfig.sh: Remove special handling for insn-constants.h.
4427 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4429 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4430 (BUILD_MD): ...this new variable.
4431 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4432 that include the old contents of simple_generated_h and
4434 (simple_generated_h, simple_generated_c): Include them. Add
4436 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4437 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4438 Remove these dependencies from the main rule and include
4439 insn-conditions.md in the command line only if it appears
4440 in the dependency list.
4441 (insn-constants.h, s-constants): Delete.
4442 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4444 (build/genmddeps.o): Likewise.
4445 (genprogrtl): New variable that contains everything from genprogmd
4446 except mddeps and constants.
4447 (genprogmd): Redefine in terms of genprogrtl. Make these programs
4448 depend on $(BUILD_MD)
4449 (genprog): New variable. Make these programs depend on
4451 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4452 (main): Use read_md_files instead of init_rtx_reader_args.
4453 * genconstants.c: As for genmddeps.c.
4454 * read-md.h (read_skip_construct): Declare.
4455 * read-md.c (read_skip_construct): New function.
4456 (handle_file): Allow a null handle_directive, skipping the
4458 (parse_include): Update the comment accordingly.
4460 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4462 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4463 * genmddeps.c: Include read-md.h.
4464 (main): Call init_rtx_reader_args instead of init_md_reader_args.
4465 * genattr.c (main): Likewise.
4466 * genattrtab.c (main): Likewise.
4467 * genautomata.c (main): Likewise.
4468 * gencodes.c (main): Likewise.
4469 * genconditions.c (main): Likewise.
4470 * genconfig.c (main): Likewise.
4471 * genconstants.c (main): Likewise.
4472 * genemit.c (main): Likewise.
4473 * genextract.c (main): Likewise.
4474 * genflags.c (main): Likewise.
4475 * genopinit.c (main): Likewise.
4476 * genoutput.c (main): Likewise.
4477 * genpeep.c (main): Likewise.
4478 * genrecog.c (main): Likewise.
4479 * genpreds.c (main): Likewise.
4480 * gensupport.h (in_fname): Move to read-md.h.
4481 (init_md_reader_args_cb): Rename to...
4482 (init_rtx_reader_args_cb): ...this and return a bool.
4483 (init_md_reader_args): Rename to...
4484 (init_rtx_reader_args): ...this and return a bool.
4485 (include_callback): Move to read-md.h.
4486 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4487 (file_name_list, first_dir_md_include): Move to read-md.c
4488 (first_bracket_include): Delete unused variable.
4489 (last_dir_md_include): Move to read-md.c.
4490 (process_include): Delete, moving code to read-md.c:handle_include.
4491 (process_rtx): Don't handle INCLUDE.
4492 (save_string): Delete.
4493 (rtx_handle_directive): New function.
4494 (init_md_reader_args_cb): Rename to...
4495 (init_rtx_reader_args_cb): ...this and return a boolean success value.
4497 (init_md_reader_args): Rename to...
4498 (init_rtx_reader_args): ...this and return a boolean success value.
4499 * rtl.def (INCLUDE): Delete.
4500 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
4502 * read-rtl.c (read_conditions): Don't gobble ')' here.
4503 (read_mapping): Likewise.
4504 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
4505 Handle top-level non-rtx constructs here rather than in read_rtx_1.
4506 Store the whole queue in *X. Remove call to init_md_reader.
4507 (read_rtx_1): Rename to...
4508 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
4509 Don't handle top-level non-rtx constructs here. Don't handle (nil)
4511 (read_nested_rtx): New function. Handle (nil) here rather than
4513 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
4515 * read-md.h (directive_handler_t): New type.
4516 (in_fname, include_callback): Moved from read-md.h.
4517 (read_constants, init_md_reader): Delete.
4518 (read_md_files): Declare.
4519 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4520 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4522 (read_constants): Rename to...
4523 (handle_constants): ...this. Don't gobble ')' here.
4524 (handle_include, handle_file, handle_toplevel_file)
4525 (parse_include): New functions, mostly taken from gensupport.c.
4526 (init_md_reader): Subsume into...
4527 (read_md_files): ...this new function.
4529 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4531 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4532 (unread_char): Decrement read_md_lineno after putting back '\n'.
4533 * read-md.c (fatal_with_file_and_line): Push back any characters
4534 that we decide not to add to the context.
4535 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
4536 fatal_expected_char in cases where '/' ends a line (for example).
4537 (read_name): Don't increment read_md_lineno here.
4538 (read_escape): Likewise.
4539 (read_quoted_string): Likewise.
4540 (read_braced_string): Likewise.
4542 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4544 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4545 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4546 * genconstants.c: Include read-md.h.
4547 * read-rtl.c (md_constants): Move to read-md.c.
4548 (md_name): Move to read-md.h.
4549 (initialize_iterators): Use leading_string_hash instead of def_hash
4550 and leading_string_eq_p instead of def_name_eq_p.
4551 (read_name): Move to read-md.c.
4552 (def_hash, def_name_eq_p): Delete.
4553 (read_constants, traverse_md_constants): Move to read-md.c.
4554 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4555 * read-md.h: Include hashtab.h.
4556 (md_name): Moved from read-rtl.c.
4557 (md_constant): Moved from read-md.h.
4558 (leading_string_hash, leading_string_eq_p, read_name)
4559 (read_constants, traverse_md_constants): Declare.
4560 * read-md.c (md_constants): Moved from read-rtl.c.
4561 (leading_string_hash, leading_string_eq_p): New functions.
4562 (read_name, read_constants, traverse_md_constants): Moved from
4565 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4567 * read-rtl.c (md_name): New structure.
4568 (read_name): Take an md_name instead of a buffer pointer.
4569 Use the "string" field instead of strcpy when expanding constants.
4570 (read_constants): Remove the tmp_char argument. Update the calls
4571 to read_name, using two local name buffers instead of the tmp_char
4572 argument. Merge the constant-creation code.
4573 (read_conditions): Remove the tmp_char argument. Update the calls
4574 to read_name, using a local name buffer instead of the tmp_char
4576 (read_mapping): Replace tmp_char variable with a local name buffer.
4577 Update the calls to read_name.
4578 (read_rtx_1): Likewise. Update the calls to read_constants and
4581 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4583 * Makefile.in (build/read-md.o): Depend on errors.h.
4584 * read-md.h (error_with_line): Declare.
4585 * read-md.c: Include errors.h.
4586 (message_with_line_1): New function, extracted from...
4587 (message_with_line): ...here.
4588 (error_with_line): New function.
4589 * genattrtab.c: If a call to message_with_line is followed by
4590 "have_error = 1;", replace both statements with a call to
4592 * genoutput.c: Likewise.
4593 * genpreds.c: Likewise.
4594 * genrecog.c: If a call to message_with_line is followed by
4595 "error_count++;", replace both statements with a call to
4597 (errorcount): Delete.
4598 (main): Don't check it.
4599 * gensupport.c: If a call to message_with_line is followed by
4600 "errors = 1;", replace both statements with a call to error_with_line.
4602 (process_define_cond_exec): Check have_error instead of errors.
4603 (init_md_reader_args_cb): Likewise. Don't set errors.
4605 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4607 * read-md.h (read_md_file): Declare.
4608 (read_char, unread_char): New functions.
4609 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4610 (read_quoted_string, read_string): Remove FILE * argument.
4611 * read-md.c (read_md_file): New variable.
4612 (read_md_filename, read_md_lineno): Update comments and remove
4613 unnecessary initialization.
4614 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4615 (read_escape, read_quoted_string, read_braced_string, read_string):
4616 Remove FILE * argument. Update calls accordingly, using read_char
4617 and unread_char instead of getc and ungetc.
4618 * rtl.h (read_rtx): Remove FILE * argument.
4619 * read-rtl.c (iterator_group): Remove FILE * argument from
4621 (iterator_traverse_data): Remove "infile" field.
4622 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4623 (add_mapping, read_name, read_constants, read_conditions)
4624 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4625 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4626 Remove file arguments from all calls, using read_char and unread_char
4627 instead of getc and ungetc.
4628 * gensupport.c (process_include): Preserve read_md_file around
4629 the include. Set read_md_file to the handle of the included file.
4630 Update call to read_rtx.
4631 (init_md_reader_args_cb): Set read_md_file to the handle of the file
4632 and remove local FILE *. Update calls to read_rtx.
4634 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4636 * read-md.h (read_rtx_lineno): Rename to...
4637 (read_md_lineno): ...this.
4638 (read_rtx_filename): Rename to...
4639 (read_md_filename): ...this.
4640 (copy_rtx_ptr_loc): Rename to...
4641 (copy_md_ptr_loc): ...this.
4642 (print_rtx_ptr_loc): Rename to...
4643 (print_md_ptr_loc): ...this.
4644 * read-md.c: Likewise. Update references after renaming.
4645 (string_obstack): Replace RTL with MD in comment.
4646 (set_rtx_ptr_loc): Rename to...
4647 (set_md_ptr_loc): ...this.
4648 (get_rtx_ptr_loc): Rename to...
4649 (get_md_ptr_loc): ...this.
4650 * genconditions.c: Update references after renaming.
4651 * genemit.c: Likewise.
4652 * genoutput.c: Likewise.
4653 * genpreds.c: Likewise.
4654 * gensupport.c: Likewise.
4655 * read-rtl.c: Likewise.
4657 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
4659 * Makefile.in (READ_MD_H): New variable.
4660 (BUILD_RTL): Add build/read-md.o.
4661 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4662 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4663 (build/genattrtab.o, build/genconditions.o build/genemit.o)
4664 (build/genextract.o, build/genflags.o, build/genoutput.o)
4665 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4666 (build/read-md.o): New rule.
4667 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4668 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4669 * coretypes.h: ...here.
4670 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4671 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4672 * genattr.c: Include read-md.h.
4673 * genattrtab.c: Likewise.
4674 * genconditions.c: Likewise.
4675 * genemit.c: Likewise.
4676 * genextract.c: Likewise.
4677 * genflags.c: Likewise.
4678 * genoutput.c: Likewise.
4679 * genpreds.c: Likewise.
4680 * genrecog.c: Likewise.
4681 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4682 (join_c_conditions, print_c_condition, read_rtx_filename)
4683 (read_rtx_lineno): Move to read-md.h.
4684 * read-rtl.c: Include read-md.h.
4685 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4686 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4687 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4688 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4689 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4690 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4691 (read_braced_string, read_string): Move to read-md.c.
4692 (read_rtx): Move some initialization to init_md_reader and call
4693 init_md_reader here.
4694 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4696 * gensupport.c: Include read-md.h.
4697 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4698 * read-md.h, read-md.c: New files.
4700 2010-06-10 Anatoly Sokolov <aesok@post.ru>
4702 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4703 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4704 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4705 * config/moxie/moxie.c (moxie_function_value): Make static.
4706 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4707 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4709 2010-06-10 Martin Jambor <mjambor@suse.cz>
4711 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4712 * dbgcnt.def (tree_sra): New counter.
4713 * tree-sra.c: Include dbgcnt.h.
4714 (gate_intra_sra): Check tree_sra debug counter.
4716 2010-06-10 Martin Jambor <mjambor@suse.cz>
4718 PR tree-optimization/44258
4719 * tree-sra.c (build_access_subtree): Return false iff there is a
4721 (build_access_trees): Likewise.
4722 (analyze_all_variable_accesses): Disqualify candidates if
4723 build_access_trees returns true for them.
4725 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
4728 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4729 tail-recurse into canonical node. Fast-forward over
4730 non-canonical VALUEs.
4732 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
4735 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4736 (*addsi_1_zext) <TYPE_LEA>: Likewise.
4737 (add lea splitter): Likewise.
4738 (add_zext lea splitter): Likewise.
4740 2010-06-10 Joseph Myers <joseph@codesourcery.com>
4742 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4744 2010-06-10 Jan Hubicka <jh@suse.cz>
4746 * df-problems.c (df_live_problem_data): Add live_bitmaps.
4747 (df_live_alloc): Initialize problem data and live_osbtacks.
4748 (df_live_finalize): Remove obstack, problem data; do not
4750 (df_live_top_dump, df_live_bottom_dump): Do not dump old
4751 data when not allocated.
4752 (df_live_verify_solution_start): Do not allocate problem data.
4753 (df_live_verify_solution_end): Check if out is allocated.
4754 (struct df_md_problem_data): New structure.
4755 (df_md_alloc): Allocate problem data.
4756 (df_md_free): Free problem data; do not clear bitmaps.
4758 2010-06-10 Jan Beulich <jbeulich@novell.com>
4761 * configure.ac: Replace $() with ${} when intending to expand
4762 variables rather than invoking commands.
4763 * configure: Re-generate.
4765 2010-06-10 Jan Hubicka <jh@suse.cz>
4767 PR rtl-optimization/44460
4768 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4769 TYPE_NEEDS_CONSTRUCTING sanity check.
4771 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
4773 * doc/include/fdl.texi: Move to GFDL version 1.3.
4775 * doc/cpp.texi: Move to GFDL version 1.3.
4776 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
4777 * doc/gccint.texi: Move to GFDL version 1.3.
4778 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
4779 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
4780 * doc/invoke.texi: Move to GFDL version 1.3.
4782 2010-06-09 Jan Hubicka <jh@suse.cz>
4784 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4786 (propagate) ... here; swap the order.
4788 2010-06-09 Jan Hubicka <jh@suse.cz>
4790 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4791 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4792 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4793 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4795 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4797 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4798 Do not the gather memory reference in the outer loop if the step
4801 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
4803 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4804 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4805 8 to 4. Minor change of the related comments.
4807 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4809 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4810 the scev analysis when the variable is not used outside the loop
4811 in a close phi node: call compute_overall_effect_of_inner_loop.
4813 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4815 * graphite-sese-to-poly.c (single_pred_cond): Renamed
4816 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
4817 (build_sese_conditions_before): Renamed call to single_pred_cond.
4818 (build_sese_conditions_after): Same.
4820 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
4822 * graphite-poly.h: Fix comments and indentation.
4823 * graphite-sese-to-poly.c: Same.
4824 (build_sese_conditions_before): Compute stmt and gbb only when needed.
4825 * tree-chrec.c: Fix comments and indentation.
4826 (tree-ssa-loop-niter.c): Same.
4828 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
4830 PR rtl-optimization/42461
4831 * dce.c (deletable_insn_p): Return true for const or pure calls again.
4832 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4834 2010-06-09 Jan Hubicka <jh@suse.cz>
4836 * bitmap.c (bitmap_and): Walk array forward.
4837 (bitmap_and_compl_into): Likewise.
4838 (bitmap_xor): Likewise.
4839 (bitmap_xor_into): Likewise.
4840 (bitmap_equal_p): Likewise.
4841 (bitmap_intersect_p): Likewise.
4842 (bitmap_intersect_compl_p): Likewise.
4843 (bitmap_ior_and_into): Likewise.
4844 (bitmap_elt_copy): Likewise.
4845 (bitmap_and_compl): Likewise.
4846 (bitmap_elt_ior): Likewise.
4848 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
4850 * opts-common.c (prune_options): Ensure replacement argv array
4851 is correctly terminated by a NULL entry.
4853 2010-06-09 Jan Hubicka <jh@suse.cz>
4855 * cgraph.h (varpool_first_static_initializer,
4856 varpool_next_static_initializer): Make checking only when
4858 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4859 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4860 gcc_assert to gcc_checking_assert.
4861 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4862 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4863 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4864 op_iter_init_phiuse, op_iter_init_phidef,
4865 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4866 gcc_checking_assert.
4867 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4868 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4869 partition_is_global, live_on_entry, live_on_exit,
4870 live_merge_and_clear): Likewise.
4871 * system.h (gcc_checking_assert): New macro.
4872 * gimple.h (set_bb_seq): Use gcc_checking_assert.
4874 2010-06-09 Jason Merrill <jason@redhat.com>
4876 * Makefile.in (TAGS): Collect tags info from c-family.
4878 2010-06-09 Jan Hubicka <jh@suse.cz>
4880 * gimple.h (gcc_gimple_checking_assert): New macro.
4881 (gimple_set_def_ops, gimple_set_use_ops,
4882 gimple_set_vuse, gimple_set_vdef,
4883 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4884 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4885 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4886 gimple_asm_output_op, gimple_asm_output_op_ptr,
4887 gimple_asm_set_output_op, gimple_asm_clobber_op,
4888 gimple_asm_set_clobber_op, gimple_asm_label_op,
4889 gimple_asm_set_label_op, gimple_try_set_kind,
4890 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4891 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4892 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4893 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4894 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4895 gimple_omp_for_set_initial, gimple_omp_for_final,
4896 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4897 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4898 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4899 conditional with ENABLE_GIMPLE_CHECKING.
4900 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4902 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
4904 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4905 (get_computation_cost_at): Use it.
4906 (determine_use_iv_cost_condition): Likewise.
4907 (determine_iv_cost): Likewise.
4909 2010-06-09 Richard Guenther <rguenther@suse.de>
4911 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4914 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4916 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4918 2010-06-09 Martin Jambor <mjambor@suse.cz>
4920 PR tree-optimization/44423
4921 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4922 (analyze_access_subtree): Pass negative allow_replacements to children
4923 if the current type is scalar.
4925 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4928 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4929 * doc/plugins.texi (Plugin license check): Update information
4930 on type of plugin_is_GPL_compatible.
4931 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4932 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4934 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4936 * config/arm/arm.c (thumb2_reorg): New function.
4937 (arm_reorg): Call it.
4938 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4939 arithmetic operations): Delete.
4941 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4944 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4947 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4950 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4952 2010-06-08 Jan Hubicka <jh@suse.cz>
4954 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4955 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4957 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4959 PR tree-optimization/39874
4961 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4963 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4964 same_bool_result_p): New.
4965 (and_var_with_comparison, and_var_with_comparison_1,
4966 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4967 (or_var_with_comparison, or_var_with_comparison_1,
4968 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4969 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4970 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4971 of combine_comparisons.
4972 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4974 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4976 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4977 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4978 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4979 pdp11_function_value_regno_p): New functions.
4980 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4981 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4983 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4985 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4986 Thumb-2 in the MINUS case.
4988 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4990 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4992 * doc/gty.texi (GTY Options): Document typed GC allocation and
4993 variable_size GTY option.
4995 * ggc-internal.h: New.
4997 * ggc.h: Update copyright year.
4998 (digit_string): Move to stringpool.c.
4999 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5000 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5001 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5002 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5003 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5004 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5005 (ggc_force_collect, ggc_get_size, ggc_statistics)
5006 (ggc_print_common_statistics): Move to ggc-internal.h.
5007 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5008 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5009 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5010 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5011 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5012 (ggc_alloc_zone_pass_stat): Remove.
5013 (ggc_internal_alloc_stat, ggc_internal_alloc)
5014 (ggc_internal_cleared_alloc_stat): New.
5015 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5016 (ggc_internal_vec_alloc_stat)
5017 (ggc_internal_cleared_vec_alloc_stat)
5018 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5019 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5020 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5021 (ggc_cleared_alloc_ptr_array_two_args): New.
5022 (htab_create_ggc, splay_tree_new_ggc): Redefine.
5023 (ggc_splay_alloc): Change the type of the first argument to
5025 (ggc_alloc_string): Make macro.
5026 (ggc_alloc_string_stat): New.
5027 (ggc_strdup): Redefine.
5028 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5029 (ggc_alloc_rtvec_sized): New.
5030 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5031 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5032 (ggc_internal_cleared_alloc_zone_stat)
5033 (ggc_internal_zone_alloc_stat)
5034 (ggc_internal_zone_cleared_alloc_stat)
5035 (ggc_internal_zone_vec_alloc_stat)
5036 (ggc_alloc_zone_rtx_def_stat)
5037 (ggc_alloc_zone_tree_node_stat)
5038 (ggc_alloc_zone_cleared_tree_node_stat)
5039 (ggc_alloc_cleared_gimple_statement_d_stat): New.
5041 * ggc-common.c: Include ggc-internal.h.
5042 (ggc_internal_cleared_alloc_stat): Rename from
5043 ggc_alloc_cleared_stat.
5044 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5045 (ggc_calloc): Remove.
5046 (ggc_cleared_alloc_htab_ignore_args): New.
5047 (ggc_cleared_alloc_ptr_array_two_args): New.
5048 (ggc_splay_alloc): Add obj_type parameter.
5049 (init_ggc_heuristics): Formatting fixes.
5051 * ggc-none.c: Update copyright year.
5052 (ggc_alloc_stat): Rename to ggc_alloc_stat.
5053 (ggc_alloc_cleared_stat): Rename to
5054 ggc_internal_cleared_alloc_stat.
5055 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5057 * ggc-page.c: Update copyright year. Include ggc-internal.h.
5058 Remove references to ggc_alloc in comments.
5059 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5060 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5061 (new_ggc_zone, destroy_ggc_zone): Remove.
5062 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5064 * ggc-zone.c: Include ggc-internal.h. Remove references to
5065 ggc_alloc in comments.
5066 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5067 (ggc_internal_alloc_zone_pass_stat): New.
5068 (ggc_internal_cleared_alloc_zone_stat): New.
5069 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5070 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5071 (new_ggc_zone, destroy_ggc_zone): Remove.
5073 * stringpool.c: Update copyright year. Include ggc-internal.h
5074 (digit_vector): Make static.
5075 (digit_string): Moved from ggc.h.
5076 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5077 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5079 * Makefile.in (GGC_INTERNAL_H): New.
5080 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5081 $(GGC_INTERNAL_H) to dependencies.
5083 * gentype.c: Update copyright year.
5084 (walk_type): Accept variable_size GTY option.
5085 (USED_BY_TYPED_GC_P): New macro.
5086 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
5087 whitespace at the end of strings.
5088 (get_type_specifier, variable_size_p): New functions.
5089 (alloc_quantity, alloc_zone): New enums.
5090 (write_typed_alloc_def): New function.
5091 (write_typed_struct_alloc_def): Likewise.
5092 (write_typed_typed_typedef_alloc_def): Likewise.
5093 (write_typed_alloc_defns): Likewise.
5094 (output_typename, write_splay_tree_allocator_def): Likewise.
5095 (write_splay_tree_allocators): Likewise.
5096 (main): Call write_typed_alloc_defns and
5097 write_splay_tree_allocators.
5099 * lto-streamer.h (lto_file_decl_data_ptr): New.
5101 * passes.c (order): Define using cgraph_node_ptr.
5103 * strinpool.c (struct string_pool_data): Declare nested_ptr using
5106 * gimple.h (union gimple_statement_d): Likewise.
5108 * rtl.h (struct rtx_def): Likewise.
5109 (struct rtvec_def): Likewise.
5111 * tree.h (union tree_node): Likewise.
5113 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5115 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5117 * tree-scalar-evolution.c (scev_initialize): Likewise.
5119 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5121 * dwarf2asm.c (dw2_force_const_mem): Likewise.
5123 * omp-low.c (lower_omp_critical): Likewise.
5125 * bitmap.h (struct bitmap_head_def): Update comment to not
5126 reference ggc_alloc.
5128 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5130 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5132 * ipa-prop.c (duplicate_ggc_array): Rename to
5133 duplicate_ipa_jump_func_array. Use typed GC allocation.
5134 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5136 * gimple.c (gimple_alloc_stat): Use
5137 ggc_alloc_cleared_gimple_statement_d_stat.
5139 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5141 * tree.c (make_node_stat): Use
5142 ggc_alloc_zone_cleared_tree_node_stat.
5143 (make_tree_vec_stat): Likewise.
5144 (build_vl_exp_stat): Likewise.
5145 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5146 (make_tree_binfo_stat): Likewise.
5147 (tree_cons_stat): Likewise.
5149 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5150 (shallow_copy_rtx_stat): Likewise.
5151 (make_node_stat): Likewise.
5153 * lto-symtab.c: Fix comment.
5155 * tree-cfg.c (create_bb): Update comment to not reference
5157 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5159 * varpool.c (varpool_node): Use typed GC allocation.
5160 (varpool_extra_name_alias): Likewise.
5162 * varasm.c (emutls_decl): Likewise.
5163 (get_unnamed_section): Likewise.
5164 (get_noswitch_section): Likewise.
5165 (get_section): Likewise.
5166 (get_block_for_section): Likewise.
5167 (build_constant_desc): Likewise.
5168 (create_constant_pool): Likewise.
5169 (force_const_mem): Likewise.
5171 * tree.c (build_vl_exp_stat): Likewise.
5172 (build_real): Likewise.
5173 (build_string): Likewise.
5174 (decl_debug_expr_insert): Likewise.
5175 (decl_value_expr_insert): Likewise.
5176 (type_hash_add): Likewise.
5177 (build_omp_clause): Likewise.
5179 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5181 * tree-ssa.c (init_tree_ssa): Likewise.
5183 * tree-ssa-structalias.c (heapvar_insert): Likewise.
5185 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5187 * tree-ssa-loop-niter.c (record_estimate): Likewise.
5189 * tree-ssa-alias.c (get_ptr_info): Likewise.
5191 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5193 * tree-phinodes.c (allocate_phi_node): Likewise.
5195 * tree-iterator.c (tsi_link_before): Likewise.
5196 (tsi_link_after): Likewise.
5198 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5200 * tree-dfa.c (create_var_ann): Likewise.
5202 * tree-cfg.c (create_bb): Likewise.
5204 * toplev.c (alloc_for_identifier_to_locale): Likewise.
5205 (general_init): Likewise.
5207 * stringpool.c (stringpool_ggc_alloc): Likewise.
5208 (gt_pch_save_stringpool): Likewise.
5210 * sese.c (if_region_set_false_region): Likewise.
5212 * passes.c (do_per_function_toporder): Likewise.
5214 * optabs.c (set_optab_libfunc): Likewise.
5215 (set_conv_libfunc): Likewise.
5217 * lto-symtab.c (lto_symtab_register_decl): Likewise.
5219 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5220 (input_eh_region): Likewise.
5221 (input_eh_lp): Likewise.
5222 (make_new_block): Likewise.
5223 (unpack_ts_real_cst_value_fields): Likewise.
5225 * lto-section-in.c (lto_new_in_decl_state): Likewise.
5227 * lto-cgraph.c (input_node_opt_summary): Likewise.
5229 * loop-init.c (loop_optimizer_init): Likewise.
5231 * lambda.h (lambda_vector_new): Likewise.
5233 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5235 * ira.c (update_equiv_regs): Likewise.
5237 * ipa.c (cgraph_node_set_new): Likewise.
5238 (cgraph_node_set_add): Likewise.
5239 (varpool_node_set_new): Likewise.
5240 (varpool_node_set_add): Likewise.
5242 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5243 (duplicate_ipa_jump_func_array): Likewise.
5244 (ipa_read_node_info): Likewise.
5246 * ipa-cp.c (ipcp_create_replace_map): Likewise.
5248 * integrate.c (get_hard_reg_initial_val): Likewise.
5250 * gimple.c (gimple_alloc_stat): Likewise.
5251 (gimple_build_omp_for): Likewise.
5252 (gimple_seq_alloc): Likewise.
5253 (gimple_copy): Likewise.
5255 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5256 (gsi_insert_after_without_update): Likewise.
5258 * function.c (add_frame_space): Likewise.
5259 (insert_temp_slot_address): Likewise.
5260 (assign_stack_temp_for_type): Likewise.
5261 (allocate_struct_function): Likewise.
5262 (types_used_by_var_decl_insert): Likewise.
5264 * except.c (init_eh_for_function): Likewise.
5265 (gen_eh_region): Likewise.
5266 (gen_eh_region_catch): Likewise.
5267 (gen_eh_landing_pad): Likewise.
5268 (add_call_site): Likewise.
5270 * emit-rtl.c (get_mem_attrs): Likewise.
5271 (get_reg_attrs): Likewise.
5272 (start_sequence): Likewise.
5273 (init_emit): Likewise.
5275 * dwarf2out.c (new_cfi): Likewise.
5276 (queue_reg_save): Likewise.
5277 (dwarf2out_frame_init): Likewise.
5278 (new_loc_descr): Likewise.
5279 (find_AT_string): Likewise.
5280 (new_die): Likewise.
5281 (add_var_loc_to_decl): Likewise.
5282 (clone_die): Likewise.
5283 (clone_as_declaration): Likewise.
5284 (break_out_comdat_types): Likewise.
5285 (new_loc_list): Likewise.
5286 (loc_descriptor): Likewise.
5287 (add_loc_descr_to_each): Likewise.
5288 (add_const_value_attribute): Likewise.
5289 (tree_add_const_value_attribute): Likewise.
5290 (add_comp_dir_attribute): Likewise.
5291 (add_name_and_src_coords_attributes): Likewise.
5292 (lookup_filename): Likewise.
5293 (store_vcall_insn): Likewise.
5294 (dwarf2out_init): Likewise.
5296 * dbxout.c (dbxout_init): Likewise.
5298 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5300 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5302 * config/score/score7.c (score7_output_external): Likewise.
5304 * config/score/score3.c (score3_output_external): Likewise.
5306 * config/s390/s390.c (s390_init_machine_status): Likewise.
5308 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5309 (rs6000_init_machine_status): Likewise.
5310 (output_toc): Likewise.
5312 * config/pa/pa.c (pa_init_machine_status): Likewise.
5313 (get_deferred_plabel): Likewise.
5315 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5317 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5319 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5321 * config/mep/mep.c (mep_init_machine_status): Likewise.
5322 (mep_note_pragma_flag): Likewise.
5324 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5326 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5328 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5330 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5331 (i386_pe_maybe_record_exported_symbol): Likewise.
5333 * config/i386/i386.c (get_dllimport_decl): Likewise.
5334 (ix86_init_machine_status): Likewise.
5335 (assign_386_stack_local): Likewise.
5337 * config/frv/frv.c (frv_init_machine_status): Likewise.
5339 * config/darwin.c (machopic_indirection_name): Likewise.
5341 * config/cris/cris.c (cris_init_machine_status): Likewise.
5343 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5345 * config/avr/avr.c (avr_init_machine_status): Likewise.
5347 * config/arm/arm.c (arm_init_machine_status): Likewise.
5349 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5350 (alpha_need_linkage): Likewise.
5351 (alpha_use_linkage): Likewise.
5353 * cgraph.c (cgraph_allocate_node): Likewise.
5354 (cgraph_create_edge_1): Likewise.
5355 (cgraph_create_indirect_edge): Likewise.
5356 (cgraph_add_asm_node): Likewise.
5358 * cfgrtl.c (init_rtl_bb_info): Likewise.
5360 * cfgloop.c (alloc_loop): Likewise.
5361 (rescan_loop_exit): Likewise.
5363 * cfg.c (init_flow): Likewise.
5364 (alloc_block): Likewise.
5365 (unchecked_make_edge): Likewise.
5367 * c-parser.c (c_parse_init): Likewise.
5368 (c_parse_file): Likewise.
5370 * c-decl.c (bind): Likewise.
5371 (record_inline_static): Likewise.
5372 (push_scope): Likewise.
5373 (make_label): Likewise.
5374 (lookup_label_for_goto): Likewise.
5375 (finish_struct): Likewise.
5376 (finish_enum): Likewise.
5377 (c_push_function_context): Likewise.
5379 * bitmap.c (bitmap_element_allocate): Likewise.
5380 (bitmap_gc_alloc_stat): Likewise.
5382 * alias.c (record_alias_subset): Likewise.
5383 (init_alias_analysis): Likewise.
5385 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
5387 * fold-const.c (fold_comparison): Remove redundant parenthesis.
5388 * tree-inline.c (expand_call_inline): Pass translated return value of
5389 cgraph_inline_failed_string to diagnostic function.
5391 2010-06-08 Andrew Pinski <pinskia@gmail.com>
5392 Shujing Zhao <pearly.zhao@oracle.com>
5395 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5396 implicit bad conversions is initialization.
5397 (error_init): Use gmsgid instead of msgid for argument name and change
5399 (pedwarn_init): Use gmsgid instead of msgid for argument name and
5400 change the call for pedwarn.
5401 (warning_init): Use gmsgid instead of msgid for argument name and
5402 change the call for warning.
5404 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
5406 * config/mips/mips-protos.h (mips_print_operand): Delete.
5407 (mips_print_operand_address): Delete.
5408 * config/mips/mips.h (mips_print_operand_punct): Delete.
5409 (PRINT_OPERAND): Delete.
5410 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5411 (PRINT_OPERAND_ADDRESS): Delete.
5412 * config/mips/mips.c (mips_print_operand_punct): Make static.
5413 (mips_print_operand_address): Make static.
5414 (mips_print_operand): Make static. Call
5415 mips_print_operand_punct_valid_p.
5416 (mips_print_operand_punct_valid_p): New function.
5417 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5418 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5420 2010-06-07 Jan Hubicka <jh@suse.cz>
5423 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5426 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
5428 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5431 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5433 * doc/sourcebuild.texi (Effective-Target Keywords, Other
5434 attributes): Document gas.
5436 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
5438 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5439 <TYPE_LEA>: Split instruction.
5440 <default>: Remove alternative 2 handling.
5441 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5442 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5443 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5445 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5446 (ashift_zext lea splitter): Use DImode for multiplication.
5448 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5449 to generate addition.
5451 2010-06-07 Joseph Myers <joseph@codesourcery.com>
5453 * common.opt (fira-verbose): Use Var.
5454 (fpcc-struct-return): Use Init instead of VarExists.
5455 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5457 * flags.h (flag_signed_char, flag_short_enums,
5458 flag_pcc_struct_return, flag_ira_verbose,
5459 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5460 * toplev.c (flag_detailed_statistics, flag_signed_char,
5461 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5462 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5463 * toplev.h (flag_crossjumping, flag_if_conversion,
5464 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5465 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5466 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5467 flag_cprop_registers, time_report, flag_ira_loop_pressure,
5468 flag_ira_coalesce, flag_ira_move_spills,
5469 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5471 2010-06-07 Jan Hubicka <jh@suse.cz>
5473 * df-core.c (df_analyze_problem): Do verification after allocation.
5475 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5476 (df_lr_alloc): Initialize problem data; move bitmaps to
5478 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5479 (df_lr_verify_solution_start): Do not initialize problem data;
5480 allocate bitmaps in lr_bitmaps.
5481 (df_lr_verify_solution_end): Do not free problem data.
5483 2010-06-07 Jan Hubicka <jh@suse.cz>
5485 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5486 if caller is noreturn.
5487 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5488 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5489 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5490 * ipa-pure-const.c (check_decl): Add IPA parameter.
5491 (state_from_flags): New function.
5492 (better_state, worse_state): New functions.
5493 (check_call): When in IPA mode, do not care about callees.
5494 (check_load, check_store): Update.
5495 (check_ipa_load, check_ipa_store): New.
5496 (check_stmt): When in IPA mode, use IPA checkers.
5497 (analyze_function): Use state_from_flags.
5498 (propagate): Check indirect edges and references.
5500 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
5502 PR rtl-optimization/44404
5503 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5504 of count_occurrences to see if it's safe to modify mem_insn.
5506 2010-06-07 Richard Guenther <rguenther@suse.de>
5508 * gimplify.c (gimplify_cleanup_point_expr): For empty body
5509 and EH-only cleanup drop the cleanup instead of inserting it
5512 2010-06-07 Ira Rosen <irar@il.ibm.com>
5514 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5516 * targhooks.c (default_builtin_vectorization_cost): New function.
5517 * targhooks.h (default_builtin_vectorization_cost): Declare.
5518 * target.h (enum vect_cost_for_stmt): Define.
5519 (builtin_vectorization_cost): Change argument and comment.
5520 * tree-vectorizer.h: Remove cost model macros.
5521 * tree-vect-loop.c: Include target.h.
5522 (vect_get_cost): New function.
5523 (vect_estimate_min_profitable_iters): Replace cost model macros with
5524 calls to vect_get_cost.
5525 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5526 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5527 default implementation.
5528 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5529 calls to target hook builtin_vectorization_cost.
5530 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5532 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5533 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5534 implementation to return costs.
5535 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5536 * config/spu/spu.h: Remove vectorizer cost model macros.
5537 * config/i386/i386.h: Likewise.
5538 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5539 a call to target hook builtin_vectorization_cost.
5541 2010-06-06 Sriraman Tallam <tmsriram@google.com>
5544 * config/i386/i386.c (override_options): Turn zee pass on for level 2
5545 and above and defer till target is known.
5546 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5549 2010-05-25 Jan Hubicka <jh@suse.cz>
5551 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5552 (df_compact_blocks): Likewise.
5553 * df.h (struct df): Turn hardware_regs_used,
5554 regular_block_artificial_uses, eh_block_artificial_uses,
5555 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5557 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5558 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5559 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5560 df_scan_blocks, df_insn_delete, df_insn_rescan,
5561 df_insn_rescan_debug_internal, df_insn_rescan_all,
5562 df_process_deferred_rescans, df_process_deferred_rescans,
5563 df_notes_rescan, df_get_call_refs, df_get_call_refs,
5564 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5565 df_record_entry_block_defs, df_record_exit_block_uses,
5566 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5567 df_scan_verify): Update.
5569 2010-05-25 Dodji Seketeli <dodji@redhat.com>
5572 * c-common.c (is_typedef_decl): Move this definition ...
5573 * tree.c (is_typedef_decl): ... here.
5574 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5575 * c-common.h (is_typedef_decl): Move this declaration ...
5576 * tree.h (is_typedef_decl): ... here.
5577 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5578 * dwarf2out.c (is_naming_typedef_decl): New function.
5579 (gen_tagged_type_die): Split out of ...
5580 (gen_type_die_with_usage): ... this function. When an anonymous
5581 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5582 is emitted for the typedef.
5583 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5584 anonymous tagged types.
5586 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
5589 * c-decl.c (grokdeclarator): Delete warning.
5591 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
5593 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5594 newly built CALL_EXPR.
5595 * tree-profile.c (tree_profiling): Don't profile functions produced
5598 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
5602 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5603 endianness-independent.
5605 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
5607 * c-common.c: Move to c-family/.
5608 * c-common.def: Likewise.
5609 * c-common.h: Likewise.
5610 * c-cppbuiltin.c: Likewise.
5611 * c-dump.c: Likewise.
5612 * c-format.c: Likewise.
5613 * c-format.h : Likewise.
5614 * c-gimplify.c: Likewise.
5615 * c-lex.c: Likewise.
5616 * c-omp.c: Likewise.
5618 * c-opts.c: Likewise.
5619 * c-pch.c: Likewise.
5620 * c-ppoutput.c: Likewise.
5621 * c-pragma.c: Likewise.
5622 * c-pragma.h: Likewise.
5623 * c-pretty-print.c: Likewise.
5624 * c-pretty-print.h: Likewise.
5625 * c-semantics.c: Likewise.
5626 * stub-objc.c: Likewise.
5628 * gengtype.c (get_file_langdir): Special-case files in c-family/.
5629 (get_output_file_with_visibility): Fix name for c-common.h.
5630 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5632 * c-tree.h: Update include path for moved files.
5633 * c-lang.c: Likewise.
5634 * c-lang.h: Likewise.
5635 * c-parser.c: Likewise.
5636 * c-convert.c: Likewise.
5637 * c-decl.c: Likewise.
5638 * c-objc-common.c: Likewise.
5639 * configure.ac: Make sure c-family/ exists in the build directory.
5640 * configure: Regenerate.
5641 * Makefile.in: Update paths for moved files. Regroup files per
5642 location and update dependencies. Move generated_files down after
5645 * config/spu/spu-c.c: Update paths for moved files.
5646 * config/mep/mep-pragma.c: Likewise.
5647 * config/darwin-c.c: Likewise.
5648 * config/i386/msformat-c.c: Likewise.
5649 * config/i386/i386-c.c: Likewise.
5650 * config/avr/avr-c.c: Likewise.
5651 * config/sol2-c.c: Likewise.
5652 * config/ia64/ia64-c.c: Likewise.
5653 * config/rs6000/rs6000-c.c: Likewise.
5654 * config/arm/arm.c: Likewise.
5655 * config/arm/arm-c.c: Likewise.
5656 * config/h8300/h8300.c: Likewise.
5657 * config/v850/v850-c.c: Likewise.
5659 * config/t-darwin: Fix dependencies for moved files.
5660 * config/t-sol2: Fix dependencies for moved files.
5661 * config/mep/t-mep: Fix dependencies for moved files.
5662 * config/ia64/t-ia64: Fix dependencies for moved files.
5663 * config/rs6000/t-rs6000: Fix dependencies for moved files.
5664 * config/v850/t-v850: Fix dependencies for moved files.
5665 * config/v850/t-v850e: Fix dependencies for moved files.
5667 * config/m32c/m32c-pragma.c
5669 * po/exgettext: Look in c-family/ also.
5671 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
5673 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5674 (mark_control_dependent_edges_necessary): Call it instead of marking
5675 the last statement manually.
5676 (propagate_necessity): Likewise.
5678 2010-06-05 Jan Hubicka <jh@suse.cz>
5680 * basic-block.h (compute_dominance_frontiers): Updated.
5681 (compute_idf): Likewise.
5683 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5684 for dominance frontiers.
5685 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5686 (insert_updated_phi_nodes_for): Likewise.
5687 (update_ssa): Likewise.
5688 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5689 (compute_dominance_frontiers): Likewise.
5690 (compute_idf): Likewise.
5691 * df-problems.c (df_md_local_compute): Likewise.
5693 2010-06-05 Anatoly Sokolov <aesok@post.ru>
5695 * target.h (struct gcc_target): Add memory_move_cost field.
5696 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5697 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5698 * targhooks.c (default_memory_move_cost): New function.
5699 * targhooks.h (default_memory_move_cost): Declare function.
5700 * reload.h (memory_move_cost): Declare.
5701 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5702 * reginfo.c (memory_move_cost): New function.
5703 (memory_move_secondary_cost): Change type of 'in' argument to bool.
5704 * ira.h (ira_memory_move_cost): Update comment.
5705 * ira.c: (ira_memory_move_cost): Update comment.
5706 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5707 with memory_move_cost.
5708 * postreload.c (reload_cse_simplify_set): (Ditto.).
5709 * reload1.c (choose_reload_regs): (Ditto.).
5710 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5711 (MEMORY_MOVE_COST): Revise documentation.
5713 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5714 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5715 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5716 type of 'in' argument to bool.
5717 (TARGET_MEMORY_MOVE_COST): Define.
5719 2010-06-05 Jan Hubicka <jh@suse.cz>
5721 * ipa-pure-const.c (propagate): Fix typo in handling of functions
5722 that cannot return. Be more careful when merging the results with
5723 previously known ones.
5725 2010-06-05 Matthias Klose <doko@ubuntu.com>
5727 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5728 function to add the -iplugindir option.
5729 (find_plugindir_spec_function): Add new declaration and function.
5730 (static_spec_func): Use it for "find-plugindir".
5732 2010-06-05 Jakub Jelinek <jakub@redhat.com>
5735 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5736 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5737 statement expression.
5739 2010-06-05 Jan Hubicka <jh@suse.cz>
5741 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5742 (df_rd_problem_data): Convert sparse_invalidated_by_call,
5743 dense_invalidated_by_call to bitmap head.
5744 (df_rd_alloc, df_rd_bb_local_compute_process_def,
5745 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5746 df_rd_start_dump, df_lr_verify_transfer_functions,
5747 df_live_verify_transfer_functions, df_chain_create_bb,
5748 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5749 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5750 df_simulate_one_insn_forwards, df_md_alloc,
5751 df_md_bb_local_compute_process_def,
5752 df_md_bb_local_compute_process_def, df_md_local_compute,
5753 df_md_transfer_function df_md_free): Update.
5755 2010-06-05 Joseph Myers <joseph@codesourcery.com>
5758 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5759 target type for ADDR_EXPR; require no changes to qualifiers except
5761 * c-tree.h (c_build_type_variant): Remove.
5763 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5765 * genautomata.c (get_excl_set): Do work per element, not per char.
5766 (check_presence_pattern_sets): Similar.
5767 (check_absence_pattern_sets): Similar.
5769 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
5771 * genautomata.c (curr_state_pass_num): Delete.
5772 (min_issue_delay_pass_states): Delete.
5773 (min_issue_delay): Delete.
5774 (initiate_min_issue_delay_pass_states): Delete.
5775 (output_min_issue_delay_table): Compute min_issue_delay_vect
5776 using a breadth-first search variant.
5777 (output_tables): Don't call initiate_min_issue_delay_pass_states.
5779 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
5782 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5783 (df_byte_lr_bb_local_compute): Likewise.
5785 2010-06-03 Jason Merrill <jason@redhat.com>
5787 Implement noexcept operator (5.3.7)
5788 * c-common.c (c_common_reswords): Add noexcept.
5789 * c-common.h (enum rid): Add RID_NOEXCEPT.
5791 2010-06-04 Joseph Myers <joseph@codesourcery.com>
5793 * config/darwin-driver.c (darwin_default_min_version): Use
5794 GCC-specific formats in diagnostics.
5795 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5797 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5798 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5799 eval_spec_function, handle_braces, process_brace_body, main,
5800 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5801 getenv_spec_function, compare_version_strings,
5802 version_compare_spec_function): Use GCC-specific formats in
5805 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5807 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5808 that operand 0 and operand 1 are equal.
5809 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5810 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5811 and operand 1 are equal.
5812 <default>: Ditto. Remove ??? comment.
5813 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5814 and operand 1 are equal.
5815 <default>: Ditto. Remove ??? comment.
5816 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5818 (*add<mode>_4) <default>: Ditto.
5819 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5821 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
5823 * config/i386/i386-protos.h (ix86_print_operand): Declare.
5824 * config/i386/i386.c (ix86_print_operand): Make non-static.
5825 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5826 * output.h (output_operand): Declare.
5827 * final.c (output_operand): Make non-static.
5829 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
5831 PR rtl-optimization/44013
5832 * sched-deps.c (add_dependence_list_and_free): Don't free lists
5833 when processing debug insns.
5836 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5837 recursing. Check that recursion is bounded. Rename inner var
5838 to avoid hiding incoming argument.
5840 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5842 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5847 (*addqi_ext_1_rex64): Ditto.
5848 (*addqi_ext_1): Ditto.
5850 (*addqi_4): Check for incdec_operand in QImode.
5852 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5853 using SWI mode iterator.
5854 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5855 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5857 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5858 using SWI mode iterator.
5860 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
5863 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5864 * c-format.c (gcc_diag_flag_specs): Add hash.
5865 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5866 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5867 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5868 pp_c_cv_qualifiers. Handle qualifiers spelling here.
5869 (pp_c_type_qualifier_list): Call the function above.
5870 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5871 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5872 (WARN_FOR_QUALIFIERS): New macro.
5873 (convert_for_assignment): Use it.
5875 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
5877 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5879 2010-06-04 Jan Hubicka <jh@suse.cz>
5881 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5882 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5883 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5884 DF_BYTE_LR_OUT): Update for embedded bitmaps.
5885 * fwprop.c (single_def_use_enter_block): Likewise.
5886 * ddg.c (create_ddg_dep_from_intra_loop_link,
5887 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5888 * loop-iv.c (latch_dominating_def): Likewise.
5889 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5890 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5891 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5892 df_rd_transfer_function, df_rd_top_dump,
5893 df_rd_bottom_dump): Update.
5894 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5895 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5896 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5897 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5898 df_lr_verify_solution_start, df_lr_verify_solution_end,
5899 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5900 df_live_free_bb_info, df_live_alloc, df_live_reset,
5901 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5902 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5903 df_live_verify_solution_start, df_live_verify_solution_end,
5904 df_live_verify_transfer_functions, df_chain_create_bb,
5905 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5906 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5907 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5908 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5909 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5910 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5911 df_byte_lr_bottom_dump, df_create_unused_note,
5912 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5913 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5914 df_md_transfer_function, df_md_init, df_md_confluence_0,
5916 df_md_top_dump, df_md_bottom_dump): Update.
5917 (struct df_lr_problem_data): Embedd bitmap headers.
5919 2010-06-04 Jan Hubicka <jh@suse.cz>
5921 * dce.c (dce_process_block): Do not re-scan already marked
5924 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5926 PR rtl-optimization/39871
5927 PR rtl-optimization/40615
5928 PR rtl-optimization/42500
5929 PR rtl-optimization/42502
5930 * ira.c (init_reg_equiv_memory_loc: New function.
5931 (ira): Call it twice.
5932 * reload.h (calculate_elim_costs_all_insns): Declare.
5933 * ira-costs.c: Include "reload.h".
5934 (regno_equiv_gains): New static variable.
5935 (init_costs): Allocate it.
5936 (finish_costs): Free it.
5937 (ira_costs): Call calculate_elim_costs_all_insns.
5938 (find_costs_and_classes): Take estimated elimination costs
5940 (ira_adjust_equiv_reg_cost): New function.
5941 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5942 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5943 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5944 (elim_bb): New static variable.
5945 (reload): Move code out of here into init_eliminable_invariants and
5946 free_reg_equiv. Call them.
5947 (calculate_elim_costs_all_insns): New function.
5948 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5949 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5950 but call note_reg_elim_costly if we turned a valid memory address
5951 into an invalid one.
5952 * Makefile.in (ira-costs.o): Depend on reload.h.
5954 2010-06-04 Julian Brown <julian@codesourcery.com>
5956 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5959 2010-06-04 Richard Guenther <rguenther@suse.de>
5962 * cgraph.h (struct varpool_node): Add lto_file_data field.
5963 * lto-cgraph.c (input_varpool_node): Initialize it.
5965 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5967 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5968 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5969 predicate in "type" attribute calculation.
5970 (*addsi_1_zext): Ditto.
5971 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5972 (*addsi_2_zext): Ditto.
5973 (*add<mode>_3): Ditto.
5974 (*addsi_3_zext): Ditto.
5975 (*add<mode>_5): Ditto.
5977 2010-06-03 Jan Hubicka <jh@suse.cz>
5979 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5981 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5983 2010-06-03 Jan Hubicka <jh@suse.cz>
5985 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5986 micro-optimize the checks when to add new note.
5988 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
5990 * final.c (output_asm_insn): Call
5991 targetm.asm_out.print_operand_punct_valid_p. Update comments.
5992 (output_operand): Call targetm.asm_out.print_operand. Update comments.
5993 (output_address): Call targetm.asm_out.print_operand_address.
5995 * target.h (struct gcc_target): Add print_operand,
5996 print_operand_address, and print_operand_punct_valid_p fields.
5997 * targhooks.h (default_print_operand): Declare.
5998 (default_print_operand_address): Declare.
5999 (default_print_operand_punct_valid_p): Declare.
6000 * targhooks.c (default_print_operand): Define.
6001 (default_print_operand_address): Define.
6002 (default_print_operand_punct_valid_p): Define.
6003 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6004 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6005 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6006 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6007 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6008 * vmsdbgout.c (addr_const_to_string): Update comment.
6009 * config/i386/i386.c (print_operand): Rename to...
6010 (ix86_print_operand): ...this. Make static.
6011 (print_operand_address): Rename to...
6012 (ix86_print_operand_address): ...this. Make static. Call
6013 ix86_print_operand instead of PRINT_OPERAND.
6014 (ix86_print_operand_punct_valid_p): New function.
6015 (TARGET_PRINT_OPERAND): Define.
6016 (TARGET_PRINT_OPERAND_ADDRESS): Define.
6017 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6018 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6019 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6020 (PRINT_OPERAND): Delete.
6021 (PRINT_OPERAND_ADDRESS): Delete.
6022 * config/i386/i386-protos.h (print_operand): Delete prototype.
6023 (print_operand_address): Delete prototype.
6025 2010-06-03 Richard Guenther <rguenther@suse.de>
6027 PR tree-optimization/44403
6028 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6029 Preserve pointer qualifiers.
6030 (vect_create_data_ref_ptr): Likewise.
6032 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
6035 * defaults.h (MAX_FIXED_MODE_SIZE): New.
6037 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6039 2010-06-03 Jakub Jelinek <jakub@redhat.com>
6042 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6043 return false if merging the bbs would lead to goto_locus
6044 location being lost from the IL.
6046 2010-06-03 Jan Hubicka <jh@suse.cz>
6047 Jakub Jelinek <jakub@redhat.com>
6049 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6050 set->regs[i] is NULL or has just one entry.
6052 2010-06-03 Jan Hubicka <jh@suse.cz>
6054 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6055 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6057 2010-06-03 Paul Brook <paul@codesourcery.com>
6059 * config/arm/arm.c (FL_TUNE): Define.
6060 (arm_default_cpu, arm_cpu_select): Remove.
6061 (all_cores): Populate core field.
6062 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6063 (arm_find_cpu): New function.
6064 (arm_handle_option): Lookup cpu/architecture names.
6065 (arm_override_options): Cleanup mcpu/march/mtune handling.
6066 (arm_file_start): Ditto.
6068 2010-06-03 Alan Modra <amodra@gmail.com>
6071 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6072 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6073 rtx to gen_load_toc_v4_PIC_1b. Tidy.
6074 (rs6000_emit_load_toc_table): Likewise.
6076 2010-06-02 Jan Hubicka <jh@suse.cz>
6078 * passes.c (init_optimization_passes): Put ipa reference
6079 after ipa pure-const.
6081 2010-06-02 Jan Hubicka <jh@suse.cz>
6083 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6084 calls_read_all and calls_write_all.
6085 (get_reference_optimization_summary): Fix formatting.
6086 (is_proper_for_analysis): Check that decl is not readonly.
6087 (propagate_bits): Check CONST/PURE/noreturn flags.
6088 (ipa_init): Move all_module_statics to optimization_summary_obstack.
6089 (analyze_function): Ignore indirect edges.
6090 (copy_global_bitmap): For all module statics, do nothing.
6091 (generate_summary): Do not print calls_read_all/calls_write_all.
6092 (read_write_all_from_decl): Take node as argument; check
6093 cgraph_node_cannot_return.
6094 (propagate): Reorganize read_all/write_all computation;
6095 check indirect edges; check ecf flags; use all_module_statics
6096 in the results; do not free all_module_statics.
6097 (stream_out_bitmap): Handle all_module_statics.
6098 (ipa_reference_write_optimization_summary): Likewise; use
6099 varpool/cgraph encoders to get boundaries.
6100 (ipa_reference_read_optimization_summary): Read in all_module_statics;
6101 use it when possible.
6103 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6106 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6107 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6109 * doc/extend.texi (powerpc builtins): Document vec_recip,
6110 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6112 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6113 (rs6000_emit_swrsqrt): Ditto.
6114 (rs6000_emit_swdivsf): Delete.
6115 (rs6000_emit_swdivdf): Ditto.
6116 (rs6000_emit_swrsqrtsf): Ditto.
6118 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6119 describe the reciprocal estimate support for each type.
6120 (recip_options): Map -mrecip=<opt> into option bits.
6121 (gen_2arg_fn_t): New typedef for binary rtx gen function.
6122 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6123 reciprocal estimate instructions.
6124 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6125 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6126 Set up rs6000_recip_bits based on the -mrecip* options. Print the
6127 cost information if -mdebug=cost or -mdebug=reg.
6128 (rs6000_override_options): Set -mrecip-precision for power6, and
6129 power7 machines. If -mvsx or -mdfp, enable various options that
6130 came in previous instruction set ISAs, unless the option was
6131 explicitly disabled by the command line option. Parse
6132 -mrecip=<opt> options.
6133 (rs6000_builtin_vectorized_function): Add support for vectorizing
6134 the reciprocal estimate builtins and expansions.
6135 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6136 (bdesc_2arg): Add reciprocal estimate builtins.
6137 (bdesc_1arg): Add reciprocal square root estimate builtins.
6138 (rs6000_expand_builtin): Rewrite to use a switch statement,
6139 instead of multiple if/then/elses. Add reciprocal estimate builtins.
6140 (rs6000_init_builtins): Create declarations for reciprocal
6142 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6143 sized, prefer traditional floating point registers, if integer
6144 vector types, prefer altivec registers. Don't actually look at
6145 the memory address any more.
6146 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6148 (rs6000_load_constant_and_splat): New helper function to load up
6149 the constant for reciprocal estimate instructions.
6150 (rs6000_emit_madd): New helper function for generating
6151 multiply/add type instructions, based on the current switches.
6152 (rs6000_emit_msub): Ditto.
6153 (rs6000_emit_mnsub): Ditto.
6154 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6155 replace a divide with a reciprocal estimate and fixup, adding
6156 support for machines with high precision and vectors.
6157 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6158 low precision machines.
6159 (rs6000_emit_swdiv): New common function to be called to replace a
6160 division with reciprocal estimate and fixup.
6161 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
6162 for double and vector types. Add support for high precision machines.
6164 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6165 the reciprocal estimate instructions can be generated.
6166 (TARGET_FRE): Ditto.
6167 (TARGET_FRSQRTES): Ditto.
6168 (TARGET_FRSQRTE): Ditto.
6169 (RS6000_RECIP_*): New macros for reciprocal estimate support.
6171 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6172 square root estimate on vectors.
6173 (re<mode>2): New insn for reciprocal division estimate on vectors.
6175 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6177 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6178 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6179 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6180 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6181 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6182 (RS6000_BUILTIN_RSQRT): Ditto.
6183 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6184 floating point builtin.
6186 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6187 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6188 __RECIP_PRECISION__ based on the command line switches.
6189 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6191 * config/rs6000/rs6000.opt (-mrecip): Document add support for
6192 replacing division instructions with reciprocal estimate and fixup.
6193 (-mrecip=<opt>): New option.
6194 (-mrecip-precision): Ditto.
6196 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6197 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6198 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6201 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6202 (UNSPEC_VREFP): Ditto.
6203 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6204 conterparts with regard to support of -mno-fused-madd and -ffast-math.
6205 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6206 reciprocal estimate instructions to be generated.
6207 (altivec_vrefp): Ditto.
6209 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6211 (rreg): New mode attribute for reciprocal estimate support.
6212 (recip<mode>3): New insn for division using reciprocal estimate
6214 (divide define_split): New define_split to convert floating point
6215 division to use reciprocal estimate if the user used the
6216 appropriate options and the split is run when we can add new
6217 pseudo registers for the fixup.
6218 (rsqrt<mode>2): New insn for reciprocal square root support.
6219 (recipsf3): Move into recip<mode>3.
6221 (fres): Use TARGET_FRES.
6222 (rsqrtsf2): Move into rsqrt<mode>2.
6223 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6224 (copysignsf3): Add support for VSX.
6225 (fred): Use TARGET_FRE.
6227 (rsqrtdf_internal1): New function for frsqrte instruciton.
6229 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6232 2010-06-03 Richard Guenther <rguenther@suse.de>
6235 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6236 (set_user_assembler_libfunc): Likewise.
6238 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6240 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6242 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6244 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6245 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6246 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6247 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6248 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6249 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6250 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6251 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6252 * defaults.h: Updated for above mentioned changes.
6254 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
6256 * c-common.c: Remove header include of tm_p.h.
6257 * Makefile.in (c-common.o): Remove TM_P_H dependency.
6259 2010-06-02 Jakub Jelinek <jakub@redhat.com>
6261 * tree.h (struct tree_decl_map): New type.
6262 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6263 (tree_decl_map_hash): New prototype.
6264 (debug_expr_for_decl, value_expr_for_decl): Change into
6265 tree_decl_map hashtab from tree_map.
6266 (init_ttree): Adjust initialization.
6267 (tree_decl_map_hash): New function.
6268 (decl_debug_expr_lookup, decl_debug_expr_insert,
6269 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6271 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6273 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6275 * configure: Regenerate.
6276 * config.in: Regenerate.
6278 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6279 (X86_64_EMULATION): Define.
6280 (TARGET_LD_EMULATION): Use them.
6282 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6283 (SPARC64_EMULATION): Define.
6284 (LINK_ARCH_SPEC): Use them.
6286 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6288 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6289 smallest_mode_for_size for computing the precision types of new
6290 graphite IVs. Do not call lang_hooks.types.type_for_size.
6292 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6294 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6296 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6298 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
6301 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6302 return false instead.
6304 2010-06-02 Jan Hubicka <jh@suse.cz>
6307 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6308 create new cgraph node to check callee.
6310 2010-06-02 Richard Guenther <rguenther@suse.de>
6312 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6314 2010-06-02 Richard Guenther <rguenther@suse.de>
6316 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6317 (lto_wrapper_cleanup): ... this. Do not exit.
6318 (fatal): Adjust. Exit here.
6319 (fatal_perror): Likewise.
6320 (fatal_signal): New function.
6321 (main): Set up signal handlers to cleanup temporary files.
6322 * Makefile.in (lto-wrapper.o): Adjust dependencies.
6324 2010-06-02 Richard Guenther <rguenther@suse.de>
6326 PR tree-optimization/44377
6327 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6329 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6331 * config/s390/2097.md (z10_fhex): Remove insn reservation.
6332 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6333 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6334 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6336 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6338 2010-06-02 Jan Hubicka <jh@suse.cz>
6340 * bitmap.c (bitmap_descriptor): Add search_iter.
6341 (bitmap_find_bit): Increment it.
6342 (print_statistics): Print it.
6344 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
6346 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6347 instead of gimple_build_call_vec. Delete unnecessary local variable.
6349 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6351 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6352 change from yesterday.
6354 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
6356 * c-ada-spec.c: Clean up redundant includes.
6358 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
6360 * gimplify.c: Do not include except.h and optabs.h.
6361 (gimplify_body): Do not initialize RTL profiling.
6362 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6363 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6364 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6365 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6368 * tree-pretty-print.h: Include pretty-print.h.
6369 * gimple-pretty-print.h: Include pretty-print.h.
6371 * tree-pretty-print.c: Do not include diagnostic.h.
6372 * tree-vrp.c: Likewise.
6373 * tree-tailcall.c: Likewise
6374 * tree-scalar-evolution.c: Likewise
6375 * tree-ssa-dse.c: Likewise
6376 * tree-chrec.c: Likewise
6377 * tree-ssa-sccvn.c: Likewise
6378 * tree-ssa-copyrename.c: Likewise
6379 * tree-nomudflap.c: Likewise
6380 * tree-call-cdce.c: Likewise
6381 * tree-stdarg.c: Likewise
6382 * tree-ssa-math-opts.c: Likewise
6383 * tree-nrv.c: Likewise
6384 * tree-ssa-sink.c: Likewise
6385 * tree-browser.c: Likewise
6386 * tree-ssa-loop-ivcanon.c: Likewise
6387 * tree-ssa-loop.c: Likewise
6388 * tree-parloops.c: Likewise
6389 * tree-ssa-address.c: Likewise
6390 * tree-ssa-ifcombine.c: Likewise
6391 * tree-if-conv.c: Likewise
6392 * tree-data-ref.c: Likewise
6393 * tree-affine.c: Likewise
6394 * tree-ssa-phiopt.c: Likewise
6395 * tree-ssa-coalesce.c: Likewise
6396 * tree-ssa-pre.c: Likewise
6397 * tree-ssa-live.c: Likewise
6398 * tree-predcom.c: Likewise
6399 * tree-ssa-forwprop.c: Likewise
6400 * tree-ssa-dce.c: Likewise
6401 * tree-ssa-ter.c: Likewise
6402 * tree-ssa-loop-prefetch.c: Likewise
6403 * tree-optimize.c: Likewise
6404 * tree-ssa-phiprop.c: Likewise
6405 * tree-object-size.c: Likewise
6406 * tree-outof-ssa.c: Likewise
6407 * tree-ssa-structalias.c: Likewise
6408 * tree-switch-conversion.c: Likewise
6409 * tree-ssa-reassoc.c: Likewise
6410 * tree-ssa-operands.c: Likewise
6411 * tree-vectorizer.c: Likewise
6412 * tree-vect-data-refs.c: Likewise
6413 * tree-vect-generic.c: Likewise
6414 * tree-vect-stmts.c: Likewise
6415 * tree-vect-patterns.c: Likewise
6416 * tree-vect-slp.c: Likewise
6417 * tree-vect-loop.c: Likewise
6418 * tree-ssa-loop-ivopts.c: Likewise
6419 * tree-ssa-loop-im.c: Likewise
6420 * tree-ssa-loop-niter.c: Likewise
6421 * tree-ssa-loop-unswitch.c: Likewise
6422 * tree-ssa-loop-manip.c: Likewise
6423 * tree-ssa-loop-ch.c: Likewise
6424 * tree-dump.c: Likewise
6425 * tree-complex.c: Likewise
6427 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6428 * tree-ssa-uninit.c: Likewise
6429 * tree-ssa-threadupdate.c: Likewise
6430 * tree-ssa-uncprop.c: Likewise
6431 * tree-ssa-ccp.c: Likewise
6432 * tree-ssa-dom.c: Likewise
6433 * tree-ssa-propagate.c: Likewise
6434 * tree-ssa-alias.c: Likewise
6435 * tree-dfa.c: Likewise
6436 * tree-cfgcleanup.c: Likewise
6437 * tree-sra.c: Likewise
6438 * tree-ssa-copy.c: Likewise
6439 * tree-ssa.c: Likewise
6440 * tree-profile.c: Likewise
6441 * tree-cfg.c: Likewise
6442 * tree-ssa-threadedge.c: Likewise
6443 * tree-vect-loop-manip.c: Likewise
6445 * tree-inline.c: Do not include diagnostic.h and expr.h.
6447 (copy_decl_for_dup_finish): Do not use NULL_RTX.
6449 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6450 * tree-loop-distribution.c: Likewise.
6452 2010-06-01 Jan Hubicka <jh@suse.cz>
6454 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6456 2010-06-01 Jan Hubicka <jh@suse.cz>
6458 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6459 remove return value.
6460 (split_bbs_on_noreturn_calls) .... here.
6461 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6462 * tree-flow.h (fixup_noreturn_call): New.
6464 2010-06-01 Jan Hubicka <jh@suse.cz>
6466 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6468 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
6470 * tree.h (build_nt_call_list): Delete.
6471 * tree.c (build_nt_call_list): Delete.
6473 2010-06-01 Jan Hubicka <jh@suse.cz>
6475 * fwprop.c: Make emit-rtl.h include last.
6476 * rtlanal.c: Include emit-rtl.h.
6477 * genautomata.c: Output emit-rtl include into insn-automata.c
6478 * df-scan.c: Include emit-rtl.h.
6479 * haifa-sched.c: Indlude emit-rtl.h.
6480 * mode-switching.c: Indlude emit-rtl.h.
6481 * graph.c: Indlude emit-rtl.h.
6482 * sel-sched.c: Include emit-rtl.h.
6483 * sel-sched-ir.c: Include emit-rtl.h.
6484 * ira-build.c: Include emit-rtl.h.
6485 * emit-rtl.c: (first_insn, last_insn): Remove defines.
6486 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6488 (set_new_first_and_last_insn, get_last_insn_anywhere,
6489 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6490 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6491 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6492 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6493 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6494 Use accessor functions.
6495 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6496 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6497 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6498 mem_expr_equal_p): Move here from rtl.h.
6499 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6500 Move here from emit-rtl.c; make inline.
6501 * cfglayout.h: Include emit-rtl.h.
6502 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6503 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6504 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6505 mem_expr_equal_p, get_insns, set_first-insn,
6506 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6507 * reg-stack.c: Include emit-rtl.h.
6510 2010-06-01 Jan Hubicka <jh@suse.cz>
6512 * cgraph.h (tree_function_versioning): Update prototype.
6513 (cgraph_function_versioning): Update prototype.
6514 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6516 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6517 (cgraph_materialize_clone, save_inline_function_body): Update use of
6518 tree_function_versioning.
6519 * tree-inline.c (copy_bb): Look for previous copied block to link
6520 after; fix debug output.
6521 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6522 (copy_body): Likewise.
6523 (expand_call_inline): Update use of copy_body.
6524 (tree_function_versioning): Update use of copy body; accept
6525 blocks_to_copy and new_entry.
6527 2010-06-01 Jan Hubicka <jh@suse.cz>
6529 * gegenrtl.c: Remove unnecesary prototypes.
6531 (gendef): Produce static inline.
6533 (main): Do not decode parameters; generate header only.
6534 * Makefile.in (genrtl.c): Remove.
6536 2010-06-01 Jan Hubicka <jh@suse.cz>
6538 * tree-switch-conversion.c (build_one_array): Make it readonly.
6540 2010-06-01 Richard Guenther <rguenther@suse.de>
6542 * optabs.c (init_optabs): Guard all accesses to reinit.
6543 * ipa-pure-const.c (propagate): Fix another typo.
6544 * opts.c (common_handle_option): Split assignment to bool.
6545 * c-opts.c (c_common_handle_option): Likewise.
6547 2010-06-01 Arnaud Charlet <charlet@adacore.com>
6548 Matthew Gingell <gingell@adacore.com>
6550 * doc/invoke.texi: Mention -fdump-ada-spec.
6551 * tree-dump.c (dump_files): Add ada-spec.
6552 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6553 * tree-pass.h (tree_dump_index): Add TDI_ada.
6554 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6555 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6556 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6557 * c-decl.c: Include c-ada-spec.h.
6558 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6560 (c_write_global_declarations): Add handling of -fdump-ada-spec.
6561 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6562 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6563 * c-ada-spec.h, c-ada-spec.c: New files.
6565 2010-06-01 Richard Guenther <rguenther@suse.de>
6568 * ipa-pure-const.c (get_function_state): Hand back varying state
6569 if we do not have one.
6570 (has_function_state): New function.
6571 (duplicate_node_data): Adjust.
6572 (remove_node_data): Likewise.
6573 (pure_const_write_summary): Likewise.
6574 (propagate): Likewise. Fix typo.
6576 2010-06-01 Jan Hubicka <jh@suse.cz>
6578 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6579 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6580 (execute_all_ipa_transforms): Do not play with the states.
6582 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
6584 * config/arm/t-linux-androideabi: New.
6585 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6587 2010-06-01 Jan Hubicka <jh@suse.cz>
6589 * tree-inline.c (estimate_num_insns): For stdarg functions look
6590 into call statement to count cost of argument passing.
6592 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
6594 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6595 argument for fprintf.
6596 (ix86_output_addr_diff_elt): Likewise.
6597 (x86_function_profiler): Likewise.
6598 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6599 (LPREFIX): Likewise.
6600 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6602 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6605 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6606 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6607 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6608 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6609 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6610 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6611 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6612 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6615 2010-05-31 Jan Hubicka <jh@suse.cz>
6617 * tree.h (tree_range_check_failed): Declare noreturn.
6619 2010-05-31 Jan Hubicka <jh@suse.cz>
6621 * gimple.c (gimple_call_builtin_p): New function.
6622 * gimple.h (gimple_call_builtin_p): Declare.
6623 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6625 (execute_warn_function_return): BUILT_IN_RETURN is return.
6626 (split_critical_edges): Return edges are not critical.
6627 (is_ctrl_altering_stmt): Builtin_in_return is altering.
6628 (gimple_verify_flow_info): Handle built_in_return.
6629 (execute_warn_function_return): Handle built_in_return.
6630 * ipa-pure-const.c (check_call): Ignore builtin_return.
6632 2010-05-31 Jakub Jelinek <jakub@redhat.com>
6635 * expr.c (expand_assignment): Don't store anything for out-of-bounds
6636 array accesses with non-MEM.
6638 PR tree-optimization/44182
6639 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6640 newly needs to end a bb is followed by debug stmts, instead return
6641 true from the function at the end.
6642 (maybe_move_debug_stmts_to_successors): New function.
6643 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6645 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
6648 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6650 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
6652 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6653 for nested functions in non-optimized compilation.
6655 2010-05-31 Richard Guenther <rguenther@suse.de>
6657 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6659 2010-05-30 Jan Hubicka <jh@suse.cz>
6661 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6663 2010-05-30 Richard Guenther <rguenther@suse.de>
6666 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6667 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6670 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
6672 * config/darwin.c (output_objc_section_asm_op): Add comment.
6673 (name_needs_quotes): Add '_' to list of valid comment chars.
6674 (machopic_output_function_base_name): Remove unneeded quotes.
6675 (darwin_encode_section_info): Adjust asm whitespace.
6676 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6677 (ASM_OUTPUT_LOCAL): Ditto.
6678 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6679 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6680 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6682 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
6684 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6685 RS6000_OUTPUT_BASENAME unconditionally.
6686 (rs6000_output_function_epilogue): Likewise.
6688 2010-05-30 Jan Hubicka <jh@suse.cz>
6690 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6693 2010-05-30 Richard Guenther <rguenther@suse.de>
6695 * tree-cfg.c (verify_gimple_assign_single): Implement
6696 verification for COND_EXPR rhs.
6698 2010-05-30 Jan Hubicka <jh@suse.cz>
6700 * cgraph.h (cgraph_dump_file): Declare.
6701 * cgraphunit.c (cgraph_dump_file): Export.
6702 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6704 2010-05-30 Jan Hubicka <jh@suse.cz>
6706 * dwarf2out.c (reference_to_unused,
6707 premark_types_used_by_global_vars_helper): Avoid creation of new
6710 2010-05-30 Jan Hubicka <jh@suse.cz>
6712 * cgraph.h (cgraph_node_cannot_return,
6713 cgraph_edge_cannot_lead_to_return): New functions.
6714 * cgraph.c (cgraph_node_cannot_return,
6715 cgraph_edge_cannot_lead_to_return): Use them.
6716 * ipa-pure-const.c (pure_const_names): New static var.
6717 (check_call): Handle calls not leading to return.
6718 (pure_const_read_summary): Dump info read.
6719 (propagate): Dump info about propagation process; ignore side effects
6720 of functions not leading to exit; fix handling of pure functions.
6722 2010-05-30 Jan Hubicka <jh@suse.cz>
6724 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6725 for tail call epilogues.
6727 2010-05-30 Jan Hubicka <jh@suse.cz>
6729 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6730 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6733 2010-05-29 Jan Hubicka <jh@suse.cz>
6735 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6736 node; remove references in node we no longer keep in cgrpah but need
6739 2010-05-29 Jan Hubicka <jh@suse.cz>
6741 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6743 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6746 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6748 2010-05-29 Jan Hubicka <jh@suse.cz>
6750 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6751 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6752 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6753 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6754 debug_names_replaced_by, debug_update_ssa): Likewise.
6755 * sbitmap.c (debug_sbitmap): Likewise.
6756 * genrecog.c (debug_decision, debug_decision_list): Likewise.
6757 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6758 debug_tree_chain): Likewise.
6759 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6760 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6761 * optabs.c (debug_optab_libfuncs): Likewise.
6762 (verify_loop_closed_ssa): Likewise.
6763 * value-prof.c (verify_histograms): Likewise.
6764 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6765 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6766 * cfghooks.c (verify_flow_info): Likewise.
6767 * fold-const.c (debug_fold_checksum): Likewise.
6768 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6769 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6771 * omega.c (debug_omega_problem): Likewise.
6772 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6773 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6774 * dominance.c (verify_dominators, debug_dominance_info,
6775 debug_dominance_tree): Likewise.
6776 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6777 * df_regno_debug, df_ref_debug,
6778 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6779 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6780 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6781 * sel-sched.c (debug_state): Likewise.
6782 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6784 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6785 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6786 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6787 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6789 * c-pretty-print.c (debug_c_tree): Likewise.
6790 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6791 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6792 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6793 * ebitmap.c (debug_ebitmap): Likewise.
6794 * function.c (debug_find_var_in_block_tree): Likewise.
6795 * print-rtl.c (debug_rtx): Likewise.
6796 (debug_rtx_count): Likewise.
6797 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6798 * stor-layout.c (debug_rli): Likewise.
6799 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6800 * tree-data-ref.c (debug_data_references,
6801 debug_data_dependence_relations, debug_data_reference,
6802 debug_data_dependence_relation, debug_rdg_vertex,
6803 debug_rdg_component, debug_rdg): Likewise.
6804 * tree-affine.c (debug_aff): Likewise.
6805 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6807 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6808 * emit-rtl.c (verify_rtl_sharing): Likewise.
6809 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6810 debug_value_expressions): Likewise.
6811 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6812 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6813 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6814 * cfglayout.c (verify_insn_chain): Likewise.
6815 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6816 debug_clast_stmt, debug_generated_program): Likewise.
6817 * ggc-page.c (debug_print_page_list): Likewise.
6818 * tree-ssa-ter.c (debug_ter): Likewise.
6819 * graphite-dependences.c (debug_pddr): Likewise.
6820 * sched-deps.c (debug_ds): Likewise.
6821 * tree-ssa.c (verify_ssa): Likewise.
6822 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6823 debug_scattering_functions, debug_iteration_domains, debug_pdr,
6824 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6825 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6826 * tree-inline.c (debug_find_tree): Likewise.
6827 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6828 debug_ppl_powerset_matrix): Likewise.
6829 * var-tracking.c (debug_dv): Likewise.
6830 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6831 * cfgloop.c (verify_loop_structure): Likewise.
6832 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6833 * c-common.c (verify_sequence_points): Likewise.
6834 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6835 debug_candidates, debug_rgn_dependencies): Likewise.
6836 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6837 * debug_constraint_graph, debug_solution_for_var,
6838 debug_sa_points_to_info): Likewise.
6839 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6841 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6842 debug_loops, debug_loop, debug_loop_num): Likewise.
6843 * passes.c (debug_pass): Likewise.
6844 (dump_properties): Likewise; add cfglayout property.
6845 (debug_properties): Likewise.
6846 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6847 * varpool.c (debug_varpool): Likewise.
6848 * regcprop.c (debug_value_data): Likewise.
6849 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6850 debug_immediate_uses_for): Likewise.
6852 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6855 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6856 Filter out insn-flags.h.
6858 2010-05-29 Jan Hubicka <jh@suse.cz>
6860 * cgraph.h (struct varpool_node_set_def,
6861 struct cgraph_node_set_def): Remove unused AUX pointer.
6862 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6865 2010-05-29 Jan Hubicka <jh@suse.cz>
6868 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6870 2010-05-29 Richard Guenther <rguenther@suse.de>
6872 * lto-streamer.c (cached_bp): New global variable.
6873 (bitpack_create): Return the cached bitpack, if available.
6874 (bitpack_delete): Clear and cache the bitpack, if appropriate.
6875 (bp_pack_value): Remove redundant asserts.
6877 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6880 * tree-if-conv.c (is_true_predicate): New.
6881 (is_predicated): Use is_true_predicate.
6882 (add_to_predicate_list): Same. Do not use unshare_expr.
6883 (add_to_dst_predicate_list): Same.
6885 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
6887 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6889 (predicate_bbs): Same.
6890 (clean_predicate_lists): Same.
6891 (find_phi_replacement_condition): Do not AND the predicate from
6894 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
6897 * Makefile.in (build/gencondmd.o): Add a missing `\'.
6899 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6902 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6903 (negdf2): Adjust expander pattern and use negdf2_slow.
6906 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6908 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6910 * df.h (struct df_base_ref): Move regno field up.
6911 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6912 * expr.h (struct separate_ops): Move location field up.
6913 * optabs.h (struct optab_d): Move libcall_basename field down.
6914 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6915 * config/i386/i386.h (struct machine_function): Convert call_abi field
6916 into a bitfield. Move cfa field to the end of the structure.
6918 2010-05-29 Jan Hubicka <jh@suse.cz>
6920 * varpool.c (varpool_get_node): Fix lookup.
6922 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6924 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6925 RTL specific prototypes with #ifdef RTX_CODE.
6926 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6927 * config/spu/t-spu-elf: Fix dependencies.
6929 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6931 2010-05-29 Mike Stump <mikestump@comcast.net>
6934 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6935 TM_H when building to avoid dependency loops.
6937 2010-05-29 Jan Hubicka <jh@suse.cz>
6939 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6940 refs and body; not the whole node for masters of materialized clones.
6942 2010-05-29 Mike Stump <mikestump@comcast.net>
6944 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6946 2010-05-29 Jan Hubicka <jh@suse.cz>
6948 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6949 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6950 use of clone_function_name.
6951 * cgraph.h (cgraph_create_virtual_clone,
6952 cgraph_function_versioning): update prototypes.
6953 (clone_function_name): Declare.
6954 * ipa-cp.c (ipcp_insert_stage): Update call of
6955 cgraph_create_virtual_clone.
6956 * omp-low.c (create_omp_child_function_name): Use
6957 cgraph_create_virtual_clone.
6958 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6959 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6960 and make decl local.
6962 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6964 * vec.h: Include statistics.h
6965 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6968 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6970 * c-lex.c: Do not include c-tree.h.
6971 * c-pretty-print.c: Likewise.
6972 * c-opts.c: Likewise.
6973 * c-gimplify.c: Likewise.
6974 * c-common.c: Likewise.
6975 * c-dump.c: Likewise. Include c-common.h.
6977 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6979 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6980 before including diagnostic-core.h.
6981 (c_cpp_error): New prototype moved from c-tree.h.
6982 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6983 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6984 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6985 (c_cpp_error): Prototype moved to c-common.h.
6986 * Makefile.in: Update dependency for C_COMMON_H.
6988 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6990 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6991 * c-common.c (c_register_addr_space): Remove here.
6992 * c-decl.c (c_register_addr_space): Re-add here.
6994 2010-05-28 Mike Stump <mikestump@comcast.net>
6996 * config/darwin-c.c: Remove c-tree.h include.
6998 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7000 * gcc.c: Include diagnostic.h.
7001 (error_count): Remove. All users changed to use errorcount.
7002 (programname): Remove. All users changed to use progname.
7003 (fancy_abort, internal_error, fatal_error, error, warning, inform,
7005 (execute): Don't include "Internal error" and bug reporting
7006 information in argument of internal_error call.
7007 (process_command): Don't increment error_count after calling
7009 (input_filename): Rename to gcc_input_filename. All users
7011 (main): Call diagnostic_initialize. Register delete_temp_files
7012 with atexit. Use seen_error to test for errors.
7013 * gcc.h: Include diagnostic-core.h.
7014 (fatal_error, error, warning): Remove.
7015 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7016 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7017 (gcc.o): Update dependencies.
7019 2010-05-28 Jeff Law <law@redhat.com>
7021 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7023 * ira.h (ira_bad_reload_regno): Declare
7024 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7026 * ira-color.c (update_curr_costs): Free updated hard reg costs.
7027 (ira_reassign_conflict_allocnos): Remove bogus asserts.
7028 (allocno_reload_assign): Likewise.
7030 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
7032 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7035 2010-05-28 Richard Guenther <rguenther@suse.de>
7038 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7039 Stream fixed-point constants mode.
7040 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7042 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7043 Stream fixed-point constants mode.
7044 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7047 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7049 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7050 only place it was called from.
7051 (number_of_latch_executions): Do not return chrec_dont_know when the
7052 may_be_zero is a runtime condition: instead, return a COND_EXPR
7053 including the may_be_zero condition.
7054 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7056 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7059 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7061 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7062 generate COND_EXPRs for degenerate_phi_result.
7064 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
7067 * tree-if-conv.c (if_convertible_loop_p): Check the
7068 if-convertibility of phi nodes in non predicated BBs.
7070 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7072 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7074 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7077 * gcc.c (inform, warning, inform): New functions.
7078 (fatal_ice): Rename to internal_error; change cmsgid parameter to
7079 gmsgid. All callers changed.
7080 (notice): Rename to fnotice; add parameter fp. All callers changed.
7081 (fatal_error): Rename to fatal_signal. All users changed.
7082 (fatal): Rename to fatal_error; change cmsgid parameter to
7083 gmsgid. All callers changed.
7084 (process_command): Use warning instead of error for warnings.
7085 (end_going_arg): Don't use _() around argument of error.
7086 (do_spec_1): Use inform for message from %n specs. Use warning
7087 instead of error for warnings.
7088 (main): Use inform for comparison messages. Use warning for
7089 message about unused linker input.
7090 (error): Increment error_count. Print "error: ".
7091 * gcc.h (fatal): Change to fatal_error.
7093 * config/darwin-driver.c (darwin_default_min_version): Use warning
7094 instead of fprintf for warnings.
7095 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7097 2010-05-28 Julian Brown <julian@codesourcery.com>
7099 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7100 (*thumb2_addsi3_compare0_scratch): New.
7101 * config/arm/constraints.md (Pv): New.
7102 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7104 (*addsi3_compare0_scratch): Likewise.
7106 2010-05-28 Jan Hubicka <jh@suse.cz>
7108 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7110 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7111 only on local statics.
7113 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
7115 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7117 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
7120 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7121 (OPTION_GLIBC): Define.
7123 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7126 * dwarf2out.c (double_int_type_size_in_bits): New function.
7127 (round_up_to_align): Change first argument and return value to
7129 (field_byte_offset): Work internally on double_ints.
7132 * builtins.c (expand_movstr): Use a temporary pseudo instead
7133 of target even when target is not NULL and not const0_rtx, but
7134 fails movstr predicate.
7135 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7137 2010-05-28 Joseph Myers <joseph@codesourcery.com>
7139 * final.c (rest_of_clean_state): Use %m in errors instead of
7141 * gengtype.c (read_input_list, close_output_files): Use xstrerror
7142 instead of strerror.
7143 * toplev.c (process_options): Use %m in errors instead of strerror
7145 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7148 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
7150 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7151 (ix86_canonical_va_list_type): Make static. Add declaration.
7152 (ix86_enum_va_list): Make static. Reindent.
7153 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7154 (ix86_canonical_va_list_type): Ditto.
7155 (ix86_enum_va_list): Ditto.
7157 2010-05-28 Richard Guenther <rguenther@suse.de>
7159 * lto-wrapper.c (run_gcc): With -save-temps generate a
7160 user-visible ltrans filename. Fixup ltrans unit numbering.
7162 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
7164 * c-common.c (c_common_nodes_and_builtins): Replace use
7165 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7166 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7167 to ix86_enum_va_list.
7168 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7169 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7170 (TARGET_ENUM_VA_LIST_P): Add hook description.
7171 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7172 * target.h (gcc_target): Add enum_va_list hook.
7175 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7176 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7177 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7179 2010-05-28 Alan Modra <amodra@gmail.com>
7182 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7183 emit_library_call machinery to set up __tls_get_addr calls.
7185 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7187 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7189 2010-05-28 Dodji Seketeli <dodji@redhat.com>
7191 Revert fix for PR c++/44188
7192 * c-common.c (is_typedef_decl): Revert the moving of this
7194 * tree.c (is_typedef_decl): ... here.
7195 (typdef_variant_p): Revert the moving of this definition
7196 here from gcc/cp/tree.c.
7197 * c-common.h (is_typedef_decl): Revert the moving of this
7199 * tree.h (is_typedef_decl): ... here.
7200 (typedef_variant_p): Revert the moving of this declaration here
7201 from gcc/cp/cp-tree.h
7202 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7203 (gen_tagged_type_die): Revert the splitting out of ...
7204 (gen_type_die_with_usage): ... this function. Revert the anonymous
7205 tagged type handling.
7206 (gen_typedef_die): Revert emitting DW_TAG_typedef for
7207 typedefs naming anonymous tagged types.
7209 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7211 * config/rs6000/rs6000-modes.def (PSImode): Delete.
7213 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
7215 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7216 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7218 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7220 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7221 XER_REGS to CA_REGS throughout.
7222 * config/rs6000/rs6000.h: Same.
7223 (ADDITIONAL_REGISTER_NAMES): Add "xer".
7224 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
7225 that mode_iterator "P" is the size for arithmetic carries as well.
7226 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7228 2010-05-28 Jakub Jelinek <jakub@redhat.com>
7231 * combine.c (struct rtx_subst_pair): Define unconditionally.
7232 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
7233 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7234 Call make_compound_operation on pair->to.
7235 (propagate_for_debug): Don't call make_compound_operation here.
7236 Always use simplify_replace_fn_rtx.
7238 2010-05-27 Sterling Augustine <sterling@tensilica.com>
7240 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7241 * config/xtensa/xtensa.c (override_options): Check
7242 TARGET_FORCE_NO_PIC and set flag_pic.
7243 * config/xtensa/xtensa.opt: Document -mforce-no-pic
7245 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7248 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7249 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7251 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7253 * diagnostic-core.h: New. Contents moved from diagnostic.h and
7255 * diagnostic.c: Don't include toplev.h.
7256 (progname): Define. Moved from toplev.c.
7257 (seen_error): New function.
7258 * diagnostic.h: Include diagnostic-core.h.
7259 (diagnostic_t, emit_diagnostic): Don't declare here.
7260 * toplev.c (progname): Move to toplev.c.
7261 (emit_debug_global_declarations, compile_file, finalize,
7262 do_compile, toplev_main): Use seen_error.
7263 * toplev.h: Include diagnostic-core.h.
7264 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7265 internal_error, warning, warning_at, error, error_n, error_at,
7266 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7267 verbatim, fnotice, progname): Move to diagnostic-core.h.
7268 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7269 (expand_builtin_expect): Use seen_error.
7270 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7271 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7272 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7273 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7274 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7275 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7276 errorcount for errors.
7277 * c-opts.c (c_common_finish): Use seen_error.
7278 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7279 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7280 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7281 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7282 (get_coverage_counts): Use seen_error.
7283 * dwarf2out.c (dwarf2out_finish): Use seen_error.
7284 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7285 gimplify_body): Use seen_error.
7286 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7287 * ipa-pure-const.c (gate_pure_const): Use seen_error.
7288 * ipa-reference.c (gate_reference): Use seen_error.
7289 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7290 * lambda-code.c: Include diagnostic-core.h instead of
7292 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7293 * lto-compress.c: Include diagnostic-core.h instead of
7295 * lto-section-in.c: Include diagnostic-core.h instead of
7297 * lto-streamer-out.c: Include diagnostic-core.h instead of
7299 * lto-streamer.c: Include diagnostic-core.h instead of
7301 (gate_lto_out): Use seen_error.
7302 * matrix-reorg.c: Include diagnostic-core.h instead of
7304 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7305 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7306 (gate_expand_omp, lower_omp_1): Use seen_error.
7307 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7308 (rest_of_decl_compilation, rest_of_type_compilation,
7309 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7310 * tree-cfg.c (label_to_block_fn): Use seen_error.
7311 * tree-inline.c (optimize_inline_calls): Use seen_error.
7312 * tree-mudflap.c (mudflap_finish_file): Use
7314 * tree-optimize.c (gate_all_optimizations,
7315 gate_all_early_local_passes, gate_all_early_optimizations): Use
7317 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7318 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7319 (varpool_remove_unreferenced_decls,
7320 varpool_assemble_pending_decls): Use seen_error.
7321 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7322 (TOPLEV_H, DIAGNOSTIC_H): Update.
7323 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7324 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7325 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7326 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7327 coverage.o, lambda-code.o): Update dependencies.
7329 2010-05-25 Dodji Seketeli <dodji@redhat.com>
7332 * c-common.c (is_typedef_decl): Move this definition ...
7333 * tree.c (is_typedef_decl): ... here.
7334 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7335 * c-common.h (is_typedef_decl): Move this declaration ...
7336 * tree.h (is_typedef_decl): ... here.
7337 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7338 * dwarf2out.c (is_naming_typedef_decl): New function.
7339 (gen_tagged_type_die): Split out of ...
7340 (gen_type_die_with_usage): ... this function. When an anonymous
7341 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7342 is emitted for the typedef.
7343 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7344 anonymous tagged types.
7346 2010-05-27 Jason Merrill <jason@redhat.com>
7348 * print-tree.c (debug_vec_tree): New fn.
7349 (print_vec_tree): New fn.
7350 * tree.h: Declare them.
7351 * gdbinit.in (pvt): New command.
7353 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7355 * gdbinit.in (pdd): New command.
7357 2010-05-27 Jan Hubicka <jh@suse.cz>
7359 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7360 (update_caller_keys): Return early if there are no callers;
7361 only update fibheap when decresing the key.
7362 (update_callee_keys): Avoid recursion.
7363 (decide_inlining_of_small_functions): When badness does not match;
7364 re-insert into fibheap.
7366 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
7368 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7369 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7370 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7371 (ALL_HOST_OBJS): Now a union of the above two.
7372 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7373 all files in ALL_HOST_FRONTEND_OBJS.
7374 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7376 * c-common.c: Pretend to be a backend file by undefining
7377 IN_GCC_FRONTEND (still need rtl.h here).
7379 2010-05-27 Jan Hubicka <jh@suse.cz>
7381 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7382 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7384 2010-05-27 Jan Hubicka <jh@suse.cz>
7386 * sched-ebb.c: Rename struct deps to struct deps_desc.
7388 * sel-sched-ir.c: Likewise.
7389 * sched-deps.c: Likewise.
7390 * sched-int.h: Likewise.
7391 * sched-rgn.c: Likewise.
7393 2010-05-27 Jon Beniston <jon@beniston.com>
7396 * config/lm32/lm32.h: Remove definition of
7397 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7399 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
7402 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7404 2010-05-27 Richard Guenther <rguenther@suse.de>
7406 PR tree-optimization/44284
7407 * tree-vect-stmts.c (vectorizable_assignment): Handle
7408 sign-changing conversions as simple copy.
7410 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7412 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7414 (__gthread_active_p): Check for pthread_create if compiling against
7417 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7419 Support compilation for Android platform. Reimplement -mandroid.
7421 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7422 (*android*): Set ANDROID_DEFAULT.
7423 (arm*-*-linux*): Include linux-android.h.
7424 (arm*-*-eabi*): Don't include previous -mandroid implementation.
7425 * config/arm/eabi.h: Remove, move Android-specific parts ...
7426 * config/linux-android.h: ... here. New file.
7427 * config/arm/eabi.opt: Rename to ...
7428 * config/linux-android.opt: ... this.
7429 (mandroid): Allow -mno-android option. Initialize based on
7431 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7432 Move logic to corresponding LINUX_TARGET_* macros.
7433 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7434 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7435 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7436 Android definitions.
7437 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7438 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7441 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
7443 Add support for Bionic C library
7445 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7447 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7448 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7450 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7451 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7452 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7453 to support multiple C libraries. Handle Bionic.
7454 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7455 (BIONIC_DYNAMIC_LINKER64): Define.
7456 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7458 (TARGET_HAS_SINCOS): Enable for Bionic.
7460 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
7461 the last option specified on command line take effect.
7462 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7464 (mglibc, muclibc): Update.
7466 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7467 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7470 * doc/invoke.texi (-mglibc, -muclibc): Update.
7471 (-mbionic): Document.
7473 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7475 * c-common.h (c_register_addr_space): Add prototype.
7476 (ADDR_SPACE_KEYWORD): Remove.
7477 * c-common.c (c_register_addr_space): New function.
7478 (c_addr_space_name): Reimplement.
7479 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7481 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7482 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7484 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7485 Remove TARGET_ADDR_SPACE_KEYWORDS.
7487 2010-05-27 Joseph Myers <joseph@codesourcery.com>
7489 * input.c: New file.
7490 * input.h (main_input_filename): Move declaration to toplev.h.
7491 * toplev.c (input_location, line_table): Move to input.c
7492 * toplev.h (main_input_filename): Move declaration from input.h.
7493 * tree.c (expand_location): Move to input.c.
7494 * Makefile.in (OBJS-common): Add input.o.
7495 (input.o): Add dependencies.
7497 2010-05-27 Richard Guenther <rguenther@suse.de>
7499 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7500 for non-existant files.
7501 (fork_execute): Mark args_name file as deleted.
7503 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
7506 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7507 (narrow_signed_type): Likewise.
7509 2010-05-26 Jan Hubicka <jh@suse.cz>
7511 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7512 edge only when checking is enabled; check using former_clone_of;
7513 check inline clones too.
7514 (cgraph_materialize_clone): Record former_clone_of pointer.
7515 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7516 combining redirections; dump args_to_skip bitmap
7517 (cgraph_materialize_all_clones): Do no redirection here.
7518 * ipa-inline.c (inline_transform): Do redirection here.
7519 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7522 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7524 * config/avr/avr-c.c: Do not include regs.h.
7525 Include cpplib.h for cpp_define and tree.h for c-common.h.
7526 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7527 * config/avr/t-avr: Fix dependencies for avr-c.o.
7529 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7531 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7532 string instead of SYMBOL_REF rtx.
7533 * rtl.h (set_stack_check_libfunc): Move prototype from here...
7534 * libfuncs.h: ...to here. Adjust for explow.c change.
7536 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7538 * pretty-print.c: Don't include ggc.h.
7539 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7540 (identifier_to_locale): Use them for allocation.
7541 * pretty-print.h (identifier_to_locale_alloc,
7542 identifier_to_locale_free): Declare.
7543 * toplev.c (alloc_for_identifier_to_locale): New.
7544 (general_init): Set identifier_to_locale_alloc and
7545 identifier_to_locale_free.
7546 * Makefile.in (pretty-print.o): Update dependencies.
7548 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7550 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7551 pointer types if they have different alignment or mode.
7553 2010-05-26 Anatoly Sokolov <aesok@post.ru>
7555 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7556 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7557 * config/sparc/sparc-protos.h (function_value): Remove declaration.
7558 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7559 sparc_function_value_regno_p): New functions.
7560 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7561 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7562 (function_value): Rename to...
7563 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7564 argument to 'outgoing'.
7565 (function_arg_record_value, function_arg_union_value,
7566 function_arg_vector_value): Update comment.
7568 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
7570 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7571 (fde_needed_for_eh_p): New predicate.
7572 (output_call_frame_info): Use it throughout to decide whether FDEs
7573 are needed for EH purpose.
7574 (dwarf2out_begin_prologue): Reorder assignments.
7576 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7578 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7579 special case loop->header.
7580 (is_predicated): New.
7581 (if_convertible_loop_p): Call it.
7583 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7585 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7586 iterator in parameter. Do not generate code during the analysis.
7587 (tree_if_convert_cond_stmt): Removed.
7588 (tree_if_convert_stmt): Removed.
7589 (predicate_bbs): New.
7590 (if_convertible_loop_p): Call predicate_bbs.
7591 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7592 now contains all the analysis part.
7594 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7596 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7597 statements in the analysis part.
7598 (tree_if_convert_stmt): Update comment.
7599 (remove_conditions_and_labels): New.
7600 (combine_blocks): Call remove_conditions_and_labels.
7601 (tree_if_conversion): Update comment.
7603 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7605 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7606 than 2 predecessors or more than 2 successors.
7608 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7610 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7611 of loops in which the data dependence analysis fails.
7613 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7615 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7616 CDI_POST_DOMINATORS.
7617 (tree_if_conversion): Same.
7619 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7621 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7623 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
7625 * tree-if-conv.c: Update copyright years. Fix comments.
7628 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
7630 * builtin-types.def (BT_INT128): New primitive type.
7631 (BT_UINT128): Likewise.
7632 * c-common.c (c_common_r): Add __int128 keyword.
7633 (c_common_type_for_size): Handle __int128.
7634 (c_common_type_for_mode): Likewise.
7635 (c_common_signed_or_unsigned_type): Likewise.
7636 (c_common_nodes_and_builtins): Add builtin type
7637 if target supports 128-bit integer scalar.
7638 * c-common.h (enum rid): Add RID_INT128.
7639 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7640 if target supports 128-bit integer scalar.
7641 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7642 (finish_declspecs): Likewise.
7643 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7644 (c_token_starts_declspecs): Likewise.
7645 (c_parser_declspecs): Likewise.
7646 (c_parser_attributes): Likewise.
7647 (c_parser_objc_selector): Likewise.
7648 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7649 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7650 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7651 * tree.c (make_or_reuse_type): Likewise.
7652 (make_unsigned_type): Likewise.
7653 (build_common_tree_nodes_2): Likewise.
7654 * tree.h (enum integer_type_kind): Add itk_int128 and
7655 itk_unsigned_int128.
7656 (int128_integer_type_node): New define.
7657 (int128_unsigned_type_node): New define.
7658 * doc/extend.texi: Add documentation about __int128 type.
7660 2010-05-26 Richard Guenther <rguenther@suse.de>
7662 * tree-ssa-sccvn.c (copy_nary): Adjust.
7663 (copy_phis): Rename to ...
7664 (copy_phi): ... this. Adjust.
7665 (copy_references): Rename to ...
7666 (copy_reference): ... this. Adjust.
7667 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7668 result into the valid table.
7670 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7672 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7673 insn-config.h, insn-codes.h, recog.h, and optabs.h.
7675 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7677 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7679 2010-05-26 Richard Guenther <rguenther@suse.de>
7681 * opts.c (common_handle_option): Handle OPT_Ofast.
7683 2010-05-26 Joseph Myers <joseph@codesourcery.com>
7685 * diagnostic.c: Don't include opts.h.
7686 (permissive_error_option): Define.
7687 (diagnostic_initialize): Take n_opts parameter. Allocate memory
7688 for classify_diagnostic. Don't use memset for
7689 classify_diagnostic. Initialize new and recently added fields.
7690 (diagnostic_classify_diagnostic): Use context->n_opts instead of
7692 (diagnostic_report_diagnostic): Pass context parameter to
7693 diagnostic_report_warnings_p. Use option_enabled and option_name
7695 (emit_diagnostic): Use permissive_error_option.
7696 (permerror): Likewise.
7697 * diagnostic.h: Don't include options.h.
7698 (struct diagnostic_context): Add n_opts, opt_permissive,
7699 inhibit_warnings, warn_system_headers, option_enabled and
7700 option_name fields. Change classify_diagnostic to a pointer.
7701 * opts-diagnostic.h: New file.
7702 * opts.c: Include opts-diagnostic.h.
7703 (common_handle_option): Set global_dc fields for -Wfatal-errors,
7704 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7705 (option_name): New function.
7706 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7707 (c_common_handle_option): Set global_dc->permissive for
7709 * c-common.c (c_cpp_error): Save and restore
7710 global_dc->warn_system_headers, not variable warn_system_headers.
7711 * toplev.c: Include opts-diagnostic.h.
7712 (general_init): Update call to diagnostic_initialize. Set
7713 global_dc->show_column, global_dc->option_enabled and
7714 global_dc->option_name.
7715 (process_options): Don't set global_dc fields here.
7716 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7717 (diagnostic.o, opts.o, toplev.o): Update dependencies.
7719 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
7721 * config/picochip/picochip.md (movsi): Split a movsi from a
7724 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7726 * ggc-zone.c: Update copyright year.
7727 (poison_region): Mark memory for Valgrind as undefined before
7728 memset () call and inaccessible afterwards.
7729 (ggc_pch_total_size): Change type of i to int.
7731 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7733 * ggc-common.c (ggc_free_overhead): Allow empty slot.
7735 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7737 * ggc-common.c: Update copyright year.
7738 (ggc_rlimit_bound): Remove prototype. Compile only if
7739 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7740 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7741 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
7742 (ggc_min_heapsize_heuristic): Likewise.
7744 2010-05-26 Richard Guenther <rguenther@suse.de>
7746 PR rtl-optimization/44164
7747 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7748 no-common access-path disambiguation.
7749 (indirect_ref_may_alias_decl_p): Adjust.
7750 (indirect_refs_may_alias_p): Likewise.
7751 (refs_may_alias_p_1): Likewise.
7753 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7755 * c-typeck.c: Do not include expr.h.
7757 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
7759 * rtl.h (decl_default_tls_model): Move prototype from here...
7760 * output.h: ...to here.
7761 * c-decl.c: Do not include rtl.h.
7762 * c-pragma.c: Likewise.
7763 * c-parser.c: Likewise.
7764 * c-gimplify.c: Likewise. And also not hard-reg-set.
7765 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
7766 FIXME note for it. Add a FIXME note for expr.h.
7767 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7768 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7771 2010-05-26 Jakub Jelinek <jakub@redhat.com>
7774 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7775 or total_size is larger than red zone size for non-V4 ABI, emit a
7776 stack_tie resp. frame_tie insn before stack pointer restore.
7777 * config/rs6000/rs6000.md (frame_tie): New insn.
7779 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
7781 * function.h (struct function): Add can_throw_non_call_exceptions bit.
7782 * lto-streamer-in.c (input_function): Stream it in.
7783 * lto-streamer-out.c (output_function): Stream it out.
7784 * function.c (allocate_struct_function): Set it.
7785 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7786 for flag_non_call_exceptions.
7787 * cfgbuild.c (control_flow_insn_p): Likewise.
7788 (make_edges): Likewise.
7789 * cfgexpand.c (expand_stack_alignment): Likewise.
7790 * combine.c (distribute_notes): Likewise.
7791 * cse.c (cse_extended_basic_block): Likewise.
7792 * except.c (insn_could_throw_p): Likewise.
7793 * gcse.c (simple_mem): Likewise.
7794 * ipa-pure-const.c (check_call): Likewise.
7795 (check_stmt ): Likewise.
7796 * lower-subreg.c (lower-subreg.c): Likewise.
7797 * optabs.c (emit_libcall_block): Likewise.
7798 (prepare_cmp_insn): Likewise.
7799 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7800 * postreload.c (rest_of_handle_postreload): Likewise.
7801 * reload1.c (reload_as_needed): Likewise.
7802 (emit_input_reload_insns): Likewise.
7803 (emit_output_reload_insns): Likewise.
7804 (fixup_abnormal_edges): Likewise.
7805 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7806 * store-motion.c (find_moveable_store): Likewise.
7807 * tree-eh.c (stmt_could_throw_p): Likewise.
7808 (tree_could_throw_p): Likewise.
7809 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7810 * config/arm/arm.c (arm_expand_prologue): Likewise.
7811 (thumb1_expand_prologue): Likewise.
7812 * config/rx/rx.md (cbranchsf4): Likewise.
7814 * config/s390/s390.c (s390_emit_prologue): Likewise.
7815 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7816 (inline_forbidden_into_p): New predicate.
7817 (expand_call_inline): Use it to forbid inlining.
7818 (tree_can_inline_p): Likewise.
7820 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7822 * config/i386/i386-c.c: Do not include rtl.h.
7823 * config/i386/t-i386: Update dependencies.
7825 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7827 * attribs.c: Do not include rtl.h.
7828 * Makefile.in: Update dependencies.
7830 2010-05-25 Anatoly Sokolov <aesok@post.ru>
7832 * double-int.h (double_int_and): New.
7833 * combine.c (try_combine): Clean up, use double_int_* and
7834 immed_double_int_const functions.
7836 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7838 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7839 stderr to /dev/null instead of grep -q.
7840 * configure: Regenerate.
7842 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
7844 * Makefile.in (EXCEPT_H): Fix typo.
7846 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
7848 * ira-build.c (update_conflict_hard_reg_costs): New.
7849 (ira_build): Call update_conflict_hard_reg_costs.
7851 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7854 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7856 (intersect_loc_chains): Walk the s2var's loc_chain together
7857 with s1node chain as long as the locations are equal, don't
7858 call find_loc_in_1pdv in that case.
7861 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7862 (copy_bind_expr): ... instead of here.
7863 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7864 if the block hasn't been remapped.
7865 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7866 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7868 2010-05-25 Richard Guenther <rguenther@suse.de>
7871 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7872 out-of-bounds array accesses.
7874 2010-05-25 Richard Guenther <rguenther@suse.de>
7876 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7877 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7878 (run_gcc): Re-organize to make cleanup easier.
7880 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7882 * config/s390/s390.c (optimization_options): Fix and move the
7883 flag_prefetch_loop_arrays override ...
7884 (override_options): ... here.
7886 2010-05-25 Joseph Myers <joseph@codesourcery.com>
7888 * diagnostic.c: Don't include plugin.h.
7889 (diagnostic_report_diagnostic): Don't handle plugins specially
7890 here. Pass context to internal_error callback.
7891 * diagnostic.h (struct diagnostic_context): Add context parameter
7892 to internal_error callback.
7893 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7894 * plugin.h (struct diagnostic_context): Declare.
7895 (warn_if_plugins, plugins_internal_error_function): Declare.
7896 * toplev.c (general_init): Set global_dc->internal_error.
7897 * Makefile.in (diagnostic.o): Update dependencies.
7899 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
7901 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7902 * config/rs6000/t-darwin64: New.
7903 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7906 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7909 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7910 match the original (and intended) behaviour before r159557. This
7911 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7914 2010-05-25 Richard Guenther <rguenther@suse.de>
7916 * doc/invoke.texi: Document -Ofast.
7917 * target.h (struct gcc_target): Add handle_ofast.
7918 * target-def.h (TARGET_HANDLE_OFAST): Add.
7919 (TARGET_INITIALIZER): Adjust.
7920 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7921 * common.opt (Ofast): Add.
7923 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7925 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7926 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7928 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7931 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7932 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7933 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7934 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7936 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7938 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7939 DW_OP_minus with negated offset instead of DW_OP_plus.
7940 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7942 2010-05-25 Wei Guozhi <carrot@google.com>
7944 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7945 tst instruction and a new alternative.
7946 * config/arm/constraints.md (Pu): New constraint.
7948 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7950 * function.c (assign_stack_local_1): Initialize variable
7951 to avoid warning when bootstrapping at -O3.
7953 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7955 * configure.ac (all_lang_makefiles): Remove everything related to it.
7956 * configure: Regenerate.
7957 * Makefile.in: Fix reference to ada Make-lang.in.
7958 Remove support for LANG_MAKEFILES.
7960 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7961 Sandra Loosemore <sandra@codesourcery.com>
7963 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7964 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7965 description. Add arm_neon_fp16_ok.
7966 (Add Options): Add arm_neon and arm_neon_fp16.
7968 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7970 * diagnostic.c: Don't include flags.h.
7971 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7972 context parameters. Check flags in the context passed as a parameter.
7973 (diagnostic_build_prefix): Add context parameter. Check
7974 show_column flag in context.
7975 (diagnostic_action_after_output): Check fatal_errors flag in context.
7976 (diagnostic_report_current_module): Check show_column flag in context.
7977 (default_diagnostic_starter): Update call to
7978 diagnostic_build_prefix.
7979 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7980 (emit_diagnostic): Pass context to permissive_error_kind.
7981 (permerror): Pass context to permissive_error_kind.
7982 * diagnostic.h (struct diagnostic_context): Add show_column,
7983 pedantic_errors, permissive and fatal_errors fields.
7984 (diagnostic_build_prefix): Update prototype.
7986 * toplev.c (process_options): Set flags in global_dc from
7987 flag_show_column, flag_pedantic_errors, flag_permissive,
7989 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7990 to diagnostic_build_prefix.
7991 * Makefile.in (diagnostic.o): Update dependencies.
7993 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
7995 * config/i386/ia32intrin.h (__crc32q): Define only if
7996 __SSE4_2__ is defined.
7998 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
8002 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8003 DECL_VISIBILITY_SPECIFIED.
8004 (emutls_decl): Set DECL_PRESERVE_P and copy
8005 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8006 (emutls_finalize_control_var): New callback.
8007 (emutls_finish): Finalize emutls control variables.
8008 * toplev.c (compile_file): Move the call to emutls_finish ()
8009 before varpool_assemble_pending_decls ().
8011 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
8013 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8014 added to the preprocessor condition.
8016 2010-05-24 Paul Brook <paul@codesourcery.com>
8018 * gengtype-lex.l: Add HARD_REG_SET.
8019 * expr.c (expand_expr_real_1): Record writes to hard registers.
8020 * function.c (rtl_data): Add asm_clobbers.
8021 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8022 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8023 Use crtl->asm_clobbers.
8025 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8027 * doc/makefile.texi (Makefile): Mention stages 'profile'
8028 and 'feedback' for profiledbootstrap.
8030 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
8033 * config/i386/i386.c (def_builtin): Properly check
8034 OPTION_MASK_ISA_64BIT.
8036 2010-05-23 Joseph Myers <joseph@codesourcery.com>
8038 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8039 typedefs with different but compatible types. Allow duplicate
8040 typedefs with the same type except for pedantic non-C1X, but give
8041 warning for variably modified types.
8042 * c-typeck.c (tagged_types_tu_compatible_p,
8043 function_types_compatible_p, type_lists_compatible_p,
8044 comptypes_internal): Add parameter different_types_p; set
8045 *different_types_p for different but compatible types. All
8047 (comptypes_check_different_types): New.
8048 * c-tree.h (comptypes_check_different_types): Declare.
8050 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8052 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
8053 * jump.c: Include basic-block.h.
8054 * profile.c: Likewise.
8055 * tree-profile.c: Likewise.
8056 * coverage.c: Likewise.
8057 * basic-block.h (optimize_function_for_size_p): Move to function.h.
8058 (optimize_function_for_speed_p): Likewise.
8059 * function.h (optimize_function_for_size_p,
8060 optimize_function_for_speed_p): Moved here from basic-block.h.
8061 * Makefile.in: Update dependencies.
8063 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8065 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8066 before calling make; allow override through $MAKE.
8067 * doc/invoke.texi (Optimize Options): Document override.
8069 2010-05-23 Anatoly Sokolov <aesok@post.ru>
8071 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8072 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8073 (rs6000_mode_dependent_address_ptr): Make static.
8074 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8075 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8078 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
8081 * config/i386/i386.c: Make sure that the correct regparm is passed.
8083 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
8085 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8086 * sbitmap.c: ...to here to internalize sbitmap element access.
8087 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8088 Explain why basic-block.h is included.
8089 * function.h: Include tm.h for CUMULATIVE_ARGS.
8090 * Makefile.in: Update dependencies.
8092 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8094 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8096 * sbitmap.h (struct sbitmap_def): Do not typedef here.
8097 * sbitmap.c: Include sbitmap.h.
8098 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8099 hard-reg-set.h. Split everything related to regsets out from here...
8100 * regset.h: ...to here. New file.
8101 * df.h: Include regset.h and sbitmap.h.
8102 * tree-flow.h: Likewise.
8103 * cfgloop.h: Likewise.
8104 * except.h: Do not include sbitmap.h. Include hashtab.h.
8105 * cgraph.h: Include vec.h and function.h.
8106 * reload.h (struct insn_chain): Change types of live_throughout
8107 and dead_or_set from regset_head to bitmap_head.
8108 (compute_use_by_pseudos): Be defined also if regset.h is not included.
8109 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8110 spilled_regs from regset_head to bitmap_head to avoid dependency
8112 * sel-sched-ir.h: Include regset.h.
8113 * reload.c: Include df.h before reload.h.
8114 * caller-save.c: Likewise.
8115 * reload1.c: Likewise.
8117 (mark_elimination): Update type of r to bitmap, consistent with
8119 * dominance.c: Include bitmap.h.
8120 * modulo-sched.c: Include df.h.
8121 * cfganal.c: Include bitmap.h and sbitmap.h.
8122 * cfgbuild.c: Include sbitmap.h.
8123 * lcm.c: Include sbitmap.h.
8124 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8125 * domwalk.c: Include sbitmap.h, exclude ggc.h.
8126 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8127 * cselib.c: Include bitmap.h.
8128 * tree-optimize.c: Include regset.h.
8129 * stmt.c: Include bitmap.h.
8130 * Makefile.in: Update dependencies.
8132 2010-05-22 Jan Hubicka <jh@suse.cz>
8134 * cgraph.h (struct varpool_node): Add same_comdat_group.
8135 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8137 (output_varpool): Update call of lto_output_varpool_node.
8138 (input_varpool): Read same_comdat_group pointer.
8139 (input_varpool_1): Fixup same_comdat_group pointer.
8140 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8141 group is needed, all are.
8142 * varpool.c (varpool_remove_node): Remove node from same comdat group
8144 (varpool_analyze_pending_decls): Walk same comdat groups.
8146 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
8148 * rtl.h (union rtunion_def): Remove rt_bit member.
8149 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8150 * print-rtl (print_rtx): Do not print the member.
8151 * gengtype.c (adjust_field_rtx_def): Do not handle it.
8152 * gengenrtl.c (type_from_format): Likewise.
8153 (accessor_from_format): Likewise.
8155 2010-05-22 Joseph Myers <joseph@codesourcery.com>
8157 * dbgcnt.c: Include toplev.h instead of errors.h.
8158 * ira-emit.c: Don't include errors.h.
8159 * ira.c: Include toplev.h instead of errors.h.
8160 * lto-compress.c: Include toplev.h instead of errors.h.
8161 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8162 ira.o, dbgcnt.o): Update dependencies.
8164 2010-05-22 Richard Guenther <rguenther@suse.de>
8166 * gimple.c (gimple_types_compatible_p): Check type qualifications
8167 before merging pointer to complete and pointer to incomplete type.
8168 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8169 we use our own resolution algorithm. The gold linker plugin
8170 doesn't do the job we want it to do here.
8172 2010-05-22 Anatoly Sokolov <aesok@post.ru>
8174 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8175 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8176 (sparc_mode_dependent_address_p): New function.
8178 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8180 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8182 * timevar.c: Do not include any core headers.
8183 (timevar_print): De-i18n-ize.
8184 (print_time): Likewise.
8185 * timevar.h (timevar_push, timevar_pop): Make inline functions.
8187 2010-05-21 Joseph Myers <joseph@codesourcery.com>
8189 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8191 (diagnostic_initialize): Initialize x_data not last_function.
8192 (diagnostic_report_current_function): Move to tree-diagnostic.c.
8193 (default_diagnostic_starter): Call
8194 diagnostic_report_current_module not
8195 diagnostic_report_current_function.
8196 (diagnostic_report_diagnostic): Initialize x_data not
8198 (verbatim): Likewise.
8199 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8201 (struct diagnostic_context): Change last_function to x_data.
8202 (diagnostic_auxiliary_data): Replace with
8203 diagnostic_context_auxiliary_data and
8204 diagnostic_info_auxiliary_data.
8205 (diagnostic_last_function_changed, diagnostic_set_last_function,
8206 diagnostic_report_current_function): Move to tree-diagnostic.h.
8207 (print_declaration, dump_generic_node, print_generic_stmt,
8208 print_generic_stmt_indented, print_generic_expr,
8209 print_generic_decl, debug_c_tree, dump_omp_clauses,
8210 print_call_name, debug_generic_expr, debug_generic_stmt,
8211 debug_tree_chain, default_tree_printer): Move to
8212 tree-pretty-print.h.
8213 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8214 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8215 gimple-pretty-print.h.
8216 * pretty-print.c: Don't include tree.h
8217 (pp_base_format): Don't handle %K here.
8218 (pp_base_tree_identifier): Move to tree-pretty-print.c.
8219 * pretty-print.h (text_info): Change abstract_origin to x_data.
8220 (pp_tree_identifier, pp_unsupported_tree,
8221 pp_base_tree_identifier): Move to tree-pretty-print.h.
8222 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8223 tree-pretty-print.h: New files.
8224 * tree-pretty-print.c: Include tree-pretty-print.h.
8225 (percent_K_format): New. Moved from pretty-print.c.
8226 (pp_base_tree_identifier): Move from pretty-print.c.
8227 * c-objc-common.c: Include tree-pretty-print.h.
8228 (c_tree_printer): Handle %K here.
8229 * langhooks.c: Include tree-diagnostic.h.
8230 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8231 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8232 (default_tree_printer): Handle %K using percent_K_format.
8233 (general_init): Use default_tree_diagnostic_starter.
8234 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8235 (free_lang_data): Use default_tree_diagnostic_starter.
8236 * c-pretty-print.c: Include tree-pretty-print.h.
8237 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8238 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8239 * dwarf2out.c: Include tree-pretty-print.h.
8240 * except.c: Include tree-pretty-print.h.
8241 * gimple-pretty-print.c: Include tree-pretty-print.h and
8242 gimple-pretty-print.h.
8243 * gimplify.c: Include tree-pretty-print.h.
8244 * graphite-poly.c: Include tree-pretty-print.h and
8245 gimple-pretty-print.h.
8246 * ipa-cp.c: Include tree-pretty-print.h.
8247 * ipa-inline.c: Include gimple-pretty-print.h.
8248 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8249 * ipa-pure-const.c: Include gimple-pretty-print.h.
8250 * ipa-struct-reorg.c: Include tree-pretty-print.h and
8251 gimple-pretty-print.h.
8252 * ipa-type-escape.c: Include tree-pretty-print.h.
8253 * print-rtl.c: Include tree-pretty-print.h.
8254 * print-tree.c: Include gimple-pretty-print.h.
8255 * sese.c: Include tree-pretty-print.h.
8256 * tree-affine.c: Include tree-pretty-print.h.
8257 * tree-browser.c: Include tree-pretty-print.h.
8258 * tree-call-cdce.c: Include gimple-pretty-print.h.
8259 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8260 * tree-chrec.c: Include tree-pretty-print.h.
8261 * tree-data-ref.c: Include tree-pretty-print.h and
8262 gimple-pretty-print.h.
8263 * tree-dfa.c: Include tree-pretty-print.h.
8264 * tree-if-conv.c: Include tree-pretty-print.h and
8265 gimple-pretty-print.h.
8266 * tree-inline.c: Include tree-pretty-print.h.
8267 * tree-into-ssa.c: Include tree-pretty-print.h and
8268 gimple-pretty-print.h.
8269 * tree-nrv.c: Include tree-pretty-print.h.
8270 * tree-object-size.c: Include tree-pretty-print.h and
8271 gimple-pretty-print.h.
8272 * tree-outof-ssa.c: Include tree-pretty-print.h and
8273 gimple-pretty-print.h.
8274 * tree-parloops.c: Include tree-pretty-print.h and
8275 gimple-pretty-print.h.
8276 * tree-predcom.c: Include tree-pretty-print.h and
8277 gimple-pretty-print.h.
8278 * tree-scalar-evolution.c: Include tree-pretty-print.h and
8279 gimple-pretty-print.h.
8280 * tree-sra.c: Include tree-pretty-print.h.
8281 * tree-ssa-address.c: Include tree-pretty-print.h.
8282 * tree-ssa-alias.c: Include tree-pretty-print.h.
8283 * tree-ssa-ccp.c: Include tree-pretty-print.h and
8284 gimple-pretty-print.h.
8285 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8286 * tree-ssa-copy.c: Include tree-pretty-print.h and
8287 gimple-pretty-print.h.
8288 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8289 * tree-ssa-dce.c: Include tree-pretty-print.h and
8290 gimple-pretty-print.h.
8291 * tree-ssa-dom.c: Include tree-pretty-print.h and
8292 gimple-pretty-print.h.
8293 * tree-ssa-dse.c: Include gimple-pretty-print.h.
8294 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8295 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8296 * tree-ssa-live.c: Include tree-pretty-print.h and
8297 gimple-pretty-print.h.
8298 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8299 gimple-pretty-print.h.
8300 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8301 gimple-pretty-print.h.
8302 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8303 gimple-pretty-print.h.
8304 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8305 gimple-pretty-print.h.
8306 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8307 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8308 * tree-ssa-operands.c: Include tree-pretty-print.h and
8309 gimple-pretty-print.h.
8310 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8311 gimple-pretty-print.h.
8312 * tree-ssa-pre.c: Include tree-pretty-print.h and
8313 gimple-pretty-print.h.
8314 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8315 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8316 gimple-pretty-print.h.
8317 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8318 gimple-pretty-print.h.
8319 * tree-ssa-sink.c: Include gimple-pretty-print.h.
8320 * tree-ssa-ter.c: Include tree-pretty-print.h and
8321 gimple-pretty-print.h.
8322 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8323 * tree-ssa.c: Include tree-pretty-print.h and
8324 gimple-pretty-print.h.
8325 * tree-stdarg.c: Include gimple-pretty-print.h.
8326 * tree-switch-conversion.c: Include gimple-pretty-print.h.
8327 * tree-tailcall.c: Include tree-pretty-print.h and
8328 gimple-pretty-print.h.
8329 * tree-vect-data-refs.c: Include tree-pretty-print.h and
8330 gimple-pretty-print.h.
8331 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8332 gimple-pretty-print.h.
8333 * tree-vect-loop.c: Include tree-pretty-print.h and
8334 gimple-pretty-print.h.
8335 * tree-vect-patterns.c: Include gimple-pretty-print.h.
8336 * tree-vect-slp.c: Include tree-pretty-print.h and
8337 gimple-pretty-print.h.
8338 * tree-vect-stmts.c: Include tree-pretty-print.h and
8339 gimple-pretty-print.h.
8340 * tree-vectorizer.c: Include tree-pretty-print.h.
8341 * tree-vrp.c: Include tree-pretty-print.h and
8342 gimple-pretty-print.h.
8343 * value-prof.c: Include tree-pretty-print.h and
8344 gimple-pretty-print.h.
8345 * var-tracking.c: Include tree-pretty-print.h.
8346 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8347 (tree-diagnostic.o): New dependencies.
8348 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8349 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8350 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8351 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8352 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8353 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8354 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8355 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8356 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8357 tree-ssa-address.o, tree-ssa-loop-niter.o,
8358 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8359 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8360 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8361 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8362 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8363 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8364 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8365 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8366 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8367 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8368 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8369 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8370 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8371 tree-switch-conversion.o, var-tracking.o, value-prof.o,
8372 cfgexpand.o, pretty-print.o): Update dependencies.
8374 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
8376 * tree-ssa-structalias.c: Remove tm_p.h from include.
8378 2010-05-21 Jeff Law <law@redhat.com>
8380 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8382 2010-05-21 Jason Merrill <jason@redhat.com>
8384 * tree-eh.c (cleanup_is_dead_in): New.
8385 (lower_try_finally): Don't generate a dead cleanup region.
8386 (lower_cleanup): Likewise.
8388 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8391 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8392 unchain each use from the cyclic next_regno_use chain first.
8394 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8396 * real: Do not include gmp.h, mpfr.h, and mpc.h.
8397 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8398 (real_value_negate, real_value_abs): New prototypes.
8399 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8400 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8401 new include file for interface between MPFR and REAL_VALUE_TYPE.
8402 * real.c: Include realmpfr.h.
8403 (real_arithmetic2): Remove legacy function.
8404 (real_value_negate): New.
8405 (real_value_abs): New.
8406 (mfpr_from_real, real_from_mpfr): Move from here...
8407 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8408 * builtins.c: Include realmpfr.h.
8409 * fold-const.c: Include realmpfr.h.
8410 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8411 (fold_negate_const): Likewise.
8412 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8413 * toplev.c: Include realmpfr.h.
8414 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8415 and real_value_negate.
8416 * fixed-value.c (check_real_for_fixed_mode): Likewise.
8417 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8418 (vfp3_const_double_index): Likewise.
8419 (arm_print_operand): Likewise.
8420 * Makefile.in: Update dependencies.
8422 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8424 * config/s390/s390.c (override_options): Increase the default
8425 of max-completely-peel-times.
8427 2010-05-21 Julian Brown <julian@codesourcery.com>
8428 Mark Mitchell <mark@codesourcery.com>
8430 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8431 sibling calls for Thumb-1.
8432 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8433 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8435 (*call_insn, *call_value_insn): Don't use for Thumb-2.
8436 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8438 (return): New expander.
8439 (*arm_return): New name for ARM return insn.
8440 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8442 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
8444 * config.gcc (sparc64-*-rtems*): New target.
8446 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8448 * tree.c (build_function_decl_skip_args): Fix grammar.
8449 (build_function_type_list_1): Fix typos, adjust formatting.
8451 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
8453 * tree.h: Include real.h and fixed-value.h as basic datatypes.
8454 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8455 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8456 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8457 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8458 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8459 tree-pretty-print.c, tree-loop-distribution.c,
8460 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8461 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8462 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8463 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8464 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8465 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8466 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8467 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8468 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8469 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8470 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8471 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8472 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8473 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8474 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8475 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8476 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8477 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8478 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8479 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8480 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8481 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8482 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8483 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8484 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8485 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8486 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8487 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8488 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8489 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8490 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8491 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8492 config/score/score7.c, config/score/score.c, config/arm/arm.c,
8493 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8494 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8495 config/bfin/bfin.c: Clean up redundant includes.
8496 * Makefile.in: Update accordingly.
8498 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
8501 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8502 statement has no arguments.
8504 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
8507 * varasm.c (emutls_decl): Merge attributes to new decl.
8509 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
8512 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8513 around the uniquized constructor if its type requires a conversion.
8515 2010-05-21 Jakub Jelinek <jakub@redhat.com>
8518 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8519 at -O0 goto_locus of any of the incoming edges differs from
8520 goto_locus of outgoing edge, or gimple_location of any of the
8523 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
8525 * ira.c (ira_non_ordered_class_hard_regs): Define.
8526 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8527 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8528 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8529 cost of unaligned hard regs when allocating multi-reg pseudos.
8531 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
8533 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8534 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8535 for TARGET_NO_FLOAT.
8536 * config/mips/mips.c (mips_file_start): Expand conditional expression
8537 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8538 (mips_override_options): Move -mno-float override -msoft-float and
8540 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8541 Condition(TARGET_SUPPORTS_NO_FLOAT).
8542 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8543 __mips_no_float here.
8544 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8545 (TARGET_SUPPORTS_NO_FLOAT): Define.
8546 * config/mips/sdemtk.opt: Delete.
8548 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
8550 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8552 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
8555 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8556 * configure: Regenerate.
8557 * config.in: Regenerate.
8558 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8559 instead of sahf only for 64bit targets.
8561 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8564 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8565 setup_ref_regs for DEBUG_INSNs.
8567 2010-05-20 Jan Hubicka <jh@suse.cz>
8570 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8572 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
8575 * df-scan.c (df_ref_compare): Stabilize sort.
8577 2010-05-20 Jakub Jelinek <jakub@redhat.com>
8579 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8580 argument. Don't use DW_OP_piece if offset is non-zero,
8581 put offset into second DW_OP_bit_piece argument.
8582 (dw_sra_loc_expr): Adjust callers. For memory expressions
8585 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
8588 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8589 settings for 16-bit-constant "addo" alternative.
8591 2010-05-19 James E. Wilson <wilson@codesourcery.com>
8593 * config/mips/mips-dsp.md (add<DSPV:mode>3,
8594 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8597 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
8598 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8601 2010-05-19 Joseph Myers <joseph@codesourcery.com>
8603 * diagnostic.c (FLOAT, FFS): Don't undefine.
8604 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8605 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8608 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
8610 * combine.c (propagate_for_debug): Call make_compound_operation
8611 on the source value.
8612 (try_combine): When implementing a split chosen by find_split_point,
8613 either copy i2src or set it to null. Assert that i2src is not null
8614 before substituting into CALL_INSN_FUNCTION_USAGE.
8616 2010-05-19 Anatoly Sokolov <aesok@post.ru>
8618 * double-int.h (double_int_ior): New function.
8619 * tree.h (build_int_cst_wide_type): Remove.
8620 * tree.c (build_int_cst_wide_type): Remove.
8621 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8622 of build_int_cst_wide_type.
8623 * stor-layout.c (set_sizetype): (Ditto.).
8624 * dojump.c (do_jump): Use build_int_cstu instead of
8625 build_int_cst_wide_type.
8627 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
8629 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8630 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8631 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8632 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8633 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
8634 propagate the 'data' argument to copy_tree_r.
8635 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8636 Propagate 'data' argument to walk_tree.
8637 (copy_if_shared): New function.
8638 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8639 (unmark_visited): New function.
8640 (unshare_body): Call copy_if_shared instead of doing it manually.
8641 (unvisit_body): Call unmark_visited instead of doing it manually.
8643 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
8645 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8646 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
8647 * hooks.c: Likewise.
8648 * target-def.h (TARGET_FOLD_BUILTIN): Define to
8649 hook_tree_tree_int_treep_bool_null.
8650 * target.h (struct gcc_target): Update signature of fold_builtin
8652 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8653 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8654 instead of the call expression.
8655 (fold_builtin_call_array): Pass n and argarray directly.
8656 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8658 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
8659 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
8660 `i' and use it in place of `arity'.
8661 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8662 Dereference `args' directly.
8663 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8665 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8667 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8669 (Directives): Document optional dg-require-effective-target
8672 2010-05-19 Richard Guenther <rguenther@suse.de>
8675 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8677 2010-05-19 Richard Guenther <rguenther@suse.de>
8679 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8680 * common.opt (fwhopr=): New.
8681 * opts.c (common_handle_option): Handle OPT_fwhopr.
8682 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8683 * collect2.c (main): Match -fwhopr*.
8684 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8685 Execute ltrans stage in parallel when jobs is bigger than 1.
8687 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8689 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8690 pentiumpro on Solaris 8/x86 with Sun as.
8691 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8693 (gcc_cv_as_ix86_quad): Check for .quad directive.
8694 * configure: Regenerate.
8695 * config.in: Regenerate.
8696 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8698 2010-05-19 Martin Jambor <mjambor@suse.cz>
8700 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8701 also for indirect edges. Actual printing moved...
8702 (ipa_print_node_jump_functions_for_edge): ...here.
8703 (ipa_compute_jump_functions): Renamed to
8704 ipa_compute_jump_functions_for_edge and made static.
8705 (ipa_compute_jump_functions): New function.
8706 (make_edge_direct_to_target): Check if the number of arguments on
8707 the newly direct edge is the same as the number of parametrs of
8709 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8710 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
8711 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8712 analysis functions unconditionally, call the new
8713 ipa_analyze_params_uses on the node instead of every edge.
8715 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
8717 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8719 (dump_mem_ref): Adopt debug code to handle a tree as step. This
8720 also checks for a constant int vs. non-constant but
8721 loop-invariant steps.
8722 (find_or_create_group): Change the sort algorithm to only consider
8723 steps that are constant ints.
8724 (idx_analyze_ref): Adopt code to handle a tree instead of a
8725 HOST_WIDE_INT for step.
8726 (gather_memory_references_ref): Handle tree instead of int and be
8727 prepared to see a NULL_TREE.
8728 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8729 prefetches if the step cannot be calculated at compile time.
8730 (issue_prefetch_ref): Issue prefetches for non-constant but
8731 loop-invariant steps.
8733 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8736 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8738 * tree.h (build_call_list): Remove.
8739 * tree.c (build_call_list): Remove.
8741 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
8743 * tree.h (build_call_list): Remove.
8744 * tree.c (build_call_list): Remove.
8746 2010-05-18 Jan Hubicka <jh@suse.cz>
8748 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8750 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
8752 PR rtl-optimization/43332
8753 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8755 2010-05-18 Anatoly Sokolov <aesok@post.ru>
8757 * tree.h (build_int_cstu): Implement as static inline.
8758 * tree.c (build_int_cstu): Remove function.
8759 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8762 2010-05-18 Richard Guenther <rguenther@suse.de>
8765 * lto-wrapper.c (verbose): New variable. Initialize from -v.
8766 (debug): Initialize from -save-temps.
8767 (collect_execute): Print command-line when verbose.
8768 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
8769 for ltrans invocation. Produce -dumpbase flag again.
8770 (process_args): Remove.
8772 * collect2.c (maybe_run_lto_and_relink): Only pass object
8773 files to lto-wrapper.
8774 * gcc.c (LINK_COMMAND_SPEC): Likewise.
8776 2010-05-18 Jan Hubicka <jh@suse.cz>
8778 * opts.c (decode_options): Do not disable whopr at ipa_cp.
8779 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8781 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8784 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8786 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8789 2010-05-18 Jakub Jelinek <jakub@redhat.com>
8792 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8795 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
8797 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8798 lto-macho as lto_binary_reader.
8800 * darwin.c (darwin_asm_named_section): Do not add assembler comment
8801 after .section directive; just print it before the directive instead.
8803 2010-05-17 Jan Hubicka <jh@suse.cz>
8805 * cgraph.c (cgraph_create_virtual_clone): Only check
8806 versionable_function_p when not in wpa and checking is enabled.
8807 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8808 there are no more functions to materialize.
8810 2010-05-17 Jan Hubicka <jh@suse.cz>
8812 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8813 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8815 (output_cgraph): Call output_cgraph_opt_summary.
8816 (input_cgrpah): Call input_cgraph_opt_summary.
8817 (output_cgraph_opt_summary_p, output_node_opt_summary,
8818 input_node_opt_summary, input_cgraph_opt_section): New functions.
8819 * lto-section-in.c (lto_section_name): Add cgraphopt.
8820 * tree-inline.c (tree_function_versioning): Handle parm_num.
8821 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8822 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8824 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8826 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8827 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8828 the insn to prefetch ratio heuristic to loops with known trip count.
8830 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
8832 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8833 (schedule_prefetches): Do not generate a prefetch if the unroll factor
8834 is far from what is required by the prefetch.
8836 2010-05-17 Jan Hubicka <jh@suse.cz>
8838 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8839 (ipcp_estimate_growth): Likewise.
8840 (ipcp_const_param_count): Likewise.
8841 (ipcp_insert_stage): Likewise.
8842 * ipa-prop.c (visit_load_for_mod_analysis): New function.
8843 (visit_store_addr_for_mod_analysis): Set used flag.
8844 (ipa_detect_param_modifications): Set used flag for SSE params;
8845 update use of walk_stmt_load_store_addr_ops.
8846 (ipa_print_node_params): Print used flag.
8847 (ipa_write_node_info): Stream used flag.
8848 (ipa_read_node_info): Likewise.
8849 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8850 (ipa_is_param_used): New function.
8851 (lto_ipa_fixup_call_notes): Remove unused declaration.
8853 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8856 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8857 * configure: Regenerate.
8858 * config.in: Regenerate.
8859 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8860 !HAVE_AS_IX86_REP_LOCK_PREFIX.
8861 Don't emit whitespace.
8862 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8863 (*rep_movsi): Likewise.
8864 (*rep_movsi_rex64): Likewise.
8865 (*rep_movqi): Likewise.
8866 (*rep_movqi_rex64): Likewise.
8867 (*rep_stosdi_rex64): Likewise.
8868 (*rep_stossi): Likewise.
8869 (*rep_stossi_rex64): Likewise.
8870 (*rep_stosqi): Likewise.
8871 (*rep_stosqi_rex64): Likewise.
8872 (*cmpstrnqi_nz_1): Use {%;} after repz.
8873 (*cmpstrnqi_nz_rex_1): Likewise.
8874 (*cmpstrnqi_1): Likewise.
8875 (*cmpstrnqi_rex_1): Likewise.
8876 (*strlenqi_1): Use {%;} after repnz.
8877 (*strlenqi_rex_1): Likewise.
8878 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8879 (*sync_compare_and_swap<mode>): Likewise.
8880 (sync_double_compare_and_swap<mode>): Likewise.
8881 (*sync_double_compare_and_swapdi_pic): Likewise.
8882 (sync_old_add<mode>): Likewise.
8883 (sync_add<mode>): Likewise.
8884 (sync_sub<mode>): Likewise.
8885 (sync_<code><mode>): Likewise.
8887 2010-05-17 Martin Jambor <mjambor@suse.cz>
8889 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8890 otr_token and polymorphic.
8891 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8892 (cgraph_clone_edge): Copy the above fields.
8893 * tree.c (get_binfo_at_offset): New function.
8894 * tree.h (get_binfo_at_offset): Declare.
8895 * ipa-prop.h (enum jump_func_type): Added known_type jump function
8896 type, reordered items, updated comments.
8897 (union jump_func_value): Added base_type field, reordered fields.
8898 (enum ipa_lattice_type): Moved down in the file.
8899 (struct ipa_param_descriptor): New field polymorphic.
8900 (ipa_is_param_polymorphic): New function.
8901 * ipa-prop.c: Include gimple.h and gimple-fold.h.
8902 (ipa_print_node_jump_functions): Print known type jump functions.
8903 (compute_complex_pass_through): Renamed to...
8904 (compute_complex_assign_jump_func): this.
8905 (compute_complex_ancestor_jump_func): New function.
8906 (compute_known_type_jump_func): Likewise.
8907 (compute_scalar_jump_functions): Create known type and complex ancestor
8909 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8910 flag in the call note accordingly.
8911 (ipa_analyze_call_uses): Renamed to...
8912 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8913 variable var only in the block where it is used.
8914 (ipa_analyze_virtual_call_uses): New function.
8915 (ipa_analyze_call_uses): Likewise.
8916 (combine_known_type_and_ancestor_jfs): Likewise.
8917 (update_jump_functions_after_inlining): Implemented handling of a
8918 number of new jump function types combination.
8919 (print_edge_addition_message): Removed.
8920 (make_edge_direct_to_target): New function.
8921 (try_make_edge_direct_simple_call): Likewise.
8922 (try_make_edge_direct_virtual_call): Likewise.
8923 (update_call_notes_after_inlining): Renamed to...
8924 (update_indirect_edges_after_inlining): this. Moved edge creation for
8925 indirect calls to try_make_edge_direct_simple_call, also calls
8926 try_make_edge_direct_virtual_call for virtual calls.
8927 (ipa_print_node_params): Changed the header message.
8928 (ipa_write_jump_function): Stream also known type jump functions.
8929 (ipa_read_jump_function): Likewise.
8930 (ipa_write_indirect_edge_info): Stream new fields in
8931 cgraph_indirect_call_info.
8932 (ipa_read_indirect_edge_info): Likewise.
8933 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8936 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8938 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8940 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8942 * tree.h (CALL_EXPR_ARGS): Delete.
8943 (call_expr_arglist): Delete.
8944 * tree.c (call_expr_arglist): Delete.
8945 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8946 targetm.fold_builtin.
8947 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8948 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8949 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8950 arglist parameter. Use CALL_EXPR_ARG.
8951 (picochip_expand_builtin_3op): Likewise.
8952 (picochip_expand_builtin_2opvoid): Likewise.
8953 (picochip_expand_array_get): Likewise.
8954 (picochip_expand_array_put): Likewise.
8955 (picochip_expand_array_testport): Likewise.
8956 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8957 rather than arglist.
8958 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8960 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8961 than TREE_VALUE and TREE_CHAIN.
8962 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8963 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8966 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8969 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8970 to have no fallthru edge.
8973 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8974 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8975 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8976 add BARRIER after previous bb if needed.
8978 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8980 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8982 2010-05-17 Alan Modra <amodra@gmail.com>
8984 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8985 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8986 with copy_reg rtx param.
8987 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8988 Correct cases where code for ABI_V4 did not initialise the reg
8989 used to access frame. Also leave frame_reg_rtx as sp for large
8990 frames that save no regs.
8992 2010-05-17 Martin Jambor <mjambor@suse.cz>
8995 * tree-sra.c (create_access_replacement): New parameter rename, mark
8996 the replaement for renaming only when it is true.
8997 (get_access_replacement): Pass true in the rename parameter of
8998 create_access_replacement.
8999 (get_unrenamed_access_replacement): New function.
9000 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9001 replacement declaration from it.
9003 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
9005 * function.c (try_fit_stack_local, add_frame_space): New static
9007 (assign_stack_local_1): Use them. Look for opportunities to use
9008 space previously wasted on alignment.
9009 * function.h (struct frame_space): New.
9010 (struct rtl_data): Add FRAME_SPACE_LIST member.
9011 * reload1.c (something_was_spilled): New static variable.
9012 (alter_reg): Set it.
9013 (reload): Test it in addition to testing if the frame size changed.
9015 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
9017 * config/s390/s390.c: Define sane prefetch settings and activate
9018 flag_prefetch_loop_arrays on -O3.
9019 * config/s390/s390.h: Declare that read can use write prefetch.
9021 2010-05-17 Jakub Jelinek <jakub@redhat.com>
9023 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9026 2010-05-16 Jan Hubicka <jh@suse.cz>
9028 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9029 function body; do not check stdarg field of struct function.
9031 2010-05-16 Jan Hubicka <jh@suse.cz>
9033 * cgraph.c (dump_cgraph_node): Dump versionable flag.
9034 * cgraph.h (cgraph_local_info): Add versionable flag.
9035 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9036 (ipcp_versionable_function_p): Use it.
9037 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9040 2010-05-16 Jan Hubicka <jh@suse.cz>
9042 * cgraph.c (cgraph_clone_node): Take decl argument and insert
9043 clone into hash when it is different from orig.
9044 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9045 * cgraph.h (cgraph_clone_node): Update prototype.
9046 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9047 (lto_cgraph_encoder_delete): Delete body map.
9048 (lto_cgraph_encoder_size): Move to header.
9049 (lto_cgraph_encoder_encode_body_p,
9050 lto_set_cgraph_encoder_encode_body): New.
9051 (lto_output_node): Do not take written_decls argument; output clone_of
9053 (add_node_to): Add include_body_argument; call
9054 lto_set_cgraph_encoder_encode_body on master of the clone.
9055 (add_references): Update use of add_node_to.
9056 (compute_ltrans_boundary): Likewise.
9057 (output_cgraph): Do not create written_decls bitmap.
9058 (input_node): Take nodes argument; stream in clone_of correctly.
9059 (input_cgraph_1): Update use of input_node.
9060 * lto-streamer-out.c (lto_output): Use encoder info to decide
9061 what bodies to output.
9062 * ipa-inline.c (cgraph_clone_inlined_nodes,
9063 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9064 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9065 (lto_cgraph_encoder_size): Define here.
9066 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9069 2010-05-16 Richard Guenther <rguenther@suse.de>
9071 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9073 * ipa-type-escape.c (gate_type_escape_vars): Run when
9074 -fipa-struct-reorg runs.
9075 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9076 * common.opt (fipa-type-escape): Remove.
9078 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9080 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9081 (decode_options): Likewise.
9082 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9084 2010-05-16 Jan Hubicka <jh@suse.cz>
9086 * ipa.c (function_and_variable_visibility): Also bring local all
9089 2010-05-16 Richard Guenther <rguenther@suse.de>
9091 * alias.c (nonoverlapping_memrefs_p): Remove use of
9092 IPA type-escape information.
9094 2010-05-16 Joseph Myers <joseph@codesourcery.com>
9096 * c-common.c (c_common_reswords): Add _Static_assert for C.
9097 * c-parser.c (c_token_starts_declaration,
9098 c_parser_next_token_starts_declaration,
9099 c_parser_static_assert_declaration_no_semi,
9100 c_parser_static_assert_declaration): New.
9101 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9102 Handle static assertions if static_assert_ok.
9103 (c_parser_external_declaration, c_parser_declaration_or_fndef,
9104 c_parser_compound_statement_nostart, c_parser_label,
9105 c_parser_for_statement, c_parser_objc_methodprotolist,
9106 c_parser_omp_for_loop): All callers of
9107 c_parser_declaration_or_fndef changed.
9108 (c_parser_struct_declaration): Handle static assertions.
9109 (c_parser_compound_statement_nostart): Use
9110 c_parser_next_token_starts_declaration and
9111 c_token_starts_declaration to detect start of declarations.
9112 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9115 2010-05-16 Anatoly Sokolov <aesok@post.ru>
9117 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9118 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9119 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9120 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9121 (mmix_function_outgoing_value): Rename to...
9122 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9123 (mmix_function_value_regno_p): Make static.
9124 (mmix_libcall_value): New function.
9125 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9126 mmix_function_value_regno_p): Remove declaration.
9128 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
9130 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9131 BUILT_IN_ALLOCA if stack checking is enabled.
9133 2010-05-16 Richard Guenther <rguenther@suse.de>
9135 * var-tracking.c (vars_copy_1): Inline ...
9136 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
9137 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
9138 (variable_merge_over_cur): Adjust. Merge asserts.
9139 (variable_merge_over_src): Likewise.
9140 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9141 (variable_post_merge_new_vals): Merge asserts.
9142 (variable_post_merge_perm_vals): Likewise.
9143 (find_mem_expr_in_1pdv): Likewise.
9144 (dataflow_set_different_value): Remove.
9145 (onepart_variable_different_p): Merge asserts.
9146 (variable_different_p): Likewise.
9147 (dataflow_set_different_1): Inline ...
9148 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
9149 (emit_notes_for_differences_1): Merge asserts.
9151 2010-05-16 Richard Guenther <rguenther@suse.de>
9153 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9154 * optabs.c (libfunc_decl_hash): Likewise.
9155 * varasm.c (emutls_decl): Likewise.
9157 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
9159 * c-decl.c: Don't include gimple.h.
9160 (merge_decls): Do not copy gimple_body.
9162 2010-05-15 Jason Merrill <jason@redhat.com>
9164 * c.opt: Add -fnothrow-opt.
9166 2010-05-15 Jan Hubicka <jh@suse.cz>
9168 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9170 * passes.c (ipa_write_summaries): Write all analyzed nodes.
9172 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
9174 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9175 * Makefile.in: Add it.
9176 Fix all other Makefile dependencies for changes below.
9177 * tree.h: Include it instead of defining VEC primitives here.
9178 * gimple.h: Likewise.
9180 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9181 * except.h: Include vecir.h, break dependence on tree.h.
9183 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9185 * tree-iterator.c: ...to here.
9186 * tree-iterator.h: Fix file introduction comment. Add extern markers.
9188 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
9190 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9191 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9192 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9193 tree-mudflap.h, and target.h.
9194 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9195 predict.h, tree-inline.h, gimple.h, and langhooks.h.
9196 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9197 Add FIXME for why gimple.h is still included (should be unnecessary
9198 since GCC 4.5 gimplification unit-at-a-time).
9199 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9200 * c-pragma.c: Add FIXME for why function.h needs to be included just
9201 for cfun, at front-end level.
9202 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9203 Do not include ggc.h, but include vecprim.h for VEC(char).
9204 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9205 Explain why target.h is included.
9206 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9207 Explain why gimple.h is included.
9208 * c-ppoutput.c: Do not include tm.h.
9209 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
9210 * c-parses.c: Explain why rtl.h is included, and that this (and only
9211 this) is also why tm.h must be included.
9212 Do not include except.h.
9213 * c-lang.c: Do not include ggc.h.
9215 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
9217 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9219 2010-05-15 Joseph Myers <joseph@codesourcery.com>
9221 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9222 unions by default if those structs and unions have no tags. Do
9223 not condition anonymous struct and unions handling on flag_iso.
9224 Allow anonymous structs and unions for C1X.
9225 (finish_struct): Do not diagnose lack of named fields when
9226 anonymous structs and unions present for C1X. Accept flexible
9227 array members in structure with anonymous structs or unions but no
9228 directly named fields.
9229 * doc/extend.texi (Unnamed Fields): Update.
9231 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
9233 * gimple.h (compare_field_offset): Rename into...
9234 (gimple_compare_field_offset): ...this.
9235 * gimple.c (compare_field_offset): Rename into...
9236 (gimple_compare_field_offset): ...this. Compare the full access if
9237 the offset is self-referential.
9238 (gimple_types_compatible_p): Adjust for above renaming.
9239 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
9240 DECL_NONADDRESSABLE_P flag of fields before merging them.
9242 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
9244 * tree.h (ctor_to_list): Delete.
9245 * tree.c (ctor_to_list): Delete.
9247 2010-05-15 Jan Hubicka <jh@suse.cz>
9249 * ipa-reference.c: Include toplev.h
9250 (is_proper_for_analysis): Only add to all_module_statics
9252 (write_node_summary_p, stream_out_bitmap,
9253 ipa_reference_write_optimization_summary,
9254 ipa_reference_read_optimization_summary): New.
9255 (struct ipa_opt_pass_d pass_ipa_reference): Add
9256 optimization summary streaming.
9257 * lto-cgraph.c (referenced_from_this_partition_p,
9258 reachable_from_this_partition_p): New functions.
9259 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9260 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9261 * opts.c (decode_options): Enable ipa_reference.
9262 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9263 * lto-streamer.h (referenced_from_this_partition_p,
9264 reachable_from_this_partition_p): Declare.
9266 2010-05-15 Richard Guenther <rguenther@suse.de>
9268 PR tree-optimization/44038
9269 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9270 taking the address of a V_C_E of a constant.
9272 2010-05-14 Jan Hubicka <jh@suse.cz>
9274 * tree.h (memory_identifier_string): Remove.
9275 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9276 (ipa_reference_global_vars_info_d): Remove statics_not_read and
9277 statics_not_written.
9278 (ipa_reference_optimization_summary_d): New structure.
9279 (ipa_reference_optimization_summary_t): New type and vector.
9280 (ipa_reference_vars_info_d): Embedd structures instead of using
9282 (reference_vars_to_consider): Remove out of GGC space.
9283 (module_statics_escape): Remove.
9284 (global_info_obstack): Rename to ...
9285 (optimization_summary_obstack): ... this one.
9286 (initialization_status_t): Remove.
9287 (memory_identifier_string): Remove.
9288 (get_reference_vars_info): Fix indenting.
9289 (set_reference_vars_info): Likewise.
9290 (get_reference_optimization_summary): New.
9291 (set_reference_optimization_summary): New.
9292 (get_global_reference_vars_info): Remove.
9293 (ipa_reference_get_read_global): Remove.
9294 (ipa_reference_get_written_global): Remove.
9295 (ipa_reference_get_not_read_global): Update.
9296 (ipa_reference_get_not_written_global): Update.
9297 (is_proper_for_analysis): Outlaw addressable.
9298 (propagate_bits): Update for new datastructures.
9299 (analyze_variable): Remove.
9300 (init_function_info): Update for new datastructures.
9301 (clean_function_local_data): Remove.
9302 (clean_function): Remove.
9303 (copy_global_bitmap): Use optimizations_summary_obstack.
9304 (duplicate_node_data): Duplicate optimization summary only.
9305 (remove_node_data): Remove optimization summary only.
9306 (generate_summary): Do not analyze variables; do not compute
9307 module_statics_escape; do not prune solutions by it.
9308 (read_write_all_from_decl): Fix typos in comments.
9309 (propagate): Doscover readonly and nonaddressable first;
9310 update for new datastructures; share global bitmaps.
9311 * ipa-reference.h (ipa_reference_get_read_global,
9312 ipa_reference_get_written_global): Remove.
9313 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9314 * Makefile.in: Remove ipa-refereference from GT files.
9316 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9319 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9320 for all SYMBOL_REF_DECLs.
9322 2010-05-14 Jan Hubicka <jh@suse.cz>
9324 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9325 (varpool_all_refs_explicit_p): New inline function.
9326 * ipa-reference.c: Update comment.
9327 (module_statics_written): Remove.
9328 (get_static_decl): Remove.
9329 (ipa_init): Do not initialize module_statics_written.
9330 (analyze_function): Likewise.
9331 (generate_summary): Likewise; do not compute module_statics_readonly
9332 and do not update variable flags.
9333 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9334 * ipa.c: Inlucde flags.h
9335 (cgraph_local_node_p): New.
9336 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9337 promote functions to local.
9338 (ipa_discover_readonly_nonaddressable_vars): New function.
9339 (function_and_variable_visibility): Use cgraph_local_node_p.
9340 * varpool.c (varpool_finalize_decl): Set force_output for
9341 DECL_PRESERVE_P vars.
9343 2010-05-14 Jan Hubicka <jh@suse.cz>
9345 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9347 2010-05-14 Richard Guenther <rguenther@suse.de>
9349 PR tree-optimization/44119
9350 * tree-ssa-pre.c (eliminate): Properly mark replacement of
9351 a PHI node necessary.
9353 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
9355 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9357 2010-05-14 Jason Merrill <jason@redhat.com>
9360 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9361 (gimple_call_set_nothrow): New.
9362 * gimple.c (gimple_build_call_from_tree): Call it.
9363 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9366 * gimplify.c (gimplify_seq_add_stmt): No longer static.
9367 * gimple.h: Declare it.
9368 * gimple.c (gimple_build_eh_filter): No ops.
9370 2010-05-14 Jan Hubicka <jh@suse.cz>
9372 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9373 nodes already in queue.
9374 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9377 2010-05-14 Jakub Jelinek <jakub@redhat.com>
9380 * cfgexpand.c (expand_debug_expr): If non-memory op0
9381 has BLKmode, return NULL.
9383 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
9385 * config.gcc: Add support for --with-cpu option for bdver1.
9386 * config/i386/i386.h (TARGET_BDVER1): New macro.
9387 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9388 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9389 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9390 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9391 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9392 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9393 (processor_type): Add PROCESSOR_BDVER1.
9394 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9395 processor_type in config/i386/i386.h.
9396 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9397 movaps <reg, reg> instead of movapd <reg, reg> when replacing
9398 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9399 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9400 to emit packed xor instead of packed double/packed integer
9401 xor for SSE and AVX when moving a zero value.
9402 * config/i386/sse.md: Add check for
9403 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9404 movapd/movdqa for SSE and AVX.
9405 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9406 single logical operations i.e and, or and xor instead of packed double
9407 logical operations for SSE and AVX.
9408 * config/i386/i386-c.c (ix86_target_macros_internal):
9409 Add PROCESSOR_BDVER1.
9410 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9411 (has_fma4, has_xop): New.
9412 * config/i386/i386.c (bdver1_cost): New variable.
9413 (m_BDVER1): New macro.
9414 (m_AMD_MULTIPLE): Add m_BDVER1.
9415 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9416 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9417 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9418 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9419 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9420 x86_tune_sse_partial_reg_dependency,
9421 x86_tune_sse_unaligned_load_optimal,
9422 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9423 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9424 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9425 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9426 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9427 Enable/disable for bdver1.
9428 (processor_target_table): Add bdver1_cost.
9429 (cpu_names): Add bdver1.
9430 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9431 processor_alias_table.
9432 (ix86_expand_vector_move_misalign): Change.
9433 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9434 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9435 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9436 of movupd/movdqu for SSE and AVX.
9437 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9438 (ix86_tune_adjust_cost): Add code for bdver1.
9439 (standard_sse_constant_opcode): Add check for
9440 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9441 of packed double xor for SSE and AVX.
9443 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
9445 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9448 2010-05-14 Tristan Gingold <gingold@adacore.com>
9450 * toplev.c (default_debug_hooks): Remove this variable.
9451 (process_options): Remove assignments to default_debug_hooks.
9453 2010-05-14 Martin Jambor <mjambor@suse.cz>
9455 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9456 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9457 * langhooks.h (struct lang_hooks_for_decls): Removed field
9459 * tree.c (free_lang_data): Remove assignment to
9460 lang_hooks.fold_obj_type_ref.
9461 * tree.def (OBJ_TYPE_REF): Update comment.
9463 2010-05-14 Richard Guenther <rguenther@suse.de>
9465 PR tree-optimization/44124
9466 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9468 2010-05-14 Alan Modra <amodra@gmail.com>
9471 * config/rs6000/rs6000.c (struct machine_function): Reorder
9472 fields for better packing. Add lr_save_state.
9473 (rs6000_ra_ever_killed): Return lr_save_state if set.
9474 (rs6000_emit_eh_reg_restore): Set lr_save_state.
9476 2010-05-13 Jan Hubicka <jh@suse.cz>
9478 * varpool.c (decide_is_variable_needed): Drop code checking
9479 TREE_SYMBOL_REFERENCED.
9481 2010-05-13 Jan Hubicka <jh@suse.cz>
9483 * final.c (output_addr_const): Do not call mark_decl_referenced.
9484 * cgraphunit.c (process_function_and_variable_attributes): Use
9485 mark_needed_node dirrectly.
9486 (assemble_thunk): Do not call mark_decl_referenced.
9488 2010-05-13 Anatoly Sokolov <aesok@post.ru>
9490 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9492 2010-05-13 Jeff Law <law@redhat.com>
9494 * ira-conflicts.c (print_allocno_conflicts): New function broken out
9496 (print_conflicts): Call print_allocno_conflicts.
9498 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9501 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9504 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
9506 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9507 t-mingw-w64 or t-mingw-w32 for multilib configuration.
9508 * config/i386/t-mingw-w32: New.
9509 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9511 2010-05-13 Martin Jambor <mjambor@suse.cz>
9513 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9515 * gimple-fold.c (get_base_binfo_for_type): New function.
9516 (gimple_get_relevant_ref_binfo): Likewise.
9517 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9518 (gimple_fold_obj_type_ref): Likewise.
9519 (fold_gimple_call): Simplify condition for folding virtual calls
9520 and call gimple_fold_obj_type_ref.
9521 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9522 (gimple_fold_obj_type_ref_known_binfo): Likewise.
9524 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
9526 * config/rs6000/rs6000-protos.h
9527 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9528 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9529 (rs6000_debug_mode_dependent_address)
9530 (rs6000_mode_dependent_address_ptr): Likewise.
9532 2010-05-13 Jakub Jelinek <jakub@redhat.com>
9535 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9537 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9538 * tree-sra.c (create_access_replacement): Call unshare_expr before
9539 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9540 * dwarf2out.c: Include tree-flow.h.
9541 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9542 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9543 Handle DW_OP_bit_piece.
9544 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9545 construct_piece_list, adjust_piece_list): New functions.
9546 (add_var_loc_to_decl): Handle SRA optimized variables.
9547 Adjust for var_loc_note to loc field renaming.
9548 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9549 in VAR_LOCATION note.
9550 (new_loc_descr_op_bit_piece): New function.
9551 (dw_sra_loc_expr): New function.
9552 (dw_loc_list): Use it. Don't handle the last range after the
9553 loop, handle it inside of the loop. Adjust for var_loc_note
9554 to loc field renaming.
9555 (add_location_or_const_value_attribute): Only special case
9556 single entry loc lists if loc is NOTE_P. Adjust for
9557 var_loc_note to loc field renaming.
9558 (dwarf2out_var_location): Don't set newloc->var_loc_note
9559 and newloc->next here.
9561 2010-05-12 Jan Hubicka <jh@suse.cz>
9563 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9565 * cgraph.h (cgraph_only_called_directly_p,
9566 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9567 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9568 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9570 * ipa.c (cgraph_remove_unreachable_nodes): Use
9571 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9573 * tree-inline.c (copy_bb): Check address_taken flag.
9574 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9575 externally_visible flag.
9577 2010-05-12 Jason Merrill <jason@redhat.com>
9581 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9582 * sdbout.c (plain_type_1): Likewise.
9583 * dwarf2out.c (is_base_type): Likewise.
9584 (gen_type_die_with_usage): Likewise. Generate
9585 DW_TAG_unspecified_type for any LANG_TYPE.
9587 2010-05-12 Jan Hubicka <jh@suse.cz>
9589 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9591 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9592 (cgraph_clone_edge): Update.
9593 (cgraph_node_remove_callees): Remove indirect calls too.
9594 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9595 (cgraph_create_indirect_edge): Update prototype.
9596 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9597 is_proper_for_analysis.
9598 (add_new_function, visited_nodes, function_insertion_hook_holder,
9599 get_local_reference_vars_info, mark_address_taken, mark_address,
9600 mark_load, mark_store, check_asm_memory_clobber, check_call,
9601 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9602 (ipa_init): Do not initialize visited_nodes;
9603 function_insertion_hook_holder.
9604 (analyze_variable): Rewrite.
9605 (analyze_function): Rewrite.
9606 (copy_local_bitmap): Remove.
9607 (duplicate_node_dat): Do not duplicate local info.
9608 (generate_summary): Simplify to only walk cgraph.
9609 (write_node_summary_p, ipa_reference_write_summary,
9610 ipa_reference_read_summary): Remove.
9611 (propagate): Do not remove function insertion;
9613 (pass_ipa_reference): NULLify summary handling fields.
9614 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9615 (input_edge): Input ecf_flags.
9616 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9617 (update_indirect_edges_after_inlining): Ignore edges with unknown
9620 2010-05-12 Sriraman Tallam <tmsriram@google.com>
9622 * implicit-zee.c: New file.
9623 * tree-pass.h (pass_implicit_zee): Declare.
9624 * passes.c (init_optimization_passes): Add zee pass.
9625 * common.opt (fzee): New flag.
9626 * timevar.def (TV_ZEE): Define.
9627 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9629 * Makefile.in (implicit-zee.o): Add new build file.
9631 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9632 Nathan Froyd <froydnj@codesourcery.com>
9634 * c-common.c (sync_resolve_params): Remove write-only variable.
9636 2010-05-12 Anatoly Sokolov <aesok@post.ru>
9638 * target.h (struct gcc_target): Add mode_dependent_address_p field.
9639 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9640 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9641 * targhooks.c (default_mode_dependent_address_p): New function.
9642 * targhooks.h (default_mode_dependent_address_p): Declare function.
9643 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9644 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9645 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9646 target hook. Change return type to bool.
9647 * recog.h (mode_dependent_address_p): Change return type to bool.
9649 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9650 Nathan Froyd <froydnj@codesourcery.com>
9652 * tree-mudflap.c (build_function_type_0, build_function_type_1,
9653 build_function_type_2, build_function_type_3): Remove.
9654 (mudflap_init): Use build_function_type_list.
9656 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
9657 Nathan Froyd <froydnj@codesourcery.com>
9659 * coverage.c (build_fn_info_value): Call build_constructor instead of
9660 build_constructor_from_list.
9661 (build_ctr_info_value): Likewise.
9662 (build_gcov_info): Likewise.
9664 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
9666 * tree.c (build_constructor): Compute TREE_CONSTANT for the
9667 resultant constructor.
9668 (build_constructor_single): Don't set TREE_CONSTANT.
9669 (build_constructor_from_list): Don't compute TREE_CONSTANT.
9671 2010-05-12 Jan Hubicka <jh@suse.cz>
9673 * cgraph.h (struct varpool_node): Add aux.
9674 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9675 * varpool.c (varpool_remove_node): Do not remove initializer.
9676 (varpool_reset_queue): Export.
9677 (varpool_finalize_decl): Volatile vars are forced to be output.
9678 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9680 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9681 process_references, varpool_can_remove_if_no_refs): New functions.
9682 (cgraph_remove_unreachable_nodes): Handle variables too.
9684 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
9687 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9689 2010-05-12 Jakub Jelinek <jakub@redhat.com>
9692 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9693 change value of ORT_TASK.
9694 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9695 (omp_notice_threadprivate_variable): New function.
9696 (omp_notice_variable): Call it for threadprivate variables.
9697 If enclosing ctx is a task, print enclosing task rather than
9698 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
9699 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9700 if task has untied clause.
9703 * dwarf2out.c (base_type_die): Don't add name attribute here.
9704 (modified_type_die): Instead of sizetype use
9705 its underlying original type. If a DW_TAG_base_type doesn't
9706 have name added, add __unknown__.
9707 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9708 always call force_type_die instead.
9710 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
9712 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9713 for __stack_chk_guard.
9715 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9717 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9718 don't call start_source_file debug hook here...
9719 (finish_options): ... but here, after outputting predefined and
9720 command line defines and undefs.
9723 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9725 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9726 optimizing away empty bb with no successors, move over its
9727 footer chain to fallthru predecessor.
9728 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9729 (rtl_split_edge): For asm goto call patch_jump_insn even if
9730 splitting fallthru edge.
9733 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9734 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9735 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9736 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9740 * c-parser.c (c_parser_expression): Mark LHS of a comma
9741 expression as read if it is a decl, handled component or
9742 COMPOUND_EXPR with that on the RHS.
9743 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9744 if it is a decl or handled component.
9746 2010-05-11 Jan Hubicka <jh@suse.cz>
9748 * lto-symtab.c (lto_symtab_free): New function.
9749 * lto-streamer.h (lto_symtab_free): Declare.
9751 2010-05-11 Jan Hubicka <jh@suse.cz>
9753 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9754 that if function is needed it is reachable.
9755 (lto_output_node): See if it the function is reachable or referenced.
9756 (output_cgraph): Update call of lto_output_node.
9757 * lto-streamer.h (reachable_from_other_partition_p): Declare.
9759 2010-05-11 Jan Hubicka <jh@suse.cz>
9761 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9764 2010-05-11 Jan Hubicka <jh@suse.cz>
9766 PR tree-optimize/44063
9767 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9769 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9771 (estimate_function_body_sizes): Compute sizes even when disregarding.
9773 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
9775 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9777 2010-05-11 Jan Hubicka <jh@suse.cz>
9779 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9780 into every boundary.
9782 2010-05-11 Jan Hubicka <jh@suse.cz>
9784 * matrix-reorg.c (matrix_reorg): Rebuild edges.
9786 2010-05-11 Jan Hubicka <jh@suse.cz>
9788 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9789 lto_streamer_cache_delete): Put nodes into heap.
9790 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9793 2010-05-11 Jan Hubicka <jh@suse.cz>
9795 * cgraphbuild.c (cgraph_rebuild_references): New.
9796 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9798 * cgraph.h (cgraph_rebuild_references): Declare.
9799 * tree-inline.c (tree_function_versioning): Use it.
9800 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9802 2010-05-11 Jan Hubicka <jh@suse.cz>
9804 * cgraph.c: Include ipa-utils.h
9805 (cgraph_create_virtual_clone): Update references.
9806 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9808 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9810 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9811 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9814 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
9816 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9818 2010-05-11 Jakub Jelinek <jakub@redhat.com>
9820 * gcc.c (execute): For -### don't quote arguments that
9821 contain just alphanumerics and _/-. characters.
9822 * doc/invoke.texi: Document that change for -###.
9825 * df-problems.c (struct dead_debug): Add to_rescan field.
9826 (dead_debug_init): Clear to_rescan field.
9827 (dead_debug_finish): Rescan all debug insns in to_rescan
9828 bitmap and free the bitmap.
9829 (dead_debug_insert_before): Instead of rescanning debug insns
9830 immediately queue their rescanning until dead_debug_finish.
9831 (df_note_bb_compute): After dead_debug_add do continue instead
9834 2010-05-10 Jakub Jelinek <jakub@redhat.com>
9837 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9838 clear also INSN_REG_USE_LIST.
9840 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9842 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9844 2010-05-10 Jan Hubicka <jh@suse.cz>
9846 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9849 2010-05-10 Jan Hubicka <jh@suse.cz>
9851 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9853 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9854 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9855 (lto_streamer_cache_create): Init alloc pool.
9856 (lto_streamer_cache_delete): Free alloc pool.
9857 * lto-streamer.h: Include alloc pool.
9858 (lto_streamer_cache_d): Use alloc pool.
9859 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9861 2010-05-10 Jan Hubicka <jh@suse.cz>
9863 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9864 * cgraphbuild.c: Include except.h
9865 (record_type_list, record_eh_tables): New function.
9866 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9868 2010-05-10 Jan Hubicka <jh@suse.cz>
9870 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9871 __frame_dummy_init_array_entry, force_to_data): Attribute as used
9874 2010-05-10 Michael Matz <matz@suse.de>
9876 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9877 (can_reassociate_p): Use FLOAT_TYPE_P.
9878 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9879 (vect_force_simple_reduction): ... this.
9880 * tree-parloops.c (gather_scalar_reductions): Use
9881 vect_force_simple_reduction.
9882 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9883 vect_is_simple_reduction, add modify argument, if true rewrite
9884 "a-b" into "a+(-b)".
9885 (vect_is_simple_reduction, vect_force_simple_reduction): New
9887 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9889 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
9890 Vladimir Makarov <vmakarov@redhat.com>
9892 PR rtl-optimization/44012
9893 * ira-build.c (remove_unnecessary_allocnos): Nullify
9894 regno_allocno_map of the removed allocno.
9896 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9898 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9900 * configure: Regenerate.
9902 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9904 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9906 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9907 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9909 * configure: Regenerate.
9911 2010-05-10 Richard Guenther <rguenther@suse.de>
9913 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9914 marked if the entry identifier is marked.
9916 2010-05-10 Richard Guenther <rguenther@suse.de>
9918 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9919 (handle_fnspec_attribute): New function.
9920 * gimple.h (gimple_call_return_flags): Declare.
9921 (gimple_call_arg_flags): Likewise.
9922 * gimple.c (gimple_call_arg_flags): New function.
9923 (gimple_call_return_flags): Likewise.
9924 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9926 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9928 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9929 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9931 (make_heapvar_for): ... this new function.
9932 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9933 (handle_lhs_call): Likewise.
9934 (find_func_aliases): Adjust.
9936 2010-05-10 Richard Guenther <rguenther@suse.de>
9938 PR tree-optimization/44050
9939 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9941 2010-05-10 Wei Guozhi <carrot@google.com>
9944 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9946 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9949 * c-typeck.c (lookup_field): Take a type directly. Update
9951 (build_component_ref): Update call to lookup_field.
9952 (set_init_label): Use lookup_field to find initialized field.
9953 Handle returned list of fields like a sequence of designators.
9955 2010-05-09 Richard Guenther <rguenther@suse.de>
9958 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9959 handle &FUNCTION_DECL.
9961 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9964 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9965 structures and unions recursively.
9966 (detect_field_duplicates): Move duplicate detection with a hash to
9967 detect_field_duplicates_hash. Always use a hash if anonymous
9968 structures or unions are present.
9969 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9972 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9975 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9976 detect Atom, Core 2 and Core i7.
9978 2010-05-09 Richard Guenther <rguenther@suse.de>
9980 * gcc.c (store_arg): Handle temporary file deletion for
9983 2010-05-09 Richard Guenther <rguenther@suse.de>
9986 * ipa-inline.c (estimate_function_body_sizes): Return after
9987 disregarding inline limits.
9989 2010-05-09 Richard Guenther <rguenther@suse.de>
9991 * gcc.c (store_arg): Revert last change.
9993 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
9996 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9997 (optimize_ops_list): Call it.
9999 2010-05-08 Richard Guenther <rguenther@suse.de>
10001 PR tree-optimization/44030
10002 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
10003 NECESSARY flag if we propagate from a inserted expression.
10005 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
10007 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10008 domain types as equal if they are both PLACEHOLDER_EXPRs.
10010 2010-05-08 Richard Guenther <rguenther@suse.de>
10012 * lto-wrapper.c (run_gcc): Remove linker output from
10013 command line for LTRANS invocation.
10015 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10017 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10018 lto-macho as lto_binary_reader.
10019 * target.h (struct gcc_target): New hooks lto_start and lto_end.
10020 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10021 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10022 in lto_start and lto_end calls.
10023 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
10025 (scan_prog_file): Update is_elf_or_coff call.
10026 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10028 * collect2.c (main): Fix enum comparison.
10030 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10032 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10033 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
10034 and TARGET_ASM_LTO_END.
10035 * darwin.c: Include obstack.h and lto-streamer.h.
10036 (lto_section_names_offset, lto_section_names_obstack,
10037 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10039 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10040 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
10041 to a temporary file.
10042 (darwin_asm_lto_end): New function. Restore asm_out_file.
10043 (darwin_asm_named_section): For LTO sections, replace the name with
10044 the offset of the section name in a string table, and build this
10046 (darwin_file_start): Initialize global vars for LTO support.
10047 (darwin_file_end): If output to asm_out_file was redirected, append it
10048 to the proper asm_out_file here. Add the section names section.
10050 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
10052 * c-pragma.c (pending_weak_d, pending_weak): New.
10053 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10054 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10055 handle_pragma_weak): Update the uses of pending_weaks.
10057 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10059 PR documentation/44016
10060 * doc/standards.texi (Standards): Link to unversioned
10061 cxx0x_status.html page.
10063 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
10066 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10067 in addition to TREE_USED, to avoid "set but unused" warnings.
10069 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10071 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10072 (is_loop_prefetching_profitable): Do not insert prefetches
10073 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10074 times the prefetch ahead distance.
10076 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10078 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10079 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10080 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10083 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
10085 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10086 a diagnostic info when the insn-to-mem ratio is too small.
10088 2010-05-07 Richard Guenther <rguenther@suse.de>
10090 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10092 (store_arg): Queue temp_filename for deletion instead of
10093 the whole argument.
10095 2010-05-07 Richard Guenther <rguenther@suse.de>
10097 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10098 (run_gcc): Handle LTRANS phase invocation.
10099 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10101 2010-05-07 Jakub Jelinek <jakub@redhat.com>
10103 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10104 this is also meaningful on PARM_DECLs and RESULT_DECLs.
10106 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10108 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10110 2010-05-07 Richard Guenther <rguenther@suse.de>
10112 PR tree-optimization/44020
10113 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10114 code when PRE is not yet initialized.
10116 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10118 * config/mips/dbxmdebug.h: Remove.
10119 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10121 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
10123 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10124 with null pointer and also warn about ordered comparison of zero with
10125 pointer if -Wextra.
10127 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10129 * graphite-blocking.c
10130 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10131 * graphite-clast-to-gimple.c
10132 (clast_to_gcc_expression): Same.
10133 (precision_for_value): Same.
10134 (precision_for_interval): Same.
10135 (gcc_type_for_interval): Same.
10136 (graphite_create_new_guard): Same.
10137 (compute_bounds_for_level): Same.
10138 (graphite_create_new_loop_guard): Same.
10139 * graphite-interchange.c
10140 (build_linearized_memory_access): Same.
10141 (pdr_stride_in_loop): Same.
10142 (memory_strides_in_loop_1): Same.
10143 (memory_strides_in_loop): Same.
10144 (extend_scattering): Same.
10145 (psct_scattering_dim_for_loop_depth): Same.
10146 (pbb_number_of_iterations): Same.
10148 (debug_iteration_domains): Same.
10150 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10151 (ppl_set_inhomogeneous_gmp): Same.
10152 (ppl_strip_loop): Same.
10153 (ppl_lexico_compare_linear_expressions): Same.
10154 (ppl_read_polyhedron_matrix): Same.
10155 (ppl_max_for_le_pointset): Same.
10157 (ppl_read_polyhedron_matrix): Same.
10158 (tree_int_to_gmp): Same.
10159 (gmp_cst_to_tree): Same.
10160 (ppl_set_inhomogeneous): Same.
10161 (ppl_set_inhomogeneous_tree): Same.
10162 (ppl_set_coef): Same.
10163 (ppl_set_coef_tree): Same.
10164 * graphite-sese-to-poly.c
10165 (build_pbb_scattering_polyhedrons): Same.
10166 (build_scop_scattering): Same.
10167 (scan_tree_for_params_right_scev): Same.
10168 (scan_tree_for_params): Same.
10169 (find_params_in_bb): Same.
10170 (find_scop_parameters): Same.
10171 (add_upper_bounds_from_estimated_nit): Same.
10172 (build_loop_iteration_domains): Same.
10173 (add_condition_to_domain): Same.
10174 (pdr_add_memory_accesses): Same.
10176 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10178 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10179 CLooG's value_* macros to their respective mpz_* counterparts.
10180 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10181 (graphite_create_new_loop_guard): Same.
10182 * graphite-interchange.c (build_linearized_memory_access): Same.
10183 (pdr_stride_in_loop): Same.
10184 (memory_strides_in_loop_1): Same.
10185 (1st_interchange_profitable_p): Same.
10186 * graphite-poly.c (extend_scattering): Same.
10187 (psct_scattering_dim_for_loop_depth): Same.
10188 (pbb_number_of_iterations): Same.
10189 (pbb_number_of_iterations_at_time): Same.
10190 * graphite-poly.h (new_1st_loop): Same.
10191 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10192 (oppose_constraint): Same.
10193 (insert_constraint_into_matrix): Same.
10194 (ppl_set_inhomogeneous_gmp): Same.
10195 (ppl_set_coef_gmp): Same.
10196 (ppl_strip_loop): Same.
10197 (ppl_lexico_compare_linear_expressions): Same.
10198 (ppl_max_for_le_pointset): Same.
10199 (ppl_min_for_le_pointset): Same.
10200 (ppl_build_realtion): Same.
10201 * graphite-ppl.h (gmp_cst_to_tree): Same.
10202 (ppl_set_inhomogeneous): Same.
10203 (ppl_set_inhomogeneous_tree): Same.
10204 (ppl_set_coef): Same.
10205 (ppl_set_coef_tree): Same.
10206 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10207 (build_scop_scattering): Same.
10208 (add_value_to_dim): Same.
10209 (scan_tree_for_params_right_scev): Same.
10210 (scan_tree_for_params_int): Same.
10211 (scan_tree_for_params): Same.
10212 (find_params_in_bb): Same.
10213 (find_scop_parameters): Same.
10214 (add_upper_bounds_from_estimated_nit): Same.
10215 (build_loop_iteration_domains): Same.
10216 (create_linear_expr_from_tree): Same.
10217 (add_condition_to_domain): Same.
10218 (pdr_add_memory_accesses): Same.
10220 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
10221 Jason Merrill <jason@redhat.com>
10223 * c-common.c (c_common_reswords): Add nullptr.
10224 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
10225 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10226 (gen_type_die_with_usage): Likewise.
10227 * dbxout.c (dbxout_type): Likewise.
10228 * sdbout.c (plain_type_1): Likewise.
10230 2010-05-06 Jason Merrill <jason@redhat.com>
10232 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10233 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
10235 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10237 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10238 stripping WITH_SIZE_EXPR.
10239 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10242 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10244 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10245 list of obsolete configurations.
10246 Disabled check for obsolete configurations.
10247 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10248 Removed support for previous versions.
10249 * config/mips/iris.h: Removed.
10250 * config/mips/iris5.h: Removed.
10251 * config/mips/iris6.h: Merged old iris.h contents.
10252 (TARGET_IRIX): Removed.
10253 (DRIVER_SELF_SPECS): Removed mabi=32.
10254 (IDENT_ASM_OP): Removed undef.
10255 (STARTFILE_SPEC): Removed mabi=32.
10256 (ENDFILE_SPEC): Likewise.
10257 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10258 (MACHINE_TYPE): Update for IRIX 6.5.
10259 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10260 TARGET_IRIX by TARGET_IRIX6.
10261 (mips_file_start): Likewise.
10262 (mips_output_external): Remove IRIX 5/6 O32 support.
10263 (mips_output_function_prologue): Likewise.
10264 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10266 (TARGET_CPU_CPP_BUILTINS): Likewise.
10267 (TARGET_IRIX): Removed.
10268 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10269 (MULTILIB_DIRNAMES): Removed 32.
10270 (MULTILIB_OSDIRNAMES): Removed ../lib.
10271 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10272 (Specific, mips-sgi-irix5): Document removal.
10273 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10274 Remove references to older IRIX 6 releases and the O32 ABI.
10276 2010-05-06 Jakub Jelinek <jakub@redhat.com>
10279 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10280 instead of DF_REF_REAL_REG.
10282 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
10285 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10286 handling to still return true for x64 targets.
10288 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10290 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10292 2010-05-06 Jan Hubicka <jh@suse.cz>
10294 PR tree-optimization/43791
10295 * ipa-inline.c (update_caller_keys): Remove bogus
10296 disregard_inline_limits check.
10298 2010-05-06 Michael Matz <matz@suse.de>
10300 PR tree-optimization/43984
10301 * tree-ssa-pre.c (inserted_phi_names): Remove.
10302 (inserted_exprs): Change to bitmap.
10303 (create_expression_by_pieces): Set bits, don't append to vector.
10304 (insert_into_preds_of_block): Don't handle inserted_phi_names.
10305 (eliminate): Don't look at inserted_phi_names, remove deleted
10306 insns from inserted_exprs.
10307 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10308 (init_pre, fini_pre): Allocate and free bitmaps.
10309 (execute_pre): Insert insns on edges before elimination.
10311 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
10313 * tree.c (initializer_zerop): Handle STRING_CST.
10315 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
10318 * doc/invoke.texi (Wimplicit): Document as C only.
10319 * opts.c (common_handle_option): Add argument kind.
10320 (handle_option): Rename as read_cmdline_option. Factor out code to...
10321 (handle_option): ... here. New.
10322 (handle_options): Rename as read_cmdline_options.
10323 (decode_options): Update call.
10324 (set_option): Use option index instead of option pointer. Classify
10325 diagnostics correctly.
10326 (enable_warning_as_error): Call handle_option.
10327 * opts.h (set_option): Update declaration.
10328 (handle_option): Declare.
10329 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10330 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10331 * c-opts.c (set_Wimplicit): Delete.
10332 (c_family_lang_mask): New static constant.
10333 (c_common_handle_option): Add argument kind. Use handle_option
10334 instead of set_Wimplicit.
10335 (c_common_post_options): warn_implicit and warn_implicit_int
10336 are disabled by default.
10337 * c-common.c (warn_implicit): Do not define here.
10338 * c-common.h (warn_implicit): Do not declare here.
10339 (c_common_handle_option): Update declaration.
10340 * lto-opts.c (lto_reissue_options): Update call to set_option.
10342 2010-05-06 Richard Guenther <rguenther@suse.de>
10344 PR tree-optimization/43571
10345 * domwalk.c (walk_dominator_tree): Walk the dominator
10346 sons in more optimal order.
10348 2010-05-06 Richard Guenther <rguenther@suse.de>
10350 PR tree-optimization/43934
10351 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10352 (stmt_cost): Likewise.
10353 (extract_true_false_args_from_phi): New helper.
10354 (determine_max_movement): For PHI nodes verify we can hoist them
10355 and compute their cost.
10356 (determine_invariantness_stmt): Handle PHI nodes.
10357 (move_computations_stmt): Likewise. Hoist PHI nodes in
10358 if-converted form using COND_EXPRs.
10359 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10360 (tree_ssa_lim): Likewise.
10361 * tree-flow.h (tree_ssa_lim): Adjust prototype.
10362 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10364 2010-05-06 Richard Guenther <rguenther@suse.de>
10366 PR tree-optimization/43987
10367 * tree-ssa-structalias.c (could_have_pointers): For possibly
10368 address-taken variables force pointers to be recorded.
10369 (create_variable_info_for_1): Likewise.
10370 (push_fields_onto_fieldstack): Pass in wheter all fields
10371 must have pointers.
10372 (find_func_aliases): Query types instead of vars whether
10373 they contain pointers where appropriate.
10375 2010-05-06 Jan Hubicka <jh@suse.cz>
10377 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10378 (record_reference, mark_address, mark_load, mark_store): Record
10380 (record_references_in_initializer): Update call of record_references.
10381 (rebuild_cgraph_edges): Remove all references before rebuiding.
10382 * cgraph.c (cgraph_create_node): Clear ref list.
10383 (cgraph_remove_node): Remove references.
10384 (dump_cgraph_node): Dump references.
10385 (cgraph_clone_node): Clone references.
10386 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10387 (struct cgraph_node, varpool_node): Add ref_lst.
10388 * ipa-ref.c: New file.
10389 * ipa-ref.h: New file.
10390 * ipa-ref-inline.h: New file.
10391 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10392 (referenced_from_other_partition_p): New function.
10393 (lto_output_varpool_node): Take set arugment; call
10394 referenced_from_other_partition.
10395 (lto_output_ref): New.
10396 (add_references): New.
10397 (output_refs): New.
10398 (output_cgraph): Compute boundary based on references; output refs.
10399 (output_varpool): Accept cgraph_node_set argument.
10402 (input_cgraph): Call input_refs.
10403 * lto-section-in.c (lto_section_name): Add refs.
10404 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10405 (ipa-ref.o): New file.
10406 * varpool.c (varpool_node): Clear ipa ref list.
10407 (varpool_remove_node): Remove references.
10408 (dump_varpool_node): Dump references.
10409 (varpool_assemble_decl): Only compile finalized ones.
10410 (varpool_extra_name_alias): Initialize ref list.
10411 * lto-streamer.c (lto-get_section_name): Add .refs section.
10412 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10413 (referenced_from_other_partition_p): Declared.
10415 2010-05-06 Ira Rosen <irar@il.ibm.com>
10417 PR tree-optimization/43901
10418 * tree-vect-stmts.c (vectorizable_call): Assert that vector
10419 type is not NULL if it's transformation phase, and return
10420 FALSE if it's analysis.
10421 (vectorizable_conversion, vectorizable_operation,
10422 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10424 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
10426 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10428 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10430 * config/mips/mips-protos.h
10431 (mips_small_register_classes_for_mode_p): Delete prototype.
10433 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
10435 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10436 * config/arm/arm.c (multiple_operation_profitable_p,
10437 compute_offset_order): New static functions.
10438 (load_multiple_sequence, store_multiple_sequence): Use them.
10439 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
10440 memory offsets, not register numbers.
10441 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10443 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
10445 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10446 (get_pending_sizes, put_pending_size, put_pending_sizes):
10447 Update the uses of pending_sizes.
10448 * c-decl.c (store_parm_decls): Likewise.
10449 * c-tree.h (struct c_arg_info): Likewise.
10450 * tree.h: Update the prototype for get_pending_sizes and
10453 2010-05-05 Jason Merrill <jason@redhat.com>
10456 * c-common.c (handle_aligned_attribute): Respect
10457 ATTR_FLAG_TYPE_IN_PLACE.
10460 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10461 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10462 (TARGET_INITIALIZER): Use it.
10463 * c-common.c (attribute_takes_identifier_p): Call it.
10464 * c-common.h: Update prototype.
10465 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10466 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10468 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10471 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10472 DW_ID_down_case for Fortran compilation units.
10474 2010-05-05 Jan Hubicka <jh@suse.cz>
10476 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10479 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
10481 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10482 a variable-sized RESULT_DECL.
10484 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
10486 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10488 2010-05-05 Jason Merrill <jason@redhat.com>
10491 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10493 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10495 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
10496 Jakub Jelinek <jakub@redhat.com>
10499 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10500 (dead_debug_init, dead_debug_finish): New functions.
10501 (dead_debug_add, dead_debug_insert_before): Likewise.
10502 (df_note_bb_compute): Initialize a dead_debug object, add dead
10503 debug uses to it, insert debug bind insns before death insns,
10504 reset debug insns that refer to pending uses at the end.
10505 * rtl.h (make_debug_expr_from_rtl): New prototype.
10506 * varasm.c (make_debug_expr_from_rtl): New function.
10508 2010-05-05 Jan Hubicka <jh@suse.cz>
10510 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10511 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10512 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10513 lto_varpool_encoder_deref, lto_varpool_encoder_size,
10514 lto_varpool_encoder_encode_initializer_p,
10515 lto_set_varpool_encoder_encode_initializer): New functions.
10516 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10517 call output_varpool.
10518 (input_varpool_node): Do not always set analyzed.
10519 (input_cgraph_1): Return vector of cgraph nodes.
10520 (input_varpool_1): Return vector of varpools.
10521 (input_cgraph): Free the vectors.
10522 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10523 output only initializers needed.
10524 (lto_output): Only call output_cgraph.
10525 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10526 * lto-section-out.c (lto_new_out_decl_state): Initialize
10527 state->varpool_node_encoder.
10528 * lto-streamer.h (lto_varpool_encoder_d): New.
10529 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10530 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10531 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10532 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10533 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10535 (output_varpool, input_varpool): Remove declarations.
10537 2010-05-05 Jan Hubicka <jh@suse.cz>
10539 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10540 with body can prevail.
10542 2010-05-05 Jan Hubicka <jh@suse.cz>
10544 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10547 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10549 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10551 * gengtype.h (erro_at_line): Constify pos argument.
10553 * gengtype.c: Include hashtab.h.
10554 (enum gc_used): Document GC_MAYBE_POINTED_TO.
10555 (error_at_line): Constify pos argument.
10556 (do_typedef): Initialize p->opt field.
10557 (get_file_gtfilename): Fix comment typo.
10558 (struct walk_type_data): Constify line field.
10559 (get_output_file_for_structure): New function.
10560 (write_local_func_for_structure): Constify orig_s argument.
10561 Use get_output_file_for_structure.
10562 (write_func_for_structure): Use get_output_file_for_structure.
10563 (INDENT): New define.
10564 (dump_pair, dump_type, dump_type_list, dump_typekind)
10565 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10566 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10568 (seen_types): New variable.
10569 (main): New variable do_dump. Process "-d" command line option.
10570 Call dump_everything if dump requested.
10572 2010-05-05 Jakub Jelinek <jakub@redhat.com>
10574 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10575 in a temporary instead of invoking the macro multiple times.
10576 (track_expr_p): Likewise.
10578 2010-05-04 Neil Vachharajani <nvachhar@google.com>
10580 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10582 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10583 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
10584 conditions for printing notes.
10585 * common.opt (-Wcoverage-mismatch): Allow negative, default to
10586 true, update documentation.
10587 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10589 2010-05-04 Jakub Jelinek <jakub@redhat.com>
10592 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10595 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10598 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10599 (*sse_prologue_save_insn1): Likewise.
10600 (SSE prologue save splitter): Likewise.
10602 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
10604 * tree.c (free_lang_data_in_one_sizepos): New inline function.
10605 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10606 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10607 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10608 all decls. Call it on DECL_FIELD_OFFSET of fields.
10609 (find_decls_types_r): Follow DECL_VALUE_EXPR.
10610 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10612 2010-05-04 Martin Jambor <mjambor@suse.cz>
10614 * tree-sra.c (build_access_from_expr_1): The first parameter type
10615 changed to simple tree.
10616 (build_access_from_expr): Likewise, gsi parameter was eliminated.
10617 (scan_assign_result): Renamed to assignment_mod_result, enum elements
10619 (build_accesses_from_assign): Removed all parameters except for a
10620 simple gimple statement. Now returns a simple bool.
10621 (scan_function): All non-analysis parts moved to separate functions
10622 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
10623 parameters and updated both callers.
10624 (sra_modify_expr): Removed parameter data.
10625 (sra_modify_function_body): New function.
10626 (perform_intra_sra): Call sra_modify_function_body to modify the
10628 (replace_removed_params_ssa_names): Parameter data changed into
10629 adjustments vector.
10630 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
10631 changed the parameter dont_convert to convert with the opposite
10633 (sra_ipa_modify_assign): Parameter data changed into adjustments
10634 vector, return value changed to bool.
10635 (ipa_sra_modify_function_body): New function.
10636 (sra_ipa_reset_debug_stmts): Updated a comment.
10637 (modify_function): Use ipa_sra_modify_function_body to modify function
10640 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
10642 PR middle-end/43671
10643 * alias.c (true_dependence): Handle the same VALUE in x and mem.
10644 (canon_true_dependence): Likewise.
10645 (write_dependence_p): Likewise.
10647 2010-05-04 Jan Hubicka <jh@suse.cz>
10649 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10650 * cgraphbuild.c: Include ipa-utils.h
10651 (record_reference_ctx): New struct.
10652 (record_reference): Simplify to work on initializers; not statements.
10653 (mark_address, mark_load, mark_store): New.
10654 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10655 walk PHI nodes too.
10656 (record_references_in_initializer): Update use of record_reference.
10657 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10658 walk PHI nodes too.
10660 2010-05-04 Jan Hubicka <jh@suse.cz>
10662 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10663 node will be removed anyway.
10664 (lto_varpool_replace_node): Allow also unanalyzed nodes;
10665 relink aliases of node into prevailing node.
10666 * varpool.c (varpool_remove_node): Remove aliases properly;
10667 when removing node, remove all its aliases too; remove DECL_INITIAL
10668 of removed node; ggc_free the varpool node.
10670 2010-05-04 Richard Guenther <rguenther@suse.de>
10672 PR tree-optimization/43879
10673 * tree-ssa-structalias.c (alias_get_name): Use
10674 DECL_ASSEMBLER_NAME if available.
10675 (create_function_info_for): Return the varinfo node.
10676 (ipa_pta_execute): Associate same-body aliases and extra names
10677 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
10679 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
10681 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10683 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
10686 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10687 only if HONOR_REG_ALLOC_ORDER is not defined.
10689 2010-05-04 Richard Guenther <rguenther@suse.de>
10691 PR tree-optimization/43949
10692 * tree-vrp.c (extract_range_from_binary_expr): Only handle
10695 2010-04-26 Jason Merrill <jason@redhat.com>
10697 * c.opt (-fstrict-enums): New.
10698 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10700 2010-05-03 David Ung <davidu@mips.com>
10701 James E. Wilson <wilson@codesourcery.com>
10703 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10704 emit the trap instruction before the divide for TUNE_74K.
10706 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
10708 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10709 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10710 based on the above, for new target hook.
10712 * hooks.c (hook_bool_mode_true): New generic hook.
10713 * hooks.h (hook_bool_mode_true): Add prototype.
10715 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10717 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10718 target hook, set to hook_bool_mode_false.
10719 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10720 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10721 with targetm.small_register_classes_for_mode_p.
10722 (find_reusable_reload): Likewise.
10723 (combine_reloads): Likewise.
10724 * reload1.c (reload_as_needed): Likewise.
10725 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10726 * ifcvt.c (noce_process_if_block, check_cond_move_block,
10727 dead_or_predicable): Likewise.
10728 * regmove.c (optimize_reg_copy_1): Likewise.
10729 * calls.c (prepare_call_address): Likewise.
10730 (precompute_register_parameters): Likewise.
10732 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10734 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10735 implementation of the hook that considers all register classes
10736 small except for SH64.
10737 (sh_override_options): Use the new hook.
10738 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10741 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10743 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10744 implementation of the hook that considers all register classes
10746 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10749 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10751 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10752 implementation of the hook that considers all register classes
10754 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10757 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10759 * config/m32c/m32c.h: Likewise.
10760 * config/pdp11/pdp11.h: Likewise.
10761 * config/avr/avr.h: Likewise.
10762 * config/xtensa/xtensa.h: Likewise.
10763 * config/m68hc11/m68hc11.h: Likewise.
10764 * config/mn10300/mn10300.h: Likewise.
10765 * config/mcore/mcore.h: Likewise.
10766 * config/h8300/h8300.h: Likewise.
10767 * config/bfin/bfin.h: Likewise.
10769 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10770 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10772 2010-05-03 Anatoly Sokolov <aesok@post.ru>
10774 * double-int.h (tree_to_double_int): Remove macro.
10775 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10776 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10777 (tree_to_double_int): New function.
10778 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10780 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10782 2010-05-03 Richard Guenther <rguenther@suse.de>
10784 PR tree-optimization/43971
10785 * tree-ssa-structalias.c (get_constraint_for_1): Fix
10786 constraints in the !flag_delete_null_pointer_checks case.
10788 2010-05-03 Jakub Jelinek <jakub@redhat.com>
10791 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10792 result mode matches original rtl mode.
10794 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
10797 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10799 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10801 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10802 when processing flag options.
10804 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10806 * gcov-iov.c (main): Change format string placeholder
10807 from %#08x to 0x%08x.
10808 * genchecksum.c (dosum): Change format string placeholder
10809 from %#02x to 0x%02x.
10811 2010-05-02 Richard Guenther <rguenther@suse.de>
10813 PR tree-optimization/43879
10814 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10816 2010-05-02 Bruno Haible <bruno@clisp.org>
10818 * doc/extend.texi (Function Attributes): Fix a typo.
10820 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10823 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10824 placeholder from 0x%x to %#x.
10825 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10826 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10827 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10828 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10829 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10830 * config/i386/i386.c (ix86_target_string): Ditto.
10831 * config/i386/i386.c (output_pic_addr_const): Ditto.
10832 (print_operand): Ditto.
10834 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
10836 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10837 placeholder from 0x%x to %#x.
10838 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10839 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10840 (ASM_OUTPUT_DEBUG_DATA): Ditto.
10841 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10842 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10843 * optc-gen.awk: Ditto.
10844 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10845 (HOST_WIDE_INT_PRINT_HEX): Ditto.
10846 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10847 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10849 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10851 * target.h (struct calls): Add function_value_regno_p field.
10852 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10853 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10854 * targhooks.c (default_function_value_regno_p): New function.
10855 * targhooks.h (default_function_value_regno_p): Declare function.
10856 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10857 * builtins.c. (apply_result_size): (Ditto.).
10858 * combine.c. (likely_spilled_retval_p): (Ditto.).
10859 * mode-switching.c. Include 'target.h'.
10860 (create_pre_exit): Use function_value_regno_p hook.
10861 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10862 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10863 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10865 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10866 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10867 (ix86_function_value_regno_p): Declare as static, change argument
10868 type to const unsigned int.
10869 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10871 2010-05-01 Richard Guenther <rguenther@suse.de>
10873 PR tree-optimization/43949
10874 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10876 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10878 2010-05-01 Anatoly Sokolov <aesok@post.ru>
10880 * rtl.h (CONST_DOUBLE_P): Define.
10881 (rtx_to_double_int): Declare.
10882 * emit-rtl.c (rtx_to_double_int): New function.
10883 * dwarf2out.c (insert_double): New function.
10884 (loc_descriptor, add_const_value_attribute): Clean up, use
10885 rtx_to_double_int and insert_double functions.
10887 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
10889 * doc/extend.texi (Inline): Add missing return keyword to examples.
10890 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10893 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
10895 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10896 the variable part of the offset as well. Use highest_pow2_factor for
10897 all alignment checks.
10899 2010-04-30 Richard Guenther <rguenther@suse.de>
10901 PR tree-optimization/43879
10902 * tree-ssa-structalias.c (type_could_have_pointers): Functions
10905 2010-04-30 Jan Hubicka <jh@suse.cz>
10907 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10909 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10911 2010-04-30 Jan Hubicka <jh@suse.cz>
10913 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10915 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10916 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10917 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10918 cgraph_node_set_needs_ltrans_p): Remove.
10920 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10922 * sdbout.c: Include vec.h, do not include varray.h.
10923 (deferred_global_decls, sdbout_global_decl,
10924 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10925 * toplev.c: Do not include varray.h.
10926 (dump_memory_report): Do not dump VARRAY statistics.
10927 * gengtype.c (open_base_file): Ignore varray.h.
10928 * Makefile.in: Update for abovementioned changes.
10929 Remove all traces of varray.c and varray.h.
10930 * varray.c: Remove file.
10931 * varray.h: Remove file.
10933 2010-04-30 Jan Hubicka <jh@suse.cz>
10935 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10938 2010-04-30 Jan Hubicka <jh@suse.cz>
10940 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10943 2010-04-30 Richard Guenther <rguenther@suse.de>
10945 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10946 constraints for CONSTRUCTOR.
10948 2010-04-30 Richard Guenther <rguenther@suse.de>
10951 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10952 first after all lowering passes.
10954 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10956 * toplev.c: Include varray.h for statistics dumping.
10957 * tree.h: Do not declare varray_head_tag.
10958 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10959 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10960 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10961 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10962 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10963 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10964 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10965 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10967 * Makefile.in: Update for abovementioned changes.
10969 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10972 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10974 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10976 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10977 Use this function to do machine-specific conversion.
10978 (picochip_legitimize_reload_address): Likewise.
10979 (picochip_legitimate_address_p): Check valid base register only if
10981 (picochip_check_conditional_copy): Check for modw only if opnd is
10983 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10984 to call the function in c.
10985 * config/picochip/picochip-protos.h
10986 (picochip_legitimize_reload_address): Define.
10987 * config/picochip/picochip.md (supported_compare1): Define.
10989 2010-04-30 Jan Hubicka <jh@suse.cz>
10991 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10992 (cgraph_global_info): Remove inlined.
10993 (LTO_cgraph_tag_names): Remove.
10994 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10995 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10996 simplify cgraph tags and document.
10997 (lto_output_node): Use only LTO_cgraph_unavail_node and
10998 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10999 for_functions_valid, global info, process and output flags.
11000 (input_overwrite_node): Initialize estimated stack size and
11001 estimated growth. Do not read flags we no longer store.
11002 (input_node): Likewise do not read info no longer stored.
11003 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11006 2010-04-30 Richard Guenther <rguenther@suse.de>
11008 PR tree-optimization/43879
11009 * tree-ssa-structalias.c (get_constraint_for_1): Properly
11010 handle non-zero initializers.
11012 2010-04-30 Richard Guenther <rguenther@suse.de>
11014 * builtins.c (fold_builtin_1): Delete free (0).
11016 2010-04-29 Jan Hubicka <jh@suse.cz>
11018 * gengtype.c (open_base_files): Add lto-streamer.h
11019 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11020 (pass_ipa_cp): GGC collect.
11021 * toplev. (compile_file): Do not output symbols.
11022 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11023 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11024 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11025 * lto-section-in.c: Include ggc.h
11026 (lto_new_in_decl_state): Alloc in GGC.
11027 (lto_delete_in_decl_state): Likewise.
11028 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11031 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11034 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11035 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
11036 (HONOR_REG_ALLOC_ORDER): Describe new macro.
11037 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11038 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11039 account only if HONOR_REG_ALLOC_ORDER is not defined.
11040 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11041 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11043 2010-04-29 Jon Grant <04@jguk.org>
11045 * collect2.c (vflag): Change type from int to bool.
11047 (helpflag): New global bool.
11048 (main): Set vflag and debug with boolean, not integer truth values.
11049 Accept new "--help" option and output usage text if found.
11050 * collect2.h (vflag): Update prototype.
11053 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11056 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11058 2010-04-29 Richard Guenther <rguenther@suse.de>
11061 * plugin.h (invoke_plugin_callbacks): Annotate arguments
11062 with ATTRIBUTE_UNUSED.
11064 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
11067 * config/i386/i386.c (get_some_local_dynamic_name): Replace
11068 INSN_P with NONDEBUG_INSN_P.
11069 (distance_non_agu_define): Likewise.
11070 (distance_agu_use): Likewise.
11072 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
11074 From Dominique d'Humieres <dominiq@lps.ens.fr>
11076 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11079 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
11081 * plugin.h (invoke_plugin_callbacks): New inline function.
11082 * plugin.c (flag_plugin_added): New global flag.
11083 (add_new_plugin): Initialize above flag.
11084 (invoke_plugin_callbacks): Rename to ...
11085 (invoke_plugin_callbacks_full): ... this.
11087 2010-04-28 Jan Hubicka <jh@suse.cz>
11089 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11090 (lto_varpool_replace_node): New.
11091 (lto_symtab_resolve_symbols): Resolve varpool nodes.
11092 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11093 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11094 * cgraph.h (varpool_node_ptr): New type.
11095 (varpool_node_ptr): New vector.
11096 (varpool_node_set_def): New structure.
11097 (varpool_node_set): New type.
11098 (varpool_node_set): New vector.
11099 (varpool_node_set_element_def): New structure.
11100 (varpool_node_set_element, const_varpool_node_set_element): New types.
11101 (varpool_node_set_iterator): New type.
11102 (varpool_node): Add prev pointers, add used_from_other_partition,
11103 in_other_partition.
11104 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11105 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11106 varpool_get_node, varpool_remove_node): Declare.
11107 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11108 varpool_node_set_size): New inlines.
11109 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11110 * tree-pass.h (varpool_node_set_def): Forward declare.
11111 (ipa_opt_pass_d): Summary writting takes vnode sets too.
11112 (ipa_write_optimization_summaries): Update prototype.
11113 * ipa-cp.c (ipcp_write_summary): Update.
11114 * ipa-reference.c (ipa_reference_write_summary): Update.
11115 * lto-cgraph.c (lto_output_varpool_node): New static function.
11116 (output_varpool): New function.
11117 (input_varpool_node): New static function.
11118 (input_varpool_1): New function.
11119 (input_cgraph): Input varpool.
11120 * ipa-pure-const.c (pure_const_write_summary): Update.
11121 * lto-streamer-out.c (lto_output): Update, output varpool too.
11122 (write_global_stream): Kill WPA hack.
11123 (produce_asm_for_decls): Update.
11124 (output_alias_pair_p): Handle variables.
11125 (output_unreferenced_globals): Output only needed partition of varpool.
11126 * ipa-inline.c (inline_write_summary): Update.
11127 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11129 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11130 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11131 varpool_node_set_new, varpool_node_set_add,
11132 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11133 debug_varpool_node_set): New functions.
11134 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11135 (execute_one_pass): Process new decls too.
11136 (ipa_write_summaries_2): Pass around vsets.
11137 (ipa_write_summaries_1): Likewise.
11138 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11140 (ipa_write_optimization_summaries_1): Pass around vsets.
11141 (ipa_write_optimization_summaries): Likewise.
11142 * varpool.c (varpool_get_node): New.
11143 (varpool_node): Update doubly linked lists.
11144 (varpool_remove_node): New.
11145 (dump_varpool_node): More dumping.
11146 (varpool_enqueue_needed_node): Update doubly linked lists.
11147 (decide_is_variable_needed): Kill ltrans hack.
11148 (varpool_finalize_decl): Kill lto hack.
11149 (varpool_assemble_decl): Skip decls in other partitions.
11150 (varpool_assemble_pending_decls): Update doubly linkes lists.
11151 (varpool_empty_needed_queue): Likewise.
11152 (varpool_extra_name_alias): Likewise.
11153 * lto-streamer.c (lto_get_section_name): Add vars section.
11154 * lto-streamer.h (lto_section_type): Update.
11155 (output_varpool, input_varpool): Declare.
11157 2010-04-28 Mike Stump <mikestump@comcast.net>
11159 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11161 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11163 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11164 record or union type with RECORD_OR_UNION_TYPE_P predicate.
11165 (lto_input_ts_type_tree_pointers): Likewise.
11166 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11167 (lto_output_ts_type_tree_pointers): Likewise.
11169 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11171 Uniquization of constants at the Tree level
11172 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11173 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11175 (tree_output_constant_def): Declare.
11176 * gimplify.c (gimplify_init_constructor): When using block copy, first
11177 uniquize the constant constructor on the RHS.
11178 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11179 DECL_IN_CONSTANT_POOL flag.
11180 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11181 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11183 (assemble_variable): Deal with symbols belonging to the tree constant
11185 (get_constant_section): Add ALIGN parameter and simplify.
11186 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11187 (assemble_constant_contents): Use the expression of the VAR_DECL.
11188 (output_constant_def_contents): Use the alignment of the VAR_DECL.
11189 (tree_output_constant_def): New global function.
11190 (mark_constant): Use the expression of the VAR_DECL.
11191 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11193 (output_object_block): Likewise and assemble the expression.
11195 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
11197 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11198 hash_tree, eq_tree): New tree hash table.
11199 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11200 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11201 lto_orig_address_remove): Reimplement.
11203 2010-04-28 Xinliang David Li <davidxl@google.com>
11206 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11207 (compute_uninit_opnds_pos): New function.
11208 (is_non_loop_exit_postdominating): New function.
11209 (compute_control_dep_chain): New function.
11210 (find_pdom): New function.
11211 (convert_control_dep_chain_into_preds): New function.
11212 (find_predicates): New function.
11213 (find_control_equiv_block): New function.
11214 (collect_phi_def_edges): New function.
11215 (find_def_preds): New function.
11216 (find_dom): New function.
11217 (dump_predicates): New function.
11218 (get_cmp_code): New function.
11219 (is_value_included_in): New function.
11220 (find_matching_predicate_in_rest_chains): New function.
11221 (use_pred_not_overlap_with_undef_path_pred): New function.
11222 (is_use_properly_guarded): New function.
11223 (normalize_cond_1): New function.
11224 (is_and_or_or): New function.
11225 (normalize_cond): New function.
11226 (is_gcond_subset_of): New function.
11227 (is_subset_of_any): New function.
11228 (is_or_set_subset_of): New function.
11229 (is_and_set_subset_of): New function.
11230 (is_norm_cond_subset_of): New function.
11231 (is_pred_expr_subset_of): New function.
11232 (is_pred_chain_subset_of): New function.
11233 (is_included_in): New function.
11234 (is_superset_of): New function.
11235 (find_uninit_use): New function.
11236 (warn_uninitialized_phi): New function.
11237 (compute_possibly_undefined_names): New function.
11238 (ssa_undefined_value_p): New function.
11239 (execute_late_warn_uninitialized): New function.
11240 * tree-ssa.c (ssa_undefined_value_p): Removed.
11241 (warn_uninit): Changed to extern.
11242 (warn_uninitialized_phi): Removed.
11243 (warn_uninitialized_vars): Changed to extern.
11244 (execute_late_warn_uninitialized): Removed
11245 * tree-flow.h: Add new prototypes.
11246 * timevar.def: Add new time variable.
11247 * Makefile.in: Add new build file.
11249 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
11251 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11254 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11257 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11259 2010-04-28 Martin Jambor <mjambor@suse.cz>
11261 * cgraph.h (struct cgraph_node): New field indirect_calls.
11262 (struct cgraph_indirect_call_info): New type.
11263 (struct cgraph_edge): Removed field indirect_call. New fields
11264 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11265 (cgraph_create_indirect_edge): Declare.
11266 (cgraph_make_edge_direct): Likewise.
11267 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11268 * ipa-prop.h (struct ipa_param_call_note): Removed.
11269 (struct ipa_node_params): Removed field param_calls.
11270 (ipa_create_all_structures_for_iinln): Declare.
11271 * cgraph.c: Described indirect edges and uids in initial comment.
11272 (cgraph_add_edge_to_call_site_hash): New function.
11273 (cgraph_edge): Search also among the indirect edges, use
11274 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11275 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11276 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11278 (initialize_inline_failed): Assign a reason to indirect edges.
11279 (cgraph_create_edge_1): New function.
11280 (cgraph_create_edge): Moved some functionality to
11281 cgraph_create_edge_1.
11282 (cgraph_create_indirect_edge): New function.
11283 (cgraph_edge_remove_callee): Add an assert checking for
11285 (cgraph_edge_remove_caller): Special-case indirect edges.
11286 (cgraph_remove_edge): Likewise.
11287 (cgraph_set_edge_callee): New function.
11288 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11289 (cgraph_make_edge_direct): New function.
11290 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11291 the declaration of the call statement matches.
11292 (cgraph_node_remove_callees): Special-case indirect edges.
11293 (cgraph_clone_edge): Likewise.
11294 (cgraph_clone_node): Clone also the indirect edges.
11295 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11296 indirect_call, dump count of indirect_calls edges.
11297 * ipa-prop.c (iinlining_processed_edges): New variable.
11298 (ipa_note_param_call): Create indirect edges instead of
11299 creating notes. New parameter node.
11300 (ipa_analyze_call_uses): New parameter node, pass it on to
11301 ipa_note_param_call.
11302 (ipa_analyze_stmt_uses): Likewise.
11303 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11304 (print_edge_addition_message): Work on edges rather than on notes.
11305 (update_call_notes_after_inlining): Likewise, renamed to
11306 update_indirect_edges_after_inlining.
11307 (ipa_create_all_structures_for_iinln): New function.
11308 (ipa_free_node_params_substructures): Do not free notes.
11309 (ipa_edge_duplication_hook): Propagate bits within
11310 iinlining_processed_edges bitmap.
11311 (ipa_node_duplication_hook): Do not duplicate notes.
11312 (free_all_ipa_structures_after_ipa_cp): Renamed to
11313 ipa_free_all_structures_after_ipa_cp.
11314 (free_all_ipa_structures_after_iinln): Renamed to
11315 ipa_free_all_structures_after_iinln.
11316 (ipa_write_param_call_note): Removed.
11317 (ipa_read_param_call_note): Removed.
11318 (ipa_write_indirect_edge_info): New function.
11319 (ipa_read_indirect_edge_info): Likewise.
11320 (ipa_write_node_info): Do not stream notes, do stream information
11322 (ipa_read_node_info): Likewise.
11323 (lto_ipa_fixup_call_notes): Removed.
11324 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11325 * ipa-inline.c (pass_ipa_inline): Likewise.
11326 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11327 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11328 * tree-inline.c (copy_bb): Removed an unnecessary double check for
11330 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11332 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11333 (output_cgraph): Stream also indirect edges.
11334 (lto_output_edge): Added capability to stream indirect edges.
11335 (input_edge): Likewise.
11336 (input_cgraph_1): Likewise.
11337 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11340 2010-04-28 Richard Guenther <rguenther@suse.de>
11342 PR tree-optimization/43879
11343 PR tree-optimization/43909
11344 * tree-ssa-structalias.c (struct variable_info): Add
11345 only_restrict_pointers flag.
11346 (new_var_info): Initialize it. Increment stats.total_vars here.
11347 (create_function_info_for): Do not increment stats.total_vars here.
11348 (get_function_part_constraint): Fix build with C++.
11349 (insert_into_field_list): Remove.
11350 (push_fields_onto_fieldstack): Properly merge fields.
11351 (create_variable_info_for): Split and simplify.
11352 (create_variable_info_for_1): New piece.
11353 (intra_create_variable_infos): Properly make restrict constraints
11356 2010-04-28 Richard Guenther <rguenther@suse.de>
11359 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11361 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
11362 Jan Hubicka <hubicka@ucw.cz>
11364 * doc/invoke.texi (-Wsuggest-attribute=const,
11365 -Wsuggest-attribute=pure): Document.
11366 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11367 (function_always_visible_to_compiler_p,
11368 suggest_attribute, warn_function_pure, warn_function_const):
11370 (check_call): Improve debug info.
11371 (analyze_function): Do not check availability.
11372 (add_new_function): Check availability.
11373 (propagate): Output warnings.
11374 (skip_function_for_local_pure_const): New function.
11375 (local_pure_const): Use it; output warnings.
11376 * common.opt (Wsuggest-attribute=const,
11377 Wsuggest-attribute=pure): New.
11379 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11381 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11382 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11383 or DW_CFA_def_cfa_offset{,_sf}.
11385 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11387 * tree.h: Fix truncated long macros.
11389 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
11391 * collect2.c (TARGET_64BIT): Redefine to target's default.
11392 * tlink.c: Likewise.
11393 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11394 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11395 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11396 for underscoring __USER_LABEL_PREFIX__.
11397 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11398 (SUB_LINK_ENTRY32): New.
11399 (SUB_LINK_ENTRY64): New.
11400 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11401 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11402 (SUB_LINK_ENTRY64): New.
11403 (SUB_LINK_ENTRY): New.
11404 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11405 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11406 x64 target is choosen.
11407 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11408 * configure: Regenerated.
11409 * configure.ac (leading-mingw64-underscores): Option added.
11411 2010-04-27 Jan Hubicka <jh@suse.cz>
11413 * doc/invoke.texi (-fipa-profile): Document.
11414 * opts.c (decode_options): Enable ipa-profile at -O1.
11415 * timevar.def (TV_IPA_PROFILE): Define.
11416 * common.opt (fipa-profile): Add.
11417 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11419 (cgraph_propagate_frequency): Handle only local ones.
11420 * tree-pass.h (pass_ipa_profile): Declare.
11421 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11422 (pass_ipa_profile): Use TV_IPA_PROFILE.
11423 * ipa.c (ipa_profile): New function.
11424 (gate_ipa_profile): Likewise.
11425 (pass_ipa_profile): New global variable.
11426 * passes.c (pass_ipa_profile): New.
11428 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
11430 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11432 2010-04-27 Martin Jambor <mjambor@suse.cz>
11434 PR middle-end/43812
11435 * ipa.c (dissolve_same_comdat_group_list): New function.
11436 (function_and_variable_visibility): Call
11437 dissolve_same_comdat_group_list when comdat group contains external or
11439 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11440 lists are circular and that they contain only DECL_ONE_ONLY nodes.
11442 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
11444 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11445 (const_hash_1) <VECTOR_CST>: New case.
11446 (compare_constant) <VECTOR_CST>: Likewise.
11447 <ADDR_EXPR>: Deal with LABEL_REFs.
11448 (copy_constant) <VECTOR_CST>: New case.
11450 2010-04-27 Jan Hubicka <jh@suse.cz>
11452 * cgraph.c (cgraph_propagate_frequency): New function.
11453 * cgraph.h (cgraph_propagate_frequency): Declare.
11454 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11455 cgraph_propagate_frequency.
11457 2010-04-27 Jakub Jelinek <jakub@redhat.com>
11459 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11461 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
11464 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11465 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11466 here to determine which regs to push and how much stack to reserve.
11468 2010-04-27 Jie Zhang <jie@codesourcery.com>
11470 * doc/gimple.texi (gimple_statement_with_ops): Remove
11471 addresses_taken field.
11472 (gimple_statement_with_memory_ops): Likewise.
11474 2010-04-27 Jan Hubicka <jh@suse.cz>
11476 * tree-inline.c (eni_inlining_weights): Remove.
11477 (estimate_num_insns): Special case more builtins.
11479 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
11482 * c-typeck.c (build_binary_op): Move forward check for comparison
11483 pointer with null pointer constant and adjust the diagnostic message.
11485 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
11488 * configure.ac (gcc_cv_as_section_has_align): Set if installed
11489 binutils supports extended .section directive needed by LTO, or
11490 warn if older binutils found.
11491 (LTO_BINARY_READER): New AC_SUBST'd variable.
11492 (LTO_USE_LIBELF): Likewise.
11493 * gcc/config.gcc (lto_binary_reader): New target-specific configure
11495 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11496 (LTO_USE_LIBELF): Likewise.
11497 * configure: Regenerate.
11499 * collect2.c (is_elf): Rename from this ...
11500 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11501 object files in addition to ELF-formatted ones.
11502 (scan_prog_file): Caller updated. Also allow for LTO info marker
11503 symbol to be prefixed or not by an extra underscore.
11505 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11506 * config/i386/winnt.c: Also #include lto-streamer.h
11507 (i386_pe_asm_named_section): Specify 1-byte section alignment for
11508 LTO named sections.
11509 (i386_pe_asm_output_aligned_decl_common): Add comment.
11510 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11512 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
11515 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11516 Add missing earlyclobber for second alternative.
11518 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
11520 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11521 bits for artificial defs at the top of the block.
11522 * fwprop.c (single_def_use_enter_block): Don't call it.
11524 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
11527 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11528 instead of "$gcc_cv_objdump -T".
11529 Use "-undefined dynamic_lookup" on darwin.
11530 * gcc/configure: Regenerate.
11532 2010-04-26 Jakub Jelinek <jakub@redhat.com>
11535 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11537 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11539 * c-parser.c (struct c_token): Move location field up.
11540 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11541 (struct c_declspecs): Convert typespec_word, storage_class, and
11542 default_int_p into bitfields.
11543 (struct c_declarator): Move loc field up.
11545 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
11547 * cfgloop.h (struct loop): Move can_be_parallel field up.
11548 * ipa-prop.h (struct ip_node_params): Move bitfields up.
11549 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11551 (struct iv_cand): Convert pos field into a bitfield.
11552 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11554 (struct _stmt_vec_info): Shuffle fields for better packing.
11556 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11558 * varasm.c (IN_NAMED_SECTION): Remove guard.
11559 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11560 (IN_NAMED_SECTION_P): ...this.
11561 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11562 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11564 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
11566 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11567 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
11568 of shadowing it. Fix comments.
11570 2010-04-26 Jan Hubicka <jh@suse.cz>
11572 * cgraph.c (cgraph_create_node): Set node frequency to normal.
11573 (cgraph_clone_node): Copy function frequency.
11574 * cgraph.h (node_frequency): New enum
11575 (struct cgraph_node): Add.
11576 * final.c (rest_of_clean_state): Update.
11577 * lto-cgraph.c (lto_output_node): Output node frequency.
11578 (input_overwrite_node): Input node frequency.
11579 * tre-ssa-loop-ivopts (computation_cost): Update.
11580 * lto-streamer-out.c (output_function): Do not output function
11582 * predict.c (maybe_hot_frequency_p): Update and handle functions
11584 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11586 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11587 (compute_function_frequency): Set noreturn functions to be executed
11589 (choose_function_section): Update.
11590 * lto-streamer-in.c (input_function): Do not input function frequency.
11591 * function.c (allocate_struct_function): Do not initialize function
11593 * function.h (function_frequency): Remove.
11594 (struct function): Remove function frequency.
11595 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11596 (try_update): Update.
11597 * tree-inline.c (initialize_cfun): Do not update function frequency.
11598 * passes.c (pass_init_dump_file): Update.
11599 * i386.c (ix86_compute_frame_layout): Update.
11600 (ix86_pad_returns): Update.
11602 2010-04-26 Jie Zhang <jie@codesourcery.com>
11604 PR tree-optimization/43833
11605 * tree-vrp.c (range_int_cst_p): New.
11606 (range_int_cst_singleton_p): New.
11607 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11608 when both operands are constants. Use range_int_cst_p in
11611 2010-04-26 Jan Hubicka <jh@suse.cz>
11613 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11615 2010-04-26 Richard Guenther <rguenther@suse.de>
11618 * gimple.c (gimple_decl_printable_name): Deal gracefully
11619 with a NULL DECL_NAME.
11621 2010-04-26 Richard Guenther <rguenther@suse.de>
11624 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11625 if emitting debug information and it is either a function
11626 or a namespace decl.
11628 2010-04-26 Ira Rosen <irar@il.ibm.com>
11630 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11631 determine if the statement is vectorizable, and a macro to access it.
11632 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11633 Skip statements that can't be vectorized. If the analysis fails,
11634 mark the statement as unvectorizable if vectorizing basic block.
11635 (vect_compute_data_refs_alignment): Likewise.
11636 (vect_verify_datarefs_alignment): Skip statements marked as
11637 unvectorizable. Add print.
11638 (vect_analyze_group_access): Skip statements that can't be
11639 vectorized. If the analysis fails, mark the statement as
11640 unvectorizable if vectorizing basic block.
11641 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11642 * tree-vect-stmts.c (vectorizable_store): Fix the number of
11643 generated stmts for SLP.
11644 (new_stmt_vec_info): Initialize the new field.
11645 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11646 statements marked as unvectorizable.
11648 2010-04-25 Joseph Myers <joseph@codesourcery.com>
11650 * c-common.c (flag_isoc1x): New.
11651 (flag_isoc99): Update comment.
11652 * c-common.h (flag_isoc1x): New.
11653 (flag_isoc99): Update comment.
11654 * c-cppbuiltin.c (builtin_define_float_constants): Also define
11655 __<type>_DECIMAL_DIG__.
11656 * c-opts.c (set_std_c1x): New.
11657 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11658 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11659 * c.opt (-std=c1x, -std=gnu1x): New options.
11660 * doc/cpp.texi: Mention -std=c1x.
11661 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11662 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11663 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11664 * doc/standards.texi: Mention C1X.
11665 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11666 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11667 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11670 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
11672 * config/i386/gmon-sol2.c (_mcleanup): Change format string
11673 placeholder from 0x%x to %#x.
11674 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11675 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11676 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11677 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11678 * config/i386/i386.c (ix86_target_string): Ditto.
11679 (output_pic_addr_const): Ditto.
11680 (print_operand): Ditto.
11682 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
11684 * combine.c (find_split_point): Add third argument. Use it
11685 to find nested multiply-accumulate instructions. Adjust calls.
11686 (try_combine): Adjust call to find_split_point.
11688 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
11690 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11692 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
11694 PR tree-optimization/41442
11695 * fold-const.c (merge_truthop_with_opposite_arm): New function.
11696 (fold_binary_loc): Call it.
11698 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
11700 * toplev.c (general_init): Set default for fdiagnostics-show-option.
11701 * opts.c (common_handle_option): Allow disabling it.
11702 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11704 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
11706 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11707 between modes if both types are integral.
11709 2010-04-23 Richard Guenther <rguenther@suse.de>
11711 PR tree-optimization/43572
11712 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11714 2010-04-23 Richard Guenther <rguenther@suse.de>
11717 * tree-inline.c (tree_can_inline_p): Also check compatibility
11720 2010-04-23 Martin Jambor <mjambor@suse.cz>
11722 PR tree-optimization/43846
11723 * tree-sra.c (struct access): New flag grp_assignment_read.
11724 (build_accesses_from_assign): Set grp_assignment_read.
11725 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11726 (enum mark_read_status): New type.
11727 (analyze_access_subtree): Propagate grp_assignment_read, create
11728 accesses also if both direct_read and root->grp_assignment_read.
11730 2010-04-23 Martin Jambor <mjambor@suse.cz>
11732 PR middle-end/43835
11733 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11734 function does not have type attributes.
11736 2010-04-23 Richard Guenther <rguenther@suse.de>
11739 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11742 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11744 * sese.h (create_if_region_on_edge): Remove.
11746 * sese.c (create_if_region_on_edge): Make static.
11748 * tree-inline.c: Do not include ggc.h.
11750 * expr.c: Do not include ggc.h.
11752 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11755 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
11758 * config/sh/sh.c (find_barrier): Don't emit a constant pool
11759 in the middle of insns for casesi_worker_2.
11761 2010-04-22 David Edelsohn <edelsohn@gnu.org>
11763 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11765 2010-04-22 Ira Rosen <irar@il.ibm.com>
11767 PR tree-optimization/43842
11768 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11769 loop unrolling in update of exit phis. Fix comment.
11770 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11771 least two reduction statements in the loop before starting SLP
11774 2010-04-22 Nick Clifton <nickc@redhat.com>
11776 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11778 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
11780 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11781 to simplify a + ~a.
11783 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11785 * tree-parloops.c (loop_parallel_p): New argument
11786 parloop_obstack. Pass it down.
11787 (parallelize_loops): New variable parloop_obstack. Initialize it,
11788 pass it down, free it.
11790 * tree-loop-linear.c (linear_transform_loops): Pass down
11793 * tree-data-ref.h (lambda_compute_access_matrices): New argument
11794 of type struct obstack *.
11796 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11797 scratch_obstack. Initialize it, pass down, free it.
11799 * lambda.h (lambda_loop_new): Remove.
11800 (lambda_matrix_new, lambda_matrix_inverse)
11801 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11802 argument of type struct obstack *.
11804 * lambda-trans.c (lambda_trans_matrix_new): New argument
11805 lambda_obstack. Pass it down, use obstack allocation for ret.
11806 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
11809 * lambda-mat.c (lambda_matrix_get_column)
11810 (lambda_matrix_project_to_null): Remove.
11811 (lambda_matrix_new): New argument lambda_obstack. Use obstack
11812 allocation for mat.
11813 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11816 * lambda-code.c (lambda_loop_new): New function.
11817 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11818 (lambda_compute_auxillary_space, lambda_compute_target_space)
11819 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11820 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11821 (build_access_matrix): New argument lambda_obstack. Use obstack
11823 (lambda_compute_step_signs, lambda_compute_access_matrices): New
11824 argument lambda_obstack. Pass it down.
11826 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11828 * optabs.h (expand_widening_mult): Declare.
11830 2010-04-22 Richard Guenther <rguenther@suse.de>
11832 PR tree-optimization/43845
11833 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11834 lookup the CALL_EXPR function and arguments.
11836 2010-04-22 Nick Clifton <nickc@redhat.com>
11838 * config/stormy16/stormy16.c
11839 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11840 * config/stormy16/stormy16.h: Tidy up formatting.
11841 (DONT_USE_BUILTIN_SETJMP): Remove definition.
11842 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11843 (ineqbranchsi): Delete pattern.
11844 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11845 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11846 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11847 stormy16-lib2-ucmpsi2.c.
11849 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11851 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11852 df_simulate_find_noclobber_defs as appropriate. Keep track of an
11853 extra set merge_set_noclobber, and use it to relax the final test
11855 * df.h (df_simulate_find_noclobber_defs): Declare.
11856 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11858 (df_simulate_find_noclobber_defs): New function.
11860 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
11862 * config/i386/i386.md: Use {} around multi-line preparation statements.
11864 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11866 * c-tree.h (push_init_level, pop_init_level, set_init_index)
11867 (process_init_element): New argument of type struct obstack *.
11869 * c-typeck.c (push_init_level, pop_init_level, set_designator)
11870 (set_init_index, set_init_label, set_nonincremental_init)
11871 (set_nonincremental_init_from_string, find_init_member)
11872 (output_init_element, output_pending_init_elements)
11873 (process_init_element): New argument braced_init_obstack. Pass it
11875 (push_range_stack, add_pending_init): New argument
11876 braced_init_obstack. Use obstack allocation.
11878 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11879 braced_init_obstack. Pass it down.
11880 (c_parser_braced_init): New variables ret, braced_init_obstack.
11881 Initialize obstack, pass it down and finally free it.
11883 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
11885 PR middle-end/29274
11886 * tree-pass.h (pass_optimize_widening_mul): Declare.
11887 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11888 gate_optimize_widening_mul): New static functions.
11889 (pass_optimize_widening_mul): New.
11890 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11891 <case MULT_EXPR>: Remove support for widening multiplies.
11892 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11893 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11894 simplify_gen_unary rather than directly building extensions.
11895 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11897 * expmed.c (expand_widening_mult): New function.
11898 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11900 2010-04-21 Jan Hubicka <jh@suse.cz>
11902 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11903 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11904 * lto-wpa-fixup.c: Remove.
11905 * Makefile.in (lto-wpa-fixup.o): Remove.
11906 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11907 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11908 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11910 2010-04-21 Jan Hubicka <jh@suse.cz>
11912 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11913 add write_optimization_summary, read_optimization_summary.
11914 (ipa_write_summaries_of_cgraph_node_set): Remove.
11915 (ipa_write_optimization_summaries): Declare.
11916 (ipa_read_optimization_summaries): Declare.
11917 * ipa-cp.c (pass_ipa_cp): Update.
11918 * ipa-reference.c (pass_ipa_reference): Update.
11919 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11920 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11922 * ipa-inline.c (pass_ipa_inline): Update.
11923 * ipa.c (pass_ipa_whole_program): Update.
11924 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11925 * passes.c (ipa_write_summaries_1): Do not test wpa.
11926 (ipa_write_optimization_summaries_1): New.
11927 (ipa_write_optimization_summaries): New.
11928 (ipa_read_summaries): Do not test ltrans.
11929 (ipa_read_optimization_summaries_1): New.
11930 (ipa_read_optimization_summaries): New.
11932 2010-04-21 Jan Hubicka <jh@suse.cz>
11934 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11935 for boundary nodes.
11936 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11938 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11941 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11942 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11944 2010-04-21 Jan Hubicka <jh@suse.cz>
11946 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11948 2010-04-21 Jan Hubicka <jh@suse.cz>
11950 * varpool.c (decide_is_variable_needed): Variable is always needed
11953 2010-04-21 Jan Hubicka <jh@suse.cz>
11955 * opts.c (decode_options): Enable pure-const pass for whopr.
11957 2010-04-21 Jan Hubicka <jh@suse.cz>
11959 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11960 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11962 (cgraph_decide_inlining): Do not expect callee to be removed in all
11965 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11967 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11969 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11971 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11972 amdfam10_decode attributes.
11974 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11976 PR middle-end/43570
11977 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11978 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11979 (lower_copyprivate_clauses): Use private var in outer
11980 context instead of original var. Make sure the types
11981 are correct for VLAs.
11983 2010-04-21 Richard Guenther <rguenther@suse.de>
11985 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11986 to non-pointer objects.
11988 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11990 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
11991 last chain entry if it starts with the still current label.
11992 (add_location_or_const_value_attribute): Check that
11993 loc_list->first->next is NULL instead of comparing ->first with ->last.
11994 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11995 to add_var_loc_to_decl.
11997 * dwarf2out.c (output_call_frame_info): For dw_cie_version
11998 >= 4 add also address size and segment size fields into CIE header.
12000 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12001 long as address size is the same as sizeof (void *) and
12003 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
12004 address size or segment size is unexpected, return DW_EH_PE_omit.
12005 (classify_object_over_fdes): If get_cie_encoding returned
12006 DW_EH_PE_omit, return -1.
12007 (init_object): If classify_object_over_fdes returned -1,
12008 pretend there were no FDEs at all.
12010 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
12012 * config/i386/i386.md (bswap<mode>2): Macroize expander from
12013 bswap{si,di}2 using SWI48 mode iterator.
12014 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12015 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
12016 set modrm attribute of bswap insn to 0 and remove length attribute.
12017 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12018 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
12019 set mode attribute to <MODE> and remove length attribute.
12021 2010-04-20 James E. Wilson <wilson@codesourcery.com>
12023 PR rtl-optimization/43520
12024 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12025 zero available registers.
12027 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12029 * builtins.c (fold_builtin_cproj): Fold more cases.
12031 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12033 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12034 (fold_builtin_1): Fold builtin cproj.
12035 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12036 Use ATTR_CONST_NOTHROW_LIST.
12038 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
12040 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12041 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
12042 ffsi2_no_cmove for !TARGET_CMOVE.
12043 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
12044 (ffssi2): Remove expander.
12045 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12047 (ctz<mode>2): Ditto from ctz{si,di}2.
12048 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12050 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12053 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12055 * dwarf2out.c (AT_linkage_name): Define.
12056 (clone_as_declaration): Handle DW_AT_linkage_name.
12057 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12058 of DW_AT_MIPS_linkage_name.
12059 (move_linkage_attr): Likewise.
12060 (dwarf2out_finish): Likewise.
12062 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
12064 PR middle-end/41952
12065 * fold-const.c (fold_comparison): New folding rule.
12067 2010-04-20 Anatoly Sokolov <aesok@post.ru>
12069 * double-int.h (double_int_setbit): Declare.
12070 * double-int.c (double_int_setbit): New function.
12071 * rtl.h (immed_double_int_const): Declare.
12072 * emit-rtl.c (immed_double_int_const): New function.
12073 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12074 and immed_double_int_const functions.
12075 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12076 expand_copysign_bit): (Ditto.).
12077 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12078 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12079 * dojump.c (prefer_and_bit_test): (Ditto.).
12080 * expr.c (convert_modes, reduce_to_bit_field_precision,
12081 const_vector_from_tree): (Ditto.).
12082 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12084 2010-04-20 Jan Hubicka <jh@suse.cz>
12086 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12087 (dump_cgraph_node): Dump new flags.
12088 * cgraph.h (struct cgraph_node): Add flags
12089 reachable_from_other_partition and in_other_partition.
12090 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12091 other partition can not be removed.
12092 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12093 the other partition must be output; silence sanity checking on
12094 leaking functions bodies from other paritition.
12095 * lto-cgraph.c (reachable_from_other_partition_p): New function.
12096 (lto_output_node): Output new flags; do not sanity check that inline
12097 clones are output; drop lto_forced_extern_inline_p code; do not mock
12098 visibility flags at partition boundaries.
12099 (add_node_to): New function.
12100 (output_cgraph): Use it to sort functions so masters appear before
12102 (input_overwrite_node): Input new flags.
12103 * passes.c (ipa_write_summaries): Do not call
12104 lto_new_extern_inline_states.
12105 * lto-section-out.c (forced_extern_inline,
12106 lto_new_extern_inline_states lto_delete_extern_inline_states,
12107 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12108 * lto-streamer.h (lto_new_extern_inline_states,
12109 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12110 lto_forced_extern_inline_p): Kill.
12112 2010-04-20 Richard Guenther <rguenther@suse.de>
12114 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12115 from vars that can have pointers.
12116 (process_constraint): Dump useless constraints.
12118 2010-04-20 Richard Guenther <rguenther@suse.de>
12120 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12121 (dump_sa_points_to_info): Remove asserts.
12122 (init_base_vars): nothing_id isn't an escape point nor does it
12125 2010-04-20 Jakub Jelinek <jakub@redhat.com>
12127 * tree.h (TYPE_REF_IS_RVALUE): Define.
12128 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12129 should_move_die_to_comdat, prune_unused_types_walk): Handle
12130 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12131 (modified_type_die, gen_reference_type_die): Emit
12132 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12133 if TYPE_REF_IS_RVALUE and -gdwarf-4.
12135 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12138 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12139 calls for -fpic -m31 if they have been sibcall optimized.
12141 2010-04-19 James E. Wilson <wilson@codesourcery.com>
12143 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12144 ar.lc fixed and call-used.
12146 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12148 2010-04-19 Jan Hubicka <jh@suse.cz>
12150 * opts.c (decode_options): Disable whpr incompatible passes.
12151 * lto/lto.c (lto_1_to_1_map): Skip clones.
12152 (read_cgraph_and_symbols): Do not mark everything as needed.
12153 (do_whole_program_analysis): Do map only after optimizing;
12154 set proper cgraph_state; use passmanager.
12156 2010-04-19 DJ Delorie <dj@redhat.com>
12158 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12159 POINTER_PLUS_EXPR and fix them.
12161 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
12163 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12164 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12165 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12166 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12167 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12168 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12169 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12170 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12171 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12172 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12173 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12175 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
12177 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12178 (check_cond_move_block): Likewise.
12179 (cond_move_process_if_block): Likewise.
12180 (noce_find_if_block): Improve formatting.
12181 (find_if_header): Pass 0 to memset and tweak conditions.
12182 (cond_exec_find_if_block): Fix long lines and tweak conditions.
12184 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12186 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12189 PR middle-end/43337
12190 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12191 with non-local decl doesn't need chain.
12193 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
12195 * ira-color.c (allocno_reload_assign): Avoid accumulating
12196 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12198 2010-04-19 Martin Jambor <mjambor@suse.cz>
12200 * gimple.h (create_tmp_reg): Declare.
12201 * gimplify.c (create_tmp_reg): New function.
12202 (gimplify_return_expr): Use create_tmp_reg.
12203 (gimplify_omp_atomic): Likewise.
12204 (gimple_regimplify_operands): Likewise.
12205 * tree-dfa.c (make_rename_temp): Likewise.
12206 * tree-predcom.c (predcom_tmp_var): Likewise.
12207 (reassociate_to_the_same_stmt): Likewise.
12208 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12209 (get_replaced_param_substitute): Likewise.
12210 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12211 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12212 * tree-ssa-pre.c (get_representative_for): Likewise.
12213 (create_expression_by_pieces): Likewise.
12214 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12215 (create_tailcall_accumulator): Likewise.
12217 2010-04-19 Martin Jambor <mjambor@suse.cz>
12219 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12221 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12223 2010-04-19 Richard Guenther <rguenther@suse.de>
12225 PR tree-optimization/43796
12226 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12227 from SCEV in the lattice.
12228 (vrp_visit_phi_node): Dump change.
12230 2010-04-19 Richard Guenther <rguenther@suse.de>
12232 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12233 * configure: Re-generated.
12235 2010-04-19 Richard Guenther <rguenther@suse.de>
12237 PR tree-optimization/43783
12238 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12239 constant ARRAY_REF operands two and three if possible.
12241 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
12244 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12246 2010-04-19 Jie Zhang <jie@codesourcery.com>
12249 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12251 2010-04-19 Ira Rosen <irar@il.ibm.com>
12253 PR tree-optimization/37027
12254 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12255 and macro to access it.
12256 (vectorizable_reduction): Add argument.
12257 (vect_get_slp_defs): Likewise.
12258 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12259 statements for possible use in SLP.
12260 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12261 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12262 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12264 (vectorizable_reduction): Likewise.
12265 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12267 (vectorizable_type_demotion, vectorizable_type_promotion,
12268 vectorizable_store): Likewise.
12269 (vect_analyze_stmt): Update call to vectorizable_reduction.
12270 (vect_transform_stmt): Likewise.
12271 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12272 (vect_build_slp_tree): Fix indentation. Check that there are no loads
12273 from different interleaving chains in same node.
12274 (vect_slp_rearrange_stmts): New function.
12275 (vect_supported_load_permutation_p): Allow load permutations for
12276 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12277 inside SLP nodes if necessary.
12278 (vect_analyze_slp_instance): Handle reductions.
12279 (vect_analyze_slp): Try to build SLP instances originating from groups
12281 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12282 (vect_get_constant_vectors): Create initial vectors for reductions
12283 according to reduction code. Add new argument.
12284 (vect_get_slp_defs): Add new argument, pass it to
12285 vect_get_constant_vectors.
12286 (vect_schedule_slp_instance): Remove SLP tree root statements.
12288 2010-04-19 Jakub Jelinek <jakub@redhat.com>
12290 * tree.h (ENUM_IS_SCOPED): Define.
12291 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12292 for ENUM_IS_SCOPED enums.
12294 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
12296 * fold-const.c (fold_comparison): Use ssizetype.
12297 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12298 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12299 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12300 * tree-object-size.c (compute_object_sizes): Use size_type_node.
12302 * tree.h (initialize_sizetypes): Remove parameter.
12303 (build_common_tree_nodes): Remove second parameter.
12304 * stor-layout.c (initialize_sizetypes): Remove parameter.
12305 Always create an unsigned type.
12306 (set_sizetype): Assert that the passed type is unsigned and simplify.
12307 * tree.c (build_common_tree_nodes): Remove second parameter.
12308 Adjust call to initialize_sizetypes.
12309 * c-decl.c (c_init_decl_processing): Remove second argument in call to
12310 build_common_tree_nodes.
12312 2010-04-18 Matthias Klose <doko@ubuntu.com>
12314 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12316 2010-04-18 Ira Rosen <irar@il.ibm.com>
12318 PR tree-optimization/43771
12319 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12320 load permutation doesn't have gaps.
12322 2010-04-18 Jan Hubicka <jh@suse.cz>
12324 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12325 (sse_prologue_save_insn expander): Use new pattern.
12326 (sse_prologue_save_insn1): New pattern and splitter.
12327 (sse_prologue_save_insn): Update to deal also with 64bit aligned
12329 * i386.c (setup_incoming_varargs_64): Do not compute jump
12331 (ix86_gimplify_va_arg): Update alignment needed.
12332 (ix86_local_alignment): Do not align all local arrays to 128bit.
12334 2010-04-17 Jan Hubicka <jh@suse.cz>
12336 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12338 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12340 * arm.md (negdi2): Remove redundant code to force values into a
12343 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12345 * arm/bpabi.S: Add EABI alignment attributes to objects.
12346 * arm/bpabi-v6m.S: Likewise.
12347 * arm/crti.asm: Likewise.
12348 * arm/crtn.asm: Likewise.
12349 * arm/lib1funcs.asm: Likewise.
12350 * arm/libunwind.S: Likewise.
12352 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
12354 * arm-protos.h (tune_params): New structure.
12355 * arm.c (current_tune): New variable.
12356 (arm_constant_limit): Delete.
12357 (struct processors): Add pointer to the tune parameters.
12358 (arm_slowmul_tune): New tuning option.
12359 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12360 (all_cores): Adjust to pick up the tuning model.
12361 (arm_constant_limit): New function.
12362 (arm_override_options): Select the appropriate tuning model. Delete
12363 initialization of arm_const_limit.
12364 (arm_split_constant): Use the new constant-limit model.
12365 (arm_rtx_costs): Pick up the current tuning model.
12366 * arm.md (is_strongarm, is_xscale): Delete.
12367 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12368 for Xscale variant architectures.
12369 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12371 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12373 * config/arm/arm.c (arm_gen_constant): Remove unused variable
12375 (arm_rtx_costs_1): Remove unused variable extra_cost.
12376 (arm_unwind_emit_set): Use variable offset.
12377 (thumb1_output_casesi): Remove unused variable flags.
12379 2010-04-16 Jeff Law <law@redhat.com>
12381 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12382 needing assignment rather than doing a two-phase assignment. Remove
12383 unused variable 'm'.
12385 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12388 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12390 2010-04-16 Doug Kwan <dougkwan@google.com>
12392 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12393 (next_operand_entry_id): New static variable.
12394 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12395 (add_to_ops_vec): Assigned unique ID to operand entry.
12396 (struct oecount_s): New field ID.
12397 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12398 (undistribute_ops_list): Assign unique IDs to oecounts.
12399 (init_reassoc): reset next_operand_entry_id.
12401 2010-04-16 Doug Kwan <dougkwan@google.com>
12403 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12404 missing left parenthesis.
12406 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
12408 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12409 *btdi_rex64 using SWI48 mode iterator.
12410 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12411 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12412 *jcc_btdi_mask_rex64.
12414 2010-04-16 Anatoly Sokolov <aesok@post.ru>
12416 * double-int.h (tree_to_double_int): Convert to macro.
12417 * double-int.c (tree_to_double_int): Remove.
12419 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12422 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12423 with want_address 2 and in case a single element list might be
12424 possible, call it again with want_address 0.
12426 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12428 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12429 case 'W' print operands for HI mode.
12430 * config/h8300/h8300.h (Y0, Y2) : New constraints.
12431 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12432 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12433 * config/h8300/predicate.md (bit_register_indirect_operand): New.
12435 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12437 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12438 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12439 #xx:3 and #xx:4 mode.
12441 * config/h8300/h8300.md (inverted load with HImode dest): Add
12442 support for H8300SX.
12444 * config/h8300/predicate.md (bit_operand): Allow immediate values that
12445 satisfy 'U' constraint.
12447 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12449 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12450 * configure: Regenerate.
12451 * config.in: Regenerate.
12452 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12455 2010-04-16 Richard Guenther <rguenther@suse.de>
12457 * tree.h (struct tree_decl_minimal): Move pt_uid ...
12458 (struct tree_decl_common): ... here.
12459 (DECL_PT_UID): Adjust.
12460 (SET_DECL_PT_UID): Likewise.
12461 (DECL_PT_UID_SET_P): Likewise.
12463 2010-04-16 Richard Guenther <rguenther@suse.de>
12465 PR tree-optimization/43572
12466 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12467 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12468 * tree-flow.h (is_call_clobbered): Remove.
12469 * tree-flow-inline.h (is_call_clobbered): Likewise.
12470 * tree-dfa.c (dump_variable): Do not dump call clobber state.
12471 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12472 (execute_return_slot_opt): Adjust.
12473 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12474 check for call clobbered vars here.
12475 (find_tail_calls): Move tailcall verification to the
12478 2010-04-16 Diego Novillo <dnovillo@google.com>
12480 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12482 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12485 * config/arm/arm.md (cbranchqi4): New pattern.
12486 * config/arm/predicates.md (const0_operand,
12487 cbranchqi4_comparison_operator): New predicates.
12489 2010-04-16 Richard Guenther <rguenther@suse.de>
12491 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12492 (dump_gimple_stmt): Likewise.
12494 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
12496 * recog.h (struct recog_data): New field is_operator.
12497 (struct insn_operand_data): New field is_operator.
12498 * recog.c (extract_insn): Set recog_data.is_operator.
12499 * genoutput.c (output_operand_data): Emit code to set the
12501 * reload.c (find_reloads): Use it rather than testing for an
12502 empty constraint string.
12505 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12506 If the previous insn is a cbranchsi4_insn with the same arguments,
12507 omit the compare instruction.
12509 * config/arm/arm.md (addsi3_cbranch): If destination is a high
12510 register, inputs must be low registers and we need a low register
12511 scratch. Handle alternative 2 like alternative 3.
12513 2010-04-16 Jakub Jelinek <jakub@redhat.com>
12515 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12516 don't call get_addr on both. If one expression is a VALUE and
12517 the other a REG, check VALUE's locs if the REG isn't among them.
12519 2010-04-16 Christian Bruel <christian.bruel@st.com>
12521 * config/sh/sh.h (sh_frame_pointer_required): New function.
12522 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12523 (flag_omit_frame_pointer) Set.
12524 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12525 (rounded_frame_size): Adjust size with outgoing_args_size.
12526 (sh_set_return_address): Must return from stack pointer.
12527 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12528 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12529 (ACCUMULATE_OUTGOING_ARGS): Define.
12530 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12531 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12533 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12536 * config/sh/sh.c (sh_legitimize_reload_address): Use
12537 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12538 Remove a unneeded check for offset_base.
12540 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
12542 * configure: Regenerated.
12544 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12546 * config/s390/s390.c (s390_call_save_register_used): Switch back
12547 to HARD_REGNO_NREGS.
12549 2010-04-15 Richard Guenther <rguenther@suse.de>
12551 * alias.c (alias_set_subset_of): Handle alias-set zero
12554 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
12555 Julian Brown <julian@codesourcery.com>
12557 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12558 alternatives according to use of high and low regs.
12559 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12560 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12561 optimizing for size on Thumb-2.
12563 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
12565 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12567 2010-04-15 Richard Guenther <rguenther@suse.de>
12569 * tree-ssa-structalias.c (struct variable_info): Add
12571 (new_var_info): Initialize it.
12572 (dump_constraints): Support printing last added constraints.
12573 (debug_constraints): Adjust.
12574 (dump_constraint_graph): Likewise.
12575 (make_heapvar_for): Check for NULL cfun.
12576 (get_function_part_constraint): New function.
12577 (get_fi_for_callee): Likewise.
12578 (find_func_aliases): Properly implement IPA PTA constraints.
12579 (process_ipa_clobber): New function.
12580 (find_func_clobbers): Likewise.
12581 (insert_into_field_list_sorted): Remove.
12582 (create_function_info_for): Properly allocate vars for IPA mode.
12583 Do not use insert_into_field_list_sorted.
12584 (create_variable_info_for): Properly generate constraints for
12585 global vars in IPA mode.
12586 (dump_solution_for_var): Always dump the solution.
12587 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12588 (find_what_var_points_to): Adjust.
12589 (pt_solution_set): Change.
12590 (pt_solution_ior_into): New function.
12591 (pt_solution_empty_p): Export.
12592 (pt_solution_includes_global): Adjust.
12593 (pt_solution_includes_1): Likewise.
12594 (pt_solutions_intersect_1): Likewise.
12595 (dump_sa_points_to_info): Check some invariants.
12596 (solve_constraints): Move constraint dumping ...
12597 (compute_points_to_sets): ... here.
12598 (ipa_pta_execute): ... and here.
12599 (compute_may_aliases): Do not re-compute points-to info
12600 locally if IPA info is available.
12601 (ipa_escaped_pt): New global var.
12602 (ipa_pta_execute): Properly implement IPA PTA.
12603 * tree-into-ssa.c (dump_decl_set): Support dumping
12604 decls not in referenced-vars.
12605 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12606 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12607 (dump_points_to_solution): Likewise.
12608 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12609 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12610 (remap_gimple_stmt): Reset call clobber/use information if necessary.
12611 (copy_decl_to_var): Copy DECL_PT_UID.
12612 (copy_result_decl_to_var): Likewise.
12613 * tree.c (make_node_stat): Initialize DECL_PT_UID.
12614 (copy_node_stat): Copy it.
12615 * tree.h (DECL_PT_UID): New macro.
12616 (SET_DECL_PT_UID): Likewise.
12617 (DECL_PT_UID_SET_P): Likewise.
12618 (struct tree_decl_minimal): Add pt_uid member.
12619 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12620 (pt_solution_empty_p): Declare.
12621 (pt_solution_set): Adjust.
12622 (ipa_escaped_pt): Declare.
12623 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12624 * gimple-pretty-print.c (pp_points_to_solution): New function.
12625 (dump_gimple_call): Dump call clobber/use information.
12626 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12627 * tree-pass.h (TDF_ALIAS): New dump option.
12628 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12629 * doc/invoke.texi (-fipa-pta): Update documentation.
12631 2010-04-15 Richard Guenther <rguenther@suse.de>
12633 * Makefile.in (OBJS-common): Add gimple-fold.o.
12634 (gimple-fold.o): New rule.
12635 * tree.h (maybe_fold_offset_to_reference,
12636 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12638 * gimple.h: ... here.
12639 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12640 may_propagate_address_into_dereference): Move prototypes ...
12641 * gimple.h: ... here.
12642 * tree-ssa-ccp.c (get_symbol_constant_value,
12643 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12644 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12645 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12646 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12647 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12648 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12649 gimplify_and_update_call_from_tree): Move ...
12650 * gimple-fold.c: ... here. New file.
12651 (ccp_fold_builtin): Rename to ...
12652 (gimple_fold_builtin): ... this.
12653 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12655 2010-04-15 Richard Guenther <rguenther@suse.de>
12657 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12658 fit_double_type, force_fit_type_double, add_double_with_sign,
12659 neg_double, mul_double_with_sign, lshift_double, rshift_double,
12660 lrotate_double, rrotate_double, div_and_round_double): Move ...
12661 * double-int.c: ... here.
12662 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12663 add_double, neg_double, mul_double_with_sign, mul_double,
12664 lshift_double, rshift_double, lrotate_double, rrotate_double,
12665 div_and_round_double): Move prototypes ...
12666 * double-int.h: ... here.
12668 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
12671 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
12672 matching constraints to ensure inputs match the output.
12674 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
12677 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12678 in an input-only operand.
12680 2010-04-15 Anatoly Sokolov <aesok@post.ru>
12682 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12683 (double_int_not, double_int_lshift, double_int_rshift): Declare.
12684 (double_int_negative_p): Convert to static inline function.
12685 * double-int.c (double_int_lshift, double_int_lshift): New functions.
12686 (double_int_negative_p): Remove.
12687 * tree.h (lshift_double, rshift_double):
12688 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12689 * fold-const.c (fold_convert_const_int_from_real,
12690 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12691 (lshift_double): Change type of arith argument to bool.
12692 (rshift_double): Change type of arith argument to bool. Correct
12694 * expmed.c (mask_rtx, lshift_value): (Ditto.).
12696 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
12699 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12700 at the start and end of the then/else blocks, and omit them from the
12702 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
12703 argument; all callers changed. Pass zero to old_insns_match_p instead.
12704 (flow_find_head_matching_sequence): New function.
12705 (old_insns_match_p): Check REG_EH_REGION notes for calls.
12706 * basic-block.h (flow_find_cross_jump,
12707 flow_find_head_matching_sequence): Declare functions.
12709 2010-04-14 Jason Merrill <jason@redhat.com>
12712 * c-common.c (attribute_takes_identifier_p): New fn.
12713 * c-common.h: Declare it.
12715 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12717 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12718 splitter condition.
12719 (*udivmod<mode>4): Ditto.
12721 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12723 * config/i386/i386.md (maxmin_int): Rename code attribute from
12724 maxminiprefix and update all users.
12725 (maxmin_float): Ditto from maxminfprefix.
12726 (logic): Ditto from logicprefix.
12727 (absneg_mnemonic): Ditto from absnegprefix.
12728 * config/i386/mmx.md: Update all users of maxminiprefix,
12729 maxminfprefix and logicprefix for rename.
12730 * config/i386/sse.md: Ditto.
12731 * config/i386/sync.md (sync_<code><mode>): Update for
12732 logicprefix rename.
12734 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
12737 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12738 warnings converted to errors.
12740 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12742 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12743 used insn_type variable.
12744 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12745 to avoid set-but-not-used warning.
12747 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12749 * df-core.c (df_ref_debug): Change format string placeholder
12751 * dwarf2asm.c (dw2_asm_output_data_raw,
12752 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12753 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12754 * dwarf2out.c (output_cfi, output_cfi_directive,
12755 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12756 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12758 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12759 * print-rtl.c (print_rtx): Ditto.
12761 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12763 PR middle-end/42694
12764 * builtins.c (expand_builtin_pow_root): New function to expand pow
12765 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12766 series of sqrt and cbrt calls under -ffast-math.
12767 (expand_builtin_pow): Call it.
12769 2010-04-14 Michael Matz <matz@suse.de>
12771 PR tree-optimization/42963
12772 * tree-cfg.c (touched_switch_bbs): New static variable.
12773 (group_case_labels_stmt): New function broken out from ...
12774 (group_case_labels): ... here, use the above.
12775 (start_recording_case_labels): Allocate touched_switch_bbs.
12776 (end_recording_case_labels): Deallocate it, call
12777 group_case_labels_stmt.
12778 (gimple_redirect_edge_and_branch): Remember index of affected BB.
12780 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12782 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12783 from insn template.
12785 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
12787 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12789 2010-04-13 Jan Hubicka <jh@suse.cz>
12791 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12792 of optimized out static functions.
12793 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12794 cost computation. Also sanity check for overflows.
12795 (update_caller_keys): Update cgraph_edge_badness call; properly
12796 update fibheap and sanity check that it is up to date.
12797 (add_new_edges_to_heap): Update cgraph_edge_badness.
12798 (cgraph_decide_inlining_of_small_function): Likewise;
12799 add sanity checking that badness in heap is up to date;
12800 improve dumping of reason; Update badness of calls to the
12801 offline copy of function currently inlined; dump badness
12802 of functions not inlined because of unit growth limits.
12804 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12806 PR middle-end/32628
12807 * c-common.c (pointer_int_sum): Disregard overflow that occured only
12808 because of sign-extension change when converting to sizetype here...
12809 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12811 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12812 the folding to constants. Remove redundant final conversion.
12813 (fold_binary) <associate>: Do not associate if the re-association of
12814 constants alone overflows.
12815 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12816 to the end of the list.
12817 (multiple_of_p) <COND_EXPR>: New case.
12819 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
12821 * opt-functions.awk (opt_sanitized_name): New.
12823 * optc-gen.awk: Use it
12824 * opth-gen.awk: Use it.
12826 2010-04-13 Martin Jambor <mjambor@suse.cz>
12828 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12829 (sra_modify_assign): Delete stmts loading dead data even if racc has no
12830 children. Call replace_uses_with_default_def_ssa_name to handle
12833 2010-04-13 Michael Matz <matz@suse.de>
12835 PR middle-end/43730
12836 * builtins.c (expand_builtin_interclass_mathfn): Also create
12837 a register if the predicate doesn't match.
12839 2010-04-13 Diego Novillo <dnovillo@google.com>
12841 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12842 * c-pch.c: Include timevar.h.
12843 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12844 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12845 * ggc-common.c: Include timevar.h.
12846 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12847 * timevar.def (TV_PCH_SAVE): Define.
12848 (TV_PCH_CPP_SAVE): Define.
12849 (TV_PCH_PTR_REALLOC): Define.
12850 (TV_PCH_PTR_SORT): Define.
12851 (TV_PCH_RESTORE): Define.
12852 (TV_PCH_CPP_RESTORE): Define.
12854 2010-04-13 Michael Matz <matz@suse.de>
12856 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12858 (can_reassociate_p): New function.
12859 (break_up_subtract_bb, reassociate_bb): Use it.
12861 2010-04-13 Richard Guenther <rguenther@suse.de>
12864 * builtins.c (c_readstr): Fix assert.
12866 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
12868 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12869 when generating cltd insn.
12871 (*ashl<mode>3_1): Remove special handling for register operand 2.
12872 (*ashlsi3_1_zext): Ditto.
12873 (*ashlhi3_1): Ditto.
12874 (*ashlhi3_1_lea): Ditto.
12875 (*ashlqi3_1): Ditto.
12876 (*ashlqi3_1_lea): Ditto.
12877 (*<shiftrt_insn><mode>3_1): Ditto.
12878 (*<shiftrt_insn>si3_1_zext): Ditto.
12879 (*<shiftrt_insn>qi3_1_slp): Ditto.
12880 (*<rotate_insn><mode>3_1): Ditto.
12881 (*<rotate_insn>si3_1_zext): Ditto.
12882 (*<rotate_insn>qi3_1_slp): Ditto.
12884 2010-04-13 Richard Guenther <rguenther@suse.de>
12886 * tree-ssa-structalias.c (callused_id): Remove.
12887 (call_stmt_vars): New.
12888 (get_call_vi): Likewise.
12889 (lookup_call_use_vi): Likewise.
12890 (lookup_call_clobber_vi): Likewise.
12891 (get_call_use_vi): Likewise.
12892 (get_call_clobber_vi): Likewise.
12893 (make_transitive_closure_constraints): Likewise.
12894 (handle_const_call): Adjust to do per-call call-used handling.
12895 (handle_pure_call): Likewise.
12896 (find_what_var_points_to): Remove general callused handling.
12897 (init_base_vars): Likewise.
12898 (init_alias_vars): Initialize call_stmt_vars.
12899 (compute_points_to_sets): Process call-used and call-clobbered
12900 vars for call statements.
12901 (delete_points_to_sets): Free call_stmt_vars.
12903 2010-04-13 Richard Guenther <rguenther@suse.de>
12905 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12906 Only add RW dependence for dependence distance zero.
12907 Adjust maximal vectorization factor according to dependences.
12908 Move alignment handling ...
12909 (vect_find_same_alignment_drs): ... here. New function.
12910 (vect_analyze_data_ref_dependences): Adjust.
12911 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12912 (vect_analyze_data_refs): Adjust minimal vectorization factor
12913 according to data references.
12914 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12915 dependences before determining the vectorization factor.
12916 Analyze alignment after determining the vectorization factor.
12917 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12918 dependences before alignment.
12919 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12921 (vect_analyze_data_refs): Likewise.
12922 (MAX_VECTORIZATION_FACTOR): New define.
12924 2010-04-13 Duncan Sands <baldrick@free.fr>
12926 * except.h (lang_eh_type_covers): Remove.
12927 * except.c (lang_eh_type_covers): Likewise.
12929 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12930 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12932 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12933 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12934 UNITS_PER_LONG where it is ABI relevant.
12935 (s390_return_addr_rtx): Likewise.
12936 (s390_back_chain_rtx): Likewise.
12937 (s390_frame_area): Likewise.
12938 (s390_frame_info): Likewise.
12939 (s390_initial_elimination_offset): Likewise.
12940 (save_gprs): Likewise.
12941 (s390_emit_prologue): Likewise.
12942 (s390_emit_epilogue): Likewise.
12943 (s390_function_arg_advance): Likewise.
12944 (s390_function_arg): Likewise.
12945 (s390_va_start): Likewise.
12946 (s390_gimplify_va_arg): Likewise.
12947 (s390_function_profiler): Likewise.
12948 (s390_optimize_prologue): Likewise.
12949 (s390_rtx_costs): Likewise.
12950 (s390_secondary_reload): Likewise.
12951 (s390_promote_function_mode): Likewise.
12952 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12953 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12954 registers available.
12955 (s390_unwind_word_mode): New function.
12956 (s390_function_value): Split 64 bit values into register pair if
12957 used as return value.
12958 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12959 function call parameters. Handle parallels.
12960 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12961 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12962 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12963 (s390_expand_setmem): Remove unused variable src_addr.
12964 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12965 deal with 64 bit registers.
12966 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12967 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12968 (UNITS_PER_LONG): New macro.
12969 * libjava/include/s390-signal.h: Define extended ucontext
12970 structure containing the upper halfs of the 64 bit registers.
12972 2010-04-13 Simon Baldwin <simonb@google.com>
12974 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12976 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12978 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12979 rvalue on the RHS if the LHS is of a non-renamable type.
12980 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12982 2010-04-13 Matthias Klose <doko@ubuntu.com>
12984 * gcc.c (cc1_options): Handle -iplugindir before processing
12985 the cc1 spec. Only add -iplugindir once.
12986 (cpp_unique_options): Add -iplugindir option if -fplugin* options
12988 * common.opt (iplugindir): Remove `Separate' property, initialize.
12989 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12991 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12992 (distclean): Remove plugin dir.
12993 * doc/invoke.texi: Document -iplugindir.
12995 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
12997 * doc/plugins.texi (Loading Plugins): Document short
12998 -fplugin=foo option.
12999 (Plugin API): Mention default_plugin_dir_name function.
13001 * gcc.c (find_file_spec_function): Add new declaration.
13002 (static_spec_func): Use it for "find-file".
13003 (find_file_spec_function): Add new function.
13004 (cc1_options): Add -iplugindir option if -fplugin* options found.
13006 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13008 * plugin.c (add_new_plugin): Updated comment, and handle short
13010 (default_plugin_dir_name): Added new function.
13012 * common.opt (iplugindir): New option to set the plugin directory.
13014 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
13016 * config/i386/i386.md (any_rotate): New code iterator.
13017 (rotate_insn): New code attribute.
13019 (SWIM124): New mode iterator.
13020 (<rotate_insn>ti3): New expander.
13021 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13022 any_rotate code iterator.
13023 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13024 using any_rotate code iterator and SWIM124 mode iterator.
13025 (ix86_rotlti3): New insn_and_split pattern.
13026 (ix86_rotrti3): Ditto.
13027 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13028 ix86_rotl{di,ti}3 patterns.
13029 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13030 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13031 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13032 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13033 code iterator and SWI mode iterator.
13034 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13035 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13037 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13038 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13039 (bswap rotatert splitter): Add splitter.
13040 (bswap splitter): Macroize splitter using any_rotate code iterator.
13041 Add insn predicate to split only for TARGET_USE_XCHGB or when
13042 optimizing function for size.
13044 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13046 * config/pa/pa.c (emit_move_sequence): Remove use of
13047 deleted variable flag_argument_noalias.
13049 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13051 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13053 Add to unsupported targets list.
13054 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13055 sparc*-sun-solaris2.[567]* from target lists.
13056 * configure: Regenerate.
13057 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13059 Remove Solaris 7 patch references.
13060 (Specific, sparc-sun-solaris2.7): Removed.
13061 (sparc-sun-solaris2*): Update Solaris 7 example.
13062 (sparc64-*-solaris2*): Likewise.
13064 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13066 * config.build (alpha*-dec-osf4*): Remove.
13067 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13068 of obsolete configurations.
13069 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13071 * config/alpha/t-osf4: Renamed to ...
13072 * config/alpha/t-osf5: ... this.
13073 * config/alpha/osf.h: Renamed to ...
13074 * config/alpha/osf5.h: ... this.
13075 Merged old osf5.h contents.
13077 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13078 (EXTRA_SPECS): Removed.
13079 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13080 reflect removal of Tru64 UNIX V4.0/V5.0 support.
13083 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13085 * doc/contrib.texi (Contributors, Rainer Orth): Update.
13087 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
13090 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13091 __thiscall convention.
13093 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13095 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13097 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13099 2010-04-12 Steve Ellcey <sje@cup.hp.com>
13101 * function.c (assign_parms_initialize_all): Add unused attribute
13104 2010-04-12 Richard Guenther <rguenther@suse.de>
13106 * gsstruct.def (GSS_CALL): New.
13107 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13108 * gimple.h: Include tree-ssa-alias.h.
13109 (struct gimple_statement_call): New.
13110 (union gimple_statement_struct_d): Add gimple_call member.
13111 (gimple_call_reset_alias_info): Declare.
13112 (gimple_call_use_set): New function.
13113 (gimple_call_clobber_set): Likewise.
13114 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13115 * gimple.c (gimple_call_reset_alias_info): New function.
13116 (gimple_build_call_1): Call it.
13117 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13118 * tree-inline.c (remap_gimple_stmt): Likewise.
13119 (expand_call_inline): Remove callused handling.
13120 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13121 * tree-dfa.c (dump_variable): Likewise.
13122 * tree-parloops.c (parallelize_loops): Likewise.
13123 * tree-ssa.c (init_tree_ssa): Likewise.
13124 (delete_tree_ssa): Likewise.
13125 * tree-flow-inline.h (is_call_used): Remove.
13126 * tree-flow.h (struct gimple_df): Remove callused member.
13127 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13128 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13129 (ref_maybe_used_by_call_p_1): Simplify.
13130 (call_may_clobber_ref_p_1): Likewise.
13131 * tree-ssa-structalias.c (compute_points_to_sets): Set
13132 the call stmt used and clobbered sets.
13133 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13134 (find_tail_calls): Verify the tail call.
13136 2010-04-12 Richard Guenther <rguenther@suse.de>
13138 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13139 single-iteration always-inline inlining.
13140 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13141 (cgraph_decide_inlining): Do not handle always-inline specially.
13142 (try_inline): Remove always-inline cycle detection special case.
13143 Do not recurse on always-inlines.
13144 (cgraph_early_inlining): Do not iterate if not optimizing.
13145 (cgraph_gate_early_inlining): remove.
13146 (pass_early_inline): Run unconditionally.
13147 (gate_cgraph_decide_inlining): New function.
13148 (pass_ipa_inline): Use it. Do not run the IPA inliner if
13149 not inlining or optimizing.
13150 (cgraph_decide_inlining_of_small_functions): Also consider
13151 always-inline functions.
13152 (cgraph_default_inline_p): Return true for nodes which should
13153 disregard inline limits.
13154 (estimate_function_body_sizes): Assume zero size and time for
13155 nodes which are marked as disregarding inline limits.
13156 (cgraph_decide_recursive_inlining): Do not perform recursive
13157 inlining on always-inline nodes.
13159 2010-04-12 Jakub Jelinek <jakub@redhat.com>
13162 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13163 for exprs satisfying handled_component_p.
13165 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
13167 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13168 non-constant aggregate elements.
13170 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13171 is a real initialization.
13173 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
13176 * c-decl.c (start_function): Move forward check for nested function.
13178 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
13180 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13181 * config/sh/sh.c: Include reload.h.
13182 (sh_legitimize_reload_address): New.
13183 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13184 sh_legitimize_reload_address.
13186 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13188 * config/sh/sh.md (*movqi_pop): New insn pattern.
13189 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13191 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13193 * config/i386/i386.md (any_shiftrt): New code iterator.
13194 (shiftrt_insn): New code attribute.
13196 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13197 using any_shiftrt code iterator.
13198 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13199 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13200 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13201 pattern from corresponding peephole2 patterns.
13202 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13203 using any_shiftrt code iterator.
13204 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13205 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13206 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13207 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13208 *{ashr,lshr}<mode>3_cmp_zext.
13209 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13211 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13213 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13215 (*lshr<mode>3_cconly): Ditto.
13217 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
13219 * config/i386/i386.md (lshr<mode>3): Macroize expander from
13220 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13221 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13222 pattern from *lshr{di,ti}3_1 and corresponding splitters using
13224 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13225 from corresponding peephole2 patterns.
13226 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13227 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13228 and *lshrdi3_1_rex64 using SWI mode iterator.
13229 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13230 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13231 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13232 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13233 and *lshrdi3_cmp_rex64 using SWI mode iterator.
13234 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13235 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13236 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13237 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13240 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
13242 * config/i386/i386.md (ashr<mode>3): Macroize expander from
13243 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13244 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
13245 pattern from *ashr{di,ti}3_1 and corresponding splitters using
13247 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13248 from corresponding peephole2 patterns.
13249 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13250 (ashrsi3_cvt): Rename from ashrsi3_31.
13251 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13252 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13253 and x86_64_shift_adj_3 using SWI48 mode iterator.
13254 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13255 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13256 and *ashrdi3_1_rex64 using SWI mode iterator.
13257 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13258 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13259 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13260 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13261 and *ashrdi3_cmp_rex64 using SWI mode iterator.
13262 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13263 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13264 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13265 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13267 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13268 * config/i386/i386.c (ix86_split_ashr): Update for renamed
13269 x86_shift<mode>_adj_3 expanders.
13271 2010-04-10 Wei Guozhi <carrot@google.com>
13274 * config/arm/arm.c (arm_pic_static_addr): New function.
13275 (legitimize_pic_address): Call arm_pic_static_addr when it detects
13277 (arm_output_addr_const_extra): Output expression for new pattern.
13278 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13280 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
13282 * ira-costs.c (record_reg_classes): Ignore alternatives that are
13285 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13286 * web.c: Include "insn-config.h" and "recog.h".
13287 (union_match_dups): New function.
13288 (web_main): Call it.
13289 (union_defs): Don't try to recognize match_dups.
13291 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13292 if doing so would replace the entire pattern.
13294 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13298 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13299 and splitter pattern. Change splitter operand 1 predicate to
13302 2010-04-09 Martin Jambor <mjambor@suse.cz>
13304 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13305 lattices are addresses of CONST_DECLs with the same initial value.
13306 (ipcp_print_all_lattices): Print values of CONST_DECLs.
13307 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13309 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
13310 Bernd Schmidt <bernds@codesourcery.com>
13312 * loop-invariant.c (replace_uses): New static function.
13313 (move_invariant_reg): Use it to ensure we can replace the uses.
13315 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
13317 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13319 (picochip_override_options): Enable section anchors only above -O1.
13320 (picochip_reorg): Fixed a couple of build warnings.
13322 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13324 * configure.ac (plugin -rdynamic test): Log result.
13325 * configure: Regenerate.
13326 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13327 (RDYNAMIC_SPEC): Define.
13328 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13330 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13332 * configure.ac: Determine Sun ld version numbers.
13333 (comdat_group): Restrict GNU ld version checks to gld.
13334 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13335 (enable_comdat): Support --enable-comdat.
13336 * configure: Regenerate.
13337 * doc/install.texi (Configuration): Document --enable-comdat.
13339 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13341 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
13342 * config/sol2-gld.h: ... here.
13343 * config.gcc (sparc*-*-solaris2*): Reflect this.
13344 (i[34567]86-*-solaris2*): Use it.
13346 2010-04-09 Steve Ellcey <sje@cup.hp.com>
13348 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13350 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13352 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13355 * diagnostic.c (diagnostic_initialize): Initialize
13356 some_warnings_are_errors.
13357 (diagnostic_finish): New.
13358 (diagnostic_action_after_output): Call it before exiting.
13359 (diagnostic_report_diagnostic): Do not print message here. Set
13360 some_warnings_are_errors.
13361 * diagnostic.h (diagnostic_context): Delete
13362 issue_warnings_are_errors_message. Add some_warnings_are_errors.
13363 (diagnostic_finish): Declare.
13364 * toplev.c (toplev_main): Call it before exit.
13366 2010-04-09 Jason Merrill <jason@redhat.com>
13369 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13370 for incomplete type.
13373 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13374 based on a warning flag.
13376 2010-04-09 Richard Guenther <rguenther@suse.de>
13378 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13380 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
13383 * varasm.c (default_assemble_visibility): Wrap vars that are
13384 set, but unused, by targets without GAS.
13385 * config/rs6000/rs6000.c (paired_emit_vector_compare):
13386 Remove set, but unused, vars.
13387 (rs6000_legitimize_tls_address): Likewise.
13388 (altivec_expand_dst_builtin): Likewise.
13389 * config/darwin.c (machopic_classify_symbol): Likewise.
13390 (machopic_indirection_name): Likewise.
13392 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
13394 * config/i386/i386.md (DWI): New mode iterator.
13395 (S): New mode attribute.
13396 (shift_operand): Ditto.
13397 (shift_immediate_operand): Ditto.
13398 (ashl_input_operand): Ditto.
13399 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13400 using SDWIM mode iterator.
13401 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
13402 pattern from *ashl{di,ti}3_1 and corresponding splitters using
13404 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13405 from corresponding peephole2 patterns.
13406 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13407 and x86_64_shift_adj_1 using SWI48 mode iterator.
13408 (x86_shift<mode>_adj_2): Ditto.
13409 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13410 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13411 using SWI48 mode iterator.
13412 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13413 *ashldi3_cmp_rex64 using SWI mode iterator.
13414 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13415 *ashldi3_cconly_rex64 using SWI mode iterator.
13416 * config/i386/i386.c (ix86_split_ashl): Update for renamed
13417 x86_shift<mode>_adj_{1,2}.
13418 (ix86_split_ashr): Ditto.
13419 (ix86_split_lshr): Ditto.
13421 2010-04-09 Richard Guenther <rguenther@suse.de>
13423 * target.h (builtin_conversion): Pass in input and output types.
13424 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13425 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13426 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13427 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13429 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13431 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13433 2010-04-09 Richard Guenther <rguenther@suse.de>
13436 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13438 2010-04-09 Richard Guenther <rguenther@suse.de>
13440 * tree-vectorizer.h (struct _stmt_vec_info): Document
13441 that vectype is the type of the LHS.
13442 (supportable_widening_operation, supportable_narrowing_operation):
13443 Get both input and output vector types as arguments.
13444 (vect_is_simple_use_1): Declare.
13445 (get_same_sized_vectype): Likewise.
13446 * tree-vect-loop.c (vect_determine_vectorization_factor):
13447 Set STMT_VINFO_VECTYPE to the vector type of the def.
13448 (vectorizable_reduction): Adjust.
13449 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13450 Adjust. Specify the output vector type.
13451 (vect_pattern_recog_1): Adjust.
13452 * tree-vect-stmts.c (get_same_sized_vectype): New function.
13453 (vectorizable_call): Adjust.
13454 (vectorizable_conversion): Likewise.
13455 (vectorizable_operation): Likewise.
13456 (vectorizable_type_demotion): Likewise.
13457 (vectorizable_type_promotion): Likewise.
13458 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13460 (vect_is_simple_use_1): New function.
13461 (supportable_widening_operation): Get both input and output
13463 (supportable_narrowing_operation): Likewise.
13464 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13466 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
13468 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13469 __thiscall and _thiscall as predefined macros.
13470 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13471 thiscall attribute handling.
13472 (ix86_comp_type_attributes): Likewise.
13473 (ix86_function_regparm): Likewise.
13474 (ix86_return_pops_args): Likewise.
13475 (init_cumulative_args): Likewise.
13476 (find_drap_reg): Likewise.
13477 (ix86_static_chain): Likewise.
13478 (x86_this_parameter): Likewise.
13479 (x86_output_mi_thunk): Likewise.
13480 (ix86_attribute_table): Add description for thiscall attribute.
13481 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13482 * doc/extend.texi: Add documentation for thiscall.
13484 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13487 * c.opt (Wint-to-pointer-cast): Available in C++.
13488 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13490 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
13492 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13493 * calls.c (expand_call): Pass the function type to aggregate_value_p.
13494 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13495 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
13496 function type instead. Reorder and simplify checks.
13498 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13500 2010-04-08 Jing Yu <jingyu@google.com>
13501 Zdenek Dvorak <ook@ucw.cz>
13503 PR tree-optimization/42720
13504 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13505 loop unswitch conditions here from ...
13506 (tree_unswitch_single_loop): ... here.
13508 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13510 * tree-if-conv.c: Fix comments and simplify logic.
13512 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
13514 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13515 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
13516 (main_tree_if_conversion): Update call to tree_if_conversion.
13518 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
13521 * doc/invoke.texi (-b,-V): Delete.
13522 * doc/tm.texi: Do not mention -b.
13523 * gcc.c (display_help): Delete -b and -V.
13524 (process_command): Delete -b and -V.
13525 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13527 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
13528 Wolfgang Gellerich <gellerich@de.ibm.com>
13530 Implement target hook for loop unrolling
13531 * target.h (loop_unroll_adjust): Add a new target hook function.
13532 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13533 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13534 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13535 (s390_loop_unroll_adjust): Implement the new target hook for s390.
13536 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13538 (decide_unroll_stupid): Likewise.
13540 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13543 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13545 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13547 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13548 (Specific, *-*-solaris2*): Likewise.
13549 Don't prefer Sun as over GNU as.
13551 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
13553 * config/s390/s390.c (override_options): Adjust the z10 defaults
13554 for max-unroll-times, max-completely-peeled-insns
13555 and max-completely-peel-times.
13557 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13559 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13560 instructions for z10.
13561 (s390_expand_setmem): Likewise.
13562 (s390_expand_cmpmem): Likewise.
13564 2010-04-08 Richard Guenther <rguenther@suse.de>
13566 PR tree-optimization/43679
13567 * tree-ssa-pre.c (eliminate): Only propagate copies.
13569 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13572 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13573 set but not used variable warning.
13575 2010-04-08 Wei Guozhi <carrot@google.com>
13578 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13579 (arm_size_rtx_costs): Call the new function when optimized for size.
13581 2010-04-08 Jakub Jelinek <jakub@redhat.com>
13584 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13585 op0 is not a MEM, just return NULL instead of assertion
13587 (discover_nonconstant_array_refs): Don't walk debug stmts.
13589 2010-04-08 Doug Kwan <dougkwan@google.com>
13591 * configure.ac: Recognize gold and do not use its version number
13592 to test ld features.
13593 * configure: Regenerate.
13595 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
13597 PR middle-end/40815
13598 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13599 (negate_value): Move code to push elements to broken_up_substracts ...
13600 (eliminate_plus_minus_pair): ... here. Push operands that have no
13601 negative pair to plus_negates.
13602 (repropagate_negates, init_reassoc, fini_reassoc): Update.
13604 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13606 * doc/install.texi (Configuration): Move description of
13607 --enable-lto, --with-libelf*, --enable-gold from Java section to
13610 * doc/generic.texi (Working with declarations)
13611 (Function Properties, C and C++ Trees): Fix typos.
13612 * doc/sourcebuild.texi (Top Level): Likewise.
13614 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13617 * tree.h (DECL_READ_P): Define.
13618 (struct tree_decl_common): Add decl_read_flag.
13619 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13620 a set but not used warning.
13621 (merge_decls): Merge DECL_READ_P flag.
13622 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13623 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13624 * c-common.c (handle_used_attribute, handle_unused_attribute):
13626 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13628 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13630 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13631 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13632 c_parser_binary_expression, c_parser_cast_expression,
13633 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13634 Call default_function_array_read_conversion instead of
13635 default_function_array_conversion where needed.
13636 (c_parser_unary_expression, c_parser_conditional_expression,
13637 c_parser_postfix_expression_after_primary, c_parser_initelt):
13638 Likewise. Call mark_exp_read where needed.
13639 (c_parser_statement_after_labels, c_parser_asm_operands,
13640 c_parser_typeof_specifier, c_parser_sizeof_expression,
13641 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13643 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13645 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13646 (warn_unused_but_set_parameter): Default to warn_unused
13648 * doc/invoke.texi: Document -Wunused-but-set-variable and
13649 -Wunused-but-set-parameter.
13651 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13652 used count variable.
13653 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13654 when operandN variables aren't used in the body of the expander
13656 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13657 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13658 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13659 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13660 FOR_EACH_IMM_USE_ON_STMT): Likewise.
13661 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13662 * tree.c (PROCESS_ARG): Likewise.
13664 2010-04-07 Simon Baldwin <simonb@google.com>
13666 * diagnostic.h (diagnostic_override_option_index): New macro to
13667 set a diagnostic's option_index.
13668 * c-tree.h (c_cpp_error): Add warning reason argument.
13669 * opts.c (_warning_as_error_callback): New.
13670 (register_warning_as_error_callback): Store callback for
13671 warnings enabled via enable_warning_as_error.
13672 (enable_warning_as_error): Call callback, minor code tidy.
13673 * opts.h (register_warning_as_error_callback): Declare.
13674 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13675 response to -Werror=.
13676 (c_common_init_options): Register warning_as_error_callback in opts.c.
13677 * common.opt: Add -Wno-cpp option.
13678 * c-common.c (struct reason_option_codes_t): Map cpp warning
13679 reason codes to gcc option indexes.
13680 * (c_option_controlling_cpp_error): New function, lookup the gcc
13681 option index for a cpp warning reason code.
13682 * (c_cpp_error): Add warning reason argument, call
13683 c_option_controlling_cpp_error for diagnostic_override_option_index.
13684 * doc/invoke.texi: Document -Wno-cpp.
13686 2010-04-07 Richard Guenther <rguenther@suse.de>
13688 * ipa-reference.c (mark_load): Use get_base_address.
13689 (mark_store): Likewise.
13691 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13692 inserting GIMPLE_NOPs into the IL.
13693 * tree-ssa-structalias.c (get_constraint_for_component_ref):
13694 Explicitly strip handled components and indirect references.
13696 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13697 folding address expressions.
13698 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13699 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13700 operand_equal_p to compare decls.
13701 (ptr_deref_may_alias_decl_p): Likewise.
13702 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13703 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13704 Handle reversed comparison ops.
13705 * tree-sra.c (asm_visit_addr): Use get_base_address.
13706 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13707 * ipa-reference.c (mark_address): Use get_base_address.
13709 2010-04-07 Richard Guenther <rguenther@suse.de>
13711 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13712 Propagate constants everywhere.
13714 2010-04-07 Jakub Jelinek <jakub@redhat.com>
13717 * tree.c (MAX_INT_CACHED_PREC): Define.
13718 (nonstandard_integer_type_cache): New array.
13719 (build_nonstandard_integer_type): Cache results for precision
13720 <= MAX_INT_CACHED_PREC.
13722 2010-04-07 Richard Guenther <rguenther@suse.de>
13724 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13725 -fargument-noalias-global, -fargument-noalias-anything): Remove.
13726 * common.opt: Likewise.
13727 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13728 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13729 (nonoverlapping_memrefs_p): Likewise.
13730 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13731 * opts.c (common_handle_option): Handle OPT_fargument_alias,
13732 OPT_fargument_noalias, OPT_fargument_noalias_anything and
13733 OPT_fargument_noalias_global for backward compatibility.
13735 2010-04-07 Richard Guenther <rguenther@suse.de>
13737 PR tree-optimization/43270
13738 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13739 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13740 * tree-ssa-pre.c (phi_translate_1): Adjust.
13741 (fully_constant_expression): Split out vn_reference handling to ...
13742 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13743 Fold reads from constant strings.
13744 (vn_reference_lookup): Handle fully constant references.
13745 (vn_reference_lookup_pieces): Likewise.
13746 * Makefile.in (expmed.o-warn): Add -Wno-error.
13748 2010-04-07 Martin Jambor <mjambor@suse.cz>
13750 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13752 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
13755 * gcc.c: Add -static-libstdc++ to list of recognized options.
13757 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13759 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13761 2010-04-07 Richard Guenther <rguenther@suse.de>
13763 PR middle-end/42617
13764 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13765 bases build simple mem attributes to retain points-to information.
13767 2010-04-07 Richard Guenther <rguenther@suse.de>
13769 PR middle-end/42617
13770 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13771 preserve points-to related information.
13773 2010-04-07 Richard Guenther <rguenther@suse.de>
13775 PR middle-end/42617
13776 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13777 discard plain indirect references.
13778 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13779 * tree.c (tree_nop_conversion): Likewise.
13781 2010-04-07 Dodji Seketeli <dodji@redhat.com>
13784 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13786 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
13788 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13789 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13791 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13793 * tree-if-conv.c: Fix indentation and comments.
13795 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13797 * tree-if-conv.c: Sort static functions in topological order.
13799 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
13801 * tree-if-conv.c: Fix indentation and comments.
13803 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13805 PR middle-end/43519
13806 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13807 lang_hooks.types.type_for_size instead of
13808 build_nonstandard_integer_type.
13809 When converting an unsigned type to signed, double its precision.
13810 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13811 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13812 (graphite_create_new_loop_guard): When ub + 1 wraps around,
13815 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13817 PR middle-end/43519
13818 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13819 POINTER_PLUS_EXPR for pointer types.
13821 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13823 PR middle-end/43519
13824 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13825 * graphite-clast-to-gimple.c: Include langhooks.h.
13826 (max_signed_precision_type): New.
13827 (max_precision_type): Takes two types as arguments.
13828 (precision_for_value): New.
13829 (precision_for_interval): New.
13830 (gcc_type_for_interval): New.
13831 (gcc_type_for_value): New.
13832 (gcc_type_for_clast_term): New.
13833 (gcc_type_for_clast_red): New.
13834 (gcc_type_for_clast_bin): New.
13835 (gcc_type_for_clast_expr): Split up into several functions.
13836 (gcc_type_for_clast_eq): Rewritten.
13837 (compute_bounds_for_level): New.
13838 (compute_type_for_level_1): New.
13839 (compute_type_for_level): New.
13840 (gcc_type_for_cloog_iv): Removed.
13841 (gcc_type_for_iv_of_clast_loop): Rewritten.
13842 (graphite_create_new_loop): Compute the lower and upper bound types
13843 with gcc_type_for_clast_expr.
13844 (graphite_create_new_loop_guard): Same.
13845 (find_cloog_iv_in_expr): Removed.
13846 (compute_cloog_iv_types_1): Removed.
13847 (compute_cloog_iv_types): Removed.
13848 (gloog): Do not call compute_cloog_iv_types.
13849 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13850 GBB_CLOOG_IV_TYPES.
13851 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13852 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13853 (GBB_CLOOG_IV_TYPES): Removed.
13855 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13857 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13858 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13859 (detect_commutative_reduction): Same.
13861 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13863 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13864 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
13866 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13867 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13868 (rewrite_commutative_reductions_out_of_ssa): Same.
13869 * passes.c (execute_function_todo): Call verify_ssa for every pass
13870 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
13871 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13872 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13873 with an extra argument.
13874 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
13875 verify_ssa only when the extra argument is true.
13876 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13877 with an extra argument.
13878 (tree_transform_and_unroll_loop): Same.
13880 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
13882 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13883 for all the passes of the LNO having LOOP_CLOSED_SSA.
13884 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13885 * tree-loop-distribution.c (pass_loop_distribution): Same.
13886 * tree-pass.h (TODO_verify_loops): Removed.
13887 * tree-ssa-loop.c (pass_tree_loop_init): Same.
13889 (pass_tree_unswitch): Same.
13890 (pass_predcom): Same.
13891 (pass_vectorize): Same.
13892 (pass_linear_transform): Same.
13893 (pass_graphite_transforms): Same.
13894 (pass_iv_canon): Same.
13895 (pass_complete_unroll): Same.
13896 (pass_complete_unrolli): Same.
13897 (pass_parallelize_loops): Same.
13898 (pass_loop_prefetch): Same.
13899 (pass_iv_optimize): Same.
13901 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
13903 PR middle-end/32824
13904 * passes.c (init_optimization_passes): Move pass_lim before
13905 pass_copy_prop and pass_dce_loop.
13907 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13910 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13911 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13912 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13913 MULTI_* defines for 4 argument vpermil2p* builtins.
13915 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13917 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13918 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13919 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13920 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13921 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13922 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13923 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13924 Use x86_maybe_negate_const_int to output insn mnemonic.
13925 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13926 check from instruction predicate. Update comments.
13927 * config/i386/sync.md (sync_add<mode>): Use
13928 x86_maybe_negate_const_int to output insn mnemonic.
13930 2010-04-06 Jan Hubicka <jh@suse.cz>
13932 PR tree-optimization/42906
13933 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13934 IGNORE_SELF argument. Set visited_control_parents for fully
13936 (find_obviously_necessary_stmts): Update call of
13937 mark_control_dependent_edges_necessary.
13938 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13940 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13942 * config/i386/i386.md: Remove comment about 'e' and 'E'
13945 2010-04-06 Richard Guenther <rguenther@suse.de>
13947 PR tree-optimization/43627
13948 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13949 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13952 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13954 * BASE-VER: Change to 4.6.0.
13957 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13960 2010-04-06 Richard Guenther <rguenther@suse.de>
13962 PR middle-end/43661
13963 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13965 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13967 * doc/invoke.texi (Optimize Options): Document that LTO
13968 won't remove object access purely due to incompatible
13971 2010-04-04 Matthias Klose <doko@ubuntu.com>
13973 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13974 Initialize variable.
13976 2010-04-03 Richard Guenther <rguenther@suse.de>
13978 PR middle-end/42509
13979 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13980 require a non-NULL MEM_OFFSET.
13982 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13984 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13985 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13986 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13987 config/alpha/predicates.md, config/arm/arm.md,
13988 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13989 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13990 config/darwin9.h, config/darwin.c, config/darwin.h,
13991 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13992 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13993 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13994 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13995 config/mips/mips.md, config/mn10300/mn10300.c,
13996 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13997 config/rs6000/aix.h, config/rs6000/dfp.md,
13998 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13999 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14000 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14001 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14002 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14003 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14004 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14005 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14006 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14007 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14008 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14009 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14010 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14011 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14012 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14013 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14014 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14015 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14016 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14017 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14018 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14019 opt-functions.awk, opth-gen.awk, params.def, passes.c,
14020 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14021 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14022 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14023 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14024 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14025 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14026 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14027 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14028 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14029 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14030 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14031 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14032 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14033 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14035 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14038 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14039 * aclocal.m4: Regenerate.
14041 2010-04-02 Richard Guenther <rguenther@suse.de>
14043 PR tree-optimization/43629
14044 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14045 if we have seen a constant value.
14047 2010-04-02 Joseph Myers <joseph@codesourcery.com>
14049 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14051 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
14054 * arm.c (legitimize_tls_address): Adjust call to
14055 gen_tls_load_dot_plus_four.
14056 (arm_note_pic_base): New function.
14057 (arm_cannot_copy_insn_p): Use it.
14058 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14061 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14066 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14068 * Makefile.in ($(out_object_file)): Depend on
14069 gt-$(basename $(notdir $(out_file))).h.
14071 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
14073 * config.gcc (lm32-*-rtems*): Add t-lm32.
14075 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
14077 * config.gcc: Add lm32-*-rtems*.
14078 * config/lm32/rtems.h: New file.
14080 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
14083 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14085 2010-04-01 Jakub Jelinek <jakub@redhat.com>
14087 * dwarf2out.c (output_compilation_unit_header): For
14088 -gdwarf-4 use version 4 instead of version 3.
14089 (output_line_info): For version 4 and above emit additional
14090 maximum ops per insn header field.
14091 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14093 * dwarf2out.c (is_c_family, is_java): Remove.
14094 (lower_bound_default): New function.
14095 (add_bound_info, gen_descr_array_type_die): Use it.
14097 2010-04-01 Dodji Seketeli <dodji@redhat.com>
14100 * dwarf2out.c (gen_variable_die): Allow debug info for variable
14101 re-declaration when it happens in a function.
14103 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
14105 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14106 (cgraph_remove_function_insertion_hook): Same.
14107 (cgraph_call_function_insertion_hooks): Same.
14109 2010-04-01 Richard Guenther <rguenther@suse.de>
14111 PR middle-end/43614
14112 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14113 and TREE_THIS_VOLATILE.
14114 (copy_ref_info): Likewise.
14115 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14116 * tree.c (build6_stat): Ignore side-effects of all but arg5
14117 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
14120 2010-04-01 Richard Guenther <rguenther@suse.de>
14122 PR tree-optimization/43607
14123 * ipa-type-escape.c (check_call): Do not access non-existing
14126 2010-04-01 Richard Guenther <rguenther@suse.de>
14128 PR middle-end/43602
14130 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14131 Jack Howarth <howarth@bromo.med.uc.edu>
14133 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14136 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14138 * doc/install.texi (Prerequisites): Document libelf usability on
14139 IRIX 5/6 and Solaris 2.
14140 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14141 Update GNU as, GNU ld requirements.
14142 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14143 Document Sun Studio compiler download.
14144 Update and simplify as, ld recommendations.
14145 (Specific, *-*-solaris2.7): Note obsoletion, removal.
14147 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14149 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14150 with_tune_32 to pentium4.
14152 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
14154 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14156 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14158 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14159 obsoletion, removal.
14161 Document GNU as requirement.
14162 Update configure requirements.
14163 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14164 Recomment IRIX 6.5.18+.
14165 Document IDF/IDL requirement.
14166 Document GNU as requirement.
14167 Document GNU ld bootstrap failure.
14168 Remove freeware.sgi.com reference.
14170 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14172 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14173 UNIX V4.0, V5.0 obsoletion, removal.
14174 Remove --with-gc=simple reference.
14175 Update VM requirements during bootstrap.
14176 Remove -oldas bootstrap description.
14177 Update binutils reference.
14178 Remove comparison failure note.
14180 2010-03-31 Richard Guenther <rguenther@suse.de>
14181 Zdenek Dvorak <ook@ucw.cz>
14182 Sebastian Pop <sebastian.pop@amd.com>
14184 PR middle-end/43464
14185 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14186 with multiple arguments.
14187 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14189 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14191 * graphite-dependences.c (print_pddr): Call print_pdr with an
14193 * graphite-poly.c (debug_pdr): Add an extra argument for the
14196 (print_pbb_domain): Same.
14198 (print_scop_context): Same.
14199 (print_scop): Same.
14200 (print_cloog): Same.
14201 (debug_pbb_domain): Same.
14203 (print_pdrs): Same.
14204 (debug_pdrs): Same.
14205 (debug_scop_context): Same.
14206 (debug_scop): Same.
14207 (debug_cloog): Same.
14208 (print_scop_params): Same.
14209 (debug_scop_params): Same.
14210 (print_iteration_domain): Same.
14211 (print_iteration_domains): Same.
14212 (debug_iteration_domain): Same.
14213 (debug_iteration_domains): Same.
14214 (print_scattering_function): Same.
14215 (print_scattering_functions): Same.
14216 (debug_scattering_function): Same.
14217 (debug_scattering_functions): Same.
14218 * graphite-poly.h (debug_pdr): Update declaration.
14220 (print_pbb_domain): Same.
14222 (print_scop_context): Same.
14223 (print_scop): Same.
14224 (print_cloog): Same.
14225 (debug_pbb_domain): Same.
14227 (print_pdrs): Same.
14228 (debug_pdrs): Same.
14229 (debug_scop_context): Same.
14230 (debug_scop): Same.
14231 (debug_cloog): Same.
14232 (print_scop_params): Same.
14233 (debug_scop_params): Same.
14234 (print_iteration_domain): Same.
14235 (print_iteration_domains): Same.
14236 (debug_iteration_domain): Same.
14237 (debug_iteration_domains): Same.
14238 (print_scattering_function): Same.
14239 (print_scattering_functions): Same.
14240 (debug_scattering_function): Same.
14241 (debug_scattering_functions): Same.
14243 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14245 * graphite-poly.c (print_scattering_function_1): New.
14246 (print_scattering_function): Call it.
14247 (print_scop_params): Remove spaces at the end of lines.
14248 (print_cloog): New.
14249 (debug_cloog): New.
14250 * graphite-poly.h (print_cloog): Declared.
14251 (debug_cloog): Declared.
14253 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14255 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14257 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14258 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14259 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14260 to switch between adding the IV bump in loop->latch or in loop->header.
14262 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
14264 * graphite-poly.c (print_scattering_function): Pretty print following
14265 the scoplib format.
14267 (print_pbb_domain): Same.
14268 (dump_gbb_cases): Same.
14269 (dump_gbb_conditions): Same.
14270 (print_pdrs): Same.
14272 (print_scop_params): Same.
14273 (print_scop_context): Same.
14274 (print_scop): Same.
14275 (print_pbb_body): New.
14276 (lst_indent_to): New.
14277 (print_lst): Start new lines with a #.
14278 * graphite-poly.h (pbb_bb): New.
14279 (pbb_index): Use pbb_bb.
14280 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14282 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14284 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14286 * dwarf2out.c (size_of_die): For -gdwarf-4 use
14287 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14288 and 0 instead of 1 for dw_val_class_flag.
14289 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14290 dw_val_class_range_list, dw_val_class_loc_list,
14291 dw_val_class_lineptr and dw_val_class_macptr, use
14292 DW_FORM_flag_present for dw_val_class_flag and
14293 DW_FORM_exprloc for dw_val_class_loc.
14294 (output_die): For -gdwarf-4 print dw_val_class_loc
14295 size as uleb128 instead of 1 or 2 bytes and don't print
14296 anything for dw_val_class_flag.
14298 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14299 instead of cselib_lookup following by tweaking locs->setting_insn.
14302 * cselib.c (cselib_process_insn): Clear cselib_current_insn
14303 even before returning from label, setjmp call or volatile asm
14306 2010-03-31 Richard Guenther <rguenther@suse.de>
14308 PR middle-end/43600
14309 * cgraphunit.c (cgraph_output_in_order): Do not allocate
14310 temporary data on stack.
14312 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14314 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14315 (PUSHSECTION_ASM_OP): Remove.
14316 (POPSECTION_ASM_OP): Remove.
14317 (PUSHSECTION_FORMAT): Remove.
14318 * config/sol2.h (PUSHSECTION_FORMAT): Define.
14319 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14320 * config/sol2.c (solaris_output_init_fini): Use it.
14322 2010-03-31 Jie Zhang <jie@codesourcery.com>
14325 * opt-functions.awk (var_type_struct): Use signed char type
14326 for simple variables.
14328 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14330 * config/sol2.c: Include output.h.
14331 (solaris_assemble_visibility): New function.
14332 * config/t-sol2 (sol2.o): Add output.h dependency.
14333 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14334 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14337 2010-03-31 Jakub Jelinek <jakub@redhat.com>
14340 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14341 V2SImode or XFmode on PRE_DEC.
14344 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14347 2010-03-31 Jie Zhang <jie@codesourcery.com>
14350 * reload.h (caller_save_initialized_p): Declare.
14351 * toplev.c (backend_init_target): Don't call
14352 init_caller_save but set caller_save_initialized_p to false.
14353 * caller-save.c (caller_save_initialized_p): Define.
14354 (init_caller_save): Check caller_save_initialized_p.
14355 * ira.c (ira): Call init_caller_save if flag_caller_saves.
14357 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14360 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14361 and soft-fp/t-softfp to tmake_file.
14362 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14363 (LIBGCC2_TF_CEXT): Define.
14366 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
14369 * cselib.c (n_useless_values): Document handling of debug locs.
14370 (n_useless_debug_values, n_debug_values): New variables.
14371 (new_elt_loc_list): Don't add to debug values, keep count.
14372 (promote_debug_loc): New.
14373 (cselib_reset_table): Zero new variables.
14374 (entry_and_rtx_equal_p): Promote debug locs.
14375 (discard_useless_locs): Increment n_useless_debug_values for
14377 (remove_useless_values): Adjust n_useless_values and n_debug_values
14378 with n_useless_debug_values.
14379 (add_mem_for_addr): Promote debug locs.
14380 (cselib_lookup_mem): Likewise.
14381 (cselib_lookup_addr): Renamed to...
14382 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
14383 (cselib_log_lookup): ... this. Turn into...
14384 (cselib_lookup_addr): ... new wrapper.
14385 (cselib_lookup_from_insn): New.
14386 (cselib_invalidate_regno): Increment n_useless_debug_values for
14388 (cselib_invalidate_mem): Likewise.
14389 (cselib_process_insn): Take n_deleted and n_debug_values into
14390 account to guard remove_useless_value call.
14391 (cselib_finish): Zero n_useless_debug_values.
14392 * cselib.h (cselib_lookup_from_insn): Declare.
14393 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14394 (sched_analyze_2): Likewise.
14396 2010-03-30 Jakub Jelinek <jakub@redhat.com>
14398 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14400 (adjust_mems): Replace narrowing SUBREG of expression containing
14401 just PLUS, MINUS, MULT and ASHIFT of registers and constants
14402 with operations in the narrower mode.
14405 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14406 regs_invalidated_by_call instead all call_used_reg_set registers.
14408 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
14410 PR middle-end/43430
14411 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14412 pointer comparisons with types_compatible_p.
14413 * tree-vect-stmts.c (vectorizable_call): Same.
14414 (vectorizable_condition): Same.
14416 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14418 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14419 stack check if the mask would be zero.
14421 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
14422 Jack Howarth <howarth@bromo.med.uc.edu>
14424 * tree-profile.c (tree_init_ic_make_global_vars): Make static
14427 2010-03-30 Joseph Myers <joseph@codesourcery.com>
14430 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
14432 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14433 Include ___unordxf2 and ___unordtf2.
14434 * config/i386/libgcc-glibc.ver: Do not define inheritance from
14437 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
14439 * config/lm32/t-lm32: New file.
14440 * config.gcc: Use the above file when targetting lm32.
14442 2010-03-28 Duncan Sands <baldrick@free.fr>
14444 * Makefile.in (PLUGIN_HEADERS): Add except.h.
14446 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14448 PR middle-end/43431
14449 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14450 Improve vectorization cost model diagnostic.
14452 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
14454 PR middle-end/43436
14455 * tree-vect-data-refs.c (vect_analyze_data_refs): When
14456 compute_data_dependences_for_loop returns false, early exit
14457 and output an extra diagnostic for the failed data reference
14460 2010-03-29 Richard Guenther <rguenther@suse.de>
14462 PR tree-optimization/43560
14463 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14464 (can_sm_ref_p): Treat stores to readonly locations as trapping.
14466 2010-03-29 Jie Zhang <jie@codesourcery.com>
14469 * toplev.c (process_options): Set optimization_default_node
14470 and optimization_current_node.
14471 * opts.c (decode_options): Don't set optimization_default_node
14472 and optimization_current_node.
14474 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
14476 * config/rtems.h: Abandon -qrtems_debug.
14478 2010-03-28 Jan Hubicka <jh@suse.cz>
14480 PR tree-optimization/43505
14481 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14482 map should not be copied.
14484 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14486 PR middle-end/41674
14487 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14488 cdtors, set DECL_PRESERVE_P.
14489 * ipa.c (cgraph_externally_visible_p): Return true if declaration
14490 should be preseved.
14492 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
14494 PR tree-optimization/43528
14495 * stor-layout.c (place_field): Check that constant fits into
14496 unsigned HWI when skipping calculation of MS bitfield layout.
14498 2010-03-27 Jan Hubicka <jh@suse.cz>
14500 PR middle-end/43391
14501 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14502 notice_global_symbol work.
14504 2010-03-27 Jakub Jelinek <jakub@redhat.com>
14506 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14507 instead of dwarf2out_decl.
14508 (struct var_loc_node): Remove section_label field.
14509 (dwarf2out_function_decl): New function.
14510 (dwarf2out_var_location): Don't set section_label field.
14511 (dwarf2out_begin_function): Don't empty decl_loc_table here.
14513 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14515 PR tree-optimization/43544
14516 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14517 First argument for builtin vectorized function hook is now a
14518 tree to be able to distinguish between machine specific and
14520 * targhooks.c (default_builtin_vectorized_function): Ditto.
14521 * targhooks.h (default_builtin_vectorized_function): Ditto.
14522 * target.h (struct gcc_target): Ditto.
14523 * tree-vect-stmts.c (vectorizable_function): Ditto.
14524 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14525 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14528 2010-03-26 Joseph Myers <joseph@codesourcery.com>
14531 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14532 nested binding iff it is a FUNCTION_DECL.
14533 (store_parm_decls_newstyle): Pass nested=true to bind for
14534 FUNCTION_DECLs amongst parameters.
14536 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14538 * var-tracking.c (vt_expand_loc_callback): Don't run
14539 cselib_expand_value_rtx_cb in dummy mode if
14540 cselib_dummy_expand_value_rtx_cb returned false.
14542 * var-tracking.c (emit_note_insn_var_location): For one part
14543 notes with offset 0, don't add EXPR_LIST around the location.
14544 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14545 add_location_or_const_value_attribute): Adjust for that change.
14548 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14549 into first operand and location into second.
14550 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14551 dw_cfi_oprnd_loc for DW_CFA_expression.
14552 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14553 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14554 assume first argument is regnum and second argument is location.
14556 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14559 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14560 of scratch register to DImode. Split to DImode comparison operator.
14561 Use SImode subreg of scratch register in the multiplication.
14562 (*cmp_sadd_sidi): Ditto.
14563 (*cmp_ssub_si): Ditto.
14564 (*cmp_ssub_sidi): Ditto.
14566 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
14569 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14570 Remove invalid assert and wrong comment.
14572 2010-03-26 Jakub Jelinek <jakub@redhat.com>
14575 * flags.h (final_insns_dump_p): New extern.
14576 * final.c (final_insns_dump_p): New variable.
14577 (rest_of_clean_state): Set it before -fdump-final-insns=
14578 dumping, clear afterwards.
14579 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14580 MEM_ALIAS_SET on MEMs.
14582 2010-03-26 David S. Miller <davem@davemloft.net>
14584 * configure.ac: Fix sparc GOTDATA_OP bug check.
14585 * configure: Rebuild.
14587 2010-03-26 Alan Modra <amodra@gmail.com>
14589 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14591 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14593 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14594 TLS_SECTION_ASM_FLAG.
14596 2010-03-25 Jakub Jelinek <jakub@redhat.com>
14599 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14600 Clear first_function_block_is_cold.
14603 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14604 argument if the argument is truth_value_p.
14606 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
14608 * config/rs6000/constraints.md: Update copyright year for my changes.
14611 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14612 used in reg+reg addressing, swap registers.
14614 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14617 * target.h (struct gcc_target): Add code_end hook.
14618 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14619 if not yet defined.
14620 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14621 * toplev.c (compile_file): Call targetm.asm_out.code_end
14622 hook before unwind info/debug info output.
14623 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14624 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14625 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14626 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14627 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14628 * config/i386/i386.c (ix86_file_end): Renamed to...
14629 (ix86_code_end): ... this. Make static. Don't call
14630 file_end_indicate_exec_stack. Emit unwind info using
14631 final_start_function/final_end_function.
14632 (darwin_x86_file_end): Remove.
14633 (TARGET_ASM_CODE_END): Define.
14634 * config/i386/i386.h (TARGET_ASM_FILE_END,
14635 NEED_INDICATE_EXEC_STACK): Don't define.
14636 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14637 (TARGET_ASM_FILE_END): Define to darwin_file_end.
14638 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14639 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14642 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14643 at the beginning and final_end_function at the end.
14644 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14646 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14648 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14649 and Sun as TLS syntax.
14650 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14651 * configure: Regenerate.
14652 * config.in: Regenerate.
14653 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14654 (default_elf_asm_named_section): Use it.
14655 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14656 (i386_output_dwarf_dtprel): Likewise.
14657 (output_addr_const_extra): Likewise.
14658 (output_pic_addr_const): Lowercase @GOTTPOFF.
14659 (output_addr_const_extra): Likewise.
14660 (output_pic_addr_const): Lowercase @GOTNTPOFF.
14661 (output_addr_const_extra): Likewise.
14662 (output_pic_addr_const): Lowercase @INDNTPOFF.
14663 (output_addr_const_extra): Likewise.
14664 (output_pic_addr_const): Lowercase @NTPOFF.
14665 (output_addr_const_extra): Likewise.
14666 (output_pic_addr_const): Lowercase @TPOFF.
14667 (output_addr_const_extra): Likewise.
14668 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14669 (*tls_global_dynamic_64): Likewise.
14670 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14671 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14673 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14674 (ASM_OUTPUT_TLS_COMMON): Use it.
14675 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14678 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14679 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14680 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14681 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14682 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14683 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14685 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14687 * config/i386/i386.c (override_options): Don't accept
14688 -mtls-dialect=sun any longer.
14689 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14690 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14691 (*tls_local_dynamic_base_32_sun): Likewise.
14692 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14694 2010-03-24 Jakub Jelinek <jakub@redhat.com>
14697 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14698 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14701 * ira.c (adjust_cleared_regs): New function.
14702 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14706 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14708 * expr.c (expand_expr_real): Restore previous
14709 curr_insn_source_location and curr_insn_block after
14710 expand_expr_real_1 call.
14711 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14712 instead of expand_expr_real_1.
14714 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
14716 PR rtl-optimization/43413
14717 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14720 2010-03-22 James E. Wilson <wilson@codesourcery.com>
14723 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14724 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14726 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
14728 * config/i386/i386.c (ix86_target_string): Add -mfma.
14729 Fix a typo in comment.
14731 2010-03-22 Mike Stump <mikestump@comcast.net>
14734 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14735 Don't overly align based upon packed packed fields.
14737 2010-03-22 Jason Merrill <jason@redhat.com>
14739 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14740 Use () rather than [], and move before the element type.
14742 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14744 * doc/configfiles.texi (Configuration Files): Removed
14745 fixinc/Makefile*, intl/Makefile.*.
14746 * doc/makefile.texi: Fixed markup. Abstract from version
14747 control system used.
14748 (Makefile): Removed obsolete gcc/java/parse.y example.
14749 * doc/sourcebuild.texi: Likewise.
14750 (Top Level): Added config, gnattools, libdecnumber, libgcc,
14751 libgomp, libssp. Removed fastjar.
14752 (Miscellaneous Docs): Clarify location.
14753 Added COPYING3, COPYING3.LIB.
14754 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14756 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14759 * config/i386/i386.c (x86_function_profiler)
14760 [!NO_PROFILE_COUNTERS]: Fix typo.
14761 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14764 2010-03-22 Janis Johnson <janis187@us.ibm.com>
14765 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14767 * doc/sourcebuild.texi (Test Directives): Split into six
14768 subsections, with most of the current text in new subsections
14769 Directives, Selectors, and Final Actions.
14770 (Directives): Split list of test directives into multiple
14772 (Selectors): Describe use and syntax of selectors.
14773 (Effective-Target Keywords): Describe all existing keywords.
14774 (Add Options): Describe features for dg-add-options.
14775 (Require Support): Describe variants of dg-require-support.
14776 (Final Actions): Describe commands to use in dg-final.
14778 2010-03-22 Michael Matz <matz@suse.de>
14780 PR middle-end/43475
14781 * recog.c (validate_replace_rtx_group): Replace also in
14782 REG_EQUAL and REG_EQUIV notes.
14784 2010-03-22 Richard Guenther <rguenther@suse.de>
14786 PR tree-optimization/43390
14787 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14788 sure vector extracts are type correct.
14790 2010-03-22 Richard Guenther <rguenther@suse.de>
14792 PR middle-end/40106
14793 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14794 x * sqrt (x) even when optimizing for size if the target
14795 has native support for sqrt.
14797 2010-03-22 Jakub Jelinek <jakub@redhat.com>
14799 * varasm.c (make_decl_rtl_for_debug): Also clear
14800 flag_mudflap for the duration of make_decl_rtl call.
14803 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14804 locs from preserved VALUEs.
14806 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14808 PR middle-end/42718
14809 * pa.md (movmemsi): Set align to one if zero.
14810 (movmemdi): Likewise.
14812 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
14815 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14816 with their corresponding prologue pushes.
14818 2010-03-20 Andrew Pinski <pinskia@gmail.com>
14821 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14822 at the begining or end.
14823 (spu_expand_epilogue): Likewise.
14825 2010-03-20 Richard Guenther <rguenther@suse.de>
14827 PR rtl-optimization/43438
14828 * combine.c (make_extraction): Properly zero-/sign-extend an
14829 extraction of the low part of a CONST_INT. Also handle
14832 2010-03-19 Mike Stump <mikestump@comcast.net>
14834 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14835 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14836 (override_options): Use SUBTARGET32_DEFAULT_CPU.
14838 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14841 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14844 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
14846 PR rtl-optimization/42258
14847 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14848 use that may match DEF.
14851 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14852 the cost of loading the constant rather than assuming
14854 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14855 outer code is AND, do the same tests as the andsi3 expander and
14856 return COSTS_N_INSNS (1) if and is cheap.
14858 * optabs.c (avoid_expensive_constant): Fix formatting.
14860 2010-03-19 Michael Matz <matz@suse.de>
14863 * attribs.c (decl_attributes): When rebuilding a function pointer
14864 type use the same qualifiers as the original pointer type.
14866 2010-03-19 Martin Jambor <mjambor@suse.cz>
14868 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14869 and is_gimple_ip_invariant_address.
14871 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14874 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14876 * config/arm/arm.c (arm_override_options): Turn off
14877 flag_dwarf2_cfi_asm for AAPCS variants.
14879 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14882 * config/arm/arm.c (emit_multi_reg_push): Update comments.
14883 Use PRE_MODIFY instead of PRE_DEC.
14884 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14885 (vfp_emit_fstmd): Likewise.
14887 2010-03-19 Michael Matz <matz@suse.de>
14890 * builtins.c (expand_builtin_interclass_mathfn,
14891 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14894 2010-03-19 Richard Guenther <rguenther@suse.de>
14896 PR tree-optimization/43415
14897 * tree-ssa-pre.c (phi_translate): Split out worker to ...
14898 (phi_translate_1): ... this.
14899 (phi_translate): Move all caching here. Cache all NARY
14900 and REFERENCE translations.
14902 2010-03-19 David S. Miller <davem@davemloft.net>
14904 With help from Eric Botcazou.
14905 * config/sparc/sparc.c: Include dwarf2out.h.
14906 (emit_pic_helper): Delete.
14907 (pic_helper_symbol_name): Delete.
14908 (pic_helper_emitted_p): Delete.
14909 (pic_helper_needed): New.
14910 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14911 (get_pc_thunk_name): New.
14912 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14913 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14914 Set pic_helper_needed to true. Don't call emit_pic_helper.
14915 (sparc_expand_prologue): Update load_pic_register call.
14916 (sparc_output_mi_thunk): Likewise.
14917 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14918 thunk if possible. Output CFI information as needed.
14920 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14921 Jack Howarth <howarth@bromo.med.uc.edu>
14924 * config/i386/i386.h: Fix ABI on darwin x86-32.
14926 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14928 * tree.h: Declare make_decl_rtl_for_debug.
14929 * varasm.c (make_decl_rtl_for_debug): New.
14930 * dwarf2out.c (rtl_for_decl_location): Call it.
14931 * cfgexpand.c (expand_debug_expr): Call it.
14933 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14936 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14940 * var-tracking.c (vt_init_cfa_base): Do nothing if
14941 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14943 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14946 * var-tracking.c (canonicalize_vars_star): New.
14947 (dataflow_post_merge_adjust): Use it.
14949 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14952 * var-tracking.c (non_suitable_const): New function.
14953 (add_uses): For DEBUG_INSNs with constants, don't record any
14954 value, instead just the constant value itself.
14955 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14956 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14957 (emit_notes_in_bb): Likewise.
14958 (emit_note_insn_var_location): For onepart variables if
14959 cur_loc is a VOIDmode constant, use DECL_MODE.
14961 2010-03-18 Martin Jambor <mjambor@suse.cz>
14963 PR middle-end/42450
14964 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14965 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14966 all non-clones. Moved call redirection...
14967 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14968 (cgraph_materialize_all_clones): Dispose of all
14969 combined_args_to_skip bitmaps.
14970 (verify_cgraph_node): Do not check for edges pointing to wrong
14971 nodes in inline clones.
14972 * tree-inline.c (copy_bb): Call
14973 cgraph_redirect_edge_call_stmt_to_callee.
14974 * ipa.c (cgraph_remove_unreachable_nodes): Call
14975 cgraph_node_remove_callees even when there are used clones.
14977 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14979 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14981 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14984 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14987 2010-03-18 Michael Matz <matz@suse.de>
14989 PR middle-end/43419
14990 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14991 into sqrt(x) if we need to preserve signed zeros.
14993 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
14994 Eric Botcazou <ebotcazou@adacore.com>
14996 PR rtl-optimization/43360
14997 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14998 note if we don't know its invariant status.
15000 2010-03-18 Michael Matz <matz@suse.de>
15002 PR tree-optimization/43402
15003 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15004 PHI chains of ssa names registered for update.
15006 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
15009 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15010 non-offsettable and pre_modify update addressing.
15011 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15012 and "2" alternatives "#".
15013 (*movdd_softfloat32): Make all alternatives "#";
15014 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15015 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15016 (*movdf_softfloat32): Make all alternatives "#";
15017 (movdi): Use the new DIFD mode iterator to create a common splitter
15018 for movdi, movdf and movdd patterns.
15020 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
15022 * common.opt (dumpdir): Remove redundant tab.
15024 2010-03-17 Martin Jambor <mjambor@suse.cz>
15026 PR tree-optimization/43347
15027 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15028 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15030 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
15032 PR rtl-optimization/42216
15033 * regrename.c (create_new_chain): New function, broken out from...
15034 (scan_rtx_reg): ... here. Call it. Handle the case where we are
15035 appending a use to an empty chain.
15036 (build_def_use): Remove previous changes that convert OP_INOUT to
15037 OP_OUT operands; instead detect the case where an OP_INOUT operand
15038 uses a previously untracked register and create an empty chain for it.
15040 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15042 * doc/extend.texi (Function Attributes): Rewrite unfinished
15043 sentence in ms_abi documentation.
15045 2010-03-17 Alan Modra <amodra@gmail.com>
15047 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15048 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15049 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15050 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15052 2010-03-16 Richard Henderson <rth@redhat.com>
15054 PR middle-end/43365
15055 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15056 (lower_try_finally): Save and restore eh_seq around the expansion
15057 of the try-finally.
15059 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15061 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15062 statements before splitting block.
15064 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15066 * doc/sourcebuild.texi (Testsuites): Fix markup.
15067 Use pathnames relative to gcc/testsuite.
15068 (Test Directives): Move description of how timeout is determined.
15069 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15070 (C Tests): Correct gcc.misc-tests directory.
15071 Framework tests now live in gcc.test-framework.
15073 2010-03-16 Richard Guenther <rguenther@suse.de>
15075 PR middle-end/43379
15076 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15077 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15079 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
15080 Alexandre Oliva <aoliva@redhat.com>
15082 PR tree-optimization/42917
15083 * lambda-code.c (remove_iv): Skip debug statements.
15084 (lambda_loopnest_to_gcc_loopnest): Likewise.
15085 (not_interesting_stmt): Debug statements are not interesting.
15087 2010-03-16 Jakub Jelinek <jakub@redhat.com>
15091 * cselib.c (cselib_preserve_constants,
15092 cfa_base_preserved_val): New static variables.
15093 (preserve_only_constants): New function.
15094 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15095 clear its REG_VALUES. If cselib_preserve_constants, don't
15096 empty the whole hash table, but preserve there VALUEs with constants,
15097 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15098 (cselib_preserve_cfa_base_value): New function.
15099 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15100 (cselib_init): Change argument to int bitfield. Set
15101 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15103 (cselib_finish): Clear cselib_preserve_constants and
15104 cfa_base_preserved_val.
15105 * cselib.h (enum cselib_record_what): New enum.
15106 (cselib_init): Change argument to int.
15107 (cselib_preserve_cfa_base_value): New prototype.
15108 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15109 * dse.c (dse_step1): Likewise.
15110 * cfgcleanup.c (thread_jump): Likewise.
15111 * sched-deps.c (sched_analyze): Likewise.
15112 * gcse.c (local_cprop_pass): Likewise.
15113 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15114 If FN is non-NULL, call the callback always and whenever it returns
15115 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
15116 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15117 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15118 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15119 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15120 * var-tracking.c: Include recog.h.
15121 (bb_stack_adjust_offset): Remove.
15122 (vt_stack_adjustments): Don't call it, instead just gather the
15123 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15124 (adjust_stack_reference): Remove.
15125 (compute_cfa_pointer): New function.
15126 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15127 (struct adjust_mem_data): New type.
15128 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15130 (get_address_mode): New function.
15131 (replace_expr_with_values): Use it.
15132 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15133 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
15134 (adjust_sets): Remove.
15135 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15136 Use get_address_mode.
15137 (get_adjusted_src): Remove.
15138 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
15139 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
15140 (add_with_sets): Don't call adjust_sets.
15141 (fp_setter, vt_init_cfa_base): New functions.
15142 (vt_initialize): Change return type to bool. Move most of pool etc.
15143 initialization to the beginning of the function from end. Pass
15144 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15145 If !frame_pointer_needed, call vt_stack_adjustment before mos
15146 vector is filled, call vt_init_cfa_base if argp/framep has been
15147 eliminated to sp. If frame_pointer_needed and argp/framep has
15148 been eliminated to hard frame pointer, set
15149 hard_frame_pointer_adjustment and call vt_init_cfa_base after
15150 encountering fp setter in the prologue. For MO_ADJUST, call
15151 log_op_type before pusing the op into mos vector, not afterwards.
15152 Call adjust_insn before cselib_process_insn/add_with_sets,
15153 call cancel_changes (0) afterwards.
15154 (variable_tracking_main_1): Adjust for vt_initialize calling
15155 vt_stack_adjustments and returning whether it succeeded or not.
15157 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
15159 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15162 2010-03-15 Jakub Jelinek <jakub@redhat.com>
15164 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15166 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15167 drap_reg has not been set.
15169 2010-03-15 Michael Matz <matz@suse.de>
15171 PR middle-end/43300
15172 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15173 use it to expand block copies.
15174 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15175 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15176 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15178 2010-03-15 Richard Guenther <rguenther@suse.de>
15180 PR tree-optimization/43367
15181 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15184 2010-03-15 Richard Guenther <rguenther@suse.de>
15186 PR tree-optimization/43317
15187 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15189 2010-03-15 Martin Jambor <mjambor@suse.cz>
15191 PR tree-optimization/43141
15192 * tree-sra.c (create_abstract_origin): New function.
15193 (modify_function): Call create_abstract_origin.
15195 2010-03-15 Chris Demetriou <cgd@google.com>
15197 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15200 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15202 PR middle-end/43354
15203 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15204 call insert_out_of_ssa_copy for default definitions.
15206 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15208 * graphite-clast-to-gimple.c (my_long_long): Defined.
15209 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15210 * graphite-sese-to-poly.c (my_long_long): Defined.
15211 (scop_ivs_can_be_represented): Use it.
15213 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15215 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15216 graphite-max-bbs-per-function, and loop-block-tile-size.
15217 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15219 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15221 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15223 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15224 forward declaration.
15225 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15226 (add_upper_bounds_from_estimated_nit): New.
15227 (build_loop_iteration_domains): Use it.
15229 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15231 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15233 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15235 PR middle-end/43306
15236 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15237 should be an INTEGER_CST. Also handle CASE_CONVERT.
15239 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15241 * graphite.c (graphite_initialize): To bound the number of bbs per
15242 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15243 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15244 * doc/invoke.texi: Document it.
15246 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15248 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15249 * graphite-sese-to-poly.h (build_poly_scop): Same.
15251 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
15253 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15254 the number of parameters in the scop. Use as an upper bound
15255 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15256 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15257 * doc/invoke.texi: Document it.
15259 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
15261 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15262 * doc/c-tree.texi: Remove.
15263 * doc/generic.texi: Merge c-tree.texi here.
15264 * doc/gccint.texi (Trees): Remove menu entry.
15265 (c-tree.texi): Remove @include.
15266 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15267 * doc/languages.texi (Reading RTL): Ditto.
15269 2010-03-12 Steve Ellcey <sje@cup.hp.com>
15272 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15274 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
15276 PR middle-end/42431
15277 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15278 code added to work around reload clobbering CONST insns.
15280 2010-03-12 Jakub Jelinek <jakub@redhat.com>
15282 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15283 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15284 (cselib_preserve_only_values): Remove retain argument, don't
15285 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15286 * cselib.h (cselib_preserve_only_values): Remove retain argument.
15287 * var-tracking.c (micro_operation): Move insn field before union.
15288 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15289 (struct variable_tracking_info_def): Remove n_mos field, change
15290 mos into a vector of micro_operations.
15291 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15292 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15293 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15294 changing into a vector.
15295 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
15296 come before all other uops generated by add_stores.
15297 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15299 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
15300 a vector. Run just one pass over the bbs instead of separate counting
15301 and computation phase.
15302 (vt_finalize): Free VTI (bb)->mos vector instead of array.
15305 * tree-inline.c (remap_decls): Put old_var rather than origin_var
15306 into *nonlocalized_list vector.
15307 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15308 even if origin is non-NULL.
15309 (gen_variable_die): Likewise.
15310 (process_scope_var): Don't change origin.
15311 (gen_decl_die): Likewise.
15312 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15313 before adding new edges instead of after it, fix moving over
15316 2010-03-11 David S. Miller <davem@davemloft.net>
15318 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15320 * configure: Rebuild.
15322 2010-03-11 Martin Jambor <mjambor@suse.cz>
15324 PR tree-optimization/43257
15325 * tree.c (assign_assembler_name_if_neeeded): New function.
15326 (free_lang_data_in_cgraph): Assembler name assignment moved to the
15327 above new function.
15328 * tree.h (assign_assembler_name_if_neeeded): Declare.
15329 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15330 the function if needed.
15332 2010-03-11 Chris Demetriou <cgd@google.com>
15334 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15335 include/stdint-gcc.h, and include/stdint.h world-readable.
15337 2010-03-11 Richard Guenther <rguenther@suse.de>
15339 PR tree-optimization/43255
15340 * tree-vrp.c (process_assert_insertions_for): Do not insert
15341 asserts for trivial conditions.
15343 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15345 PR tree-optimization/43280
15346 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15347 generation. Move calculation of size out of the if branch.
15348 (find_bswap): Modify compare number generation.
15350 2010-03-11 Richard Guenther <rguenther@suse.de>
15353 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15354 (input_gimple_stmt): Fixup handled component types during
15355 operand read. Also fix up decls in ADDR_EXPRs.
15357 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
15359 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15360 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15362 2010-03-10 Jan Hubicka <jh@suse.cz>
15365 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15366 * varasm.c (get_variable_section): Don't do that here...
15367 (make_decl_rtl): ... and here.
15368 (do_assemble_alias): Produce decl RTL.
15369 (assemble_alias): Likewise.
15371 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15374 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15375 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15377 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15378 (based_loc_descr): Only express drap or vdrap regno based expressions
15379 using DW_OP_fbreg when not optimizing.
15380 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15381 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15382 REG_CFA_SET_VDRAP note.
15384 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
15386 PR tree-optimization/43236
15387 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15388 error in calculation of base address in reverse iteration case.
15389 (generate_builtin): Take number of latch executions if the statement
15392 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
15394 PR middle-end/42859
15395 * tree-eh.c: Include pointer-set.h.
15396 (lower_eh_dispatch): Filter out duplicate case labels and
15397 remove the unneeded edge when the label is unused. Return
15398 true when some edges are removed.
15399 (execute_lower_eh_dispatch): When any lowering resulted in
15400 removing an edge, also delete unreachable blocks.
15402 2010-03-10 Jakub Jelinek <jakub@redhat.com>
15405 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15406 UNSPEC_MACHOPIC_OFFSET.
15408 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
15411 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15412 (m68k_delegitimize_address): New function.
15414 2010-03-09 Jakub Jelinek <jakub@redhat.com>
15417 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15420 * var-tracking.c (adjust_sets): New function.
15421 (count_with_sets, add_with_sets): Use it.
15422 (get_adjusted_src): New inline function.
15423 (add_stores): Use it.
15426 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15427 call cselib_dummy_expand_value_rtx_cb instead of
15428 cselib_expand_value_rtx_cb.
15431 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15432 * config/i386/i386.c: Include debug.h and dwarf2out.h.
15433 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15434 and .cfi_endproc around the pic thunks.
15435 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15436 all queued unwind info register saves are saved before the call.
15437 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15438 considered as sp-=4 for unwind info and the pop as sp+=4 which
15439 also clobbers dest, but doesn't actually restore it.
15442 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15443 RTX_FRAME_RELATED_P.
15445 2010-03-09 Jie Zhang <jie@codesourcery.com>
15447 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15448 whitespaces in output template.
15450 2010-03-09 Jie Zhang <jie@codesourcery.com>
15452 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15453 out array boundary.
15455 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15457 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15458 builtins.exp in a separate job.
15460 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15462 * graphite-sese-to-poly.c (add_param_constraints): Use
15463 lower_bound_in_type and upper_bound_in_type.
15465 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15467 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15468 instead of unsigned_type_node.
15470 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15471 Reza Yazdani <reza.yazdani@amd.com>
15473 PR middle-end/43065
15474 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15475 on pointer type parameters.
15477 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15479 PR middle-end/42644
15480 PR middle-end/42130
15481 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15482 handle conversions from pointer to integers.
15483 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15484 induction variable, to be able to work with code generated by CLooG.
15485 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15486 (build_poly_scop): Bail out if we cannot codegen a loop.
15488 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
15490 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15491 code generation with gloog_error.
15493 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15495 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15496 Call fold_convert on all the returned values.
15497 (expand_scalar_variables_expr): Pass to
15498 expand_scalar_variables_ssa_name the type of the resulting expression.
15500 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15502 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15503 ppl_min_for_le_pointset.
15504 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15505 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15507 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15509 * graphite-dependences.c (map_into_dep_poly): Removed.
15510 (dependence_polyhedron_1): Use combine_context_id_scat.
15512 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15514 * graphite-poly.h (struct poly_scattering): Add layout documentation.
15515 (struct poly_bb): Same.
15516 (combine_context_id_scat): New.
15518 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15520 PR middle-end/42326
15521 * sese.c (name_defined_in_loop_p): Return false for default
15524 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15526 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15527 and clean up the logic.
15529 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
15531 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15534 2010-03-08 Jakub Jelinek <jakub@redhat.com>
15536 * var-tracking.c (remove_cselib_value_chains): Define only for
15538 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15539 delete_slot_part, emit_notes_for_differences_1): Don't call
15540 remove_cselib_value_chains here.
15541 (set_slot_part, emit_notes_for_differences_2): Don't call
15542 add_cselib_value_chains here.
15543 (preserved_values): New vector.
15544 (preserve_value): New function.
15545 (add_uses, add_stores, vt_add_function_parameters): Use it
15546 instead of cselib_preserve_value.
15547 (changed_values_stack): New vector.
15548 (check_changed_vars_0): New function.
15549 (check_changed_vars_1, check_changed_vars_2): Use it.
15550 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15551 changed_values_stack VALUEs.
15552 (vt_emit_notes): For all preserved_values call
15553 add_cselib_value_chains. If ENABLE_CHECKING call
15554 remove_cselib_value_chains before verifying value_chains is empty.
15555 Initialize and free changed_values_stack.
15556 (vt_initialize): Initialize preserved_values.
15557 (vt_finalize): Free preserved_values.
15559 2010-03-08 Richard Guenther <rguenther@suse.de>
15561 PR tree-optimization/43269
15562 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15565 2010-03-08 Martin Jambor <mjambor@suse.cz>
15567 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15568 (ipa_is_param_called): Removed.
15569 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15570 (ipa_print_node_params): Do not print the called flag.
15571 (ipa_write_node_info): Do not stream the called flag.
15572 (ipa_read_node_info): Likewise.
15574 2010-03-07 Jakub Jelinek <jakub@redhat.com>
15577 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15578 * cselib.c (struct expand_value_data): Add dummy field.
15579 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15581 (cselib_dummy_expand_value_rtx_cb): New function.
15582 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15584 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15585 * var-tracking.c: Include pointer-set.h.
15586 (variable): Change n_var_parts to char from int. Add
15587 cur_loc_changed and in_changed_variables fields.
15588 (variable_canonicalize): Remove.
15589 (shared_var_p): New inline function.
15590 (unshare_variable): Maintain cur_loc_changed and
15591 in_changed_variables fields. If var was in changed_variables,
15592 replace it there with new_var. Just copy cur_loc instead of
15593 resetting it to something else.
15594 (variable_union): Don't recompute cur_loc. Use shared_var_p.
15595 (dataflow_set_union): Don't call variable_canonicalize.
15596 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15597 of their DEBUG_EXPR_TREE_DECLs.
15598 (canonicalize_loc_order_check): Verify that cur_loc is NULL
15599 and in_changed_variables and cur_loc_changed is false.
15600 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15601 and cur_loc_changed. Don't update cur_loc here.
15602 (variable_merge_over_src): Don't call variable_canonicalize.
15603 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
15604 removing loc that is equal to cur_loc, clear cur_loc,
15605 set cur_loc_changed and ensure variable_was_changed is called.
15606 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
15607 compare pointers in cur_loc check, if it is equal to loc,
15608 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
15609 (variable_different_p): Remove compare_current_location argument,
15610 don't compare cur_loc.
15611 (dataflow_set_different_1): Adjust variable_different_p caller.
15612 (variable_was_changed): If dv had some var in changed_variables
15613 already, reset in_changed_variables flag for it and propagate
15614 cur_loc_changed over to the new variable. On empty var
15615 always set cur_loc_changed. Set in_changed_variables on whatever
15616 var is added to changed_variables.
15617 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15618 Use shared_var_p. When removing loc that is equal to cur_loc,
15619 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
15620 end, don't set it to something else, just call variable_was_changed.
15621 (delete_slot_part): Use shared_var_p. When cur_loc equals to
15622 loc being removed, clear cur_loc and set cur_loc_changed.
15623 Set cur_loc_changed if all locations have been removed.
15624 (struct expand_loc_callback_data): New type.
15625 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15626 allocated. Always create SUBREGs if simplify_subreg failed.
15627 Prefer to use cur_loc, when that fails and still in
15628 changed_variables (and seen first time) recompute it. Set
15629 cur_loc_changed of variables which had to change cur_loc and
15630 compute elcd->cur_loc_changed if any of the subexpressions used
15631 had to change cur_loc.
15632 (vt_expand_loc): Adjust to pass arguments in
15633 expand_loc_callback_data structure.
15634 (vt_expand_loc_dummy): New function.
15635 (emitted_notes): New variable.
15636 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15637 that weren't used for any other decl in current
15638 emit_notes_for_changes call call vt_expand_loc_dummy to update
15639 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
15640 first loc_chain location if NULL before. Always use just
15641 cur_loc instead of first loc_chain location. When cur_loc_changed
15642 is false, when not --enable-checking=rtl just don't emit any note.
15643 When rtl checking, compute the note and assert it is the same
15644 as previous note. Clear cur_loc_changed and in_changed_variables
15645 at the end before removing from changed_variables.
15646 (check_changed_vars_3): New function.
15647 (emit_notes_for_changes): Traverse changed_vars to call
15648 check_changed_vars_3 on each changed var.
15649 (emit_notes_for_differences_1): Clear cur_loc_changed and
15650 in_changed_variables. Recompute cur_loc of new_var.
15651 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15652 (vt_emit_notes): Initialize and destroy emitted_notes.
15654 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
15656 PR rtl-optimization/42220
15657 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15658 Use verify_reg_tracked to determine if we should use OP_OUT rather
15660 (build_def_use): If we see an in-out operand for a register that we
15661 know nothing about, treat is an output if possible, fail the block if
15664 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15667 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15670 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15673 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15674 uses of relevant DEFs that are dead outside the loop too.
15676 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
15678 * var-tracking.c (dataflow_set_merge): Swap src and src2.
15680 2010-01-13 Jakub Jelinek <jakub@redhat.com>
15682 * var-tracking.c (values_to_unmark): New variable.
15683 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15684 values_to_unmark vector. Moved body to...
15685 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
15686 instead queue it into values_to_unmark vector.
15687 (vt_find_locations): Free values_to_unmark vector.
15689 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
15691 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15692 (site.exp): Export them when plugins are enabled.
15694 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
15696 PR middle-end/42326
15697 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15698 that contain scevs.
15699 (chrec_fold_multiply): Same.
15701 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
15704 * c-decl.c (build_compound_literal): Return early if init is
15705 an error_mark_node.
15707 2010-03-04 Martin Jambor <mjambor@suse.cz>
15709 PR tree-optimization/43164
15710 PR tree-optimization/43191
15711 * tree-sra.c (type_consists_of_records_p): Reject records with
15712 zero-size bit-fields at the end.
15714 2010-03-04 Mike Stump <mikestump@comcast.net>
15716 * Makefile.in (TAGS): Remove *.y.
15718 2010-03-04 Richard Guenther <rguenther@suse.de>
15720 PR tree-optimization/40761
15721 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15723 (my_rev_post_order_compute): New function.
15724 (init_pre): Call it.
15726 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
15728 PR middle-end/43209
15729 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15730 decrease the cost of an IV candidate when the cost is infinite.
15732 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15734 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15735 Use '3DNow!' for the extension of that name, ensure normal space
15737 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15739 2010-03-03 Jeff Law <law@redhat.com>
15741 * PR middle-end/32693
15742 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15743 than gen_rtx_SUBREG.
15744 (extract_bit_field_1): Likewise.
15746 2010-03-03 Janis Johnson <janis187@us.ibm.com>
15748 * doc/sourcebuild.texi (Test directives): Document that arguments
15749 include-opts and exclude-opts are now optional for dg-skip-if,
15750 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15752 2010-03-03 Jason Merrill <jason@redhat.com>
15755 * cgraph.h (varpool_node): Add extra_name field.
15756 * varpool.c (varpool_extra_name_alias): New.
15757 (varpool_assemble_decl): Emit extra name aliases.
15758 (varpool_mark_needed_node): Look past an extra name alias.
15759 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15760 * lto-streamer-in.c (lto_input_tree): Read it.
15761 * lto-streamer-out.c (output_unreferenced_globals): Write it.
15763 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
15765 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15766 (sparc*-*-solaris2*): ...this.
15768 2010-03-03 Jakub Jelinek <jakub@redhat.com>
15771 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15772 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
15773 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15774 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15777 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15778 fallthrough to default handling, just with want_address 0 instead of 2.
15779 For single element lists, add_AT_loc directly, otherwise create an
15780 artificial variable DIE and stick location list to it.
15783 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15784 (VAL_EXPR_HAS_REVERSE): Define.
15785 (reverse_op): New function.
15786 (add_stores): For reversible operations add an extra MO_VAL_USE.
15788 2010-03-02 Jason Merrill <jason@redhat.com>
15790 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15792 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
15794 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15795 (sparc64-*-linux*): Likewise.
15796 (sparc64-*-solaris2*): Include assembler files before linker ones.
15797 (sparc-*-solaris2*): Simplify and reorder to match previous case.
15798 * config/sparc/gas.h: Delete.
15799 * config/sparc/sol2-64.h: Add copyright notice.
15800 * config/sparc/sol2-gas-bi.h: Likewise.
15801 * config/sparc/sol2-gld.h: Likewise.
15802 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15803 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15804 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15805 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15806 (sparc_elf_asm_named_section): Rename into...
15807 (sparc_solaris_elf_asm_named_section): ...this. Always define.
15809 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
15811 * config/alpha/alpha.c (override_options): Fix -mtune error message.
15813 2010-03-02 Jeff Law <law@redhat.com>
15815 PR middle-end/42431
15816 * reload1.c (rtx_p, substitute_stack): Declare.
15817 (substitute): Record addresses of changed rtxs.
15818 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15819 Restore the original rtx when complete.
15820 (reload): Free subsitute_stack when complete.
15822 2010-03-02 Janis Johnson <janis187@us.ibm.com>
15824 * doc/gccint.texi (menu): Add Testsuites as a chapter.
15825 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15827 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15828 LTO Testing, gcov Testing, profopt Testing, compat Testing,
15829 Torture Tests): Change from subsection to section.
15831 2010-03-02 Jakub Jelinek <jakub@redhat.com>
15832 Steven Bosscher <steven@gcc.gnu.org>
15834 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15837 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
15839 PR middle-end/42640
15840 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15841 the assignment from the new induction variable to the assignment
15842 of the value from the original loop PHI function.
15844 2010-03-01 Janis Johnson <janis187@us.ibm.com>
15845 Daniel Jacobowitz <dan@codesourcery.com>
15847 * doc/sourcebuild.texi (Test directives): Clarify options to
15850 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15852 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15853 Disable cfi directives unless GCC and gas agree on using read-only
15854 .eh_frame sections for 64-bit.
15855 * configure: Regenerate.
15857 2010-03-01 Richard Guenther <rguenther@suse.de>
15859 PR tree-optimization/43220
15860 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15861 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15863 2010-03-01 Richard Guenther <rguenther@suse.de>
15864 Martin Jambor <mjambor@suse.cz>
15866 PR middle-end/41250
15867 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15868 gimplified parameters.
15870 2010-03-01 Christian Bruel <christian.bruel@st.com>
15872 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15874 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
15876 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15878 2010-03-01 Richard Guenther <rguenther@suse.de>
15880 PR middle-end/43213
15881 * expr.c (expand_assignment): Use the alias-oracle to tell
15882 if the rhs aliases the result decl.
15884 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15887 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15888 to sol_gt_pch_get_address.
15889 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15890 64-bit, SPARC and x86.
15891 (sol_gt_pch_get_address): New function.
15893 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
15895 * toplev.h (inform_n, error_n): Declare.
15896 * diagnostic.c (inform_n, error_n): New function.
15898 2010-03-01 Jakub Jelinek <jakub@redhat.com>
15900 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15901 has no rtl yet when processing local_decls, queue it and recheck
15902 if deferred stack allocation hasn't assigned it rtl.
15904 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
15906 * config/sh/sh.c (unspec_bbr_uid): New.
15907 (gen_block_redirect): Use it instead of INSN_UID.
15908 (gen_far_branch): Likewise.
15910 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15912 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15913 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15915 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15917 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15918 (Warning Options): -Wno-conversion-null is valid for
15919 Objective-C++ as well.
15920 * doc/tm.texi (Named Address Spaces): Likewise.
15921 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15922 * doc/tree-ssa.texi (Tree SSA): Likewise.
15924 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15927 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15928 by default. Don't set the default arch for
15929 i[34567]86-*-darwin*|x86_64-*-darwin*.
15931 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15934 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15935 default. Set the default 32bit/64bit archs with $with_arch
15936 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15938 2010-02-27 Richard Guenther <rguenther@suse.de>
15940 PR tree-optimization/43186
15941 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15942 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15943 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15944 unroller iterations.
15946 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15948 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15949 required and i[34567]86-*-* targets don't support 64bit ISA.
15951 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15954 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15955 the same alias set.
15957 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15959 * config.gcc: Set the default arch at least to Prescott for
15960 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15961 if SSE math is enabled.
15963 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15965 * diagnostic.c (diagnostic_initialize): Update.
15966 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15968 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15969 (diagnostic_inhibit_notes): New.
15970 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15972 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15975 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15976 * doc/standards.texi: Likewise.
15977 * doc/extend.texi: Likewise.
15978 * doc/trouble.texi: Likewise.
15979 * doc/cppopts.texi: Likewise.
15980 * doc/install.texi: Likewise.
15981 * c.opt (std=c90,std=gnu90): New options.
15982 * c-opts.c (c_common_handle_option): Handle them.
15984 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15987 * c-decl.c (undeclared_variable): Use an informative note.
15989 2010-02-26 Richard Guenther <rguenther@suse.de>
15991 PR tree-optimization/43186
15992 * gimple.h (gimple_fold): Remove.
15993 * gimple.c (gimple_fold): Remove. Inline into single user ...
15994 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15995 Try harder for conditions.
15997 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16000 * function.c (used_types_insert): Don't skip through named pointer
16001 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
16002 and it is different from the main variant's type.
16004 2010-02-26 Nick Clifton <nickc@redhat.com>
16006 * config/rx/rx.md (sminsi3): Remove bogus alternative.
16008 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
16010 * config.gcc: Support --with-fpmath=sse for x86.
16012 * config/i386/ssemath.h: New.
16014 * doc/install.texi (--with-fpmath=sse): Documented.
16016 2010-02-26 Richard Guenther <rguenther@suse.de>
16018 PR tree-optimization/43188
16019 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16020 vector types of over-aligned element type.
16022 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
16025 * config/i386/i386.c (expand_vec_perm_blend): Use correct
16026 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
16028 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
16030 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16032 2010-02-26 Jakub Jelinek <jakub@redhat.com>
16034 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16035 * var-tracking.c: Include diagnostic.h.
16036 (debug_dv): New function.
16037 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16040 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16041 (add_value_chain, add_value_chains, remove_value_chain,
16042 remove_value_chains): Handle DEBUG_EXPRs.
16043 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16046 * regcprop.c (struct queued_debug_insn_change): New type.
16047 (struct value_data_entry): Add debug_insn_changes field.
16048 (struct value_data): Add n_debug_insn_changes field.
16049 (debug_insn_changes_pool): New variable.
16050 (free_debug_insn_changes, apply_debug_insn_changes,
16051 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16052 (kill_value_one_regno): Call free_debug_insn_changes if needed.
16053 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16055 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16057 (copyprop_hardreg_forward_1): Don't call apply_change_group for
16058 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
16059 changes, call cprop_find_used_regs via note_stores.
16060 (copyprop_hardreg_forward): When copying vd from predecessor
16061 which has any queued DEBUG_INSN changes, make sure the pointers are
16062 cleared. At the end call df_analyze and then if there are any
16063 DEBUG_INSN changes queued at the end of some basic block for still
16064 live registers, apply them.
16065 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16067 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
16069 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16072 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
16074 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16075 targets. Set the default with_cpu/with_arch from arch/cpu.
16076 Allow x86-64 and native for with_cpu/with_arch.
16078 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
16080 * ebitmap.c: Change calls to verify_popcount with calls to
16081 sbitmap_verify_popcount.
16082 (ebitmap_clear_bit): Fixed map->cacheindex test and
16083 map>cache update when bit clearing results in an empty
16086 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
16089 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16090 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16091 and support both V2DF and V2DI modes.
16092 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16093 support both V2DF and V2DI modes.
16094 (general): Delete trailing whitespace from a few patterns.
16096 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16097 V2DF/V2DI interleave high/low builtins.
16099 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16102 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16103 interleave high/low functions.
16105 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
16107 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16108 #pragma extern_prefix.
16110 2010-02-25 Jakub Jelinek <jakub@redhat.com>
16113 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16114 BLKmode, assert op0 is a MEM and just adjust its mode.
16117 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16118 if bitpos isn't multiple of mode's bitsize.
16120 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16122 * c.opt (-ftemplate-depth=): New.
16123 (-ftemplate-depth-): Deprecate.
16124 * optc-gen.awk: Handle -ftemplate-depth=.
16125 * opth-gen.awk: Likewise.
16126 * c-opts.c (c_common_handle_option): Likewise.
16127 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16129 2010-02-24 Jason Merrill <jason@redhat.com>
16131 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16133 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16135 * cfg.c (alloc_aux_for_block): Remove inline.
16136 (alloc_aux_for_edge): Likewise.
16138 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16140 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16142 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16144 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16145 * config/i386/sol2-gas.h: New file.
16146 * config.gcc (i[34567]86-*-solaris2*): Use it.
16148 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
16151 * c-typeck.c (ep_convert_and_check): New.
16152 (build_conditional_expr): Use it.
16153 (build_binary_op): Likewise.
16155 2010-02-24 Jakub Jelinek <jakub@redhat.com>
16157 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16160 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16161 bounds even for -O+.
16162 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16163 expr needs to have DECL_NAME set.
16165 2010-02-24 Nick Clifton <nickc@redhat.com>
16167 * config/mep/mep.c: Include gimple.h.
16168 (mep_function_uses_sp): Delete unused function.
16169 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16170 parameters. Use unsigned integers to count args. Return a
16171 NULL_RTX instead of an error_mark_node. Toidy up formatting.
16173 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16176 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16177 greater or equal to nelt instead of 2 * nelt.
16178 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16181 2010-02-23 Jason Merrill <jason@redhat.com>
16184 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16185 in cfun->local_decls even if they have register types.
16188 * stor-layout.c (place_field): Don't warn about unnecessary
16189 DECL_PACKED if the type is packed.
16191 2010-02-23 Jakub Jelinek <jakub@redhat.com>
16194 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16195 GOTOFF relocs, even when the base reg isn't pic pointer.
16197 2010-02-23 Michael Matz <matz@suse.de>
16200 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16201 (expand_gimple_basic_block): Generate and use debug temps if there
16202 are debug uses left after the last real use of TERed ssa names.
16203 Unlink debug immediate uses when they are expanded.
16205 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
16208 * config/i386/i386.c (override_options): Reorganise to provide
16209 better error messages.
16211 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16213 PR middle-end/43083
16214 * graphite-scop-detection.c (create_single_exit_edge): Move
16215 the call to find_single_exit_edge to....
16216 (create_sese_edges): ...here. Don't handle multiple edges
16217 exiting the function.
16218 (build_graphite_scops): Don't handle multiple edges
16219 exiting the function.
16221 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16223 PR middle-end/43097
16224 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16225 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16227 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
16229 PR middle-end/43026
16230 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16232 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
16235 * c-typeck.c (convert_arguments): Print declaration location.
16236 * c-common.c (validate_nargs): Rename as
16237 builtin_function_validate_nargs.
16238 (check_builtin_function_arguments): Update.
16240 2010-02-22 Richard Guenther <rguenther@suse.de>
16243 * tree-inline.c (declare_return_variable): Use the type of
16244 the call stmt lhs if available.
16246 2010-02-22 Duncan Sands <baldrick@free.fr>
16248 * passes.c (register_pass): Always consider all pass lists when
16249 ref_pass_instance_number is zero.
16251 2010-02-22 Richard Guenther <rguenther@suse.de>
16253 PR tree-optimization/42749
16254 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16255 parameter. Do arithmetic in the original type.
16256 (update_accumulator_with_ops): Likewise.
16257 (adjust_accumulator_values): Adjust.
16259 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16261 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16262 (QI to BLKmode splitter): New splitter.
16264 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
16266 * config/i386/i386.c (initial_ix86_tune_features): Turn on
16267 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16269 2010-02-22 Richard Guenther <rguenther@suse.de>
16271 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16273 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
16275 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16276 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16277 ($(T)crti.o, $(T)crtn.o): Remove rules.
16279 2010-02-21 Tobias Burnus <burnus@net-b.de>
16282 * doc/invoke.texi (-fassociative-math): Document that this
16283 option is automatically enabled for Fortran.
16285 2010-02-20 David S. Miller <davem@davemloft.net>
16287 * configure.ac: Test if linker and assembler properly support
16288 GOTDATA_OP relocations.
16289 * configure: Rebuild.
16290 * config.in: Likewise.
16291 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16292 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16293 (movsi_high_pic): Likewise.
16294 (movdi_lo_sum_pic): Likewise.
16295 (movdi_high_pic): Likewise.
16296 (movsi_pic_gotdata_op): New pattern.
16297 (movdi_pic_gotdata_op): Likewise.
16298 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16299 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16301 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
16304 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16305 attribute to ssemul.
16306 (xop_mulv2div2di3_high): Ditto.
16308 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16311 * c.opt (Wconversion-null): New option.
16312 * doc/invoke.texi (Wconversion-null): Document.
16314 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
16316 * common.opt (Wlarger-than-): Add Undocumented.
16318 2010-02-19 Mike Stump <mikestump@comcast.net>
16320 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16322 2010-02-19 Jason Merrill <jason@redhat.com>
16325 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16326 * configure: Likewise.
16328 2010-02-20 Alan Modra <amodra@gmail.com>
16330 PR middle-end/42344
16331 * cgraph.h (cgraph_make_decl_local): Declare.
16332 * cgraph.c (cgraph_make_decl_local): New function.
16333 (cgraph_make_node_local): Use it.
16334 * cgraphunit.c (cgraph_function_versioning): Likewise.
16335 * ipa.c (function_and_variable_visibility): Likewise.
16337 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16340 * except.c (sjlj_emit_function_enter): Don't call
16341 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16343 * rtl.h (add_reg_br_prob_note): Remove prototype.
16345 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
16348 * c-common.c (conversion_warning): Remove widening conversions
16349 before checking the conversion of integers to reals.
16351 2010-02-19 Mike Stump <mikestump@comcast.net>
16353 PR middle-end/43125
16354 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16357 * cgraphunit.c (process_function_and_variable_attributes): Check
16358 DECL_PRESERVE_P instead of looking up attribute "used".
16359 * ipa-pure-const.c (check_decl): Likewise.
16360 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16361 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16362 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16363 instead of attribute "used".
16364 * config/sol2-c.c (solaris_pragma_init): Likewise.
16365 (solaris_pragma_fini): Likewise.
16367 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16369 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16370 Use XCNEW instead of xcalloc.
16371 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16372 XNEW instead of xmalloc.
16373 (get_fields): Use XNEWVEC instead of xmalloc.
16376 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16377 populate vars array.
16378 (create_new_general_access): For debug stmts just reset value.
16379 (get_stmt_accesses): For accesses within debug stmts just record them
16380 using add_access_to_acc_sites instead of preventing the peeling or
16381 counting them as accesses.
16383 PR middle-end/42233
16384 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16386 2010-02-19 Richard Guenther <rguenther@suse.de>
16388 PR tree-optimization/42916
16389 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16392 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
16394 * configure.ac: Replace all uses of changequote in macro arguments
16395 with proper quoting.
16397 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16399 PR middle-end/42233
16400 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16402 2010-02-19 Richard Guenther <rguenther@suse.de>
16404 PR tree-optimization/42944
16405 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16406 test for aliasing with errno.
16408 2010-02-19 Jakub Jelinek <jakub@redhat.com>
16410 PR middle-end/42233
16411 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16412 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16413 * dojump.c: Include output.h.
16414 (inv): New inline function.
16415 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16416 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16417 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16418 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16419 argument, pass it down to other calls.
16420 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
16421 add REG_BR_PROB note to the conditional jump.
16422 * cfgexpand.c (add_reg_br_prob_note): Removed.
16423 (expand_gimple_cond): Don't call it, add the probability
16424 as last argument to jumpif_1/jumpifnot_1.
16425 * Makefile.in (dojump.o): Depend on output.h.
16426 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16428 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16429 * stmt.c (do_jump_if_equal): Likewise.
16430 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16431 * loop-unswitch.c (compare_and_jump_seq): Likewise.
16432 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16434 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16435 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16436 jumpifnot_1 callers.
16437 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16439 (store_expr): Adjust jumpifnot caller.
16440 (store_constructor): Adjust jumpif caller.
16442 PR middle-end/42233
16443 * gimplify.c (gimple_boolify): For __builtin_expect call
16444 gimple_boolify also on its first argument.
16446 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
16448 * configure.ac (gnu-unique-object): Wrap regexps using [] in
16450 (__stack_chk_fail): Ditto. Remove quadrigraphs.
16451 * configure: Regenerated.
16453 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16455 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16456 lang_hooks.types_compatible_p instead of comptypes.
16458 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
16460 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16461 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16462 if __prefer_thumb__ is defined.
16464 2010-02-18 Martin Jambor <mjambor@suse.cz>
16466 PR tree-optimization/43066
16467 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16468 array with zero-sized element type.
16470 2010-02-18 Jakub Jelinek <jakub@redhat.com>
16472 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16473 rtx, allocate struct var_loc_node here and return it to the
16474 caller, and only if it is actually needed.
16475 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16476 move it earlier and return immediately if it returns NULL.
16478 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
16480 * config/sparc/gas.h: New file. Restore
16481 TARGET_ASM_NAMED_SECTION to its ELF default.
16482 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16483 check !HAVE_GNU_AS.
16484 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16485 Likewise. Add ATTRIBUTE_UNUSED to prototype.
16486 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16487 after sparc/sysv4.h.
16489 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
16491 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16493 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
16495 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16496 patterns from predicated pattern.
16498 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
16501 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16502 for insn mnemonic suffix.
16504 2010-02-17 Richard Guenther <rguenther@suse.de>
16506 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16509 2010-02-17 Jakub Jelinek <jakub@redhat.com>
16512 * caller-save.c (save_call_clobbered_regs): If BB ends with
16513 a DEBUG_INSN, move any notes in between last real insn and the last
16514 DEBUG_INSN after the last DEBUG_INSN.
16516 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
16518 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16519 Fix return type. Fix argument type. Explain meaning of return value.
16521 2010-02-16 Richard Guenther <rguenther@suse.de>
16523 PR tree-optimization/41043
16524 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
16525 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16527 (vrp_visit_phi_node): ... but only for loop PHI nodes.
16529 2010-02-16 Ira Rosen <irar@il.ibm.com>
16531 PR tree-optimization/43074
16532 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16533 * tree-vect-loop.c (vect_analyze_loop_operations): Add
16534 vectorizable cycles in hybrid SLP check.
16535 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16537 2010-02-16 Richard Guenther <rguenther@suse.de>
16539 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16540 (true_dependence): If memrefs_conflict_p computes must-alias
16541 trust it. Move TBAA check after offset-based disambiguation.
16542 (canon_true_dependence): Likewise.
16544 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
16546 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16547 * doc/invoke.texi: Document it.
16548 * var-tracking.c: Include toplev.h and params.h.
16549 (vt_find_locations): Return bool indicating success. Compute
16550 hash sizes unconditionally. Check new parameter, report.
16551 (variable_tracking_main_1): Check vt_find_locations results and
16552 retry. Renamed from...
16553 (variable_tracking_main): ... this. New wrapper to preserve
16554 flag_var_tracking_assignments.
16555 * Makefile.in (var-tracking.o): Adjust dependencies.
16557 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
16558 Jakub Jelinek <jakub@redhat.com>
16561 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16562 if weak_import attribute is present.
16563 * config/darwin.c (machopic_select_section): Likewise.
16565 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
16567 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16568 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16569 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16570 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16572 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16575 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16576 Fix argument types.
16578 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16579 Rewrite text to refer to the names.
16581 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
16583 * config/i386/i386-builtin-types.def
16584 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16585 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16586 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16587 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16588 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16589 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16590 IX86_BUILTIN_VPERMIL2PS256.
16591 (MULTI_ARG_4_DF2_DI_I): Defined.
16592 (MULTI_ARG_4_DF2_DI_I1): Defined.
16593 (MULTI_ARG_4_SF2_SI_I): Defined.
16594 (MULTI_ARG_4_SF2_SI_I1): Defined.
16595 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16596 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16597 __builtin_ia32_vpermil2ps256.
16598 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16599 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16600 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
16601 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16602 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16603 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
16604 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16605 CODE_FOR_xop_vpermil2v8sf3.
16606 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16607 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16608 * config/i386/xopintrin.h (_mm_permute2_pd): New.
16609 (_mm256_permute2_pd): New.
16610 (_mm_permute2_ps): New.
16611 (_mm256_permute2_ps): New.
16613 2010-02-15 Nick Clifton <nickc@redhat.com>
16615 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16616 boolean parameters. Use emit_jump_insn when emitting a pop
16617 instruction containing a return insn.
16618 (push): Use 'true' rather than '1' as second parameter to F.
16619 (h8300_expand_prologue): Likewise.
16620 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16621 (h8300_expand_epilogue): Likewise.
16623 2010-02-15 Richard Guenther <rguenther@suse.de>
16625 PR middle-end/43068
16626 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16629 2010-02-15 Nick Clifton <nickc@redhat.com>
16631 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16634 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
16636 * intl.c (fake_ngettext): New function.
16637 * intl.h (fake_ngettext): Declare.
16638 (ngettext): Define macro.
16639 * collect2.c (notice_translated): New function.
16640 (main): Use notice_translated and ngettext.
16641 * collect2.h (notice_translated): Declare.
16643 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
16645 * reorg.c (delete_computation): Comment fixes.
16646 * caller-save.c (setup_save_areas): Idem.
16647 * sel-sched-dump.c (dump_lv_set): Idem.
16650 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16652 * config/s390/s390.c (s390_sched_init): New function.
16653 (TARGET_SCHED_INIT): Target hook defined.
16655 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
16656 Jack Howarth <howarth@bromo.med.uc.edu>
16657 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
16660 Partial revert of unintended change in fix for PR41605.
16661 * config/darwin.h: Fix typo.
16662 * config/darwin9.h: Same.
16664 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16666 * c-pch.c (pch_init): Clear v.
16668 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16670 PR middle-end/42930
16671 * graphite-scop-detection.c (graphite_can_represent_scev): Call
16672 graphite_can_represent_init for MULT_EXPR.
16674 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16676 PR middle-end/42914
16677 PR middle-end/42530
16678 * graphite-sese-to-poly.c (remove_phi): New.
16679 (translate_scalar_reduction_to_array): Call remove_phi.
16681 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16683 PR middle-end/42771
16684 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16685 * graphite-clast-to-gimple.h (gloog): Update declaration.
16686 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16687 * graphite-poly.h (struct poly_bb): Add missing comments.
16688 (struct scop): Add poly_scop_p field.
16689 (POLY_SCOP_P): New.
16690 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16691 * graphite.c (graphite_transform_loops): Build the polyhedral
16692 representation for each scop before code generation.
16693 * sese.c (rename_variables_in_operand): Removed.
16694 (rename_variables_in_expr): Return the renamed expression.
16695 (rename_sese_parameters): New.
16696 * sese.h (rename_sese_parameters): Declared.
16698 2010-02-11 Richard Guenther <rguenther@suse.de>
16700 PR tree-optimization/42998
16701 * tree-ssa-pre.c (create_expression_by_pieces): Treat
16702 POINTER_PLUS_EXPR properly.
16704 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
16705 Changpeng Fang <changpeng.fang@amd.com>
16707 PR middle-end/40886
16708 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16709 the cost of an IV candidate when the IV is used in a test against zero.
16711 * gcc.dg/tree-ssa/ivopts-3.c: New.
16713 2010-02-11 Richard Guenther <rguenther@suse.de>
16716 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16717 pointer-vs-decl case by swapping refs. Handle some cases
16718 of pointer-vs-decl disambiguations more conservatively.
16719 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16720 to false after expanding.
16722 2010-02-11 Richard Guenther <rguenther@suse.de>
16725 * gcc.c (process_command): Handle LTO file@offset case more
16728 2010-02-11 Jakub Jelinek <jakub@redhat.com>
16730 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16731 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
16733 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16735 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16736 if MEM's mode size isn't DWARF2_ADDR_SIZE.
16737 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16738 Optimize eq/ne comparisons when both arguments are known to be
16740 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16741 Don't mask operands unnecessarily if they are known to be already
16744 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
16746 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16749 2010-02-10 Richard Guenther <rguenther@suse.de>
16751 PR tree-optimization/43017
16752 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16753 for wrapping signed arithmetic.
16755 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16758 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16759 if no debug info should be emitted for it.
16761 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
16763 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16764 note when flag_exceptions is set.
16766 2010-02-10 Duncan Sands <baldrick@free.fr>
16768 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16770 2010-02-10 Richard Guenther <rguenther@suse.de>
16773 * tree.c (get_unwidened): Handle constants.
16774 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16776 2010-02-10 Martin Jambor <mjambor@suse.cz>
16779 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16780 check for variable argument counts independently.
16782 2010-02-10 Christian Bruel <christian.bruel@st.com>
16785 * config/sh/sh.c (find_barrier): Increase length for non delayed
16786 conditional branches.
16788 2010-02-10 Christian Bruel <christian.bruel@st.com>
16790 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16792 2010-02-10 Jakub Jelinek <jakub@redhat.com>
16794 * builtins.c (set_builtin_user_assembler_name): Also handle
16795 ffs if int is smaller than word.
16797 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
16799 PR middle-end/42973
16800 * ira-conflicts.c (get_dup): Remove.
16801 (process_reg_shuffles): Add new parameter. Use it as an
16802 additional guard for copy generation.
16803 (add_insn_allocno_copies): Rewrite.
16805 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
16807 * common.opt (fsched2-use-traces): Preserved for backward
16809 * doc/invoke.texi: Remove the documentation about option
16810 -fsched2-use-traces.
16811 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16812 flag_sched2_use_traces.
16813 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16814 the backward compatibility flag section.
16816 2010-02-09 Richard Guenther <rguenther@suse.de>
16818 PR tree-optimization/43008
16819 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16820 make HEAP variables initialized from global memory if they
16821 are not known builtin functions.
16822 (find_func_aliases): Adjust.
16824 2010-02-09 Richard Guenther <rguenther@suse.de>
16826 PR tree-optimization/43000
16827 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16828 arithmetic manually.
16830 2010-02-08 Jakub Jelinek <jakub@redhat.com>
16832 PR tree-optimization/42931
16833 * tree-loop-linear.c (try_interchange_loops): Don't call
16834 double_int_mul if estimated_loop_iterations failed.
16836 2010-02-08 Martin Jambor <mjambor@suse.cz>
16838 PR middle-end/42898
16839 * tree-sra.c (build_accesses_from_assign): Do not mark in
16840 should_scalarize_away_bitmap if stmt has volatile ops.
16841 (sra_modify_assign): Do not process assigns piecemeal if if stmt
16844 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
16846 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16848 2010-02-07 Adam Nemet <adambnmet@gmail.com>
16850 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16851 before the pattern.
16853 2010-02-07 Andrew Pinski <pinskia@gmail.com>
16855 PR middle-end/42946
16856 * df-core.c (df_finish_pass): Change type of saved_flags to int.
16858 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16860 PR middle-end/42988
16861 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16862 to unknown_dependence.
16863 (graphite_legal_transform_dr): Handle the unknown_dependence.
16864 (graphite_carried_dependence_level_k): Same.
16866 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
16868 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16870 2010-02-07 Richard Guenther <rguenther@suse.de>
16872 PR middle-end/42991
16873 * expr.c (get_inner_reference): Always initialize *pbitsize.
16875 2010-02-07 Richard Guenther <rguenther@suse.de>
16877 PR middle-end/42956
16878 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16879 new ARRAY_REFs on variable size element or minimal index arrays.
16881 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16882 gimple_fold_indirect_ref.
16884 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
16887 * arm.c (arm_override_options): Just return if the user has specified
16888 an invalid fpu name.
16890 2010-02-03 Jason Merrill <jason@redhat.com>
16893 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16894 i386_pe_maybe_record_exported_symbol.
16896 2010-02-05 Steve Ellcey <sje@cup.hp.com>
16899 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16900 (pa_delegitimize_address): New function.
16902 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
16904 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16905 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16907 2010-02-05 Richard Guenther <rguenther@suse.de>
16910 * lto-streamer-in.c (get_resolution): Deal with references
16911 to undefined functions.
16913 2010-02-05 Richard Guenther <rguenther@suse.de>
16915 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16916 (fold_const_aggregate_ref): Likewise.
16917 (ccp_fold_stmt): Substitute loads.
16918 (maybe_fold_reference): Verify types before substituting.
16920 (fold_gimple_assign): Unshare properly.
16921 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16923 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16925 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16926 for rs6000_gen_cell_microcode.
16928 2010-02-04 Richard Guenther <rguenther@suse.de>
16930 PR rtl-optimization/42952
16931 * dse.c (const_or_frame_p): Remove MEM handling.
16933 2010-02-04 Nick Clifton <nickc@redhat.com>
16935 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16936 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16937 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16938 (mn10300_asm_output_mi_thunk): New function.
16939 (mn10300_can_output_mu_thunk): New function.
16940 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16941 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16942 (FUNCTION_ARG): Delete incorrect comment.
16944 2010-02-03 Jason Merrill <jason@redhat.com>
16947 * fold-const.c (operand_equal_p): Handle erroneous types.
16949 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16951 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16953 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16955 PR rtl-optimization/42941
16956 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16959 2010-02-03 Jason Merrill <jason@redhat.com>
16962 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16964 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16967 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16968 (cselib_reset_table): Renamed from...
16969 (cselib_reset_table_with_next_value): ... this.
16970 (cselib_get_next_uid): Renamed from...
16971 (cselib_get_next_unknown_value): ... this.
16972 * cselib.c (next_uid): Renamed from...
16973 (next_unknown_value): ... this.
16974 (cselib_clear_table): Adjust.
16975 (cselib_reset_table): Adjust. Renamed from...
16976 (cselib_reset_table_with_next_value): ... this.
16977 (cselib_get_next_uid): Adjust. Renamed from...
16978 (cselib_get_next_unknown_value): ... this.
16979 (get_value_hash): Use hash.
16980 (cselib_hash_rtx): Likewise.
16981 (new_cselib_val): Adjust. Set and dump uid.
16982 (cselib_lookup_mem): Pass next_uid as hash.
16983 (cselib_subst_to_values): Likewise.
16984 (cselib_log_lookup): Dump uid.
16985 (cselib_lookup): Pass next_uid as hash. Adjust.
16986 (cselib_process_insn): Adjust.
16987 (cselib_init): Initialize next_uid.
16988 (cselib_finish): Adjust.
16989 (dump_cselib_table): Likewise.
16990 * dse.c (canon_address): Dump value uid.
16991 * print-rtl.c (print_rtx): Print value uid.
16992 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16994 (dv_uid): New function, sort of renamed from...
16995 (dv_htab_hash): ... this, reimplemented in terms of it and...
16996 (dv_uid2hash): ... this. New.
16997 (variable_htab_eq): Drop excess assertions.
16998 (tie_break_pointers): Removed.
16999 (canon_value_cmp): Compare uids.
17000 (variable_post_merge_New_vals): Print uids.
17001 (vt_add_function_parameters): Adjust.
17002 (vt_initialize): Reset table. Adjust.
17004 2010-02-03 Richard Guenther <rguenther@suse.de>
17006 PR tree-optimization/42944
17007 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17008 (call_may_clobber_ref_p_1): Likewise. Properly handle
17009 malloc and calloc clobbering errno.
17011 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
17013 * doc/invoke.texi: Fix name of sched1 dump.
17015 * opts.c (decode_options): Set flag_tree_switch_conversion
17016 only conditionally on optimize >= 2.
17018 * gcse.c: Assorted comment fixes in pass description.
17020 2010-02-03 Anthony Green <green@moxielogic.com>
17022 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17023 nop padding in order to maintain alignment of storage location of
17024 target function address.
17025 (moxie_trampoline_init): Store target function address at newly
17027 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17029 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17031 2010-02-03 Richard Guenther <rguenther@suse.de>
17033 PR middle-end/42927
17034 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17036 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17038 * config.gcc: Reenable check for obsolete targets.
17039 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17040 mips-sgi-irix6.[0-4]*.
17042 2010-02-02 Nick Clifton <nickc@redhat.com>
17044 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17045 constant size of 4 as being the same as 0.
17046 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17047 can take values in the range 0..4.
17049 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
17052 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17053 as _darwin10_Unwind_FindEnclosingFunction().
17054 * libgcc-libsystem.ver: New.
17056 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
17059 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17060 implicitly set registers.
17062 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
17064 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17065 (arm_override_options): Allow automatic selection of the thread
17066 pointer register if thumb2.
17067 (legitimize_pic_address): Improve code sequences for Thumb2.
17068 (arm_call_tls_get_addr): Likewise.
17069 (legitimize_tls_address): Likewise.
17070 * arm.md (pic_load_addr_arm): Delete. Replace with ...
17071 (pic_load_addr_32bit): ... this. New named pattern.
17072 * thumb2.md (pic_load_addr_thumb2): Delete.
17073 (pic_load_dot_plus_four): Delete.
17074 (tls_load_dot_plus_four): New named pattern.
17076 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17079 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17080 Document fix for TLS bug.
17082 2010-01-31 Richard Guenther <rguenther@suse.de>
17084 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17085 conservatively correct.
17087 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17091 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17093 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17095 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17097 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17099 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
17101 * config.gcc: Adjust order of makefile fragments for mingw targets.
17103 2010-01-31 Richard Guenther <rguenther@suse.de>
17105 PR middle-end/42898
17106 * gimplify.c (gimplify_init_constructor): For volatile LHS
17107 initialize a temporary.
17109 2010-01-31 Matthias Klose <doko@ubuntu.com>
17111 * configure.ac: Fix __stack_chk_fail check for cross builds configured
17113 * configure: Regenerate.
17115 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
17117 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17118 the same alias set and their sizes different constantness.
17119 (aliasing_component_refs_p): Revert 2009-10-24 change.
17121 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17123 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17126 2010-01-29 Richard Guenther <rguenther@suse.de>
17128 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17129 Assert we successfully updated the call.
17131 2010-01-29 Jakub Jelinek <jakub@redhat.com>
17133 PR rtl-optimization/42889
17134 * df.h (df_set_bb_dirty_nonlr): New prototype.
17135 * df-core.c (df_set_bb_dirty_nonlr): New function.
17136 * df-scan.c (df_insn_rescan): Call it instead of
17137 df_set_bb_dirty for DEBUG_INSNs.
17139 2010-01-29 Richard Guenther <rguenther@suse.de>
17141 PR middle-end/37448
17142 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17143 quadratic behavior in most cases.
17145 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
17148 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17149 in the call to gen_x86_movsicc_0_m1.
17151 2010-01-28 Richard Guenther <rguenther@suse.de>
17153 PR tree-optimization/42871
17154 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17156 2010-01-28 Richard Guenther <rguenther@suse.de>
17158 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17159 into call arguments.
17161 2010-01-28 Richard Guenther <rguenther@suse.de>
17163 PR middle-end/42883
17164 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17165 the forwarder if the destination is an EH landing pad.
17167 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
17169 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17170 block list passed to gimple_duplicate_sese_tail.
17171 (parallelize_loops): Avoid parallelization when the function
17172 has_nonlocal_label.
17173 Avoid parallelization when the preheader is IRREDUCIBLE.
17174 Try to optimize when estimated_loop_iterations_int is unresolved.
17175 Add the loop's location to the dump file.
17176 * tree-cfg.c (add_phi_args_after_redirect): Remove.
17177 (gimple_duplicate_sese_tail): Remove the check for the latch.
17178 Redirect nexits to the exit block.
17179 Remove handling of the incoming edges to the latch.
17180 Redirect the backedge from the copied latch to the exit bb.
17182 2010-01-28 Michael Matz <matz@suse.de>
17185 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17186 Wrap force_reg into a sequence, emit it before user.
17188 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
17190 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17192 (arm_legacy_rev): Likewise.
17193 (thumb_legacy_rev): Likewise.
17195 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17197 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17198 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
17199 on MEM's address failed, try avoid_constant_pool_reference and
17200 recurse if it returned something different.
17201 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17202 address, try avoid_constant_pool_reference and recurse if it
17203 returned something different.
17204 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17205 address and avoid_constant_pool_reference returned something
17206 different, don't set have_address.
17208 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
17211 * var-tracking.c (val_store): Add modified argument, obey it.
17213 (count_uses): Move down logging of main.
17214 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17215 don't need resolution.
17216 (emit_notes_in_bb): Likewise.
17218 2010-01-27 Richard Guenther <rguenther@suse.de>
17220 PR middle-end/42878
17221 * tree-inline.c (remap_decl): Delay remapping of SSA name
17222 default definitions until we need them.
17224 2010-01-27 Jakub Jelinek <jakub@redhat.com>
17226 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17227 (rs6000_delegitimize_address): New function.
17229 * config/s390/s390.c (s390_delegitimize_address): Call
17230 delegitimize_mem_from_attrs.
17232 PR middle-end/42874
17233 * tree-inline.c (cannot_copy_type_1): Removed.
17234 (copy_forbidden): Don't forbid copying of functions containing
17235 records/unions with variable length fields.
17237 2010-01-27 Christian Bruel <christian.bruel@st.com>
17241 * config/sh/sh.c (find_barrier): Increase length for non delayed
17242 conditional branches.
17244 2010-01-27 Matthias Klose <doko@ubuntu.com>
17246 * configure.ac (gnu-unique-object): Fix ldd version check.
17247 * configure: Regenerate.
17249 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17251 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17253 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17254 Test for HAVE_GNU_AS value.
17256 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17258 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17259 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17260 INT64_TYPE): Define.
17261 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17262 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17263 INT_LEAST64_TYPE): Define.
17264 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17265 UINT_LEAST64_TYPE): Define.
17266 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17267 INT_FAST64_TYPE): Define.
17268 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17269 UINT_FAST64_TYPE): Define.
17270 (INTMAX_TYPE, UINTMAX_TYPE): Define.
17271 (INTPTR_TYPE, UINTPTR_TYPE): Define.
17272 (SIG_ATOMIC_TYPE): Define.
17274 2010-01-26 Richard Guenther <rguenther@suse.de>
17276 * df-scan.c (df_scan_set_bb_info): Remove assert.
17277 (df_insn_rescan_debug_internal): Merge asserts.
17278 (df_install_ref): Likewise.
17279 (df_mark_reg): Use bitmap_set_range.
17280 (df_hard_reg_used_p): Remove assert.
17281 (df_hard_reg_used_count): Likewise.
17283 2010-01-26 Richard Guenther <rguenther@suse.de>
17285 PR rtl-optimization/42685
17286 * web.c (web_main): Ignore DEBUG_INSNs.
17288 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
17290 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17292 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17293 Fix types of fndecl and arglist parameters.
17295 2010-01-26 Richard Guenther <rguenther@suse.de>
17297 PR middle-end/42806
17298 * tree-eh.c (unsplit_eh): Skip debug insns.
17300 2010-01-26 Richard Guenther <rguenther@suse.de>
17302 PR tree-optimization/42250
17303 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17305 2010-01-26 Jakub Jelinek <jakub@redhat.com>
17308 * omp-low.c (expand_omp_sections): Only use single_pred if
17309 l2_bb is single_pred_p.
17311 2010-01-25 Christian Bruel <christian.bruel@st.com>
17314 * config/sh/sh.c (find_barrier): Increase length for non delayed
17315 conditional branches.
17316 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17318 2010-01-24 David S. Miller <davem@davemloft.net>
17320 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17321 define if not using GAS.
17322 * config/sparc/sparc.c (sparc_elf_asm_named_section):
17323 Likewise. Delete SECTION_MERGE code, which is only applicable
17326 2010-01-24 Mark Mitchell <mark@codesourcery.com>
17329 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17330 mangling of va_list in system headers.
17332 2010-01-23 Toon Moene <toon@moene.org>
17334 * tree-predcom.c (combine_chains): Return NULL, not false.
17336 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
17338 * tree-loop-distribution.c (distribute_loop): Fix declaration and
17339 initialization of variable res to agree with return type.
17341 2010-01-22 Steve Ellcey <sje@cup.hp.com>
17343 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17344 * tree-sra.c: Add include of expr.h.
17346 2010-01-22 Jakub Jelinek <jakub@redhat.com>
17348 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17349 insert the debug stmt on the single non-EH edge from the stmt.
17351 2010-01-22 Richard Henderson <rth@redhat.com>
17354 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17355 the RHS until after generate_subtree_copies has insertted its
17356 code before the current statement.
17358 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
17360 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17362 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17364 2010-01-21 Martin Jambor <mjambor@suse.cz>
17366 PR tree-optimization/42585
17367 * tree-sra.c (struct access): New field grp_total_scalarization.
17368 (dump_access): Dump the new field.
17369 (should_scalarize_away_bitmap): New variable.
17370 (cannot_scalarize_away_bitmap): Likewise.
17371 (sra_initialize): Allocate new bitmaps.
17372 (sra_deinitialize): Free new bitmaps.
17373 (create_access_1): New function.
17374 (create_access): Parts moved to create_access_1.
17375 (type_consists_of_records_p): New function.
17376 (completely_scalarize_record): Likewise.
17377 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17378 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17379 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17381 (analyze_all_variable_accesses): Completely scalarize small eligible
17384 2010-01-21 Martin Jambor <mjambor@suse.cz>
17386 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17388 2010-01-21 Andrew Haley <aph@redhat.com>
17390 * gcc.c (process_command): Move lang_specific_driver before
17391 setting cc_libexec_prefix.
17393 2010-01-21 Richard Guenther <rguenther@suse.de>
17395 PR middle-end/19988
17396 * fold-const.c (negate_expr_p): Pretend only negative
17397 real constants are easily negatable.
17399 2010-01-20 Janis Johnson <janis187@us.ibm.com>
17400 Jason Merrill <jason@redhat.com>
17402 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17403 (TYPE_TRANSPARENT_AGGR): this, for union and record.
17404 * calls.c (initialize argument_information): Handle it.
17405 * c-common.c (handle_transparent_union_attribute): Use new name.
17406 * c-decl.c (finish_struct): Ditto.
17407 * c-typeck.c (type_lists_compatible_p): Ditto.
17408 (convert_for_assignment): Use new name and also handle record.
17409 * function.c (aggregate_value_p): Handle it.
17410 (pass_by_reference): Ditto.
17411 (assign_parm_data_types): Ditto.
17412 * print-tree.c (print_node): Ditto.
17413 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17414 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17415 * tree.c (first_field): New fn.
17417 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
17420 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17421 even when linking statically, for now.
17423 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17426 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17427 without a cselib val.
17428 (count_uses): Accept MO_VAL_SET with no val on stores.
17429 (add_stores): Likewise.
17431 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17433 * var-tracking.c (check_value_val): Add a compile time assertion.
17434 (dv_is_decl_p): Simplify.
17435 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17436 gcc_assert if ENABLE_CHECKING.
17438 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
17441 * var-tracking.c: Include tree-flow.h.
17442 (mem_dies_at_call): New.
17443 (dataflow_set_preserve_mem_locs): Use it.
17444 (dataflow_set_remove_mem_locs): Likewise.
17445 (dump_var): Renamed from dump_variable. Adjust all callers.
17446 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
17447 * Makefile.in (var-tracking.o): Adjust deps.
17449 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
17451 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17453 2010-01-20 Richard Guenther <rguenther@suse.de>
17455 PR tree-optimization/42717
17456 * tree-ssa-dce.c (get_live_post_dom): Remove.
17457 (forward_edge_to_pdom): Take an arbitrary edge to copy
17458 degenerate PHI args from.
17459 (remove_dead_stmt): Use the first post-dominator even if it
17460 does not contain live statements as redirection destination.
17462 2010-01-20 Richard Guenther <rguenther@suse.de>
17464 * tree-inline.c (estimate_num_insns): Handle EH builtins.
17466 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17468 * sel-sched.c (create_speculation_check): Remove set but not used
17470 (try_transformation_cache): Remove set but not used variable ds.
17471 (calculate_privileged_insns): Remove set but not used variables
17472 cur_insn and min_spec_insn.
17473 (find_best_expr): Remove set but not used variable avail_n.
17474 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17476 * cgraphunit.c (assemble_thunk): Remove set but not used variable
17478 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17479 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17480 new_scop_exit_edge.
17482 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
17485 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17486 cpu types. Add support for *-sse3 cpu types.
17487 (x86_64-*-*): Ditto.
17489 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17491 PR middle-end/42803
17492 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17493 argument, call initializer_constant_valid_p_1 instead of
17494 initializer_constant_valid_p, pass CACHE to it, return NULL
17495 immediately if first call returns NULL.
17496 (initializer_constant_valid_p_1): New function.
17497 (initializer_constant_valid_p): Use it.
17499 2010-01-20 Thomas Quinot <quinot@adacore.com>
17501 * tree.def (PLACEHOLDER_EXPR): Fix comment.
17503 2010-01-20 Jakub Jelinek <jakub@redhat.com>
17505 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17506 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17507 (loc_list_from_tree): Don't handle unsigned division. Handle
17508 signed modulo using DW_OP_{over,over,div,mul,minus}.
17509 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17510 modulo instead of signed.
17512 2010-01-20 DJ Delorie <dj@redhat.com>
17514 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17516 (h8300_emit_stack_adjustment): Propogate it.
17518 (h8300_expand_prologue): Likewise.
17519 (h8300_expand_epilogue): Likewise.
17521 2010-01-19 Michael Matz <matz@suse.de>
17523 PR tree-optimization/41783
17524 * tree-data-ref.c (toplevel): Include flags.h.
17525 (dump_data_dependence_relation): Also dump the inputs if the
17526 result will be unknown.
17527 (split_constant_offset_1): Look through some conversions.
17528 * tree-predcom.c (determine_roots_comp): Restart a new chain if
17529 the offset from last element is too large.
17530 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17531 (reassociate_to_the_same_stmt): Handle vector registers.
17532 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17533 (e.g. conversions).
17534 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17535 wide_prolog_niters argument, emit widening instructions.
17536 (vect_do_peeling_for_alignment): Adjust caller, use widened
17537 variant of the iteration cound.
17538 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17540 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17543 * config/arm/neon-testgen.m (emit_automatics): New parameter
17544 features. Adjust for Fixed_return_reg feature.
17545 (test_intrinsic): Call emit_automatics with new feature.
17546 * config/arm/neon.ml: Update copyright years.
17547 (features): New Fixed_return_reg feature.
17548 (ops): Update feature for Vget_low.
17550 2010-01-19 Jakub Jelinek <jakub@redhat.com>
17552 PR tree-optimization/42719
17553 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17557 * fwprop.c (all_uses_available_at): Return false if def_set dest
17558 is a REG that is used in def_insn.
17560 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
17562 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17564 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17565 Add argument names.
17567 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17569 * target.h (struct gcc_target) <secondary_reload>: Change type
17570 of last argument to secondary_reload_info *.
17572 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
17575 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17576 memory references with unaligned offsets. Remove CQImode handling.
17577 (unaligned_memory_operand): Return 1 for memory references with
17578 unaligned offsets. Remove CQImode handling.
17580 2010-01-18 Richard Guenther <rguenther@suse.de>
17582 PR middle-end/39954
17583 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17586 2010-01-18 Richard Guenther <rguenther@suse.de>
17588 PR tree-optimization/42781
17589 * tree-ssa-structalias.c (find_what_var_points_to): Skip
17590 restrict processing only if the original variable was artificial.
17592 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
17594 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17595 find number of popped argument bytes.
17597 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17598 Fix the text that describes the return value for invalid insns.
17600 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
17602 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17603 Clarify what 'cost of the -dependence' is. Fix quoting.
17605 * toplev.c (default_get_pch_validity): Rename argument to "sz".
17606 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17608 2010-01-17 Jakub Jelinek <jakub@redhat.com>
17610 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17611 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17613 2010-01-17 Richard Guenther <rguenther@suse.de>
17615 PR middle-end/42248
17616 * function.c (split_complex_args): Take a VEC to modify.
17617 (assign_parms_augmented_arg_list): Build a VEC instead of
17618 a chain of PARM_DECLs.
17619 (assign_parms_unsplit_complex): Take a VEC of arguments.
17620 Do not fixup unmodified parms.
17621 (assign_parms): Deal with the VEC.
17622 (gimplify_parameters): Likewise.
17624 2010-01-17 Richard Guenther <rguenther@suse.de>
17626 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17627 node existence check.
17628 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17629 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17630 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17631 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17632 (gimple_execute_on_growing_pred): Likewise.
17634 2010-01-17 Richard Guenther <rguenther@suse.de>
17636 PR tree-optimization/42773
17637 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17638 (compute_antic_aux): Likewise.
17639 (compute_partial_antic_aux): Likewise.
17641 2010-01-17 Jie Zhang <jie.zhang@analog.com>
17644 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17647 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
17649 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17652 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17653 Fix markup for strict argument.
17655 (TARGET_SCHED_REORDER2): Fix argument types.
17657 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17658 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17660 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17661 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17663 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17666 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17667 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17668 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17669 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17670 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17672 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17674 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17676 (TARGET_ASM_RELOC_RW_MASK): Add return type.
17677 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17679 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17681 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17684 (TARGET_ASM_NAMED_SECTION): Fix argument list.
17686 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17687 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17689 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17691 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17693 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17694 referring to it. Fix language.
17696 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17698 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17700 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17702 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17704 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17705 '@var{stream}. Remove stray 'and'.
17707 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17709 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17711 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17713 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17714 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17716 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17717 Fix description of return value.
17718 Rename argument "sz" to "len."
17720 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17721 Clarify meaning of 'true' return value.
17723 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17725 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17726 rep_mode versus mode_rep.
17728 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17730 (TARGET_BUILTIN_DECL): Fix name.
17732 (TARGET_COMMUTATIVE_P): Fix type of first argument.
17734 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17736 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17738 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17740 (TARGET_RELAXED_ORDERING): Use @deftypevr.
17742 (TARGET_GET_DRAP_RTX): Note that this is a hook.
17745 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17746 Rename argument tm_fn to md_fn.
17748 (TARGET_OPTION_PRINT): Fix argument list.
17750 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
17753 * config/i386/i386.c (ix86_fixup_binary_operands):
17754 Revert FMA4 fixup of operands.
17756 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17759 * Makefile.in (write_entries_to_file, install-plugin):
17760 Use \012 instead of \n with tr.
17762 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
17764 * configure.ac (HAVE_AS_REF): New C macro.
17765 * configure: Regenerate.
17766 * config.in: Likewise.
17767 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17769 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17772 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
17774 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17776 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17778 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17780 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17782 (TARGET_IN_SMALL_DATA_P): Fix argument type.
17784 (TARGET_BINDS_LOCAL_P): Fix argument type.
17786 (TARGET_ASM_FILE_END): Use prototype.
17788 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17790 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17792 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17794 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17796 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17797 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17799 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17800 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17802 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17803 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17804 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17805 (TARGET_ADDR_SPACE_CONVERT): Likewise.
17807 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17809 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17811 (TARGET_INIT_BUILTINS): Use prototype.
17813 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17814 Put 'const char *' in braces. Fix parameter types.
17815 (TARGET_INVALID_CONVERSION): Fix parameter types.
17816 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17817 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17819 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17822 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17824 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17826 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
17828 * doc/tm.texi (TARGET_HELP): Fix return type.
17830 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17831 in braces. Fix argument types.
17833 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17835 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17837 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17839 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17840 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17842 (TARGET_MANGLE_TYPE): Fix argument types.
17844 (TARGET_IRA_COVER_CLASSES): Use prototype.
17846 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
17848 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17850 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17852 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17854 (TARGET_CALLEE_COPIES): Fix argument types.
17856 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17858 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17860 (TARGET_FUNCTION_VALUE): Fix argument types.
17862 (TARGET_RETURN_IN_MSB): Fix argument type.
17864 (TARGET_RETURN_IN_MEMORY): Fix argument types.
17866 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17868 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17870 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17871 agree with return type.
17873 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17875 2010-01-15 Jing Yu <jingyu@google.com>
17877 PR rtl-optimization/42691
17878 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17879 a pseudo to a constant and are merged, and adjust comments.
17881 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
17883 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17885 2010-01-15 Richard Guenther <rguenther@suse.de>
17887 PR middle-end/42739
17888 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17889 labels of computed or non-local gotos to the destination.
17890 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17891 landing pad label is the first label.
17893 2010-01-15 Richard Guenther <rguenther@suse.de>
17895 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17897 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17900 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17901 to allow generation of the xssqrtdp instruction on power7.
17902 (sqrtdf2_fpr): Ditto.
17904 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17906 PR middle-end/42674
17907 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17908 functions with noreturn attribute.
17911 * varasm.c (declare_weak): Add weak attribute to decl if it
17912 doesn't have one already.
17913 (assemble_external): Only add decls to weak_decls if they also
17914 have weak attribute.
17916 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17918 * var-tracking.c (var_reg_delete): Don't delete the association
17919 between REGs and values or one-part variables if the register
17922 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17925 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17926 because its first operand is a non-localized variable.
17928 2010-01-14 Martin Jambor <mjambor@suse.cz>
17930 PR tree-optimization/42706
17931 * tree-sra.c (encountered_recursive_call): New variable.
17932 (encountered_unchangable_recursive_call): Likewise.
17933 (sra_initialize): Initialize both new variables.
17934 (callsite_has_enough_arguments_p): New function.
17935 (scan_function): Call decl and flags check only for IPA-SRA, check
17936 whether there is a recursive call and whether it has enough arguments.
17937 (all_callers_have_enough_arguments_p): New function.
17938 (convert_callers): Look for recursive calls only when
17939 encountered_recursive_call is set.
17940 (ipa_early_sra): Bail out either if
17941 !all_callers_have_enough_arguments_p or
17942 encountered_unchangable_recursive_call.
17944 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17946 * sel-sched.c: Add 2010 to copyright years.
17947 * sel-sched-ir.c: Likewise.
17948 * sel-sched-ir.h: Likewise.
17950 2010-01-14 Martin Jambor <mjambor@suse.cz>
17952 PR tree-optimization/42714
17953 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17954 constructors specially.
17956 2010-01-14 Andi Kleen <ak@linux.intel.com>
17958 * config/i386/drivers-i386.c (detect_caches_intel):
17959 Add l2sizekb parameter and fill in.
17960 (host_detect_local_cpu): Add l2sizekb, fill in.
17961 Add Atom small cache heuristic.
17963 2010-01-14 Andi Kleen <ak@linux.intel.com>
17965 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17966 Add level3 parameter and fill in.
17967 (detect_caches_intel): Handle level3 cache.
17969 2010-01-14 Andi Kleen <ak@linux.intel.com>
17971 * config/i386/drivers-i386.c (host_detect_local_cpu):
17972 Fix core duo detection.
17974 2010-01-14 Andi Kleen <ak@linux.intel.com>
17976 * config/i386/drivers-i386.c (host_detect_local_cpu):
17977 Fix Atom detection.
17979 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17981 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17982 (rs6000_variable_issue_1): this. Use...
17983 (rs6000_variable_issue): here. Reimplement. Print debug info.
17985 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17987 * sel-sched-ir.c (sel_restore_other_notes): Rename to
17988 sel_restore_notes. Update all callers. Call reemit_notes
17991 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17993 PR rtl-optimization/42246
17994 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17997 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17999 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18000 all successors is the same as number of successors in current region.
18002 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18004 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18005 to rename is not separable. Otherwise check that its LHS is not NULL.
18007 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18009 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
18011 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18013 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18014 available registers when failed to discover LHS register class.
18015 Fix indentation. Update comment.
18017 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18018 Alexander Monakov <amonakov@ispras.ru>
18020 PR rtl-optimization/42389
18021 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18023 (advance_state_on_fence): Likewise.
18024 (sel_target_adjust_priority): Print debug output only when
18025 sched_verbose >= 4, not 2.
18026 (get_expr_cost): Do not issue all unique insns on the next cycle.
18027 (fill_insns): Initialize can_issue_more from the value saved
18029 * sel-sched-ir.c (flist_add): New parameter issue_more.
18030 Init FENCE_ISSUE_MORE with it.
18031 (merge_fences): Likewise.
18032 (init_fences): Update call to flist_add.
18033 (add_to_fences, add_clean_fence_to_fences)
18034 (add_dirty_fence_to_fences): Likewise.
18035 (move_fence_to_fences): Update call to merge_fences.
18036 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18038 * sel-sched-ir.h (struct _fence): New field issue_more.
18039 (FENCE_ISSUE_MORE): New accessor macro.
18041 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18043 PR rtl-optimization/42388
18044 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18045 that have no predecessors nor successors. Do not call move_bb_info
18046 for empty blocks outside of current region.
18048 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18050 PR rtl-optimization/42294
18051 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18052 * sel-sched.c (move_exprs_to_boundary): Transitively add all
18053 originators' originators.
18055 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
18057 PR rtl-optimization/39453
18058 PR rtl-optimization/42246
18059 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18061 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18063 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18064 Alexander Monakov <amonakov@ispras.ru>
18066 PR middle-end/42245
18067 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
18068 (maybe_tidy_empty_bb): ... here. Make static. Add new
18069 argument. Update all callers.
18070 (tidy_control_flow): ... and here. Recompute topological order
18071 of basic blocks in region if necessary.
18072 (sel_redirect_edge_and_branch): Change return type. Return true
18073 if topological order might have been invalidated.
18074 (purge_empty_blocks): Export and move from...
18075 * sel-sched.c (purge_empty_blocks): ... here.
18076 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18077 (maybe_tidy_empty_bb): Delete prototype.
18078 (purge_empty_blocks): Declare.
18080 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
18082 PR rtl-optimization/42249
18083 * sel-sched.c (try_replace_dest_reg): When chosen register
18084 and original register is the same, do not bail out early, but
18085 still check all original insns for validity of replacing destination
18086 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18089 2010-01-14 Jakub Jelinek <jakub@redhat.com>
18092 Port from no-undefined-overflow branch:
18093 2009-03-09 Richard Guenther <rguenther@suse.de>
18095 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18097 2010-01-14 Richard Guenther <rguenther@suse.de>
18100 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18102 2010-01-14 Ira Rosen <irar@il.ibm.com>
18104 PR tree-optimization/42709
18105 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18106 as scalar type in creation of constant vector operand.
18108 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18111 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18112 (check-parallel-%): Match `testsuite' directory component only
18115 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
18117 PR translation/39521
18118 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18121 2010-01-13 Richard Guenther <rguenther@suse.de>
18123 PR tree-optimization/42730
18124 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18127 2010-01-13 Steve Ellcey <sje@cup.hp.com>
18130 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18131 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18134 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
18136 * config/bfin/libgcc-bfin.ver: Regenerate based on current
18137 libgcc-std.ver. Add entries for ___smulsi3_highpart and
18138 ___umulsi3_highpart.
18140 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18141 rather than schedule_insns if the pass is enabled.
18143 2010-01-13 Martin Jambor <mjambor@suse.cz>
18145 PR tree-optimization/42704
18146 * tree-sra.c (sra_modify_assign): Do not delete assignments to
18149 2010-01-13 Martin Jambor <mjambor@suse.cz>
18151 PR tree-optimization/42703
18152 * tree-sra.c (analyze_access_subtree): Check that we can build a
18153 reference to the original data within the aggregate.
18155 2010-01-13 Richard Guenther <rguenther@suse.de>
18157 PR tree-optimization/42705
18158 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18160 2010-01-13 Richard Guenther <rguenther@suse.de>
18162 PR middle-end/42716
18163 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18165 2010-01-13 Jakub Jelinek <jakub@redhat.com>
18168 * var-tracking.c (values_to_unmark): New variable.
18169 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18170 values_to_unmark vector. Moved body to...
18171 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
18172 instead queue it into values_to_unmark vector.
18173 (vt_find_locations): Free values_to_unmark vector.
18175 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
18177 * config/s390/s390.c (override_options): Set
18178 default of max-pending-list-length to 256
18180 2010-01-13 Richard Guenther <rguenther@suse.de>
18183 * tree-pass.h (PROP_gimple_lcx): New.
18184 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18185 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18186 before the final cleanup_eh.
18187 (dump_properties): Dump PROP_gimple_lcx.
18188 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18189 (tree_lower_complex_O0): Remove.
18190 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18191 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
18192 tree_lower_complex, schedule TODO_update_ssa.
18193 * lto-streamer-out.c (output_function): Stream the functions
18195 * lto-streamer-in.c (input_function): Likewise.
18196 (lto_read_body): Do not override them here.
18198 2010-01-12 Joseph Myers <joseph@codesourcery.com>
18201 * c-typeck.c (build_c_cast): Fold value cast to union type before
18202 wrapping it in a CONSTRUCTOR.
18204 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18206 PR rtl-optimization/42699
18207 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18210 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18212 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18213 SUBTARGET_WARN_UNUSED_SPEC): Move ...
18214 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18215 SUBTARGET_WARN_UNUSED_SPEC): ... here
18216 * config/mips/iris5.h (LIBGCC_SPEC): Define.
18218 2010-01-12 Julian Brown <julian@codesourcery.com>
18220 * config/arm/neon-schedgen.ml (Utils): Don't try to
18221 open missing module.
18222 (find_with_result): New.
18224 2010-01-12 Jakub Jelinek <jakub@redhat.com>
18227 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18228 sharing when canonicalizing ({lt,ge}u (plus a b) b).
18230 PR tree-optimization/42645
18231 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
18232 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18233 decl_map, set processing_debug_stmt to -1 and return name without
18236 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
18238 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18239 binutils version, and reword target configuration description.
18241 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18243 * config/avr/avr.h (LINKER_NAME): Remove.
18245 2010-01-11 Janis Johnson <janis187@us.ibm.com>
18248 * config/rs6000/rs6000.c (rs6000_override_options): On targets
18249 that support VSX, warn for -mno-altivec if vsx is not disabled,
18252 2010-01-11 Joseph Myers <joseph@codesourcery.com>
18253 Shujing Zhao <pearly.zhao@oracle.com>
18255 PR translation/42469
18256 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18257 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18258 character between option name and help text.
18259 * c.opt (imultilib): Likewise.
18261 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
18263 * lto-streamer-out.c (output_unreferenced_globals): Output static
18266 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
18268 PR rtl-optimization/42621
18269 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18270 optimizing for size.
18271 (duplicate_computed_gotos): Remove now-redundant check.
18273 2010-01-10 Steve Ellcey <sje@cup.hp.com>
18276 * configure.ac: Save and restore LDFLAGS and LIBS
18277 * configure: Regenerate.
18279 2010-01-10 Richard Guenther <rguenther@suse.de>
18281 PR middle-end/42667
18282 * builtins.c (fold_builtin_strlen): Add type argument and
18283 convert the resulting length to it.
18284 (fold_builtin_1): Adjust.
18286 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18288 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18289 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18291 (num_insns_constant_wide): Adjust for that change.
18293 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18296 * web.c (union_defs): Add used argument, to combine uses of
18297 uninitialized regs.
18298 (entry_register): Adjust type and tests of used argument.
18299 (web_main): Widen used for new use. Pass it to union_defs.
18300 * df.h (union_defs): Adjust prototype.
18302 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18305 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18306 uses in new incoming argument. Free body.
18307 (reset_debug_uses_in_loop): New.
18308 (analyze_insn_to_expand_var): Call the latter if the former found
18309 anything. Fix whitespace. Reject invalid dest overlaps before
18310 going through all insns in the loop.
18312 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18315 * haifa-sched.c (dying_use_p): Debug insns don't count.
18317 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18319 PR middle-end/42363
18320 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18321 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18322 (verify_gimple_call): Reject LHS in noreturn calls.
18324 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18328 * tree-vect-loop-manip.c (adjust_info): New type.
18329 (adjust_vec): New pointer to vector.
18330 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18331 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18332 (slpeel_update_phis_for_duplicate_loop): Use them.
18333 (slpeel_update_phi_nodes_for_guard1): Likewise.
18334 (slpeel_update_phi_nodes_for_guard2): Likewise.
18335 (slpeel_tree_peel_loop_to_edge): Likewise.
18336 (vect_update_ivs_after_vectorizer): Likewise.
18338 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18340 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18341 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18343 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
18345 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18346 bogus uninitialized warning.
18348 2010-01-09 Richard Guenther <rguenther@suse.de>
18350 PR middle-end/42512
18351 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18352 the evolution is compatible with the initial condition.
18354 2010-01-09 Jakub Jelinek <jakub@redhat.com>
18356 * gcc.c (process_command): Update copyright notice dates.
18357 * gcov.c (print_version): Likewise.
18358 * gcov-dump.c (print_version): Likewise.
18359 * mips-tfile.c (main): Likewise.
18360 * mips-tdump.c (main): Likewise.
18362 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
18365 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18367 (rotlhi3_8): Delete.
18369 (rotlsi3_8): Delete.
18370 (rotlsi3_16): Delete.
18371 (rotlsi3_24): Delete.
18372 (rotl<mode>3): New.
18373 (*rotw<mode>3): New.
18374 (*rotb<mode>3): New.
18375 * config/avr/avr.c (avr_rotate_bytes): New function.
18376 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18378 2010-01-08 Steve Ellcey <sje@cup.hp.com>
18381 * configure.ac: Modify -rdynamic check.
18382 * configure: Regenerate.
18384 2010-01-08 DJ Delorie <dj@redhat.com>
18386 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18387 register popping order.
18389 2010-01-08 Richard Guenther <rguenther@suse.de>
18392 * c.opt (fsigned-char): Also let LTO handle this option.
18393 (funsigned-char): Likewise.
18395 2010-01-07 Richard Guenther <rguenther@suse.de>
18397 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18398 (gimple_op): Likewise.
18399 (gimple_op_ptr): Likewise.
18400 (gimple_assign_set_lhs): Remove gcc_assert.
18401 (gimple_assign_set_rhs1): Likewise.
18402 (gimple_assign_set_rhs2): Likewise.
18403 (gimple_call_set_lhs): Likewise.
18404 (gimple_call_set_fn): Likewise.
18405 (gimple_call_set_fndecl): Likewise.
18406 (gimple_call_fndecl): Likewise.
18407 (gimple_call_return_type): Likewise.
18408 (gimple_call_set_chain): Likewise.
18409 (gimple_call_num_args): Likewise.
18410 (gimple_call_set_arg): Likewise.
18411 (gimple_cond_set_code): Likewise.
18412 (gimple_cond_set_lhs): Likewise.
18413 (gimple_cond_set_rhs): Likewise.
18414 (gimple_cond_set_true_label): Likewise.
18415 (gimple_cond_set_false_label): Likewise.
18416 (gimple_label_set_label): Likewise.
18417 (gimple_goto_set_dest): Likewise.
18418 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18419 (gimple_debug_bind_get_value): Likewise.
18420 (gimple_debug_bind_get_value_ptr): Likewise.
18421 (gimple_debug_bind_set_var): Likewise.
18422 (gimple_debug_bind_set_value): Likewise.
18423 (gimple_debug_bind_reset_value): Likewise.
18424 (gimple_debug_bind_has_value_p): Likewise.
18425 (gimple_return_retval_ptr): Remove gcc_assert.
18426 (gimple_return_retval): Likewise.
18427 (gimple_return_set_retval): Likewise.
18428 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18429 (safe_referenced_var_iterator): Remove.
18430 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18431 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18432 (fill_referenced_var_vec): Remove.
18433 (first_readonly_imm_use): Remove redundant gcc_assert.
18434 (phi_arg_index_from_use): Combine gcc_asserts.
18435 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18436 (first_imm_use_stmt): Remove redundant gcc_assert.
18437 * tree-cfg.c (verify_gimple_call): Verify function and chain
18438 operands. Verify arguments.
18439 (verify_types_in_gimple_stmt): Verify condition code and labels.
18441 2010-01-07 Richard Guenther <rguenther@suse.de>
18443 PR tree-optimization/42641
18444 * sese.c (rename_map_elt_info): Use the SSA name version, do
18447 2010-01-07 Jakub Jelinek <jakub@redhat.com>
18449 PR tree-optimization/42625
18450 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18451 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18453 2010-01-07 Duncan Sands <baldrick@free.fr>
18455 * Makefile.in (PLUGIN_HEADERS): Add version.h.
18457 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
18460 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18461 note itself is not function_invariant_p.
18463 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
18465 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18466 Do not add the DF_NOTE problem.
18467 * store-motion.c (execute_rtl_store_motion): Likewise.
18469 2010-01-07 Martin Jambor <mjambor@suse.cz>
18471 PR tree-optimization/42157
18472 * tree-sra.c (compare_access_positions): Stabilize sort if both
18473 accesses have integer types, return zero immediately if they are the
18476 2010-01-06 Richard Henderson <rth@redhat.com>
18478 PR middle-end/41883
18479 * haifa-sched.c (add_to_note_list): Merge into ...
18480 (concat_note_lists): ... here, and ...
18481 (unlink_other_notes, rm_other_notes): Merge into...
18482 (remove_notes): ... here. Create REG_SAVE_NOTEs for
18483 NOTE_INSN_EPILOGUE_BEG.
18485 2010-01-06 Richard Guenther <rguenther@suse.de>
18487 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18488 not inline regular functions into always-inline functions.
18490 2010-01-06 Nick Clifton <nickc@redhat.com>
18492 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18493 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18495 (OVERRIDE_OPTIONS): Delete.
18496 (OPTIMIZATION_OPTIONS): Define.
18497 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18498 * config/rx/rx.c (rx_handle_option): Issue an error message if
18499 -mcpu=rx200 and -fpu are used together.
18500 (rx_set_optimization_options): New function. Issue an error
18501 message if an optimization attribute attempts to reset the FPU/
18502 math optimization pairing.
18503 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18504 * config/rx/rx.opt: Set the default to 32-bit doubles.
18505 * config/rx/t-rx: Add multilibs for -nofpu option.
18506 * doc/invoke.texi: Update documentation of RX options.
18508 2010-01-06 Richard Guenther <rguenther@suse.de>
18510 * tree-ssa-pre.c (name_to_id): New global.
18511 (alloc_expression_id): Simplify SSA name handling.
18512 (lookup_expression_id): Likewise.
18513 (init_pre): Zero name_to_id.
18514 (fini_pre): Free it.
18516 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
18518 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18520 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
18523 * config/i386/sse.md (smaxv2di3): New.
18524 (umaxv2di3): Likewise.
18525 (sminv2di3): Likewise.
18526 (uminv2di3): Likewise.
18528 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
18531 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18532 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18533 (legitimize_tls_address): Likewise.
18534 (sparc_tls_referenced_p): Likewise.
18535 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18536 and adjust calls to legitimize_pic_address.
18537 (legitimate_constant_p) Use sparc_tls_referenced_p.
18538 (legitimate_pic_operand_p): Likewise.
18539 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18540 (sparc_tls_symbol_ref_1): Delete.
18541 (sparc_tls_referenced_p): Make static, recognize specific patterns.
18542 (legitimize_tls_address): Make static, handle CONST patterns.
18543 (legitimize_pic_address): Make static, remove unused parameter and
18544 adjust recursive calls.
18545 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18546 and adjust call to legitimize_pic_address.
18547 (sparc_output_mi_thunk): Likewise.
18549 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
18550 H.J. Lu <hongjiu.lu@intel.com>
18553 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18554 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18555 operands to make them signed.
18558 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18561 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18562 GTU to GT for V4SI and V2DI.
18564 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18565 (umin<mode>3): Removed.
18567 (uminv4si3): Likewise.
18569 2010-01-05 Martin Jambor <mjambor@suse.cz>
18571 PR tree-optimization/42462
18572 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18573 current_function_decl to helper functions and macros.
18575 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18578 * flags.h: Don't include real.h.
18579 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18580 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18581 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18582 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18583 * dominance.c: Update copyright.
18584 * gimple.c (walk_gimple_op): Remove inline.
18585 * tree-ssa-reassoc.c: Include real.h.
18586 * Makefile.in (FLAGS_H): Remove $(REAL_H).
18587 (tree-ssa-reassoc.o): Depend on $(REAL_H).
18589 2010-01-05 Nick Clifton <nickc@redhat.com>
18591 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18592 register to push into the stack frame when the accumulator has to
18593 be saved during interrupts.
18595 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
18597 * doc/invoke.texi: Remove the documentation about option
18598 -Wunreachable-code.
18599 * common.opt (Wunreachable-code): Preserved for backward
18601 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18602 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18603 the backward compatibility flag section.
18605 2010-01-05 Richard Guenther <rguenther@suse.de>
18607 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18609 2010-01-05 Jakub Jelinek <jakub@redhat.com>
18612 * cfgexpand.c (expand_one_var): Diagnose too large variables.
18614 PR tree-optimization/42508
18615 * tree-sra.c (convert_callers): Check for recursive call
18616 by comparing cgraph nodes instead of decls.
18617 (modify_function): Call ipa_modify_formal_parameters also
18618 on all same_body aliases.
18620 * cgraphunit.c (cgraph_materialize_all_clones): Compare
18621 cgraph nodes when checking for same_body aliases.
18623 2010-01-05 Richard Guenther <rguenther@suse.de>
18625 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18626 allocation and lookup.
18627 (get_or_alloc_expr_for_constant): Likewise.
18628 (phi_translate): Sink allocation.
18630 2010-01-04 Richard Guenther <rguenther@suse.de>
18632 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18633 a new entry only if needed.
18634 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18635 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18637 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18639 (phi_translate): Handle CONSTANTs early.
18641 2010-01-04 Martin Jambor <mjambor@suse.cz>
18643 PR tree-optimization/42398
18644 * tree-sra.c (struct access): Removed flag grp_different_types.
18645 (dump_access): Do not dump the removed flag.
18646 (sort_and_splice_var_accesses): Do not set the removed flag.
18647 (sra_modify_expr): Check for type compatibility directly.
18649 2010-01-04 Martin Jambor <mjambor@suse.cz>
18651 PR tree-optimization/42366
18652 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18653 edges with variable number of parameters.
18654 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18655 flag instead of asserting it.
18656 (ipa_read_node_info): Read uses_analysis_done flag.
18658 2010-01-04 Richard Guenther <rguenther@suse.de>
18660 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18661 iterative_hash_* as intended.
18662 (vn_reference_compute_hash): Likewise. Simplify hashing
18664 (vn_reference_lookup_2): Likewise.
18665 (vn_nary_op_compute_hash): Likewise.
18666 (vn_phi_compute_hash): Likewise.
18667 (expressions_equal_p): Remove strange code.
18668 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18669 (pre_expr_hash): Likewise. Simplify hashing SSA names.
18670 (bitmap_insert_into_set_1): Take value-id as parameter.
18671 (add_to_value): Pass it.
18672 (bitmap_insert_into_set): Likewise.
18673 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
18675 2010-01-04 Jakub Jelinek <jakub@redhat.com>
18678 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18679 (do_self_spec): For switches with SWITCH_IGNORE set set also
18680 SWITCH_IGNORE_PERMANENTLY.
18681 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18684 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
18686 * lto-streamer-out.c (output_unreferenced_globals): Output the full
18687 tree of an unreferenced global var.
18689 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18692 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18693 GTU to GT for V4SI and V2DI.
18695 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18696 (umin<mode>3): Removed.
18698 (uminv4si3): Likewise.
18700 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
18703 * collect2.c (main): Turn on trace in collect2 if -v is passed
18706 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
18708 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
18709 description of expression operand.
18711 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
18713 * configure.ac: Add install-html to target_list for Make-hooks.
18714 * configure: Regenerate.
18715 * fortran/Make-lang.in (F95_HTMLFILES): New.
18716 (fortran.html): Use it.
18717 (fortran.install-html): New.
18718 * Makefile.in (install-html): Add lang.install-html.
18719 * java/Make-lang.in (JAVA_HTMLFILES): New.
18720 (java.html): Use it.
18721 (java.install-html): New.
18722 * objc/Make-lang.in (objc.install-html): New.
18723 * objcp/Make-lang.in (obj-c++.install-html): New.
18724 * cp/Make-lang.in (c++.install-html): New.
18725 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18726 * lto/Make-lang.in (lto.install-html): New.
18728 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18731 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18733 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
18735 PR rtl-optimization/41862
18736 * store-motion.c (store_killed_in_insn, compute_store_table,
18737 remove_reachable_equiv_notes, replace_store_insn,
18738 build_store_vectors): Ignore all DEBUG_INSNs.
18740 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
18743 * common.opt: Add dumpdir.
18745 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18747 (option_map): Add --dumpdir.
18749 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18751 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18753 * opts.c (decode_options): Try dump_dir_name first if
18754 dump_base_name isn't an absolute path.
18755 (common_handle_option): Handle OPT_dumpdir.
18757 * toplev.c (dump_dir_name): New.
18758 (print_switch_values): Also ignore -dumpdir.
18760 * toplev.h (dump_dir_name): New.
18762 2010-01-03 Richard Guenther <rguenther@suse.de>
18764 PR tree-optimization/42589
18765 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18766 double-word expansion of bswap32.
18768 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
18770 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18771 with BLOCK_FOR_INSN.
18772 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18773 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18774 noce_process_if_block): Likewise.
18775 * gcse.c (compute_local_properties, insert_expr_in_table,
18776 insert_set_in_table, canon_list_insert, find_avail_set,
18777 pre_insert_copy_insn): Likewise.
18779 * basic-block.h (BLOCK_NUM): Move from here...
18780 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18782 2010-01-03 Richard Guenther <rguenther@suse.de>
18784 PR tree-optimization/42438
18785 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18786 contains_may_not_return_call flag.
18787 (BB_MAY_NOTRETURN): New.
18788 (valid_in_sets): Trapping nary operations are not valid
18789 in blocks that may not return.
18790 (insert_into_preds_of_block): Remove check for trapping expressions.
18791 (compute_avail): Compute also BB_MAY_NOTRETURN.
18793 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
18795 * doc/invoke.texi: Add 2010 to copyright years.
18797 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
18799 * config/sparc/sparc.c: Fix formatting nits.
18801 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
18802 Alexander Monakov <amonakov@ispras.ru>
18804 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18806 2010-01-02 Richard Guenther <rguenther@suse.de>
18808 PR middle-end/42577
18809 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18810 (simplify_switch_using_ranges): Mark to be removed edges
18813 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18815 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18817 * collect2.c (scan_libraries): Add missing argument in call to
18820 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
18823 * config/alpha/predicates.md (aligned_memory_operand): Return false
18825 (unaligned_memory_operand): Return true for CQImode.
18826 * config/alpha/alpha.c (get_aligned_mem): Assert that location
18827 doesn not cross aligned SImode word boundary.
18829 2010-01-02 Anatoly Sokolov <aesok@post.ru>
18831 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18833 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18834 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18836 2010-01-02 Richard Guenther <rguenther@suse.de>
18839 * toplev.c (compile_file): Emit LTO marker properly. Change
18840 it to __gnu_lto_v1.
18841 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18843 2010-01-01 Richard Guenther <rguenther@suse.de>
18846 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18848 2010-01-01 Richard Guenther <rguenther@suse.de>
18851 * c-decl.c (grokdeclarator): For zero-size arrays force
18852 structural equality checks as layout_type does.
18854 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18856 * builtins.c: Update copyright to 2010.
18858 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
18861 * lto-streamer-out.c (produce_asm): Revert the last change.
18862 (copy_function): Likewise.
18864 * lto-streamer.c (lto_get_section_name): Skip any leading
18867 2010-01-01 Richard Guenther <rguenther@suse.de>
18869 PR middle-end/42559
18870 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18874 Copyright (C) 2010 Free Software Foundation, Inc.
18876 Copying and distribution of this file, with or without modification,
18877 are permitted in any medium without royalty provided the copyright
18878 notice and this notice are preserved.