public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set
@ 2005-07-26  6:36 tong_ho at yahoo dot com
  2005-07-26 12:54 ` [Bug target/23070] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: tong_ho at yahoo dot com @ 2005-07-26  6:36 UTC (permalink / raw)
  To: gcc-bugs

When a prototyped function of var-arg is called without any arguments
to the variable part, "crxor 6,6,6" is not generated.  "-O0
-mno-prototype" does NOT resolve the problem either.

--------test.c--------
int test(const char *a, ...);

void test1(const char *a)
{ test(a, 0); }

void test2(const char *a)
{ test(a); }

--------test.s--------
        .file   "test.c"
        .section        ".text"
        .align 2
        .globl test1
        .type   test1, @function
test1:
        stwu 1,-24(1)
        mflr 0
        stw 31,20(1)
        stw 0,28(1)
        mr 31,1
        stw 3,8(31)
        lwz 3,8(31)
        li 4,0
        crxor 6,6,6    <== has it
        bl test
        lwz 11,0(1)
        lwz 0,4(11)
        mtlr 0
        lwz 31,-4(11)
        mr 1,11
        blr
        .size   test1, .-test1
        .align 2
        .globl test2
        .type   test2, @function
test2:
        stwu 1,-24(1)
        mflr 0
        stw 31,20(1)
        stw 0,28(1)
        mr 31,1
        stw 3,8(31)
        lwz 3,8(31)
        bl test       <== does not have
        lwz 11,0(1)
        lwz 0,4(11)
        mtlr 0
        lwz 31,-4(11)
        mr 1,11
        blr
        .size   test2, .-test2
        .ident  "GCC: (GNU) 3.4.3"

-- 
           Summary: CALL_V4_CLEAR_FP_ARGS flag not properly set
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tong_ho at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: powerpc-eabi-gcc


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
@ 2005-07-26 12:54 ` pinskia at gcc dot gnu dot org
  2005-08-19  4:04 ` amodra at bigpond dot net dot au
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-26 12:54 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c                           |target


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
  2005-07-26 12:54 ` [Bug target/23070] " pinskia at gcc dot gnu dot org
@ 2005-08-19  4:04 ` amodra at bigpond dot net dot au
  2005-08-19  4:07 ` amodra at bigpond dot net dot au
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-19  4:04 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-08-19 03:21 -------
Confirmed

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
      Known to fail|                            |4.0.2 4.1.0
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-19 03:21:14
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
  2005-07-26 12:54 ` [Bug target/23070] " pinskia at gcc dot gnu dot org
  2005-08-19  4:04 ` amodra at bigpond dot net dot au
@ 2005-08-19  4:07 ` amodra at bigpond dot net dot au
  2005-08-20  0:54 ` amodra at bigpond dot net dot au
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-19  4:07 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |amodra at bigpond dot net
                   |dot org                     |dot au
             Status|NEW                         |ASSIGNED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
                   ` (2 preceding siblings ...)
  2005-08-19  4:07 ` amodra at bigpond dot net dot au
@ 2005-08-20  0:54 ` amodra at bigpond dot net dot au
  2005-08-23  1:01 ` cvs-commit at gcc dot gnu dot org
  2005-08-23  2:40 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: amodra at bigpond dot net dot au @ 2005-08-20  0:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From amodra at bigpond dot net dot au  2005-08-20 00:21 -------
http://gcc.gnu.org/ml/gcc-patches/2005-08/msg01201.html

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
                   ` (3 preceding siblings ...)
  2005-08-20  0:54 ` amodra at bigpond dot net dot au
@ 2005-08-23  1:01 ` cvs-commit at gcc dot gnu dot org
  2005-08-23  2:40 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23  1:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-23 00:34 -------
Subject: Bug 23070

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	amodra@gcc.gnu.org	2005-08-23 00:33:19

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: rs6000.c sysv4.opt 

Log message:
	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.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.9800&r2=2.9801
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&r1=1.860&r2=1.861
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/sysv4.opt.diff?cvsroot=gcc&r1=1.5&r2=1.6



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug target/23070] CALL_V4_CLEAR_FP_ARGS flag not properly set
  2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
                   ` (4 preceding siblings ...)
  2005-08-23  1:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-23  2:40 ` cvs-commit at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-23  2:40 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-08-23 02:29 -------
Subject: Bug 23070

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-4_0-branch
Changes by:	amodra@gcc.gnu.org	2005-08-23 02:28:19

Modified files:
	gcc            : ChangeLog 
	gcc/config/rs6000: rs6000.c sysv4.h 

Log message:
	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.h (SUBTARGET_SWITCHES): Describe
	-mprototype and -mno-prototype.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=2.7592.2.382&r2=2.7592.2.383
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.788.2.7&r2=1.788.2.8
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/sysv4.h.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.158.4.2&r2=1.158.4.3



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23070


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-08-23  2:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-26  6:36 [Bug c/23070] New: CALL_V4_CLEAR_FP_ARGS flag not properly set tong_ho at yahoo dot com
2005-07-26 12:54 ` [Bug target/23070] " pinskia at gcc dot gnu dot org
2005-08-19  4:04 ` amodra at bigpond dot net dot au
2005-08-19  4:07 ` amodra at bigpond dot net dot au
2005-08-20  0:54 ` amodra at bigpond dot net dot au
2005-08-23  1:01 ` cvs-commit at gcc dot gnu dot org
2005-08-23  2:40 ` cvs-commit at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).