* Re: PATCH: obvious: testsuite/gdb.base/funcargs.c: fix declaration
@ 2002-02-10 20:48 Michael Elizabeth Chastain
0 siblings, 0 replies; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2002-02-10 20:48 UTC (permalink / raw)
To: gdb-patches
Committed.
Michael C
===
2002-02-10 Michael Chastain <mec@shout.net>
* gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
(call_after_alloca): Ditto.
^ permalink raw reply [flat|nested] 3+ messages in thread
* PATCH: obvious: testsuite/gdb.base/funcargs.c: fix declaration
@ 2002-02-10 20:42 Michael Elizabeth Chastain
2002-02-11 7:50 ` Fernando Nasser
0 siblings, 1 reply; 3+ messages in thread
From: Michael Elizabeth Chastain @ 2002-02-10 20:42 UTC (permalink / raw)
To: gdb-patches
These declarations have been broken for a long time. The prototyped
declarations were already correct; the non-prototyped declarations
were just plain wrong.
Gcc HEAD just started complaining this week, causing a bunch of
ERRORs and WRANINGs.
Tested on native i686-pc-linux-gnulibc2.2-rh7.2 with gcc 3.0.2 and gcc HEAD.
This fixes half of PR gdb/348.
I'm committing this as obvious.
Michael Elizabeth Chastain
<mailto:mec@shout.net>
"love without fear"
===
2002-02-10 Michael Chastain <mec@shout.net>
* gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
(call_after_alloca): Ditto.
Index: testsuite/gdb.base/funcargs.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/funcargs.c,v
retrieving revision 1.1.1.2
diff -c -3 -p -r1.1.1.2 funcargs.c
*** funcargs.c 1999/06/28 16:03:13 1.1.1.2
--- funcargs.c 2002/02/11 04:40:31
*************** void test_struct_args ()
*** 634,640 ****
#ifdef PROTOTYPES
void localvars_after_alloca (char c, short s, int i, long l)
#else
! int
localvars_after_alloca (c, s, i, l)
char c;
short s;
--- 634,640 ----
#ifdef PROTOTYPES
void localvars_after_alloca (char c, short s, int i, long l)
#else
! void
localvars_after_alloca (c, s, i, l)
char c;
short s;
*************** char c; int i; short s; long l; unsigned
*** 671,677 ****
#ifdef PROTOTYPES
void call_after_alloca (char c, short s, int i, long l)
#else
! int
call_after_alloca (c, s, i, l)
char c;
short s;
--- 671,677 ----
#ifdef PROTOTYPES
void call_after_alloca (char c, short s, int i, long l)
#else
! void
call_after_alloca (c, s, i, l)
char c;
short s;
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: PATCH: obvious: testsuite/gdb.base/funcargs.c: fix declaration
2002-02-10 20:42 Michael Elizabeth Chastain
@ 2002-02-11 7:50 ` Fernando Nasser
0 siblings, 0 replies; 3+ messages in thread
From: Fernando Nasser @ 2002-02-11 7:50 UTC (permalink / raw)
To: Michael Elizabeth Chastain; +Cc: gdb-patches
Thanks Michael.
Fernando
Michael Elizabeth Chastain wrote:
>
> These declarations have been broken for a long time. The prototyped
> declarations were already correct; the non-prototyped declarations
> were just plain wrong.
>
> Gcc HEAD just started complaining this week, causing a bunch of
> ERRORs and WRANINGs.
>
> Tested on native i686-pc-linux-gnulibc2.2-rh7.2 with gcc 3.0.2 and gcc HEAD.
>
> This fixes half of PR gdb/348.
>
> I'm committing this as obvious.
>
> Michael Elizabeth Chastain
> <mailto:mec@shout.net>
> "love without fear"
>
> ===
>
> 2002-02-10 Michael Chastain <mec@shout.net>
>
> * gdb.base/funcargs.c (localvars_after_alloca): Fix return type.
> (call_after_alloca): Ditto.
>
> Index: testsuite/gdb.base/funcargs.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/testsuite/gdb.base/funcargs.c,v
> retrieving revision 1.1.1.2
> diff -c -3 -p -r1.1.1.2 funcargs.c
> *** funcargs.c 1999/06/28 16:03:13 1.1.1.2
> --- funcargs.c 2002/02/11 04:40:31
> *************** void test_struct_args ()
> *** 634,640 ****
> #ifdef PROTOTYPES
> void localvars_after_alloca (char c, short s, int i, long l)
> #else
> ! int
> localvars_after_alloca (c, s, i, l)
> char c;
> short s;
> --- 634,640 ----
> #ifdef PROTOTYPES
> void localvars_after_alloca (char c, short s, int i, long l)
> #else
> ! void
> localvars_after_alloca (c, s, i, l)
> char c;
> short s;
> *************** char c; int i; short s; long l; unsigned
> *** 671,677 ****
> #ifdef PROTOTYPES
> void call_after_alloca (char c, short s, int i, long l)
> #else
> ! int
> call_after_alloca (c, s, i, l)
> char c;
> short s;
> --- 671,677 ----
> #ifdef PROTOTYPES
> void call_after_alloca (char c, short s, int i, long l)
> #else
> ! void
> call_after_alloca (c, s, i, l)
> char c;
> short s;
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-02-11 15:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-02-10 20:48 PATCH: obvious: testsuite/gdb.base/funcargs.c: fix declaration Michael Elizabeth Chastain
-- strict thread matches above, loose matches on Subject: below --
2002-02-10 20:42 Michael Elizabeth Chastain
2002-02-11 7:50 ` Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox