Actions
Bug #10802
closedstrict-aliasing warning on RHEL/CentOS 6
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-01-30) [x86_64-linux]
Description
Is there a chance to suppress the strict-aliasing warning:
string.c: In function [e28098]rb_fstring_new[e28099]:
string.c:270: warning: dereferencing pointer [e28098]fake_str.60[e28099] does break strict-aliasing rules
string.c:270: note: initialized from here
Which I observe on RHEL6:
http://c64b.rubyci.org/~chkbuild/ruby-trunk/log/20150130T092302Z.log.html.gz
Updated by jaruga (Jun Aruga) over 8 years ago
I could see still this error on trunk
http://rubyci.s3.amazonaws.com/c64b/ruby-trunk/log/20160627T090203Z.log.html.gz
compiling string.c
string.c: In function ‘rb_fstring_new’:
string.c:349: 警告: dereferencing pointer ‘fake_str.121’ does break strict-aliasing rules
string.c:349: note: initialized from here
string.c: In function ‘rb_fstring_enc_new’:
string.c:349: 警告: dereferencing pointer ‘fake_str.121’ does break strict-aliasing rules
string.c:349: note: initialized from here
string.c: In function ‘rb_fstring_cstr’:
string.c:349: 警告: dereferencing pointer ‘fake_str.121’ does break strict-aliasing rules
string.c:349: note: initialized from here
string.c: In function ‘rb_fstring_enc_cstr’:
string.c:349: 警告: dereferencing pointer ‘fake_str.121’ does break strict-aliasing rules
string.c:349: note: initialized from here
Updated by shyouhei (Shyouhei Urabe) over 8 years ago
- Related to Bug #12191: Violation of ANSI aliasing rules causing problems while compiling added
Updated by vo.x (Vit Ondruch) about 8 years ago
- Status changed from Open to Closed
Fixed by r55831 and r55833. Backport requested in #12657.
Actions
Like0
Like0Like0Like0