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

            Bug ID: 114627
           Summary: [14 Regression] undefined behavior in tree-profile.cc
                    while compiling gcc.misc-tests/gcov-18.c
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: testsuite-fail
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pheeck at gcc dot gnu.org
            Blocks: 63426
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu

Compiling gcc.misc-tests/gcov-19.c using ubsan-instrumented GCC

gcc testsuite/gcc.misc-tests/gcov-19.c -fdiagnostics-plain-output
-fcondition-coverage -ftest-coverage -lm -o ./gcov-19.exe

results in

/home/worker/buildworker/tiber-gcc-ubsan/build/gcc/tree-profile.cc:1090:48:
runtime error: shift exponent 64 is too large for 64-bit type 'long long
unsigned int'

Compiler configured with
--enable-languages=default,jit,lto,go,d --enable-host-shared
--enable-checking=release --disable-multilib
--with-build-config=bootstrap-ubsan


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63426
[Bug 63426] [meta-bug] Issues found with -fsanitize=undefined

Reply via email to