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]

Re: Bug fix for execute/920302-1.c


> Actually, I take that back.  Make it match by changing the
> type of "ip" to short.  We can't guarantee a nonnegative 
> relation between x and y or z.

Ok, I have checked this in:

Wed Feb 14 21:31:25 2001  J"orn Rennecke <amylaar@redhat.com>

	* gcc.c-torture/execute/920302-1.c (execute):
	Change argument type to short.

Index: gcc.c-torture/execute/920302-1.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/testsuite/gcc.c-torture/execute/920302-1.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -p -r1.3 -r1.4
*** 920302-1.c	2001/01/31 12:25:44	1.3
--- 920302-1.c	2001/02/14 21:34:52	1.4
***************
*** 1,7 ****
  short optab[5];
  char buf[10];
  execute (ip)
!      register unsigned short *ip;
  {
  #ifndef NO_LABEL_VALUES
    register void *base = &&x;
--- 1,7 ----
  short optab[5];
  char buf[10];
  execute (ip)
!      register short *ip;
  {
  #ifndef NO_LABEL_VALUES
    register void *base = &&x;
*************** short p[5];
*** 30,36 ****
  
  main ()
  {
!   execute ((unsigned short *) 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]