https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
--- Comment #4 from Theodoros Theodoridis ---
Oops, there was a bug in my reduction, here's the fixed code:
https://godbolt.org/z/shxffzs8E
void foo(void);
typedef unsigned short uint16_t;
static int b;
static int c;
static int *f = &b;
st
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
--- Comment #3 from Andrew Pinski ---
Hmm, I think we reach __builtin_unreachable always and that is confusing
everything.
If we inline s early on (via using the always_inline attribute). main turns
into just __builtin_unreachable .
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
--- Comment #2 from Andrew Pinski ---
(In reply to Andrew Pinski from comment #1)
> Right now I get an ICE while doing -fdump-tree-ccp1-details even:during
Filed PR 111800 for that ...
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
--- Comment #1 from Andrew Pinski ---
Right now I get an ICE while doing -fdump-tree-ccp1-details even:during GIMPLE
pass: ccp
dump file: /app/output.cpp.034t.ccp1
: In function 'q':
:42:1: internal compiler error: Segmentation fault
42 | }
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111799
Andrew Pinski changed:
What|Removed |Added
Target Milestone|--- |14.0
Keywords|