[FFmpeg-devel] [PATCH] configure: make sure LTO does not optimize out the test functions

Hendrik Leppkes h.leppkes at gmail.com
Thu Oct 27 00:13:06 EEST 2016


On Wed, Oct 26, 2016 at 10:57 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:
> 2016-10-26 21:36 GMT+02:00 Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>:
>> On 26.10.2016 10:52, Carl Eugen Hoyos wrote:
>>> 2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>:
>>>> I'm under the impression that __attribute__((used)) is not available
>>>> for all compilers,
>>
>>> Yes, but __attribute__((foo_bar)) does not break compilation here.
>>
>> Have you tested with MSVC?
>
> No.
>
>>> (But it is still a regression: 3.1 should not have seen the patch,
>>> it doesn't support new incompatible external libraries, and the
>>> issue was neither a regression nor security-related.)
>>
>> This was not about a new external library, the support was added
>> in 2015 (commit 99eabcd), and I think fixing build failures is quite
>> sensible for release branches.
>
> Sorry for bringing this up.
>
>> On 26.10.2016 10:55, Carl Eugen Hoyos wrote:
>>> 2016-10-26 1:35 GMT+02:00 Andreas Cadhalpun <andreas.cadhalpun at googlemail.com>:
>>>
>>>> I forgot to include stdint.h. Fixed patch attached.
>>>
>>> Why don't you cast to (int)?
>>
>> Because gcc doesn't like it:
>> warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
>
> I don't see the problem with this warning but I guess you could use
> long, no?
>

long is still 32-bit on some 64-bit platforms. intptr_t is the type
designed for this, whats wrong with using it?

- Hendrik


More information about the ffmpeg-devel mailing list