Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 881131
Collapse All | Expand All

(-)a/Make.common (-1 / +1 lines)
Lines 60-66 endif Link Here
60
#
60
#
61
61
62
# ...for both GNU-EFI and TianoCore....
62
# ...for both GNU-EFI and TianoCore....
63
OPTIMFLAGS      = -Os -fno-strict-aliasing -fno-tree-loop-distribute-patterns
63
OPTIMFLAGS      = -Os -fno-strict-aliasing
64
CFLAGS          = $(OPTIMFLAGS) -fno-stack-protector -fshort-wchar -Wall
64
CFLAGS          = $(OPTIMFLAGS) -fno-stack-protector -fshort-wchar -Wall
65
65
66
# ...for GNU-EFI....
66
# ...for GNU-EFI....
(-)a/filesystems/crc32c.c (-7 / +8 lines)
Lines 20-32 Link Here
20
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
20
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
21
 */
21
 */
22
22
23
#include <stdint.h> 
24
23
static uint32_t crc32c_table [256];
25
static uint32_t crc32c_table [256];
24
26
25
static void
27
static uint32_t reflect (uint32_t ref, int len)
26
init_crc32c_table (void)
27
{
28
  auto uint32_t reflect (uint32_t ref, int len);
29
  uint32_t reflect (uint32_t ref, int len)
30
    {
28
    {
31
      uint32_t result = 0;
29
      uint32_t result = 0;
32
      int i;
30
      int i;
Lines 41-48 init_crc32c_table (void) Link Here
41
      return result;
39
      return result;
42
    }
40
    }
43
41
44
  static int crc32c_table_inited;
42
static void
45
  if(crc32c_table_inited)
43
init_crc32c_table (void)
44
{
45
    static int crc32c_table_inited;
46
  	if(crc32c_table_inited)
46
	  return;
47
	  return;
47
  crc32c_table_inited = 1;
48
  crc32c_table_inited = 1;
48
49

Return to bug 881131