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/21128] New: Returning vector 32-bits or larger generates ICE


The following file:

  typedef int __attribute__((vector_size (32))) v8i;

  v8i g_v8i;
  v8i return_v8i (void)
  {
    return g_v8i;
  }

Compiled with the command-line:

  gcc test.c -c

Produces this error message:

  test.c: In function 'return_v8i':
  test.c:5: internal compiler error: in hard_function_value, at explow.c:1541
  Please submit a full bug report,
  with preprocessed source if appropriate.
  See <URL:http://gcc.gnu.org/bugs.html> for instructions.

This behavior shows up in the 4.0 branch and the current (4.1.0) mainline.

gcc 3.4.3 produces the following error message:

  test.c:1: error: no vector mode with the size and type specified could be found

My configuration is:

  --target=arm-none-elf --program-prefix=arm-elf- --disable-nls --enable-languages=c,c++ --
with-newlib --enable-multilib --disable-shared

This behavior shows up when trying to compile the test compat/vector-2.

-- 
           Summary: Returning vector 32-bits or larger generates ICE
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jconner at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: powerpc-apple-darwin7.8.0
GCC target triplet: arm-none-elf


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


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