public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/51372] New: internal compiler error: in write_builtin_type, at cp/mangle.c:2204
@ 2011-12-01  3:21 carrot at google dot com
  2011-12-01  3:25 ` [Bug target/51372] " pinskia at gcc dot gnu.org
  2011-12-01  6:30 ` carrot at google dot com
  0 siblings, 2 replies; 3+ messages in thread
From: carrot at google dot com @ 2011-12-01  3:21 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/51372] internal compiler error: in write_builtin_type, at cp/mangle.c:2204
  2011-12-01  3:21 [Bug target/51372] New: internal compiler error: in write_builtin_type, at cp/mangle.c:2204 carrot at google dot com
@ 2011-12-01  3:25 ` pinskia at gcc dot gnu.org
  2011-12-01  6:30 ` carrot at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-01  3:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-01 03:25:17 UTC ---
__builtin_neon_sf is not really the float type.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug target/51372] internal compiler error: in write_builtin_type, at cp/mangle.c:2204
  2011-12-01  3:21 [Bug target/51372] New: internal compiler error: in write_builtin_type, at cp/mangle.c:2204 carrot at google dot com
  2011-12-01  3:25 ` [Bug target/51372] " pinskia at gcc dot gnu.org
@ 2011-12-01  6:30 ` carrot at google dot com
  1 sibling, 0 replies; 3+ messages in thread
From: carrot at google dot com @ 2011-12-01  6:30 UTC (permalink / raw)
  To: gcc-bugs

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

Carrot <carrot at google dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #2 from Carrot <carrot at google dot com> 2011-12-01 06:29:57 UTC ---
(In reply to comment #1)
> __builtin_neon_sf is not really the float type.

You are right. I mixed the new compiler with old arm_neon.h. In the new version
of arm_neon.h the definition of float32_t has been changed.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-12-01  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01  3:21 [Bug target/51372] New: internal compiler error: in write_builtin_type, at cp/mangle.c:2204 carrot at google dot com
2011-12-01  3:25 ` [Bug target/51372] " pinskia at gcc dot gnu.org
2011-12-01  6:30 ` carrot at google dot com

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).