Message308755
Ah, I missed the warning because I forge -O0 when I build Python.
https://wiki.ubuntu.com/ToolChain/CompilerFlags
Ubuntu adds -D_FORTIFY_SOURCE=2 flag by default.
The warnings can be seen with "-D_FORTIFY_SOURCE=2 -Og", but not with "-D_FORTIFY_SOURCE=2 -O3". Moreover, "-D_FORTIFY_SOURCE=2 -O0" complains that _FORTIFY_SOURCE requires to optimize the code.
It looks more like a false alarm because -D_FORTIFY_SOURCE=2 is incompatible with -Og.
Maybe we should force -D_FORTIFY_SOURCE=0 when we build Python in debug mode? |
|
Date |
User |
Action |
Args |
2017-12-20 17:55:33 | vstinner | set | recipients:
+ vstinner, pitrou, serhiy.storchaka |
2017-12-20 17:55:33 | vstinner | set | messageid: <1513792533.07.0.213398074469.issue32375@psf.upfronthosting.co.za> |
2017-12-20 17:55:33 | vstinner | link | issue32375 messages |
2017-12-20 17:55:33 | vstinner | create | |
|