This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: EGCS 1.0.2. switch in inline functions.
- To: Alexander Favorov <favorov at sensi dot org>
- Subject: Re: EGCS 1.0.2. switch in inline functions.
- From: Mumit Khan <khan at xraylith dot wisc dot edu>
- Date: Sat, 29 Aug 1998 02:35:53 -0500
- Cc: egcs-bugs at cygnus dot com
Alexander Favorov <favorov@sensi.org> writes:
> Hi!
> The code :
> ************************
> #include <stdio.h>
>
> inline
> int func(char c)
> {
> switch (c)
> {
> case 'a':return 1;
> case 't':return 2;
> case 'g':return 3;
> case 'c':return 4;
> case 'n':return 5;
> }
> }
>
> main()
> {
> printf("%i\n",func('g'));
> return 0;
> }
Hi Alexander,
I just submitted a patch, using your testcase as example, but forgetting
to cite your posting -- my apologies, to egcs-patches that solves this
code generation bug in the win32 backend.
Sorry it took so long to fix. This was a subtle one that doesn't show
up if you kill one of the case statements from the testcase.
Regards,
Mumit