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

2016-10-28 Thread Andreas Cadhalpun
On 26.10.2016 02:07, Michael Niedermayer wrote: > On Wed, Oct 26, 2016 at 01:35:34AM +0200, Andreas Cadhalpun wrote: >> On 26.10.2016 01:26, Michael Niedermayer wrote: >>> On Wed, Oct 26, 2016 at 01:16:13AM +0200, Andreas Cadhalpun wrote: configure |7 ++- 1 file changed, 6

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

2016-10-26 Thread Andreas Cadhalpun
On 26.10.2016 22:57, Carl Eugen Hoyos wrote: > 2016-10-26 21:36 GMT+02:00 Andreas Cadhalpun > : >> On 26.10.2016 10:52, Carl Eugen Hoyos wrote: >>> 2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun >>> : I'm under the impression

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

2016-10-26 Thread Hendrik Leppkes
On Wed, Oct 26, 2016 at 10:57 PM, Carl Eugen Hoyos wrote: > 2016-10-26 21:36 GMT+02:00 Andreas Cadhalpun > : >> On 26.10.2016 10:52, Carl Eugen Hoyos wrote: >>> 2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun >>>

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

2016-10-26 Thread Carl Eugen Hoyos
2016-10-26 21:36 GMT+02:00 Andreas Cadhalpun : > On 26.10.2016 10:52, Carl Eugen Hoyos wrote: >> 2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun >> : >>> I'm under the impression that __attribute__((used)) is not available >>> for

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

2016-10-26 Thread Andreas Cadhalpun
On 26.10.2016 10:52, Carl Eugen Hoyos wrote: > 2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun > : >> I'm under the impression that __attribute__((used)) is not available >> for all compilers, > Yes, but __attribute__((foo_bar)) does not break compilation here.

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

2016-10-26 Thread Carl Eugen Hoyos
2016-10-26 1:16 GMT+02:00 Andreas Cadhalpun : > On 25.10.2016 23:34, Carl Eugen Hoyos wrote: >> 2016-10-25 19:19 GMT+02:00 Andreas Cadhalpun >> : >> >>> +# LTO could optimize out the test functions without this >>> +

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

2016-10-26 Thread Carl Eugen Hoyos
2016-10-26 1:35 GMT+02:00 Andreas Cadhalpun : > I forgot to include stdint.h. Fixed patch attached. Why don't you cast to (int)? Carl Eugen ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

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

2016-10-25 Thread Michael Niedermayer
On Wed, Oct 26, 2016 at 01:35:34AM +0200, Andreas Cadhalpun wrote: > On 26.10.2016 01:26, Michael Niedermayer wrote: > > On Wed, Oct 26, 2016 at 01:16:13AM +0200, Andreas Cadhalpun wrote: > >> configure |7 ++- > >> 1 file changed, 6 insertions(+), 1 deletion(-) > >>

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

2016-10-25 Thread Andreas Cadhalpun
On 26.10.2016 01:26, Michael Niedermayer wrote: > On Wed, Oct 26, 2016 at 01:16:13AM +0200, Andreas Cadhalpun wrote: >> configure |7 ++- >> 1 file changed, 6 insertions(+), 1 deletion(-) >> 742684cf379693d08075d43fdfb75ed5e2e936c6 >>

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

2016-10-25 Thread Michael Niedermayer
On Wed, Oct 26, 2016 at 01:16:13AM +0200, Andreas Cadhalpun wrote: > On 25.10.2016 23:34, Carl Eugen Hoyos wrote: > > 2016-10-25 19:19 GMT+02:00 Andreas Cadhalpun > > : > > > >> +# LTO could optimize out the test functions without this > >> +echo

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

2016-10-25 Thread Andreas Cadhalpun
On 25.10.2016 23:34, Carl Eugen Hoyos wrote: > 2016-10-25 19:19 GMT+02:00 Andreas Cadhalpun > : > >> +# LTO could optimize out the test functions without this >> +echo "#if defined(__GNUC__) && __GNUC__ >= 4" >> +echo " #define USED

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

2016-10-25 Thread Carl Eugen Hoyos
2016-10-25 19:19 GMT+02:00 Andreas Cadhalpun : > +# LTO could optimize out the test functions without this > +echo "#if defined(__GNUC__) && __GNUC__ >= 4" > +echo " #define USED __attribute__((used))" > +echo "#else" > +

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

2016-10-25 Thread Andreas Cadhalpun
Bud-Id: https://bugs.gentoo.org/show_bug.cgi?id=598054 Signed-off-by: Andreas Cadhalpun --- configure | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 481f692..14a20ed 100755 --- a/configure +++ b/configure