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]
Other format: [Raw text]

[Bug c/14508] New: ns32k- internal compiler error: in find_reloads, at reload.c:3887


Trying to compile a simple program results in:

foo.c: In function `foo':
foo.c:15: internal compiler error: in find_reloads, at reload.c:3887
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

when compiled with
  gcc version 3.5.0 20040310 (experimental)
A similar error occurs with gcc 3.3.3.

Here is the test program (reduced from some code in the NetBSD kernel):

struct s1 { short x, y; };      
struct s2 {  struct s1 m; struct s1 n; };      

void foo(struct s2 *);    
void bar(short);

void
foo(struct s2 *a)   
{
        struct s1 b; 

        b.x = 0;  
        if (a->m.x) b.x = a->m.x + a->n.x;  
        bar(b.x);
}

-- 
           Summary: ns32k- internal compiler error: in find_reloads, at
                    reload.c:3887
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: simonb at wasabisystems dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i386-unknown-netbsdelf1.6ZF
  GCC host triplet: i386-unknown-netbsdelf1.6ZF
GCC target triplet: ns32k--netbsd


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14508


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