OSDN Git Service

Fix uninitialized register read problem.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Aug 2005 21:16:20 +0000 (21:16 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 19 Aug 2005 21:16:20 +0000 (21:16 +0000)
commite3e15c5036b12588b204fe8c833bb64b125b504b
tree55e2e2c24495c8b4969b117a3885bd5993b55286
parent945b33d4c61a385dbd5cc09e1398a1cf249b765e
Fix uninitialized register read problem.
* builtins.c (expand_builtin_return_addr): Set
current_function_accesses_prior_frames when count != 0.  Use
frame_pointer_rtx when count == 0.
* function.h (struct function): Add accesses_prior_frames field.
(current_function_accesses_prior_frames): Define.
* reload1.c (init_elim_table): Check
current_function_accesses_prior_frames.
* doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@103294 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/builtins.c
gcc/doc/tm.texi
gcc/function.h
gcc/reload1.c