PTA asserts that EAF_NO_DIRECT_READ is not set when flags are
set consistently which doesn't make sense. The following removes
the assert.
PR tree-optimization/113197
* tree-ssa-structalias.cc (handle_call_arg): Remove bougs
assert.
* gcc.dg/lto/pr113197_0.c: New testcase.
* gcc.dg/lto/pr113197_1.c: Likewise.
--- /dev/null
+/* { dg-lto-do link } */
+/* { dg-lto-options { { -O -flto -fpie } } } */
+/* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */
+
+enum a { b } register_dccp();
+void c();
+void __attribute__((noreturn)) exit_error(enum a d) {
+ __builtin_va_list va;
+ __builtin_va_end(va);
+ if (d)
+ c();
+ c();
+ __builtin_exit(1);
+}
+int main() { register_dccp(); }
--- /dev/null
+int a;
+void exit_error();
+void register_dccp() { exit_error(a); }
{
make_transitive_closure_constraints (tem);
callarg_transitive = true;
- gcc_checking_assert (!(flags & EAF_NO_DIRECT_READ));
}
/* If necessary, produce varinfo for indirect accesses to ARG. */