Last inline offenders...

From: Poul-Henning Kamp <phk_at_phk.freebsd.dk>
Date: Wed, 23 Jul 2003 20:55:00 +0200
The following patch are my suggestion (already sent to maintainers)
for inlines to remove so we can get under the 2000 limit in GCC on
i386.


Index: dev/aic7xxx/aic79xx_inline.h
===================================================================
RCS file: /home/ncvs/src/sys/dev/aic7xxx/aic79xx_inline.h,v
retrieving revision 1.12
diff -u -r1.12 aic79xx_inline.h
--- dev/aic7xxx/aic79xx_inline.h	28 Jun 2003 04:43:19 -0000	1.12
+++ dev/aic7xxx/aic79xx_inline.h	23 Jul 2003 16:37:59 -0000
_at__at_ -451,7 +451,7 _at__at_
 static __inline void	ahd_set_sescb_qoff(struct ahd_softc *ahd, u_int value);
 static __inline u_int	ahd_get_sdscb_qoff(struct ahd_softc *ahd);
 static __inline void	ahd_set_sdscb_qoff(struct ahd_softc *ahd, u_int value);
-static __inline u_int	ahd_inb_scbram(struct ahd_softc *ahd, u_int offset);
+static u_int	ahd_inb_scbram(struct ahd_softc *ahd, u_int offset);
 static __inline u_int	ahd_inw_scbram(struct ahd_softc *ahd, u_int offset);
 static __inline uint32_t
 			ahd_inl_scbram(struct ahd_softc *ahd, u_int offset);
_at__at_ -664,7 +664,7 _at__at_
 	ahd_outb(ahd, SDSCB_QOFF+1, (value >> 8) & 0xFF);
 }
 
-static __inline u_int
+static u_int
 ahd_inb_scbram(struct ahd_softc *ahd, u_int offset)
 {
 	u_int value;
Index: dev/drm/mga_state.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/drm/mga_state.c,v
retrieving revision 1.6
diff -u -r1.6 mga_state.c
--- dev/drm/mga_state.c	25 Apr 2003 01:18:46 -0000	1.6
+++ dev/drm/mga_state.c	23 Jul 2003 18:33:33 -0000
_at__at_ -71,7 +71,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g200_emit_context( drm_mga_private_t *dev_priv )
+static void mga_g200_emit_context( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_mga_context_regs_t *ctx = &sarea_priv->context_state;
_at__at_ -97,7 +97,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g400_emit_context( drm_mga_private_t *dev_priv )
+static void mga_g400_emit_context( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_mga_context_regs_t *ctx = &sarea_priv->context_state;
_at__at_ -128,7 +128,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g200_emit_tex0( drm_mga_private_t *dev_priv )
+static void mga_g200_emit_tex0( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0];
_at__at_ -159,7 +159,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g400_emit_tex0( drm_mga_private_t *dev_priv )
+static void mga_g400_emit_tex0( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[0];
_at__at_ -203,7 +203,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g400_emit_tex1( drm_mga_private_t *dev_priv )
+static void mga_g400_emit_tex1( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_mga_texture_regs_t *tex = &sarea_priv->tex_state[1];
_at__at_ -244,7 +244,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g200_emit_pipe( drm_mga_private_t *dev_priv )
+static void mga_g200_emit_pipe( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	unsigned int pipe = sarea_priv->warp_pipe;
_at__at_ -274,7 +274,7 _at__at_
 	ADVANCE_DMA();
 }
 
-static __inline__ void mga_g400_emit_pipe( drm_mga_private_t *dev_priv )
+static void mga_g400_emit_pipe( drm_mga_private_t *dev_priv )
 {
 	drm_mga_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	unsigned int pipe = sarea_priv->warp_pipe;
Index: dev/drm/r128_state.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/drm/r128_state.c,v
retrieving revision 1.6
diff -u -r1.6 r128_state.c
--- dev/drm/r128_state.c	25 Apr 2003 01:18:46 -0000	1.6
+++ dev/drm/r128_state.c	23 Jul 2003 18:33:33 -0000
_at__at_ -98,7 +98,7 _at__at_
 	ADVANCE_RING();
 }
 
-static __inline__ void r128_emit_context( drm_r128_private_t *dev_priv )
+static void r128_emit_context( drm_r128_private_t *dev_priv )
 {
 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_r128_context_regs_t *ctx = &sarea_priv->context_state;
_at__at_ -140,7 +140,7 _at__at_
 	ADVANCE_RING();
 }
 
-static __inline__ void r128_emit_masks( drm_r128_private_t *dev_priv )
+static void r128_emit_masks( drm_r128_private_t *dev_priv )
 {
 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_r128_context_regs_t *ctx = &sarea_priv->context_state;
_at__at_ -174,7 +174,7 _at__at_
 	ADVANCE_RING();
 }
 
-static __inline__ void r128_emit_tex0( drm_r128_private_t *dev_priv )
+static void r128_emit_tex0( drm_r128_private_t *dev_priv )
 {
 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_r128_context_regs_t *ctx = &sarea_priv->context_state;
_at__at_ -201,7 +201,7 _at__at_
 	ADVANCE_RING();
 }
 
-static __inline__ void r128_emit_tex1( drm_r128_private_t *dev_priv )
+static void r128_emit_tex1( drm_r128_private_t *dev_priv )
 {
 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	drm_r128_texture_regs_t *tex = &sarea_priv->tex_state[1];
_at__at_ -225,7 +225,7 _at__at_
 	ADVANCE_RING();
 }
 
-static __inline__ void r128_emit_state( drm_r128_private_t *dev_priv )
+static void r128_emit_state( drm_r128_private_t *dev_priv )
 {
 	drm_r128_sarea_t *sarea_priv = dev_priv->sarea_priv;
 	unsigned int dirty = sarea_priv->dirty;
Index: dev/drm/radeon_state.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/drm/radeon_state.c,v
retrieving revision 1.6
diff -u -r1.6 radeon_state.c
--- dev/drm/radeon_state.c	25 Apr 2003 01:18:46 -0000	1.6
+++ dev/drm/radeon_state.c	23 Jul 2003 18:33:33 -0000
_at__at_ -41,7 +41,7 _at__at_
  * CP hardware state programming functions
  */
 
-static __inline__ void radeon_emit_clip_rect( drm_radeon_private_t *dev_priv,
+static void radeon_emit_clip_rect( drm_radeon_private_t *dev_priv,
 					  drm_clip_rect_t *box )
 {
 	RING_LOCALS;
_at__at_ -1825,7 +1825,7 _at__at_
 	return 0;
 }
 
-static __inline__ int radeon_emit_scalars( 
+static int radeon_emit_scalars( 
 	drm_radeon_private_t *dev_priv,
 	drm_radeon_cmd_header_t header,
 	drm_radeon_cmd_buffer_t *cmdbuf )
_at__at_ -1849,7 +1849,7 _at__at_
 
 /* God this is ugly
  */
-static __inline__ int radeon_emit_scalars2( 
+static int radeon_emit_scalars2( 
 	drm_radeon_private_t *dev_priv,
 	drm_radeon_cmd_header_t header,
 	drm_radeon_cmd_buffer_t *cmdbuf )
_at__at_ -1871,7 +1871,7 _at__at_
 	return 0;
 }
 
-static __inline__ int radeon_emit_vectors( 
+static int radeon_emit_vectors( 
 	drm_radeon_private_t *dev_priv,
 	drm_radeon_cmd_header_t header,
 	drm_radeon_cmd_buffer_t *cmdbuf )

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk_at_FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
Received on Wed Jul 23 2003 - 09:55:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:16 UTC