https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68759

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Created attachment 36945
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36945&action=edit
kernel config

I'm building the latest vanilla kernel tree:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git.

The kernel config is attached.

Binutils is latest trunk. (Both ld.bfd and ld.gold hit the issue,
although the error messages are slightly different.)

I'm also using the following kernel patch, to enable -O3 instead
of the default -O2. (The rest are compare-debug related changes, 
that are uninteresting in the current context.)

diff --git a/Makefile b/Makefile
index d644f6e..0922f17 100644
--- a/Makefile
+++ b/Makefile
@@ -610,7 +610,7 @@ KBUILD_CFLAGS       += $(call
cc-option,-fno-delete-null-pointer-checks,)
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
 KBUILD_CFLAGS  += -Os $(call cc-disable-warning,maybe-uninitialized,)
 else
-KBUILD_CFLAGS  += -O2
+KBUILD_CFLAGS  += -O3 -w
 endif

 # Tell gcc to never replace conditional load with a non-conditional one
@@ -700,7 +700,6 @@ KBUILD_CFLAGS       += -fomit-frame-pointer
 endif
 endif

-KBUILD_CFLAGS   += $(call cc-option, -fno-var-tracking-assignments)

 ifdef CONFIG_DEBUG_INFO
 ifdef CONFIG_DEBUG_INFO_SPLIT
diff --git a/scripts/gcc-goto.sh b/scripts/gcc-goto.sh
index c9469d3..fad4c94 100755
--- a/scripts/gcc-goto.sh
+++ b/scripts/gcc-goto.sh
@@ -2,6 +2,8 @@
 # Test for gcc 'asm goto' support
 # Copyright (C) 2010, Jason Baron <jba...@redhat.com>

+GCC_COMPARE_DEBUG=0
+
 cat << "END" | $@ -x c - -c -o /dev/null >/dev/null 2>&1 && echo "y"
 int main(void)
 {

Reply via email to