Re: [PATCH V3] xfsprogs: do not redeclare globals provided by libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 1/29/20 3:32 PM, Christoph Hellwig wrote:
> On Wed, Jan 29, 2020 at 01:47:49PM -0600, Eric Sandeen wrote:
>> V3: ditto, plus enforce -fno-common so older gcc users will play
>>     by the same rules as gcc 10
> 
> I don't mind adding -fno-common, but it has aboslutely nothing to do
> with removing pointless duplicate variable defintions.
> 
> I'd say apply v2 and make this a separate patch.

ok

>> @@ -13,7 +13,7 @@ OPTIMIZER = @opt_build@
>>  MALLOCLIB = @malloc_lib@
>>  LOADERFLAGS = @LDFLAGS@
>>  LTLDFLAGS = @LDFLAGS@
>> -CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64
>> +CFLAGS = @CFLAGS@ -D_FILE_OFFSET_BITS=64 -fno-common
> 
> Are there any compilers not supporting -fno-common?  (And do we care?)

not sure if it'd vary by version or by arch, but

gcc version 4.4.7

has it on RHEL7

-Eric



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux