Bug 45208 - powerpc-gcc -msdata breakdown on incomplete initializers
Summary: powerpc-gcc -msdata breakdown on incomplete initializers
Status: RESOLVED WORKSFORME
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: unknown
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-06 07:57 UTC by Ralf Corsepius
Modified: 2015-11-22 00:42 UTC (History)
4 users (show)

See Also:
Host:
Target: powerpc-rtems*, powerpc-elf*
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Corsepius 2010-08-06 07:57:13 UTC
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".
Comment 1 Sebastian Huber 2013-07-10 10:11:22 UTC
I can no longer reproduce this problem with GCC 4.7 and 4.8.
Comment 2 Segher Boessenkool 2015-11-22 00:42:16 UTC
I can't reproduce it either.  Closing.