public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/114698] New: dcfldd produces wrong sha256 sum on ppc64le and -O3
@ 2024-04-11 18:36 bergner at gcc dot gnu.org
  2024-04-11 18:38 ` [Bug target/114698] " bergner at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: bergner at gcc dot gnu.org @ 2024-04-11 18:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114698
           Summary: dcfldd produces wrong sha256 sum on ppc64le and -O3
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: bergner at gcc dot gnu.org
  Target Milestone: ---

Building the dcfldd v1.9.1 package on powerpc64le-linux when configured to use
-O3 produces an incorrect sha256 sum for GCC trunk, 13 and 12.  GCC 11 and
earlier produces correct output.  For example (-O3 trunk build):

bergner@ltcden2-lp1:dcfldd [v1.9.1]$ echo TestInput | ./src/dcfldd hash=sha256
TestInput

Total (sha256):
d627605bdee37e388a5c232dc407cb5cd287d27187d6787999ad3bb59d383e9a

0+1 records in
0+1 records out

...versus expected output from an -O2 trunk build:

bergner@ltcden2-lp1:dcfldd [v1.9.1]$ echo TestInput | ./src/dcfldd hash=sha256
TestInput

Total (sha256):
8021973df8498a650e444fd84c705d9168639a246bc6024066e4091b2b450da6

0+1 records in
0+1 records out

...and from sha256sum:

bergner@ltcden2-lp1:dcfldd-git [v1.9.1]$ echo TestInput | /usr/bin/sha256sum 
8021973df8498a650e444fd84c705d9168639a246bc6024066e4091b2b450da6  -


Current steps to recreate:

git clone https://github.com/resurrecting-open-source-projects/dcfldd.git
cd dcfldd/
git checkout v1.9.1 -b v1.9.1
./autogen.sh
./configure CFLAGS="-O3"
make
echo TestInput | ./src/dcfldd hash=sha256

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-04-11 19:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-11 18:36 [Bug target/114698] New: dcfldd produces wrong sha256 sum on ppc64le and -O3 bergner at gcc dot gnu.org
2024-04-11 18:38 ` [Bug target/114698] " bergner at gcc dot gnu.org
2024-04-11 18:45 ` [Bug ipa/114698] " bergner at gcc dot gnu.org
2024-04-11 18:52 ` [Bug ipa/114698] [12/13/14 regression] dcfldd produces wrong sha256 sum on ppc64le and -O3 since r12-5244-g64f3e71c302b4a pinskia at gcc dot gnu.org
2024-04-11 19:06 ` pinskia at gcc dot gnu.org
2024-04-11 19:07 ` pinskia at gcc dot gnu.org
2024-04-11 19:08 ` pinskia at gcc dot gnu.org
2024-04-11 19:09 ` pinskia at gcc dot gnu.org
2024-04-11 19:18 ` bergner at gcc dot gnu.org
2024-04-11 19:25 ` bergner at gcc dot gnu.org

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).