История изменений
Исправление
pavlick,
(текущая версия)
:
Кстати, любителям порассуждать о ЮБ, о том, что это всегда небо на головоу и форматирование диска вместе с перегоранием ЦПУ и ГПУ вследствие интенсивного майнинга (из man gcc):
-fdelete-null-pointer-checks
Assume that programs cannot safely dereference null pointers, and that no code or data element resides at address zero. This option enables simple constant folding optimizations at all optimization levels. In addition, other optimization passes in GCC use this flag to control global dataflow analyses that eliminate useless checks for null pointers; these assume that a memory access to address zero always results in a trap, so that if a pointer is checked after it has already been dereferenced, it cannot be null.
Note however that in some environments this assumption is not true. Use -fno-delete-null-pointer-checks to disable this optimization for programs that depend on that behavior.
Что? Какие-то гарантии поверх ЮБ? В частности - these assume that a memory access to address zero always results in a trap. И - programs that depend on that behavior.
Берегите свои шаблоны.
Исходная версия
pavlick,
:
Кстати, любителям порассуждать о ЮБ, о том, что это всегда небо на головоу и форматирование диска вместе с перегоранием ЦПУ (из man gcc):
-fdelete-null-pointer-checks
Assume that programs cannot safely dereference null pointers, and that no code or data element resides at address zero. This option enables simple constant folding optimizations at all optimization levels. In addition, other optimization passes in GCC use this flag to control global dataflow analyses that eliminate useless checks for null pointers; these assume that a memory access to address zero always results in a trap, so that if a pointer is checked after it has already been dereferenced, it cannot be null.
Note however that in some environments this assumption is not true. Use -fno-delete-null-pointer-checks to disable this optimization for programs that depend on that behavior.
Что? Какие-то гарантии поверх ЮБ? В частности - these assume that a memory access to address zero always results in a trap. И - programs that depend on that behavior.
Берегите свои шаблоны.