Commit c1fa753e by Alan Modra Committed by Alan Modra

re PR target/23070 ([3.4 only] CALL_V4_CLEAR_FP_ARGS flag not properly set)

	PR target/23070
	* config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
	stdarg functions, set/clear the fp marker even when no variable
	args are passed.
	* config/rs6000/sysv4.opt (mprototype): Describe.

From-SVN: r103375
parent a0940ff6
2005-08-23 Alan Modra <amodra@bigpond.net.au>
PR target/23070
* config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
stdarg functions, set/clear the fp marker even when no variable
args are passed.
* config/rs6000/sysv4.opt (mprototype): Describe.
2005-08-22 Jakub Jelinek <jakub@redhat.com> 2005-08-22 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/23478 PR rtl-optimization/23478
......
...@@ -4997,9 +4997,10 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode, ...@@ -4997,9 +4997,10 @@ function_arg (CUMULATIVE_ARGS *cum, enum machine_mode mode,
if (mode == VOIDmode) if (mode == VOIDmode)
{ {
if (abi == ABI_V4 if (abi == ABI_V4
&& cum->nargs_prototype < 0
&& (cum->call_cookie & CALL_LIBCALL) == 0 && (cum->call_cookie & CALL_LIBCALL) == 0
&& (cum->prototype || TARGET_NO_PROTOTYPE)) && (cum->stdarg
|| (cum->nargs_prototype < 0
&& (cum->prototype || TARGET_NO_PROTOTYPE))))
{ {
/* For the SPE, we need to crxor CR6 always. */ /* For the SPE, we need to crxor CR6 always. */
if (TARGET_SPE_ABI) if (TARGET_SPE_ABI)
......
...@@ -76,7 +76,7 @@ no description yet ...@@ -76,7 +76,7 @@ no description yet
mprototype mprototype
Target Mask(PROTOTYPE) Target Mask(PROTOTYPE)
no description yet Assume all variable arg functions are prototyped
;; FIXME: Does nothing. ;; FIXME: Does nothing.
mno-traceback mno-traceback
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment