Project

General

Profile

Actions

Bug #10802

closed

strict-aliasing warning on RHEL/CentOS 6

Added by vo.x (Vit Ondruch) about 9 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.3.0dev (2015-01-30) [x86_64-linux]
[ruby-core:67904]

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


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #12191: Violation of ANSI aliasing rules causing problems while compilingClosedActions

Updated by jaruga (Jun Aruga) almost 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
Actions #2

Updated by shyouhei (Shyouhei Urabe) almost 8 years ago

  • Related to Bug #12191: Violation of ANSI aliasing rules causing problems while compiling added

Updated by vo.x (Vit Ondruch) over 7 years ago

  • Status changed from Open to Closed

Fixed by r55831 and r55833. Backport requested in #12657.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0