public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
@ 2003-06-02 2:26 ` dhazeghi@yahoo.com
2003-06-03 13:03 ` nickc@redhat.com
` (7 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-02 2:26 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
dhazeghi@yahoo.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |nickc@redhat.com
GCC build triplet| |i686-pc-linux-gnu
GCC host triplet| |i686-pc-linux-gnu
GCC target triplet| |v850-elf
------- Additional Comments From dhazeghi@yahoo.com 2003-06-02 02:26 -------
Nick,
would you mind having a brief look at this bug report? It seems to be a pretty old one which may
no longer even be present, but it also includes a patch... Thanks,
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
2003-06-02 2:26 ` [Bug target/6431] [v850] va_arg() fails in expanding arguments dhazeghi@yahoo.com
@ 2003-06-03 13:03 ` nickc@redhat.com
2003-06-03 17:22 ` dhazeghi@yahoo.com
` (6 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: nickc@redhat.com @ 2003-06-03 13:03 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
------- Additional Comments From nickc@redhat.com 2003-06-03 13:03 -------
Subject: Re: [v850] va_arg() fails in expanding arguments
Hi Dara,
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
> Nick,
>
> would you mind having a brief look at this bug report? It seems to
> be a pretty old one which may no longer even be present, but it also
> includes a patch... Thanks,
Unfortunately the v850 port does not even build at the moment, so I
cannot test the patch. Once I have fixed the build problems I will
have a look at it though, OK ?
Cheers
Nick
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
2003-06-02 2:26 ` [Bug target/6431] [v850] va_arg() fails in expanding arguments dhazeghi@yahoo.com
2003-06-03 13:03 ` nickc@redhat.com
@ 2003-06-03 17:22 ` dhazeghi@yahoo.com
2003-06-04 10:05 ` markku.pihlajamaa@luukku.com
` (5 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-03 17:22 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
------- Additional Comments From dhazeghi@yahoo.com 2003-06-03 17:22 -------
Thanks, sounds good... I'll leave it in WAITING in case the submitter can confirm it's fixed on
previous versions.
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (2 preceding siblings ...)
2003-06-03 17:22 ` dhazeghi@yahoo.com
@ 2003-06-04 10:05 ` markku.pihlajamaa@luukku.com
2003-06-04 10:58 ` dhazeghi@yahoo.com
` (4 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: markku.pihlajamaa@luukku.com @ 2003-06-04 10:05 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
------- Additional Comments From markku.pihlajamaa@luukku.com 2003-06-04 10:04 -------
Thank you. I have just been able to try with 3.1.1.,
and as far as I understand it seems to be O.K.
Regards,
Markku
***************************************************
#include <stdarg.h>
extern int out ( int );
void test( int parc, ... )
{
va_list list;
va_start( list, parc );
while( parc )
{
int i;
i = va_arg( list, int );
out( i );
parc --;
}
va_end( list );
}
int main( void )
{
test( 4, 1, 2, 3, 4 );
return 0;
}
************************************************************
.file "va_arg.c"
gcc2_compiled.:
.section .text
.align 1
.global _test
.type _test,@function
_test:
st.w r6,0[sp]
st.w r7,4[sp]
st.w r8,8[sp]
st.w r9,12[sp]
addi -36,sp,sp
st.w r31,32[sp]
st.w r28,28[sp]
st.w r29,24[sp]
mov sp,r29
st.w r6,36[r29]
addi 40,r29,r10
st.w r10,20[r29]
.L3:
ld.w 36[r29],r10
cmp r0,r10
bne .L5
br .L4
.L5:
ld.w 20[r29],r28
ld.w 20[r29],r10
addi 4,r10,r11
st.w r11,20[r29]
ld.w 0[r28],r10
st.w r10,16[r29]
ld.w 16[r29],r6
jarl _out,r31
ld.w 36[r29],r10
addi -1,r10,r11
st.w r11,36[r29]
br .L3
.L4:
.L2:
mov r29,sp
ld.w 32[sp],r31
ld.w 28[sp],r28
ld.w 24[sp],r29
addi 36,sp,sp
jmp [r31]
.Lfe1:
.size _test,.Lfe1-_test
.align 1
.global _main
.type _main,@function
_main:
addi -28,sp,sp
st.w r31,24[sp]
st.w r29,20[sp]
mov sp,r29
mov 4,r10
st.w r10,16[sp]
mov 4,r6
mov 1,r7
mov 2,r8
mov 3,r9
jarl _test,r31
mov 0,r10
br .L6
.L6:
mov r29,sp
ld.w 24[sp],r31
ld.w 20[sp],r29
addi 28,sp,sp
jmp [r31]
.Lfe2:
.size _main,.Lfe2-_main
.ident "GCC: (GNU) 2.96-xscale-010827"
***********************************************************
.file "va_arg.c"
.section .text
.align 1
.global _test
.type _test,@function
_test:
st.w r6,0[sp]
st.w r7,4[sp]
st.w r8,8[sp]
st.w r9,12[sp]
addi -32,sp,sp
st.w r31,28[sp]
st.w r29,24[sp]
mov sp,r29
st.w r6,32[r29]
addi 36,r29,r10
st.w r10,20[r29]
.L2:
ld.w 32[r29],r10
cmp r0,r10
bne .L4
br .L1
.L4:
ld.w 20[r29],r11
addi 4,r11,r10
st.w r10,20[r29]
ld.w 0[r11],r10
st.w r10,16[r29]
ld.w 16[r29],r6
jarl _out,r31
ld.w 32[r29],r10
add -1,r10
st.w r10,32[r29]
br .L2
.L1:
mov r29,sp
ld.w 28[sp],r31
ld.w 24[sp],r29
addi 32,sp,sp
jmp [r31]
.Lfe1:
.size _test,.Lfe1-_test
.align 1
.global _main
.type _main,@function
_main:
addi -28,sp,sp
st.w r31,24[sp]
st.w r29,20[sp]
mov sp,r29
mov 4,r10
st.w r10,16[sp]
mov 4,r6
mov 1,r7
mov 2,r8
mov 3,r9
jarl _test,r31
mov 0,r10
mov r29,sp
ld.w 24[sp],r31
ld.w 20[sp],r29
addi 28,sp,sp
jmp [r31]
.Lfe2:
.size _main,.Lfe2-_main
.ident "GCC: (GNU) 3.1.1"
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (3 preceding siblings ...)
2003-06-04 10:05 ` markku.pihlajamaa@luukku.com
@ 2003-06-04 10:58 ` dhazeghi@yahoo.com
2003-06-27 3:25 ` pinskia at physics dot uc dot edu
` (3 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: dhazeghi@yahoo.com @ 2003-06-04 10:58 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
------- Additional Comments From dhazeghi@yahoo.com 2003-06-04 10:58 -------
Thanks for the feedback. I think we should leave this open until v850 bootstraps, and Nick can
make certain the problem is fixed. Thanks,
Dara
P.S. Nick, if you disagree, feel free to close this report.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (4 preceding siblings ...)
2003-06-04 10:58 ` dhazeghi@yahoo.com
@ 2003-06-27 3:25 ` pinskia at physics dot uc dot edu
2003-08-11 18:49 ` dhazeghi at yahoo dot com
` (2 subsequent siblings)
8 siblings, 0 replies; 9+ messages in thread
From: pinskia at physics dot uc dot edu @ 2003-06-27 3:25 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
pinskia at physics dot uc dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Last reconfirmed|0000-00-00 00:00:00 |2003-06-27 03:25:33
date| |
------- Additional Comments From pinskia at physics dot uc dot edu 2003-06-27 03:25 -------
v850 does not build now but the patch does fix the problem in 3.1.1 si I am changing this
to new.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (5 preceding siblings ...)
2003-06-27 3:25 ` pinskia at physics dot uc dot edu
@ 2003-08-11 18:49 ` dhazeghi at yahoo dot com
2003-08-12 13:32 ` nickc at redhat dot com
2003-08-12 13:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: dhazeghi at yahoo dot com @ 2003-08-11 18:49 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC|dhazeghi at yahoo dot com |
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
------- Additional Comments From dhazeghi at yahoo dot com 2003-08-11 18:49 -------
Now that v850-elf builds again, it looks like 3.4 produces identical asm to
3.1.1 for this testcase. Nick, does this mean this problem is fixed?
Thanks,
Dara
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (6 preceding siblings ...)
2003-08-11 18:49 ` dhazeghi at yahoo dot com
@ 2003-08-12 13:32 ` nickc at redhat dot com
2003-08-12 13:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: nickc at redhat dot com @ 2003-08-12 13:32 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
------- Additional Comments From nickc at redhat dot com 2003-08-12 13:32 -------
Subject: Re: [v850] va_arg() fails in expanding arguments
Hi Dara,
> Now that v850-elf builds again, it looks like 3.4 produces identical
> asm to 3.1.1 for this testcase. Nick, does this mean this problem
> is fixed?
Yes - this one can be closed.
Cheers
Nick
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/6431] [v850] va_arg() fails in expanding arguments
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
` (7 preceding siblings ...)
2003-08-12 13:32 ` nickc at redhat dot com
@ 2003-08-12 13:35 ` pinskia at gcc dot gnu dot org
8 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2003-08-12 13:35 UTC (permalink / raw)
To: gcc-bugs
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=6431
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |3.4
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-08-12 13:35 -------
Closing as this is fixed on the mainline.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2003-08-12 13:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20020423111601.6431.markku.pihlajamaa@luukku.com>
2003-06-02 2:26 ` [Bug target/6431] [v850] va_arg() fails in expanding arguments dhazeghi@yahoo.com
2003-06-03 13:03 ` nickc@redhat.com
2003-06-03 17:22 ` dhazeghi@yahoo.com
2003-06-04 10:05 ` markku.pihlajamaa@luukku.com
2003-06-04 10:58 ` dhazeghi@yahoo.com
2003-06-27 3:25 ` pinskia at physics dot uc dot edu
2003-08-11 18:49 ` dhazeghi at yahoo dot com
2003-08-12 13:32 ` nickc at redhat dot com
2003-08-12 13:35 ` pinskia 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).