Most of the struct-layout-1 tests started failing on
powerpc64-unknown-linux-gnu with this patch:

    http://gcc.gnu.org/viewcvs?view=rev&rev=146817
    r146817 | matz | 2009-04-26 19:35:04 +0000 (Sun, 26 Apr 2009)

Here's a minimized testcase that demonstrates the failure:

struct S301
{
  _Decimal32 b[5];
} s301;
int
checkx301 (struct S301 arg)
{
  return (arg.b[0] != s301.b[0]);
}

Compiling with default options, including with a powerpc-linux cross cc1,
results in:

t002.c: In function ‘checkx301’:
t002.c:9: internal compiler error: in rs6000_secondary_memory_needed_rtx, at
config/rs6000/rs6000.c:11520
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

This could be an existing backend problem exposed by the patch.


-- 
           Summary: struct-layout-1 test failures passing struct containing
                    _Decimal32
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: janis at gcc dot gnu dot org
GCC target triplet: powerpc-linux


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

Reply via email to