This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: GCC 3.2 Branch Closure


On Fri, Nov 08, 2002 at 01:28:53PM +0100, Volker Reichelt wrote:
> Hi,
> 
> PR 8502 looks quite severe to me:
> It a regression from 3.0.x on the branch where wrong assember code is
> generated. However, this problem doesn't occur on mainline.
> 
> Could somebody please have a look at it to decide whether it has to
> be fixed for the branch or not?
> 

Here is the modified version for C:

---f.c---
int foo (int i)
{
    switch (i)
    {
        case 0: return 0;
        case 1: return 0;
        case 2: return 0;
        case 3: return 0;
        case 4: return 0;
    }

    return 0;
}

int main () { return 0; }
----

# /usr/gcc-3.2/bin/gcc f.c
/tmp/ccIENiOo.o(.text+0x11): In function `foo':
: undefined reference to `.L8'
collect2: ld returned 1 exit status



H.J.


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