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 target/45208] New: powerpc-gcc -msdata breakdown on incomplete initializers


When compiling the code-snippet below with powerpc-*-gcc -msdata,
this error happens:

# powerpc-rtems4.11-gcc -c test.c -o test.o -msdata
test.c:10: error: rtems_filesystem_mount_table_size causes a section type
conflict

--- snip ---
int pipe (int __fildes[2] );

void Init( void )
{
  int fd[2] = {0};

  pipe( fd );
}

const int rtems_filesystem_mount_table_size = 1;
--- snip ---

This error does not happen, when
- compiling this snippet without -msdata
- expanding "int fd[2] = {0};" into "int fd[2] = {0,0};

I am able to reproduce this bug with GCC 4.2.4, 4.3.2, 4.4.4, 4.5.1,
all targetting "powerpc-rtems".


-- 
           Summary: powerpc-gcc -msdata breakdown on incomplete initializers
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: corsepiu at gcc dot gnu dot org
GCC target triplet: powerpc-rtems*, powerpc-elf*


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


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