This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Long term code compactness regression
On Fri, Oct 26, 2001 at 05:35:30PM -0700, Aaron Lehmann wrote:
> I'm not sure why, but I've put the one that does exhibit the problem
> up at http://people.debian.org/~aaronl/telnet.gcc-E.i.gz. It will
> cause an ICE when compiled with -O[23s], on gcc 3.1 20011026
> (experimental).
Below is a much more compact, standalone version that makes a good
testcase:
typedef struct
{
long fds_bits[32];
} fd_set;
void testfunc(char* foo, int bar)
{
fd_set readfds;
fd_set rfds = readfds;
switch (bar)
{
case 0:
break;
default:
if ((__extension__ ({register char __result; __asm__ __volatile__ ("btl %1,%2 ; setcb %b0" : "=q" (__result) : "r" (0), "m" (*(&rfds)->fds_bits) : "cc"); __result; })))
break;
}
}