Date: Thu, 03 Nov 2016 18:24:17 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214173] gcc48 doesn't accept -march=nehalem Message-ID: <bug-214173-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214173 Bug ID: 214173 Summary: gcc48 doesn't accept -march=3Dnehalem Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: conf Assignee: freebsd-bugs@FreeBSD.org Reporter: lantw44@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org /usr/share/mk/bsd.cpu.mk in FreeBSD 11 unconditionally convert CPUTYPE=3Dco= rei7 to CPUTYPE=3Dnehalem. It can cause error in ports built with the default ve= rsion of gcc, including gcc itself, ghc, and other ports with USE_GCC=3Dyes. A simple test: $ echo 'int main(){}' > main.c $ gcc48 -march=3Dcorei7 main.c && echo "OK" OK $ gcc48 -march=3Dnehalem main.c && echo "OK" main.c:1:0: error: bad value (nehalem) for -march=3D switch int main(){} ^ --=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-214173-8>