public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/108657] csmith: possible wrong checksum with -O3 and -ftrivial-auto-var-init=zero
Date: Fri, 03 Feb 2023 18:47:11 +0000	[thread overview]
Message-ID: <bug-108657-4-FO0OkVGTwj@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-108657-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108657

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to David Binderman from comment #3)
> (In reply to Andrew Pinski from comment #2)
> > If I initialize __trans_tmp_13 explictly to 0, the issue goes away ....
> 
> $ fgrep trans_tmp_13 bug880.c
>            int64_t __trans_tmp_13;
>                            (g_452) ^= (__trans_tmp_13);
> $ 
> 
> This now looks like a bug in csmith.

It might be both. I have not looked into the IR differences with respect of
initializing and not initializing it and using/not using
-ftrivial-auto-var-init=zero yet. This was mostly to give a hint to the next
person who looks into this issue to see if they understand why there is a
difference happening.
-ftrivial-auto-var-init=zero should produce the similar results to initializing
that variable to 0 but it is not. There has been some bugs (in GCC) recently in
the area of not executed pathes with uninitialized variables changing the
behavior (incorrectly) so it might be related to one of those ...

  parent reply	other threads:[~2023-02-03 18:47 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 13:59 [Bug c/108657] New: " dcb314 at hotmail dot com
2023-02-03 16:27 ` [Bug c/108657] " dcb314 at hotmail dot com
2023-02-03 18:15 ` [Bug middle-end/108657] " pinskia at gcc dot gnu.org
2023-02-03 18:41 ` dcb314 at hotmail dot com
2023-02-03 18:47 ` pinskia at gcc dot gnu.org [this message]
2023-02-04 12:01 ` dcb314 at hotmail dot com
2023-02-04 12:17 ` dcb314 at hotmail dot com
2023-02-04 12:31 ` dcb314 at hotmail dot com
2023-02-06 13:37 ` dcb314 at hotmail dot com
2023-02-06 16:59 ` dcb314 at hotmail dot com
2023-02-06 17:32 ` dcb314 at hotmail dot com
2023-02-06 20:28 ` [Bug middle-end/108657] [13 Regression] " pinskia at gcc dot gnu.org
2023-02-07 18:01 ` mikpelinux at gmail dot com
2023-02-08  8:42 ` dcb314 at hotmail dot com
2023-02-14 14:53 ` dcb314 at hotmail dot com
2023-02-14 21:09 ` dcb314 at hotmail dot com
2023-02-15 18:22 ` jakub at gcc dot gnu.org
2023-02-15 18:29 ` jakub at gcc dot gnu.org
2023-02-15 18:43 ` jakub at gcc dot gnu.org
2023-02-15 18:48 ` pinskia at gcc dot gnu.org
2023-02-15 18:56 ` jakub at gcc dot gnu.org
2023-02-15 19:04 ` jakub at gcc dot gnu.org
2023-02-15 19:15 ` jakub at gcc dot gnu.org
2023-02-15 19:32 ` jakub at gcc dot gnu.org
2023-02-16 14:35 ` cvs-commit at gcc dot gnu.org
2023-02-27 10:17 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-108657-4-FO0OkVGTwj@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).