public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "carrot at google dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/51372] New: internal compiler error: in write_builtin_type, at cp/mangle.c:2204
Date: Thu, 01 Dec 2011 03:21:00 -0000	[thread overview]
Message-ID: <bug-51372-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 51372
           Summary: internal compiler error: in write_builtin_type, at
                    cp/mangle.c:2204
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: carrot@google.com
              Host: x86_64-build_unknown-linux-gnu
            Target: arm-unknown-linux-gnueabi
             Build: x86_64-build_unknown-linux-gnu


Compile the following source code with trunk g++ and options -march=armv7-a
-mfloat-abi=softfp -mfpu=neon -O2

#include <arm_neon.h>

void x(float32x4_t v0, float32_t f)
{
  float32x4_t vv = vmulq_n_f32( v0, f);
}

GCC generates:

t0d2.ii:16:6: internal compiler error: in write_builtin_type, at
cp/mangle.c:2204
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

The simplified preprocessed source code is:

-----------------------------------------------
typedef __builtin_neon_sf float32x4_t __attribute__ ((__vector_size__ (16)));

typedef __builtin_neon_sf float32_t;

__extension__ static __inline float32x4_t __attribute__ ((__always_inline__))
vmulq_n_f32 (float32x4_t __a, float32_t __b)
{
  return (float32x4_t)__builtin_neon_vmul_nv4sf (__a, __b, 3);
}

void x(float32x4_t v0, float32_t f)
{
  float32x4_t vv = vmulq_n_f32( v0, f);
}
------------------------------------------------

The complete command line is

cc1plus "-fpreprocessed" "t0d2.ii" "-quiet" "-dumpbase" "t0d.cpp"
"-march=armv7-a" "-mfloat-abi=softfp" "-mfpu=neon" "-auxbase-strip" "obj/t0d.o"
"-O2" "-o" "t0d.s"


This ICE is also existed in GCC 4.6.


             reply	other threads:[~2011-12-01  3:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-01  3:21 carrot at google dot com [this message]
2011-12-01  3:25 ` [Bug target/51372] " pinskia at gcc dot gnu.org
2011-12-01  6:30 ` carrot at google dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-51372-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).