Bug 1466373 - Type-pun warnings in compiler-rt build
Type-pun warnings in compiler-rt build
Status: CLOSED WONTFIX
Product: dotNET
Classification: Red Hat
Component: rh-dotnet20 (Show other bugs)
2.0
Unspecified Unspecified
unspecified Severity unspecified
: ga
: 2.0
Assigned To: Omair Majid
jiri vanek
Les Williams
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-06-29 09:43 EDT by Omair Majid
Modified: 2017-07-25 16:40 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-25 16:40:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Omair Majid 2017-06-29 09:43:32 EDT
type-punning build warnings in compiler-rt pointed out by errata tool:

Type pun (strict-aliasing) warning seen in x86_64 build log:
   1290  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc: In function '__sanitizer::u16 __sanitizer_unaligned_load16(const uu16*)':
   1291  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc:586:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   1294  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc: In function '__sanitizer::u32 __sanitizer_unaligned_load32(const uu32*)':
   1295  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc:592:32: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   1298  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc: In function 'void __sanitizer_unaligned_store16(__sanitizer::uu16*, __sanitizer::u16)':
   1299  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc:604:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
   1302  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc: In function 'void __sanitizer_unaligned_store32(__sanitizer::uu32*, __sanitizer::u32)':
   1303  /builddir/build/BUILD/compiler-rt-3.9.1.src/lib/msan/msan.cc:612:39: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
Comment 1 Omair Majid 2017-07-25 16:33:13 EDT
I dont think this is a real problem in our case.

1. This affects the memory sanitizer. We dont need it and do not
really care about it.

2. The issue also exists in latest Fedora builds (compiler-rt 4.x),
which use a newer gcc. Even that doesn't seem to cause any oversable
issues.

Note You need to log in before you can comment on or make changes to this bug.