This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bootstrap failure on sparc-sun-sunos4.1.4


On Feb 20, 2001, Romain Dolbeau <dolbeau@irisa.fr> wrote:

> /home/CURRENT/GCC-TEST/gcc/libstdc++-v3/src/gen-num-limits.cc:187: no
> matching 
>    function for call to `signal_adapter(void (*(&)(...))(...), int, void 
>    (&)(int))'

Please try this patch:

Index: libstdc++-v3/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* src/gen-num-limits.cc (signal_adapter): Match signal(...).

Index: libstdc++-v3/src/gen-num-limits.cc
===================================================================
RCS file: /cvs/gcc/egcs/libstdc++-v3/src/gen-num-limits.cc,v
retrieving revision 1.7
diff -u -p -r1.7 gen-num-limits.cc
--- libstdc++-v3/src/gen-num-limits.cc 2001/02/11 18:15:49 1.7
+++ libstdc++-v3/src/gen-num-limits.cc 2001/02/20 10:12:51
@@ -114,8 +114,16 @@ template <typename signal_handler_type, 
 inline void (*signal_adapter (signal_handler_type
 			      (*signal_func)(signal_number_type,
 					     signal_handler_type),
-		       signal_number_type arg,
-		       void (*handler)(int)))(int)
+			      signal_number_type arg,
+			      void (*handler)(int)))(int)
+{
+  return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
+}
+
+template <typename signal_handler_type, typename signal_number_type>
+inline void (*signal_adapter (signal_handler_type (*signal_func)(...),
+			      signal_number_type arg,
+			      void (*handler)(int)))(int)
 {
   return (void (*)(int))(*signal_func)(arg, (signal_handler_type)handler);
 }

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]