| От | Tom Lane |
|---|---|
| Тема | Why is it so easy to override -fno-strict-aliasing? |
| Дата | |
| Msg-id | 17105.1075488589@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Why is it so easy to override -fno-strict-aliasing?
|
| Список | pgsql-hackers |
In config/c-compiler.m4 I read
if test "$ac_env_CFLAGS_set" != set; then CFLAGS="$CFLAGS $pgac_cv_prog_cc_no_strict_aliasing"
fi
This means that a configure operation as innocuous-looking as
CFLAGS="-O3" ./configure
will break the build on gcc >= 3.3 because it will fail to supply
-fno-strict-aliasing. I claim this is a lousy idea. We should drop
the if-test and always add -fno-strict-aliasing if the compiler
will take it. People who *really* know what they are doing can
experiment with removing the switch from Makefile.global after
configure, but I don't think it should be quite this easy to lose it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера