This is the mail archive of the gcc-bugs@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: Incorrect code generation on Solaris


> On May 15, 2001, Jon Steinhart <jon@fourwinds.com> wrote:
> 
> > The following source appears to generate incorrect code as the resulting
> > executable crashes in the switch statement.
> 
> It seems that your mailing has failed to attach the sources.
> 
> Anyway, all we need is b.i; please omit the other files from the bug
> report I hope you'll re-post.
> 
> -- 
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me
# 1 "b.c"
int 
main(int argc, char **argv)
{
	argv++;

	while (*++(*argv) != '\0') {
		switch (**argv) {
		case 'c':	break;
		case 'd':	break;
		case 'i':	break;
		case 'm':	break;
		case 'p':	break;
		case 's':	break;
		}
	}
}

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