* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
@ 2012-09-18 18:06 ` schwab@linux-m68k.org
2013-01-30 10:42 ` ktietz at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: schwab@linux-m68k.org @ 2012-09-18 18:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #1 from Andreas Schwab <schwab@linux-m68k.org> 2012-09-18 18:06:27 UTC ---
"len & ~63" works fine for any integer type.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
2012-09-18 18:06 ` [Bug other/54620] " schwab@linux-m68k.org
@ 2013-01-30 10:42 ` ktietz at gcc dot gnu.org
2013-01-30 16:51 ` ktietz at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-30 10:42 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2013-01-30
CC| |ktietz at gcc dot gnu.org
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
2012-09-18 18:06 ` [Bug other/54620] " schwab@linux-m68k.org
2013-01-30 10:42 ` ktietz at gcc dot gnu.org
@ 2013-01-30 16:51 ` ktietz at gcc dot gnu.org
2013-01-30 16:57 ` ktietz at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-30 16:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #2 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-30 16:51:03 UTC ---
Author: ktietz
Date: Wed Jan 30 16:50:49 2013
New Revision: 195579
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195579
Log:
PR other/54620
PR target/39064
* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
stdint.h and sys/types.h headers are present.
* sha1.h (sha1_uintptr, sha1_uint32): Likewise.
Modified:
trunk/include/ChangeLog
trunk/include/md5.h
trunk/include/sha1.h
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (2 preceding siblings ...)
2013-01-30 16:51 ` ktietz at gcc dot gnu.org
@ 2013-01-30 16:57 ` ktietz at gcc dot gnu.org
2013-01-30 16:58 ` ktietz at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-30 16:57 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-30 16:56:50 UTC ---
Author: ktietz
Date: Wed Jan 30 16:56:36 2013
New Revision: 195580
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195580
Log:
2013-01-30 Kai Tietz <ktietz@redhat.com>
PR other/54620
PR target/39064
* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
stdint.h and sys/types.h headers are present.
* sha1.h (sha1_uintptr, sha1_uint32): Likewise.
Modified:
branches/gcc-4_7-branch/include/ChangeLog
branches/gcc-4_7-branch/include/md5.h
branches/gcc-4_7-branch/include/sha1.h
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (3 preceding siblings ...)
2013-01-30 16:57 ` ktietz at gcc dot gnu.org
@ 2013-01-30 16:58 ` ktietz at gcc dot gnu.org
2013-01-31 8:18 ` ktietz at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-30 16:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-30 16:58:24 UTC ---
Author: ktietz
Date: Wed Jan 30 16:58:10 2013
New Revision: 195581
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195581
Log:
PR other/54620
PR target/39064
* md5.h (md5_uintptr, md5_uint32): Define as uintptr_t/uint32_t if
stdint.h and sys/types.h headers are present.
* sha1.h (sha1_uintptr, sha1_uint32): Likewise.
Modified:
branches/gcc-4_6-branch/include/ChangeLog
branches/gcc-4_6-branch/include/md5.h
branches/gcc-4_6-branch/include/sha1.h
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (4 preceding siblings ...)
2013-01-30 16:58 ` ktietz at gcc dot gnu.org
@ 2013-01-31 8:18 ` ktietz at gcc dot gnu.org
2013-01-31 8:18 ` ktietz at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-31 8:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #5 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-31 08:17:47 UTC ---
Author: ktietz
Date: Thu Jan 31 08:17:37 2013
New Revision: 195603
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195603
Log:
PR other/54620
* sha1.c (sha1_process_block): Handle case that size_t is
a wider-integer-scalar as a 32-bit unsigned integer.
Modified:
trunk/libiberty/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (5 preceding siblings ...)
2013-01-31 8:18 ` ktietz at gcc dot gnu.org
@ 2013-01-31 8:18 ` ktietz at gcc dot gnu.org
2013-01-31 8:19 ` ktietz at gcc dot gnu.org
2013-01-31 8:23 ` ktietz at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-31 8:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-31 08:18:06 UTC ---
Author: ktietz
Date: Thu Jan 31 08:17:58 2013
New Revision: 195604
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195604
Log:
PR other/54620
* sha1.c (sha1_process_block): Handle case that size_t is
a wider-integer-scalar as a 32-bit unsigned integer.
Modified:
trunk/libiberty/sha1.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (6 preceding siblings ...)
2013-01-31 8:18 ` ktietz at gcc dot gnu.org
@ 2013-01-31 8:19 ` ktietz at gcc dot gnu.org
2013-01-31 8:23 ` ktietz at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-31 8:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
--- Comment #7 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-31 08:19:12 UTC ---
Author: ktietz
Date: Thu Jan 31 08:19:03 2013
New Revision: 195605
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195605
Log:
Merged from trunk
PR other/54620
* sha1.c (sha1_process_block): Handle case that size_t is
a wider-integer-scalar as a 32-bit unsigned integer.
Modified:
branches/gcc-4_7-branch/libiberty/ChangeLog
branches/gcc-4_7-branch/libiberty/sha1.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug other/54620] sha1.c has incorrect math if sizeof(size_t) is 8
2012-09-18 17:22 [Bug other/54620] New: sha1.c has incorrect math if sizeof(size_t) is 8 pikegadgets+gcc at gmail dot com
` (7 preceding siblings ...)
2013-01-31 8:19 ` ktietz at gcc dot gnu.org
@ 2013-01-31 8:23 ` ktietz at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: ktietz at gcc dot gnu.org @ 2013-01-31 8:23 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54620
Kai Tietz <ktietz at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #8 from Kai Tietz <ktietz at gcc dot gnu.org> 2013-01-31 08:23:30 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread