pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: irssi: Error detected by libpthread: Invalid mutex.



Jonathan Schleifer wrote:
> Am 27.10.2008 um 18:14 schrieb Christian Biere:
>
>> Out of curiosity, why are you using -fwrapv? The GCC manpage is highly
>> misleading in this regard. This is no optimization flag. I would think
>> that -fstack-protector-all implies you value security highly. However,
>> code that requires -fwrapv is so broken and ignorant of any standards
>> that no amount of stack overflow checking could ever repair it. I'll
>> assure anyone that code relying on -fwrapv is ripe with other bugs of
>> all kinds anyway.

> Without -frwapv, gcc 4 decides to optimize away some checks for integer 
> overflows.

Uhm, no... that's just nonsense and quite backwards.
This switch is for people trying to code C whilst thinking Java.

-- 
Christian


Home | Main Index | Thread Index | Old Index