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/65729] New: [5 Regression] ICE (segfault) on arm-linux-gnueabihf


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65729

            Bug ID: 65729
           Summary: [5 Regression] ICE (segfault) on arm-linux-gnueabihf
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: doko at gcc dot gnu.org

seen with r221867 on arm-linux-gnueabihf, building the cgal and k3d packages.

$ g++ -c -g -O2 boolean.ii 
boolean.ii: In function '(static initializers for boolean.ii)':
boolean.ii:18:36: internal compiler error: in prohibited_class_reg_set_mode_p,
at lra-constraints.c:1659
 void fn1() { Interval_nt<>::m_fn1; }
                                    ^
0x58af03 prohibited_class_reg_set_mode_p
        ../../src/gcc/lra-constraints.c:1659
0x58da27 process_alt_operands
        ../../src/gcc/lra-constraints.c:2345
0x58f98f curr_insn_transform
        ../../src/gcc/lra-constraints.c:3464
0x5919e3 lra_constraints(bool)
        ../../src/gcc/lra-constraints.c:4442
0x585863 lra(_IO_FILE*)
        ../../src/gcc/lra.c:2315
0x5558c7 do_reload
        ../../src/gcc/ira.c:5418
0x5558c7 execute
        ../../src/gcc/ira.c:5589
Please submit a full bug report,
with preprocessed source if appropriate.

$ cat boolean.ii
template <bool = true> class Interval_nt {
  typedef Interval_nt IA;

public:
  Interval_nt(double, double) { b; }
  static IA m_fn1() { IA(0, 0); }
  struct Test_runtime_rounding_modes {
    Test_runtime_rounding_modes() {
      double x;
      asm volatile("" : "+gw"(x));
    }
  } static b;
};

template <bool Protected>
typename Interval_nt<Protected>::Test_runtime_rounding_modes
    Interval_nt<Protected>::b;
void fn1() { Interval_nt<>::m_fn1; }

$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/5/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Ubuntu
5-20150404-0ubuntu11' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs
--enable-languages=c,ada,c++,java,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-5 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--with-default-libstdcxx-abi=c++98 --enable-gnu-unique-object --disable-libitm
--disable-libquadmath --enable-plugin --with-system-zlib
--disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-armhf/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-armhf
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-armhf
--with-arch-directory=arm --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --enable-multilib --disable-sjlj-exceptions
--with-arch=armv7-a --with-fpu=vfpv3-d16 --with-float=hard --with-mode=thumb
--disable-werror --enable-multilib --enable-checking=yes
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf
Thread model: posix
gcc version 5.0.0 20150404 (experimental) [trunk revision 221867] (Ubuntu
5-20150404-0ubuntu11)


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