Subject: ARM compiler bug

From: Deborah Wallach <[email-masked]>
Date: Tue, 16 Feb 1999 14:53:51 -0800

Who/what is the right person/place to forward gcc/egcs ARM compiler bugs
to?

We've found a compiler bug which occurs under both egcs and gcc:
- egcs-1.1.1 using the rpms from rawhide.redhat.com
- gcc version 2.8.1

when the optimizer is turned on.  I've narrowed it down to a very small
piece of code, but I don't know where to submit the bug report.  Any
suggestions?

			-Debby

PS  The code sample is included below.  When optimization is off, the code
output is:
Expect 65535, 0, 0  ->  65535 0 0
when optimization is on, the code output is:
Expect 65535, 0, 0  ->  65535 0 1

--------------------------------------------------------------------------

#include <stdio.h>

typedef struct {
  unsigned int beg;
} help1_t;

main()
{
  help1_t foo;

  foo.beg = (unsigned int)(-1);

  printf("Expect 65535, 0, 0  ->  %d %d %d\n",
	 ( (unsigned short)foo.beg ),
	 ( (unsigned short)foo.beg != (unsigned short)65535 ),
	 (
	  ( (unsigned short)foo.beg != (unsigned short)65535 )
	  && 
	  ( (unsigned short)foo.beg != (unsigned short)65535 )
	  )
	 );

  return(0);
}

--------------------------------------------------------------------------
unsubscribe: body of `unsubscribe linux-arm' to [email-masked]