Bug 111509 - Floating point exception with '-O3 -fno-dce -fno-inline-small-functions -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse'
Summary: Floating point exception with '-O3 -fno-dce -fno-inline-small-functions -fno-...
Status: RESOLVED DUPLICATE of bug 108007
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-09-21 02:01 UTC by CTC
Modified: 2023-09-21 02:17 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
The preprocessed file (16.17 KB, text/plain)
2023-09-21 02:01 UTC, CTC
Details
The compiler output (866 bytes, text/plain)
2023-09-21 02:01 UTC, CTC
Details

Note You need to log in before you can comment on or make changes to this bug.
Description CTC 2023-09-21 02:01:15 UTC
Created attachment 55954 [details]
The preprocessed file

*******************************************************************************
OS and Platform:
Ubuntu 20.04.4 LTS
*******************************************************************************
gcc version:
$ gcc -v
Using built-in specs.
COLLECT_GCC=/home/cuisk/ctc/gcc-releases/gcc-14/bin/gcc
COLLECT_LTO_WRAPPER=/home/cuisk/ctc/gcc-releases/gcc-14/libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ./configure --prefix=/home/cuisk/ctc/gcc-releases/gcc-14 --disable-multilib --enable-language=c,c++
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20230917 (experimental) (GCC) 
*******************************************************************************
Command Lines:
$ gcc -I /home/csmith/include/csmith-2.3.0 -O3 -fno-dce -fno-inline-small-functions -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse a.c -o work 2>
ge.out

$ ./work

Floating point exception (core dumped)
Comment 1 CTC 2023-09-21 02:01:33 UTC
Created attachment 55955 [details]
The compiler output
Comment 2 Andrew Pinski 2023-09-21 02:17:27 UTC
  _145 = (unsigned int) removed_return.91_186(D);
  _146 = 1365587247 % _145;

Same issue as PR 108007.

*** This bug has been marked as a duplicate of bug 108007 ***