This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug fix for execute/920302-1.c


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];

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]