[igt-dev] [PATCH i-g-t 0/4] Fixes for GCC 10's -fcommon default

Lyude lyude at redhat.com
Mon Mar 16 16:11:28 UTC 2020


From: Lyude Paul <lyude at redhat.com>

It appears that since GCC 10, -fcommon has become the default over the
previous -fno-common causing igt builds to fail by default. Likewise,
we've also started setting -fcommon by default when building RPMs in
Fedora (likewise, this has broken igt-gpu-tools builds for a while and
I'm only just now getting to fixing it). So, let's fix the issues this
introduced and make -fcommon the default in igt as well to prevent
breakages from this in the future.

Lyude Paul (4):
  lib/igt_core: Make igt_subtest_jmpbuf/igt_dynamic_jmpbuf extern
  lib/rendercopy_gen*: Make cc/viewport static
  assembler/gen4asm.h: Make struct src_operand extern
  meson: Add -fcommon to cc_flags

 assembler/gen4asm.h   | 2 +-
 lib/igt_core.c        | 3 +++
 lib/igt_core.h        | 4 ++--
 lib/rendercopy_gen8.c | 4 ++--
 lib/rendercopy_gen9.c | 4 ++--
 meson.build           | 1 +
 6 files changed, 11 insertions(+), 7 deletions(-)

-- 
2.24.1



More information about the igt-dev mailing list