PR tree-optimization/92412 - excessive errno aliasing assumption defeats optimization
authorMartin Sebor <msebor@redhat.com>
Tue, 12 Nov 2019 18:49:31 +0000 (18:49 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 12 Nov 2019 18:49:31 +0000 (11:49 -0700)
commit1cf83d35b8cc41e88504b38e7f4d182ee1476003
treea742c38dd6d5945907aedef8f840b613ef15f311
parent937a86b49e4ed8ef72c1384d617feff26580a048
PR tree-optimization/92412 - excessive errno aliasing assumption defeats optimization

gcc/ChangeLog:

PR tree-optimization/92412
* targhooks.c (default_ref_may_alias_errno): Errono can only alias
extern variables.

gcc/testsuite/ChangeLog:

PR tree-optimization/92412
* gcc.dg/strlenopt-91.c: New test.

From-SVN: r278099
gcc/ChangeLog
gcc/targhooks.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/strlenopt-91.c [new file with mode: 0644]