Language
C++
Compiler
gcc 4.4.7
Options
Warnings
Optimization
Boost 1.59.0
C++0x
$ g++ prog.cc -Wall -W -O2 -march=native -I/opt/wandbox/boost-1.59.0/gcc-4.4.7/include -std=c++0x
00000020
00000020
Exit Code:
0
C++
gcc 4.4.7
$ g++ prog.cc -Wall -W -O2 -march=native -I/opt/wandbox/boost-1.59.0/gcc-4.4.7/include -std=c++0x
prog.cc: In function 'uint32_t swaphalves(uint32_t)':
prog.cc:12: warning: dereferencing pointer 'ptr' does break strict-aliasing rules
prog.cc:11: warning: dereferencing pointer 'ptr' does break strict-aliasing rules
prog.cc:9: note: initialized from here
prog.cc:12: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules
prog.cc:12: note: initialized from here
prog.cc:13: warning: dereferencing pointer '<anonymous>' does break strict-aliasing rules
prog.cc:13: note: initialized from here
prog.cc: In function 'int main()':
prog.cc:12: warning: dereferencing pointer 'ptr' does break strict-aliasing rules
prog.cc:11: warning: dereferencing pointer 'ptr' does break strict-aliasing rules
prog.cc:9: note: initialized from here
00000020
00000020