pbiggar / phc

A compiler for PHP
132 stars 37 forks source link

strict-alias bug #130

Closed pbiggar closed 9 years ago

pbiggar commented 9 years ago
g++ -DHAVE_CONFIG_H -I. -I./libltdl -I./src -I./3rdparty/getopt
-I./src/generated -DDATADIR=\"/usr/local/share\"
-DPKGLIBDIR=\"/usr/local/lib/phc\" -Wall -Wextra -Wno-unused-parameter
-Wno-write-strings -g -O2 -MT AST_lower_expr.lo -MD -MP -MF
.deps/AST_lower_expr.Tpo -c src/ast_to_hir/AST_lower_expr.cpp  -fPIC -DPIC
-o .libs/AST_lower_expr.o
src/ast_to_hir/AST_lower_expr.cpp: In member function 'void
AST::Lower_expr::push_back_pieces(AST::Statement*, AST::Statement_list*)':

src/ast_to_hir/AST_lower_expr.cpp:136: warning: dereferencing pointer
'<anonymous>' does break strict-aliasing rules
src/ast_to_hir/AST_lower_expr.cpp:136: note: initialized from here

Original issue reported on code.google.com by socketpair on 2010-02-11 07:58:58

pbiggar commented 9 years ago
src/generated/AST.cpp: In constructor 'AST::Commented_node::Commented_node()':
src/generated/AST.cpp:1675: warning: dereferencing pointer '<anonymous>' does break
strict-aliasing rules
src/generated/AST.cpp:1675: note: initialized from here
src/generated/AST.cpp: In constructor 'AST::Commented_node::Commented_node()':
src/generated/AST.cpp:1675: warning: dereferencing pointer '<anonymous>' does break
strict-aliasing rules
src/generated/AST.cpp:1675: note: initialized from here

The same.

Due to very power gcc-4.[ optimisations, strict-aliasing bugs may lead to BIG errors

Original issue reported on code.google.com by socketpair on 2010-02-11 08:00:51

pbiggar commented 9 years ago
What version of gcc are you using? I'm not getting strict aliasing issues in 4.4.3 and
wondering if it's related to the false failures from previous gcc versions.

Original issue reported on code.google.com by cubathy on 2010-06-15 22:31:54

pbiggar commented 9 years ago
gcc 3.4 RHEL

Please close, it's not bug in phc.

Original issue reported on code.google.com by socketpair on 2010-06-16 07:25:38

pbiggar commented 9 years ago
Reporter says not-a-bug, so closing.

Original issue reported on code.google.com by paul.biggar on 2010-09-05 12:21:41