Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jul 2019 21:03:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        toolchain@FreeBSD.org
Subject:   [Bug 239266] lang/gcc8 fails to build with clang8: tree-vect-loop.c:4979:12: error: expected unqualified-id
Message-ID:  <bug-239266-29464-kycOXuoE1d@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-239266-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-239266-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D239266

--- Comment #15 from Andreas Tobler <andreast@FreeBSD.org> ---
(In reply to Gerald Pfeifer from comment #10)

Untested, this might be a way to go:

Index: gcc/config.gcc
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- gcc/config.gcc      (revision 273163)
+++ gcc/config.gcc      (working copy)
@@ -2643,6 +2643,11 @@
                tmake_file=3D"${tmake_file} rs6000/t-freebsd64"
                extra_options=3D"${extra_options} rs6000/linux64.opt"
                ;;
+               case ${with_abi} in
+                   elfv2)
+                       tm_defines=3D"${tm_defines} LINUX64_DEFAULT_ABI_ELF=
v2=3D1"
+                       ;;
+=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
             *)
                tm_file=3D"${tm_file} rs6000/freebsd.h"
                ;;

You have to configure gcc with --with-abi=3Delfv2. The diff above is agains=
t gcc
trunk.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-239266-29464-kycOXuoE1d>