Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Internal Compiler Error on multiple inheritance. #647

Open
alex-etched opened this issue Oct 15, 2024 · 0 comments
Open

Internal Compiler Error on multiple inheritance. #647

alex-etched opened this issue Oct 15, 2024 · 0 comments
Assignees

Comments

@alex-etched
Copy link

The following code will ICE the compiler:

#include <cstddef>

#define NO_INLINE __attribute__((noinline))

class ParentA {
  virtual void Push() = 0;
};
class ParentB {
  virtual void Pop() = 0;
};
class Child : public ParentA, public ParentB {
  NO_INLINE void Push() {}
  NO_INLINE void Pop() {}
};

Child buffer;

int main() {

}

Compile command + flags:

arc64-elf-gcc app.cc -mcpu=hs6x -mfpu=none -m128 -mbbit -mbitscan -mbrcc -mcmodel=large -mcode-density
app.cc: In member function 'virtual void Child::_ZThn8_N5Child3PopEv()':
app.cc:20:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1177
   20 | }
      | ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.

Version Info:

arc64-elf-gcc -v
Using built-in specs.
COLLECT_GCC=(redacted)
COLLECT_LTO_WRAPPER=(redacted)
Target: arc64-snps-elf
Configured with: /SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/.build/arc64-snps-elf/src/gcc/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=arc64-snps-elf --prefix=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/arc64-unknown-elf --exec_prefix=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/arc64-unknown-elf --with-local-prefix=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/arc64-unknown-elf/arc64-snps-elf --with-sysroot=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/arc64-unknown-elf/arc64-snps-elf --with-native-system-header-dir=/include --with-newlib --enable-threads=no --disable-shared --with-pkgversion='ARCv3 elf toolchain - build 6938' --enable-__cxa_atexit --disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp --disable-libquadmath --disable-libquadmath-support --disable-libstdcxx-verbose --with-gmp=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/.build/arc64-snps-elf/buildtools --with-mpfr=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/.build/arc64-snps-elf/buildtools --with-mpc=/SCRATCH/arcjenkins2/slaves/us01-odc-custom-arcoss1/workspace/arcoss_verification/arc_gnu_toolchain_verification/build_toolchain-12/crosstool-ng/.build/arc64-snps-elf/buildtools --with-isl=no --with-cloog=no --enable-lto --disable-nls --disable-tls --enable-multiarch --enable-languages=c,c++
Thread model: single
Supported LTO compression algorithms: zlib zstd
gcc version 14.1.0 (ARCv3 elf toolchain - build 6938)

ccPL5RIM.out.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants