This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 17 Jul 2018 21:17:25 +0000
- Subject: [Bug tree-optimization/86532] [9 Regression] Wrong code due to a wrong strlen folding starting with r262522
- Auto-submitted: auto-generated
- References: <bug-86532-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86532
--- Comment #20 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
part.c.004t.original looks funny:
;; Function main (null)
;; enabled by -tree-original
{
volatile int i = 4;
int n = 4;
volatile int i = 4;
int n = 4;
SAVE_EXPR <SAVE_EXPR <(sizetype) i> <= 4 ? 4 - (ssizetype) SAVE_EXPR
<(sizetype) i> : 0>;, n = (int) ((unsigned int) (SAVE_EXPR <SAVE_EXPR
<(sizetype) i> <= 4 ? 4 - (ssizetype) SAVE_EXPR <(sizetype) i> : 0>) +
(unsigned int) n);;
if (n != 4)
{
__builtin_abort ();
}
}
return 0;