From faabf7880c81f3e7689476fe86aa35399c2219f1 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Fri, 17 Apr 2015 19:50:46 +0200 Subject: [PATCH] re PR target/65535 (powerpc64-freebsd build failure) PR target/65535 * config.gcc: Exit with a comment when we do not have a major version number for the FreeBSD target. From-SVN: r222192 --- gcc/ChangeLog | 6 ++++++ gcc/config.gcc | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cbf7c69eaf..e6501e39a9b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-04-17 Andreas Tobler + + PR target/65535 + * config.gcc: Exit with a comment when we do not have a major version + number for the FreeBSD target. + 2015-04-17 Jakub Jelinek PR target/65689 diff --git a/gcc/config.gcc b/gcc/config.gcc index cb08a5cc58d..9552f7b8161 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -664,6 +664,11 @@ case ${target} in gas=yes gnu_ld=yes fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'` + if test "$fbsd_major" = ""; then + echo "Specify the major version number of the targeted FreeBSD release" + echo "like this: --target=amd64-unknown-freebsd10.1" + exit 1 + fi tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}" tmake_file="t-slibgcc" case ${enable_threads} in -- 2.30.2