Skip to contentSkip to conversation

Possible fix? [was: RE: [parisc-linux] linux and gcc 3.x question?]

PATCH Joel Soete 1 participant 1 message Jun 7, 2004

lore
Share & tools
lore

Joel Soete

author
#0 lore raw

Hello all,

May be a better patch:

compiler-gcc3.h renamed from compiler-gcc3.h.orig +2 -2
@@ -4,9 +4,9 @@
 #include <linux/compiler-gcc.h>
 
 #if __GNUC_MINOR__ >=3D 1  && __GNUC_MINOR__ < 4
-# define inline		__inline__ __attribute__((always_inline))
+# define inline		__inline__
+# define __inline	__inline__
 # define __inline__	__inline__ __attribute__((always_inline))
-# define __inline	__inline__ __attribute__((always_inline))
 #endif
 
 #if __GNUC_MINOR__ > 0

=3D=3D=3D=3D=3D=3D=3D=3D><=3D=3D=3D=3D=3D=3D=3D=3D

Any opinion?

Thanks,
Joel

Quoted 11 lines

-- Original Message --
Date: Thu, 3 Jun 2004 17:17:01 +0200
From: "Joel Soete" <[email protected]>
To: [email protected]
Cc:
Subject: [parisc-linux] linux and gcc 3.x question?

Hello all,

I just noticed that when I pre-compile some ncr53c8xx.c with gcc-3.3.4

on

Quoted 2 lines

my p-l box as follow:
"gcc -Wp,-MD,drivers/scsi/.zalon53c720.o.d -nostdinc -iwithprefix inclu=

de

Quoted 1 line

-D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes -Wno-trigraphs -fno-s=

trict-aliasing

Quoted 1 line

-fno-common -pipe -mno-space-regs -mfast-indirect-calls -mdisable-fpreg=

s

Review

Quoted 2 lines
(quoted diff) +0 -2
-ffunction-sections -O2
-DCONFIG_NCR53C8XX_PREFETCH -DSCSI_NCR_BIG_ENDIAN -DCONFIG_SCSI_NCR53C8=

XX_NO_WORD_TRANSFERS

Quoted 1 line

-DKBUILD_BASENAME=3Dncr53c8xx -DKBUILD_MODNAME=3Dzalon7xx -E -o drive=

rs/scsi/ncr53c8xx.o

Quoted 5 lines

drivers/scsi/ncr53c8xx.c"

I got:
[...]
static __inline__ __attribute__((always_inline)) __attribute__((always_=

inline))

Quoted 1 line

int __attribute__((deprecated)) check_region(unsigned long s, unsigned

long

Quoted 16 lines

n)
[...]

(2 time __attribute__((always_inline))?)
It comes from:

include/linux/compiler-gcc3.h
[...]

#if __GNUC_MINOR__ >=3D 1 && __GNUC_MINOR__ < 4

# define inline         __inline__ __attribute__((always_inline))
# define __inline__     __inline__ __attribute__((always_inline))
# define __inline       __inline__ __attribute__((always_inline))
#endif
[...]
Quoted 3 lines

because when I comment the second "define", I got better:
[...]
static __inline__ __attribute__((always_inline)) int __attribute__((dep=

recated))

Quoted 10 lines

check_region(unsigned long s, unsigned long n)
[...]

I very doubt that's the right thing to do so if somebody as any idea?

TIA,
Joel

-----------------------------------------------------------------------=

-----------------

Quoted 11 lines

Tiscali ADSL, 27,50 ?/mois...pendant 6 mois.
La meilleure offre du march=E9 !
http://reg.tiscali.be/default.asp?lg=3Dfr

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

-------------------------------------------------------------------------=
---------------
Tiscali ADSL, 27,50 =80/mois...pendant 6 mois.
La meilleure offre du march=E9 !
http://reg.tiscali.be/default.asp?lg=3Dfr

_______________________________________________
parisc-linux mailing list
[email protected]
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux