BUG: /lib/lists.c.. Don`t use -O2 . Use -O1

Lauro, John jlauro at umflint.edu
Thu Jan 10 19:44:25 CET 2013


gcc 3.4.3?  

-O2 is generally pretty safe.  Your version of gcc sounds pretty old.  I assume this isn't an issue with newer versions of gcc?


________________________________________
From: owner-bird-users at atrey.karlin.mff.cuni.cz [owner-bird-users at atrey.karlin.mff.cuni.cz] on behalf of Maksim Tamarsky [mtamarsky at nsg.net.ru]
Sent: Thursday, January 10, 2013 9:47 AM
To: bird-users at trubka.network.cz
Subject: Re: BUG: /lib/lists.c..    Don`t use -O2 . Use -O1

I found that my trouble exists when compiling with -O2 option.
In that case inline functions rem_node and add_head will merged into
function (/nest/iface.c ifa_recalc_primary) and then will badly
optimized by compiler, because the implicit use of pointers to the same
data. If we call external function(like printf) between rem_node and
add_head trouble gone away in any case.

Now i use -O1. This works for 1.3.2 and 13.8.


My compiler is:
$ powerpc-nsg-linux-gcc -dumpversion
3.4.3
$ powerpc-nsg-linux-gcc -dumpmachine
powerpc-nsg-linux



--
RU:
Тамарский Максим Александрович
Инженер-программист

ООО Эн-Эс-Джи
г.Москва, Кирпичная 39/41 оф.1302
Почтовый адрес: 105187 Россия, Москва
ул.Вольная, д.35, оф.NSG

Тел./факс: +7 495 727-19-59
Web-сайт: http://www.nsg.ru

EN:
Maksim Tamarsky
Software Engineer
NSG Ltd.
35 Volnaya Street, 105187 Moscow, Russia
+7 495 727-19-59
http://www.nsg.ru






More information about the Bird-users mailing list