public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/55441] New: ThreadSanitizer: handle bitfields
@ 2012-11-22 7:58 dvyukov at google dot com
2015-01-04 23:48 ` [Bug sanitizer/55441] " bernd.edlinger at hotmail dot de
2021-12-05 9:52 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: dvyukov at google dot com @ 2012-11-22 7:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55441
Bug #: 55441
Summary: ThreadSanitizer: handle bitfields
Classification: Unclassified
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: other
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: dvyukov@google.com
Currently gcc/tsan.c handles only bitfield accesses that are byte-aligned and
has byte-granularity:
+ if (bitpos % (size * BITS_PER_UNIT)
+ || bitsize != size * BITS_PER_UNIT)
+ return false;
It must be fixed to handle all bitfield access by extending access to the whole
bitfiled. I.e. an access to an uint64 bitfield touches the whole uint64.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug sanitizer/55441] ThreadSanitizer: handle bitfields
2012-11-22 7:58 [Bug other/55441] New: ThreadSanitizer: handle bitfields dvyukov at google dot com
@ 2015-01-04 23:48 ` bernd.edlinger at hotmail dot de
2021-12-05 9:52 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: bernd.edlinger at hotmail dot de @ 2015-01-04 23:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55441
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #1 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
ok, consider it fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug sanitizer/55441] ThreadSanitizer: handle bitfields
2012-11-22 7:58 [Bug other/55441] New: ThreadSanitizer: handle bitfields dvyukov at google dot com
2015-01-04 23:48 ` [Bug sanitizer/55441] " bernd.edlinger at hotmail dot de
@ 2021-12-05 9:52 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-05 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55441
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Target Milestone|--- |5.0
Resolution|--- |FIXED
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Fixed by r5-6071-gfe86867f07504 in GCC 5 so closing as fixed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-12-05 9:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-22 7:58 [Bug other/55441] New: ThreadSanitizer: handle bitfields dvyukov at google dot com
2015-01-04 23:48 ` [Bug sanitizer/55441] " bernd.edlinger at hotmail dot de
2021-12-05 9:52 ` pinskia 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).