This is the mail archive of the gcc-bugs@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]

volatile undefined II


my first report "volatile undefined" was incomplete.
sorry about that.
forget all - restart & sorry for inconveniences :)


tudinc_server.C is attached.

if you compile it like this, everything is ok, no messages.
g++ -c -O0 -Wall -Werror tudinc_server.C

but if you compile it like this, you will get message:
g++ -v --save-temps -c -O2 -Wall -Werror tudinc_server.C

////// snip
tudinc_server.C: In method `server_kettetype<servermsg_zeigerelemtype>::server_kettetype(int)':
tudinc_server.C:21:   instantiated from here
tudinc_server.C:12: `volatile' undeclared (first use this function)
tudinc_server.C:12: (Each undeclared identifier is reported only once
tudinc_server.C:12: for each function it appears in.)
cc1plus: warnings being treated as errors
tudinc_server.C:12: warning:  qualifier ignored on asm
////// snap

you will also get a .ii and a .s file, which are also attached.


hope this helps.

cu
erik

-- 
Name:  Erik Thiele                                       \\\\
Email: erikyyy@erikyyy.de                                o `QQ'_
IRC:   erikyyy                                            /   __8
WWW:   http://www.erikyyy.de/                             '  `
#include <netinet/in.h>

template <class objtype>
class server_kettetype
{
public:
  server_kettetype(int portnumber);
};

template <class objtype> server_kettetype<objtype>::server_kettetype(int portnumber)
{
  htons(portnumber);
};

class servermsg_zeigerelemtype 
{
};

void f()
{
  server_kettetype<servermsg_zeigerelemtype> (555);
}
# 1 "tudinc_server.C"
# 1 "/usr/include/netinet/in.h" 1 3
 




















# 1 "/usr/include/features.h" 1 3
 




















 



























































 



















 





 



 







 
# 138 "/usr/include/features.h" 3


 









 





 



























# 196 "/usr/include/features.h" 3


































 



 








 




 

# 1 "/usr/include/sys/cdefs.h" 1 3
 




















 




 





 








 




# 71 "/usr/include/sys/cdefs.h" 3


 







 



# 103 "/usr/include/sys/cdefs.h" 3



 








 















 








 








 









 







# 250 "/usr/include/features.h" 2 3


 








 





 

 








# 1 "/usr/include/gnu/stubs.h" 1 3
 






































# 278 "/usr/include/features.h" 2 3




# 22 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 1 3
 


 





 
# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/syslimits.h" 1 3
 





# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 1 3
 


 

# 114 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 3



# 1 "/usr/include/limits.h" 1 3
 

















 









 
# 1 "/usr/include/bits/posix1_lim.h" 1 3
 

















 









 

 


 


 


 


 


 


 


 



 


 


 


 


 



 


 


 


 


 


 


 


 


 


 


 


 



 


 


 


 


 



 
# 1 "/usr/include/bits/local_lim.h" 1 3
 


















 





 
# 1 "/usr/include/linux/limits.h" 1 3



















# 27 "/usr/include/bits/local_lim.h" 2 3


 





 

 


 

 


 

 


 



 

# 126 "/usr/include/bits/posix1_lim.h" 2 3








 







# 30 "/usr/include/limits.h" 2 3




# 1 "/usr/include/bits/posix2_lim.h" 1 3
 

















 







 


 


 


 


 




 




 



 


 



 




 































 



# 34 "/usr/include/limits.h" 2 3








 





 

# 121 "/usr/include/limits.h" 3




  








# 117 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 2 3




# 7 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/syslimits.h" 2 3


# 11 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 2 3





 



 



 




 





 



 












 

 




 



 








 



 













 



# 107 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 3




 









# 23 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/include/stdint.h" 1 3
 

















 








# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 1 3






 


# 19 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3



 


 





 


# 61 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 





 


















 





 

 

# 131 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 

# 190 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3



 




 





























 












































# 283 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 

# 317 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3




 





















# 28 "/usr/include/stdint.h" 2 3

# 1 "/usr/include/bits/wordsize.h" 1 3
 


















# 29 "/usr/include/stdint.h" 2 3


 

 

 


typedef signed char		int8_t;
typedef short int		int16_t;
typedef int			int32_t;



__extension__
typedef long long int		int64_t;



 
typedef unsigned char		uint8_t;
typedef unsigned short int	uint16_t;
typedef unsigned int		uint32_t;



__extension__
typedef unsigned long long int	uint64_t;



 

 
typedef signed char		int_least8_t;
typedef short int		int_least16_t;
typedef int			int_least32_t;



__extension__
typedef long long int		int_least64_t;


 
typedef unsigned char		uint_least8_t;
typedef unsigned short int	uint_least16_t;
typedef unsigned int		uint_least32_t;



__extension__
typedef unsigned long long int	uint_least64_t;



 

 
typedef signed char		int_fast8_t;





typedef int			int_fast16_t;
typedef int			int_fast32_t;
__extension__
typedef long long int		int_fast64_t;


 
typedef unsigned char		uint_fast8_t;





typedef unsigned int		uint_fast16_t;
typedef unsigned int		uint_fast32_t;
__extension__
typedef unsigned long long int	uint_fast64_t;



 








typedef int			intptr_t;


typedef unsigned int		uintptr_t;



 




__extension__
typedef long long int		intmax_t;
__extension__
typedef unsigned long long int	uintmax_t;



 

# 280 "/usr/include/stdint.h" 3



 

# 316 "/usr/include/stdint.h" 3



# 24 "/usr/include/netinet/in.h" 2 3


# 1 "/usr/include/sys/types.h" 1 3
 

















 








extern "C" { 

# 1 "/usr/include/bits/types.h" 1 3
 

















 









# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 1 3






 


# 19 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3



 


 





 


# 61 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 





 


















 





 

 

# 131 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 


































typedef unsigned int size_t;






















 




 

# 271 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


# 283 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 

# 317 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3




 





















# 29 "/usr/include/bits/types.h" 2 3


 
typedef unsigned char __u_char;
typedef unsigned short __u_short;
typedef unsigned int __u_int;
typedef unsigned long __u_long;

__extension__ typedef unsigned long long int __u_quad_t;
__extension__ typedef long long int __quad_t;
# 48 "/usr/include/bits/types.h" 3

typedef signed char __int8_t;
typedef unsigned char __uint8_t;
typedef signed short int __int16_t;
typedef unsigned short int __uint16_t;
typedef signed int __int32_t;
typedef unsigned int __uint32_t;

__extension__ typedef signed long long int __int64_t;
__extension__ typedef unsigned long long int __uint64_t;

typedef __quad_t *__qaddr_t;

typedef __u_quad_t __dev_t;		 
typedef __u_int __uid_t;		 
typedef __u_int __gid_t;		 
typedef __u_long __ino_t;		 
typedef __u_int __mode_t;		 
typedef __u_int __nlink_t; 		 
typedef long int __off_t;		 
typedef __quad_t __loff_t;		 
typedef int __pid_t;			 
typedef int __ssize_t;			 
typedef __u_long __rlim_t;		 
typedef __u_quad_t __rlim64_t;		 
typedef __u_int __id_t;			 

typedef struct
  {
    int __val[2];
  } __fsid_t;				 

 
typedef int __daddr_t;			 
typedef char *__caddr_t;
typedef long int __time_t;
typedef long int __swblk_t;		 

typedef long int __clock_t;

 
typedef unsigned long int __fd_mask;

 


 




 
typedef struct
  {
     





    __fd_mask __fds_bits[1024  / (8 * sizeof (__fd_mask)) ];


  } __fd_set;


typedef int __key_t;

 
typedef unsigned short int __ipc_pid_t;


 

 
typedef long int __blkcnt_t;
typedef __quad_t __blkcnt64_t;

 
typedef __u_long __fsblkcnt_t;
typedef __u_quad_t __fsblkcnt64_t;

 
typedef __u_long __fsfilcnt_t;
typedef __u_quad_t __fsfilcnt64_t;

 
typedef __u_long __ino64_t;

 
typedef __loff_t __off64_t;

 
typedef long int __t_scalar_t;
typedef unsigned long int __t_uscalar_t;

 
typedef int __intptr_t;


 





# 30 "/usr/include/sys/types.h" 2 3



typedef __u_char u_char;
typedef __u_short u_short;
typedef __u_int u_int;
typedef __u_long u_long;
typedef __quad_t quad_t;
typedef __u_quad_t u_quad_t;
typedef __fsid_t fsid_t;


typedef __loff_t loff_t;



typedef __ino_t ino_t;











typedef __dev_t dev_t;




typedef __gid_t gid_t;




typedef __mode_t mode_t;




typedef __nlink_t nlink_t;




typedef __uid_t uid_t;





typedef __off_t off_t;











typedef __pid_t pid_t;




typedef __id_t id_t;



typedef __ssize_t ssize_t;




typedef __daddr_t daddr_t;
typedef __caddr_t caddr_t;



typedef __key_t key_t;






# 1 "/usr/include/time.h" 1 3
 

















 














# 51 "/usr/include/time.h" 3



# 62 "/usr/include/time.h" 3








 
typedef __time_t time_t;





# 89 "/usr/include/time.h" 3




# 279 "/usr/include/time.h" 3



# 122 "/usr/include/sys/types.h" 2 3



# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 1 3






 


# 19 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3



 


 





 


# 61 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 





 


















 





 

 

# 131 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 


# 188 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3





 




 

# 271 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


# 283 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 

# 317 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3




 





















# 125 "/usr/include/sys/types.h" 2 3



 
typedef unsigned long int ulong;
typedef unsigned short int ushort;
typedef unsigned int uint;


 

# 159 "/usr/include/sys/types.h" 3


 













typedef unsigned int u_int8_t __attribute__ ((__mode__ (  __QI__ ))) ;
typedef unsigned int u_int16_t __attribute__ ((__mode__ (  __HI__ ))) ;
typedef unsigned int u_int32_t __attribute__ ((__mode__ (  __SI__ ))) ;
typedef unsigned int u_int64_t __attribute__ ((__mode__ (  __DI__ ))) ;

typedef int register_t __attribute__ ((__mode__ (__word__)));


 






 
# 1 "/usr/include/endian.h" 1 3
 






















 









 
# 1 "/usr/include/bits/endian.h" 1 3
 






# 35 "/usr/include/endian.h" 2 3


 













# 191 "/usr/include/sys/types.h" 2 3


 
# 1 "/usr/include/sys/select.h" 1 3
 


















 






 


 
# 1 "/usr/include/bits/select.h" 1 3
 

























# 36 "/usr/include/bits/select.h" 3












# 56 "/usr/include/bits/select.h" 3

# 72 "/usr/include/bits/select.h" 3

# 31 "/usr/include/sys/select.h" 2 3


 
# 1 "/usr/include/bits/sigset.h" 1 3
 





















typedef int __sig_atomic_t;

 


typedef struct
  {
    unsigned long int __val[(1024 / (8 * sizeof (unsigned long int))) ];
  } __sigset_t;




 





# 125 "/usr/include/bits/sigset.h" 3

# 34 "/usr/include/sys/select.h" 2 3


 

# 1 "/usr/include/time.h" 1 3
 

















 














# 51 "/usr/include/time.h" 3



# 62 "/usr/include/time.h" 3



# 73 "/usr/include/time.h" 3








 

struct timespec
  {
    long int tv_sec;		 
    long int tv_nsec;		 
  };





# 279 "/usr/include/time.h" 3



# 38 "/usr/include/sys/select.h" 2 3


extern "C" { 

 



struct timeval;

typedef __fd_mask fd_mask;

 
typedef __fd_set fd_set;

 



 




 






 




extern int __select  (int __nfds, __fd_set *__readfds,
			  __fd_set *__writefds, __fd_set *__exceptfds,
			  struct timeval *__timeout)  throw ()  ;
extern int select  (int __nfds, __fd_set *__readfds,
			__fd_set *__writefds, __fd_set *__exceptfds,
			struct timeval *__timeout)  throw ()  ;

# 91 "/usr/include/sys/select.h" 3


} 


# 194 "/usr/include/sys/types.h" 2 3


 
# 1 "/usr/include/sys/sysmacros.h" 1 3
 





















 








# 47 "/usr/include/sys/sysmacros.h" 3



# 197 "/usr/include/sys/types.h" 2 3




 

typedef __blkcnt_t blkcnt_t;	  
typedef __fsblkcnt_t fsblkcnt_t;  
typedef __fsfilcnt_t fsfilcnt_t;  












} 


# 26 "/usr/include/netinet/in.h" 2 3

# 1 "/usr/include/bits/socket.h" 1 3
 



























# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 1 3






 


# 19 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3



 


 





 


# 61 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 





 


















 





 

 

# 131 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 


# 188 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3





 




 

# 271 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


# 283 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3


 

 

# 317 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/stddef.h" 3




 





















# 29 "/usr/include/bits/socket.h" 2 3


# 1 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 1 3
 


 

# 114 "/usr/lib/gcc-lib/i386-linux/2.95.2/include/limits.h" 3







# 31 "/usr/include/bits/socket.h" 2 3



 
typedef unsigned int socklen_t;

 
enum __socket_type
{
  SOCK_STREAM = 1,		 


  SOCK_DGRAM = 2,		 


  SOCK_RAW = 3,			 

  SOCK_RDM = 4,			 

  SOCK_SEQPACKET = 5,		 


  SOCK_PACKET = 10		 



};

 




























 




























 











 


 
# 1 "/usr/include/bits/sockaddr.h" 1 3
 


















 







 
typedef unsigned short int sa_family_t;

 








 

extern int __libc_sa_len  (sa_family_t __af)  throw ()  ;


# 133 "/usr/include/bits/socket.h" 2 3


 
struct sockaddr
  {
    sa_family_t  sa_family ;	 
    char sa_data[14];		 
  };


 









struct sockaddr_storage
  {
    sa_family_t  __ss_family ;	 
    __uint32_t  __ss_align;	 
    char __ss_padding[(128  - (2 * sizeof (__uint32_t ))) ];
  };


 
enum
  {
    MSG_OOB		= 0x01,	 

    MSG_PEEK		= 0x02,	 

    MSG_DONTROUTE	= 0x04,	 






    MSG_CTRUNC		= 0x08,	 

    MSG_PROXY		= 0x10,	 

    MSG_TRUNC		= 0x20,

    MSG_DONTWAIT	= 0x40,  

    MSG_EOR		= 0x80,  

    MSG_WAITALL		= 0x100,  

    MSG_FIN		= 0x200,

    MSG_SYN		= 0x400,

    MSG_URG		= 0x800,

    MSG_RST		= 0x1000,

    MSG_ERRQUEUE	= 0x2000,  

    MSG_NOSIGNAL	= 0x4000   

  };


 

struct msghdr
  {
    void *  msg_name;		 
    socklen_t msg_namelen;	 

    struct iovec *msg_iov;	 
    size_t msg_iovlen;		 

    void *  msg_control;	 
    size_t msg_controllen;	 

    int msg_flags;		 
  };

 
struct cmsghdr
  {
    size_t cmsg_len;		 

    int cmsg_level;		 
    int cmsg_type;		 

    unsigned char __cmsg_data[0];  
     

  };

 















extern struct cmsghdr *__cmsg_nxthdr  (struct msghdr *__mhdr,
					   struct cmsghdr *__cmsg)  throw ()  ;




extern __inline  struct cmsghdr *
__cmsg_nxthdr (struct msghdr *__mhdr, struct cmsghdr *__cmsg) throw () 
{
  if ((size_t) __cmsg->cmsg_len < sizeof (struct cmsghdr))
     
    return 0;

  __cmsg = (struct cmsghdr *) ((unsigned char *) __cmsg
			       + ((( __cmsg->cmsg_len ) + sizeof (size_t) - 1) & ~(sizeof (size_t) - 1)) );
  if ((unsigned char *) (__cmsg + 1) >= ((unsigned char *) __mhdr->msg_control
					 + __mhdr->msg_controllen)
      || ((unsigned char *) __cmsg + ((( __cmsg->cmsg_len ) + sizeof (size_t) - 1) & ~(sizeof (size_t) - 1)) 
	  >= ((unsigned char *) __mhdr->msg_control + __mhdr->msg_controllen)))
     
    return 0;
  return __cmsg;
}


 

enum
  {
    SCM_RIGHTS = 0x01,		 


    SCM_CREDENTIALS = 0x02,      


    __SCM_CONNECT = 0x03	 
  };

 

struct ucred
{
  pid_t  pid;			 
  uid_t  uid;			 
  gid_t  gid;			 
};

 
# 1 "/usr/include/asm/socket.h" 1 3



# 1 "/usr/include/asm/sockios.h" 1 3



 








# 4 "/usr/include/asm/socket.h" 2 3


 
















 







 






 



 
# 55 "/usr/include/asm/socket.h" 3



# 295 "/usr/include/bits/socket.h" 2 3



 
struct linger
  {
    int l_onoff;		 
    int l_linger;		 
  };


# 27 "/usr/include/netinet/in.h" 2 3



extern "C" { 

 
enum
  {
    IPPROTO_IP = 0,	    
    IPPROTO_HOPOPTS = 0,    
    IPPROTO_ICMP = 1,	    
    IPPROTO_IGMP = 2,	    
    IPPROTO_IPIP = 4,	    
    IPPROTO_TCP = 6,	    
    IPPROTO_EGP = 8,	    
    IPPROTO_PUP = 12,	    
    IPPROTO_UDP = 17,	    
    IPPROTO_IDP = 22,	    
    IPPROTO_TP = 29,	    
    IPPROTO_IPV6 = 41,      
    IPPROTO_ROUTING = 43,   
    IPPROTO_FRAGMENT = 44,  
    IPPROTO_RSVP = 46,	    
    IPPROTO_GRE = 47,	    
    IPPROTO_ESP = 50,       
    IPPROTO_AH = 51,        
    IPPROTO_ICMPV6 = 58,    
    IPPROTO_NONE = 59,      
    IPPROTO_DSTOPTS = 60,   
    IPPROTO_MTP = 92,	    
    IPPROTO_ENCAP = 98,	    
    IPPROTO_PIM = 103,	    
    IPPROTO_COMP = 108,	    
    IPPROTO_RAW = 255,	    
    IPPROTO_MAX
  };

 
enum
  {
    IPPORT_ECHO = 7,		 
    IPPORT_DISCARD = 9,		 
    IPPORT_SYSTAT = 11,		 
    IPPORT_DAYTIME = 13,	 
    IPPORT_NETSTAT = 15,	 
    IPPORT_FTP = 21,		 
    IPPORT_TELNET = 23,		 
    IPPORT_SMTP = 25,		 
    IPPORT_TIMESERVER = 37,	 
    IPPORT_NAMESERVER = 42,	 
    IPPORT_WHOIS = 43,		 
    IPPORT_MTP = 57,

    IPPORT_TFTP = 69,		 
    IPPORT_RJE = 77,
    IPPORT_FINGER = 79,		 
    IPPORT_TTYLINK = 87,
    IPPORT_SUPDUP = 95,		 


    IPPORT_EXECSERVER = 512,	 
    IPPORT_LOGINSERVER = 513,	 
    IPPORT_CMDSERVER = 514,
    IPPORT_EFSSERVER = 520,

     
    IPPORT_BIFFUDP = 512,
    IPPORT_WHOSERVER = 513,
    IPPORT_ROUTESERVER = 520,

     
    IPPORT_RESERVED = 1024,

     
    IPPORT_USERRESERVED = 5000
  };


 
struct in_addr
  {
    uint32_t s_addr;
  };


 



























 

 

 


 

 




 






 
struct in6_addr
  {
    union
      {
	uint8_t		u6_addr8[16];
	uint16_t	u6_addr16[8];
	uint32_t	u6_addr32[4];



      } in6_u;




  };

extern const struct in6_addr in6addr_any;         
extern const struct in6_addr in6addr_loopback;    






 



 
struct sockaddr_in
  {
    sa_family_t  sin_family ;
    uint16_t sin_port;			 
    struct in_addr sin_addr;		 

     
    unsigned char sin_zero[sizeof (struct sockaddr) -
			   (sizeof (unsigned short int))  -
			   sizeof (uint16_t) -
			   sizeof (struct in_addr)];
  };

 
struct sockaddr_in6
  {
    sa_family_t  sin6_family ;
    uint16_t sin6_port;		 
    uint32_t sin6_flowinfo;	 
    struct in6_addr sin6_addr;	 
  };

 
struct ipv6_mreq
  {
     
    struct in6_addr ipv6mr_multiaddr;

     
    unsigned int ipv6mr_interface;
  };

 
# 1 "/usr/include/bits/in.h" 1 3
 

















 





 






















 


 




 






 


struct ip_opts
  {
    struct in_addr ip_dst;	 
    char ip_opts[40];		 
  };

 
struct ip_mreq
  {
    struct in_addr imr_multiaddr;	 
    struct in_addr imr_interface;	 
  };

 
struct ip_mreqn
  {
    struct in_addr imr_multiaddr;	 
    struct in_addr imr_address;		 
    int	imr_ifindex;			 
  };

 
struct in_pktinfo
  {
    int ipi_ifindex;			 
    struct in_addr ipi_spec_dst;	 
    struct in_addr ipi_addr;		 
  };

 

























 




 


# 225 "/usr/include/netinet/in.h" 2 3


 






extern uint32_t ntohl  (uint32_t __netlong)  throw ()  ;
extern uint16_t ntohs  (uint16_t __netshort)  throw ()  ;
extern uint32_t htonl  (uint32_t __hostlong)  throw ()  ;
extern uint16_t htons  (uint16_t __hostshort)  throw ()  ;



 
# 1 "/usr/include/bits/byteswap.h" 1 3
 






















 





# 40 "/usr/include/bits/byteswap.h" 3






 





 



# 68 "/usr/include/bits/byteswap.h" 3
# 79 "/usr/include/bits/byteswap.h" 3







 









# 242 "/usr/include/netinet/in.h" 2 3
















































 
extern int bindresvport  (int __sockfd, struct sockaddr_in *__sock_in)  throw ()  ;


















 
struct in6_pktinfo
  {
    struct in6_addr	ipi6_addr;     
    unsigned int	ipi6_ifindex;  
  };

} 


# 1 "tudinc_server.C" 2


template <class objtype>
class server_kettetype
{
public:
  server_kettetype(int portnumber);
};

template <class objtype> server_kettetype<objtype>::server_kettetype(int portnumber)
{
  (__extension__	({ register unsigned short int __v;	if (__builtin_constant_p (  portnumber  ))	__v = ((((   portnumber   ) >> 8) & 0xff) | (((   portnumber   ) & 0xff) << 8)) ;	else	__asm__ __volatile__ ("rorw $8, %w0"	: "=r" (__v)	: "0" ((unsigned short int) (  portnumber  ))	: "cc");	__v; }))  ;
};

class servermsg_zeigerelemtype 
{
};

void f()
{
  server_kettetype<servermsg_zeigerelemtype> (555);
}
	.file	"tudinc_server.C"
	.version	"01.01"
gcc2_compiled.:
.globl __throw
.text
	.align 4
.globl f__Fv
	.type	 f__Fv,@function
f__Fv:
.LFB1:
	pushl %ebp
.LCFI0:
	movl %esp,%ebp
.LCFI1:
	subl $24,%esp
.LCFI2:
	addl $-8,%esp
	pushl $555
	leal -1(%ebp),%eax
	pushl %eax
.LCFI3:
	call __t16server_kettetype1Z24servermsg_zeigerelemtypei
	leave
	ret
.LFE1:
.Lfe1:
	.size	 f__Fv,.Lfe1-f__Fv
.section	.gnu.linkonce.t.__t16server_kettetype1Z24servermsg_zeigerelemtypei,"ax",@progbits
	.align 4
	.weak	__t16server_kettetype1Z24servermsg_zeigerelemtypei
	.type	 __t16server_kettetype1Z24servermsg_zeigerelemtypei,@function
__t16server_kettetype1Z24servermsg_zeigerelemtypei:
.LFB2:
	pushl %ebp
.LCFI4:
	movl %esp,%ebp
.LCFI5:
	movl 8(%ebp),%eax
	leave
	ret
.LFE2:
.Lfe2:
	.size	 __t16server_kettetype1Z24servermsg_zeigerelemtypei,.Lfe2-__t16server_kettetype1Z24servermsg_zeigerelemtypei

.section	.eh_frame,"aw",@progbits
__FRAME_BEGIN__:
	.4byte	.LLCIE1
.LSCIE1:
	.4byte	0x0
	.byte	0x1
	.byte	0x0
	.byte	0x1
	.byte	0x7c
	.byte	0x8
	.byte	0xc
	.byte	0x4
	.byte	0x4
	.byte	0x88
	.byte	0x1
	.align 4
.LECIE1:
	.set	.LLCIE1,.LECIE1-.LSCIE1
	.4byte	.LLFDE1
.LSFDE1:
	.4byte	.LSFDE1-__FRAME_BEGIN__
	.4byte	.LFB1
	.4byte	.LFE1-.LFB1
	.byte	0x4
	.4byte	.LCFI0-.LFB1
	.byte	0xe
	.byte	0x8
	.byte	0x85
	.byte	0x2
	.byte	0x4
	.4byte	.LCFI1-.LCFI0
	.byte	0xd
	.byte	0x5
	.byte	0x4
	.4byte	.LCFI3-.LCFI1
	.byte	0x2e
	.byte	0x10
	.align 4
.LEFDE1:
	.set	.LLFDE1,.LEFDE1-.LSFDE1
	.4byte	.LLFDE3
.LSFDE3:
	.4byte	.LSFDE3-__FRAME_BEGIN__
	.4byte	.LFB2
	.4byte	.LFE2-.LFB2
	.byte	0x4
	.4byte	.LCFI4-.LFB2
	.byte	0xe
	.byte	0x8
	.byte	0x85
	.byte	0x2
	.byte	0x4
	.4byte	.LCFI5-.LCFI4
	.byte	0xd
	.byte	0x5
	.align 4
.LEFDE3:
	.set	.LLFDE3,.LEFDE3-.LSFDE3
	.ident	"GCC: (GNU) 2.95.2 20000313 (Debian GNU/Linux)"

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