Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 572212 Details for
Bug 606142
sys-libs/ncurses-6.0-r1 failed to build with -flto -O2
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
ncurses-6.1-configure-link-test-upstream.patch
0001-Backport-configure-changes-for-new-optimization.patch (text/plain), 19.78 KB, created by
Jory A. Pratt
on 2019-04-08 00:34:00 UTC
(
hide
)
Description:
ncurses-6.1-configure-link-test-upstream.patch
Filename:
MIME Type:
Creator:
Jory A. Pratt
Created:
2019-04-08 00:34:00 UTC
Size:
19.78 KB
patch
obsolete
>From 2c6d278741c3ba1989cef410343d798f62fb97ba Mon Sep 17 00:00:00 2001 >From: >Date: Sun, 7 Apr 2019 19:29:49 -0500 >Subject: [PATCH] Backport configure changes for new optimization > >--- > configure | 320 +++++++++++++++++++++++++++--------------------------- > 1 file changed, 160 insertions(+), 160 deletions(-) > >diff --git a/configure b/configure >index adead92..162c245 100755 >--- a/configure >+++ b/configure >@@ -5450,30 +5450,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 5451 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char dlsym (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define dlsym autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef dlsym >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char dlsym (); >-char (*f) (); >+char dlsym (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_dlsym) || defined (__stub___dlsym) >-choke me >-#else >-f = dlsym; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for dlsym > #endif > >+ return dlsym (); > ; > return 0; > } >@@ -7728,30 +7728,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 7729 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -7801,30 +7801,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 7802 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -9965,30 +9965,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 9966 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -13098,30 +13098,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 13099 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char pthread_kill (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define pthread_kill autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef pthread_kill >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char pthread_kill (); >-char (*f) (); >+char pthread_kill (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_pthread_kill) || defined (__stub___pthread_kill) >-choke me >-#else >-f = pthread_kill; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for pthread_kill > #endif > >+ return pthread_kill (); > ; > return 0; > } >@@ -14351,30 +14351,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 14352 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char strlcat (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define strlcat autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef strlcat >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char strlcat (); >-char (*f) (); >+char strlcat (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_strlcat) || defined (__stub___strlcat) >-choke me >-#else >-f = strlcat; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for strlcat > #endif > >+ return strlcat (); > ; > return 0; > } >@@ -14543,30 +14543,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 14544 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -15445,30 +15445,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 15446 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char gettimeofday (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define gettimeofday autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef gettimeofday >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char gettimeofday (); >-char (*f) (); >+char gettimeofday (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_gettimeofday) || defined (__stub___gettimeofday) >-choke me >-#else >-f = gettimeofday; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for gettimeofday > #endif > >+ return gettimeofday (); > ; > return 0; > } >@@ -16001,30 +16001,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 16002 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char regcomp (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define regcomp autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef regcomp >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char regcomp (); >-char (*f) (); >+char regcomp (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_regcomp) || defined (__stub___regcomp) >-choke me >-#else >-f = regcomp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for regcomp > #endif > >+ return regcomp (); > ; > return 0; > } >@@ -16142,30 +16142,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 16143 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char compile (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define compile autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef compile >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char compile (); >-char (*f) (); >+char compile (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_compile) || defined (__stub___compile) >-choke me >-#else >-f = compile; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for compile > #endif > >+ return compile (); > ; > return 0; > } >@@ -17511,30 +17511,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 17512 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -18416,30 +18416,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 18417 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char mkstemp (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define mkstemp autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef mkstemp >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char mkstemp (); >-char (*f) (); >+char mkstemp (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_mkstemp) || defined (__stub___mkstemp) >-choke me >-#else >-f = mkstemp; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for mkstemp > #endif > >+ return mkstemp (); > ; > return 0; > } >@@ -18812,30 +18812,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 18813 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char memmove (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define memmove autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef memmove >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char memmove (); >-char (*f) (); >+char memmove (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_memmove) || defined (__stub___memmove) >-choke me >-#else >-f = memmove; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for memmove > #endif > >+ return memmove (); > ; > return 0; > } >@@ -18874,30 +18874,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 18875 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char bcopy (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define bcopy autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef bcopy >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char bcopy (); >-char (*f) (); >+char bcopy (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_bcopy) || defined (__stub___bcopy) >-choke me >-#else >-f = bcopy; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for bcopy > #endif > >+ return bcopy (); > ; > return 0; > } >@@ -19006,30 +19006,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 19007 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >@@ -19366,30 +19366,30 @@ else > cat >conftest.$ac_ext <<_ACEOF > #line 19367 "configure" > #include "confdefs.h" >-/* System header to define __stub macros and hopefully few prototypes, >- which can conflict with char $ac_func (); below. */ >-#include <assert.h> >-/* Override any gcc2 internal prototype to avoid an error. */ >+#define $ac_func autoconf_temporary >+#include <limits.h> /* least-intrusive standard header which defines gcc2 __stub macros */ >+#undef $ac_func >+ > #ifdef __cplusplus > extern "C" > #endif >+ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ >-char $ac_func (); >-char (*f) (); >+char $ac_func (void); > > int > main (void) > { >-/* The GNU C library defines this for functions which it implements >+ >+/* The GNU C library defines stubs for functions which it implements > to always fail with ENOSYS. Some functions are actually named > something starting with __ and the normal name is an alias. */ > #if defined (__stub_$ac_func) || defined (__stub___$ac_func) >-choke me >-#else >-f = $ac_func; /* workaround for ICC 12.0.3 */ if (f == 0) return 1; >+#error found stub for $ac_func > #endif > >+ return $ac_func (); > ; > return 0; > } >-- >2.21.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 606142
:
460508
|
461360
|
461362
|
461364
|
526274
| 572212