SILO: fix build issues with GNU11 mode
v2 cover SILO: fix build issues with GNU11 mode
Hi,
GCC will switch to GNU11 default mode, and currently SILO compilation is broken with GCC 4.9.1 and--std=gnu11 due to ext2fs inline function declarations.
These cleanup patches should fix the build, while not making any functional changes (same code is generated with current GNU89 default mode with and without these patches).
Tested by running SILO installation + boot with versions compiled with both GNU89 & GNU11 modes using GCC 4.9.1 on Ultrasparc.
v2: Just delete code instead of trying to clean it up.
Aaro Koskinen (2):
silo: ext2fs: delete bitops.h
silo: ext2fs: delete _INLINE_ functions
include/ext2fs/bitops.h | 608 ------------------------------------------------ include/ext2fs/ext2fs.h | 191 --------------- 2 files changed, 799 deletions(-) delete mode 100644 include/ext2fs/bitops.h
Signature · 1 line
2.1.2
From: Aaro Koskinen <[email protected]>
Date: Sun, 19 Oct 2014 14:57:35 +0300
Quoted 6 lines
Hi,
GCC will switch to GNU11 default mode, and currently SILO compilation is broken with GCC 4.9.1 and--std=gnu11 due to ext2fs inline function declarations.
Quoted 8 lines
These cleanup patches should fix the build, while not making any functional changes (same code is generated with current GNU89 default mode with and without these patches).
Tested by running SILO installation + boot with versions compiled with both GNU89 & GNU11 modes using GCC 4.9.1 on Ultrasparc.
v2: Just delete code instead of trying to clean it up.
This is a lot better, applied, thanks.
Feel free to submit a patch which explicitly turns on GNU11 for the build when the compiler supports it.
That way we'll never break the build in this manner.