This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Bug fix for execute/920302-1.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: Bug fix for execute/920302-1.c
- From: Joern Rennecke <amylaar at cambridge dot redhat dot com>
- Date: Wed, 31 Jan 2001 04:46:37 +0000 (GMT)
- Cc: amylaar at cambridge dot redhat dot com
main passes an integer where it should be passing a pointer.
Wed Jan 31 04:41:42 2001 J"orn Rennecke <amylaar@redhat.com>
* Cast 0 to pointer.
Index: gcc.c-torture/execute/920302-1.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/testsuite/gcc.c-torture/execute/920302-1.c,v
retrieving revision 1.10
diff -p -r1.10 920302-1.c
*** 920302-1.c 1998/11/11 05:56:45 1.10
--- 920302-1.c 2001/01/31 04:41:33
*************** short p[5];
*** 30,36 ****
main ()
{
! execute (0);
p[0] = optab[1];
p[1] = optab[0];
p[2] = optab[1];
--- 30,36 ----
main ()
{
! execute ((short *) 0);
p[0] = optab[1];
p[1] = optab[0];
p[2] = optab[1];