From patchwork Thu Apr 30 23:39:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 3640 Return-Path: Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 5DE50603F5 for ; Fri, 1 May 2020 01:39:26 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="W2AT6D45"; dkim-atps=neutral Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DBAA772C for ; Fri, 1 May 2020 01:39:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1588289966; bh=hnXVMrXPEuGmbWT+HbZwMWlHLFFm3qCDynOhxaV+gTM=; h=From:To:Subject:Date:From; b=W2AT6D450X3Zfc8U6itKPSqkgEU1G9Mga6ZRSmBKkUeO5p2D0gHIvA9hB8asw8BX4 tvjXojfLcHEQ7rV/20wBs3J0NTe+VuShHw6sHvRmp4JnJz0walhkuSSLzRG8BqASJT J11PXesFVl4cuMLrZrQDfqdjSjRZZ4arjdowgG1k= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Fri, 1 May 2020 02:39:18 +0300 Message-Id: <20200430233918.19017-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.25.3 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH] libcamera: Set -Wno-psabi on gcc 7 and 8 for arm X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2020 23:39:26 -0000 gcc 7.1 introduced processor-specific ABI breakages related to parameter passing on ARM platforms. This generates a large number of messages during compilation witg gcc >=7.1 until gcc 9. Silence them. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/meson.build b/meson.build index 9fc5cc52dc99..718214730da8 100644 --- a/meson.build +++ b/meson.build @@ -69,6 +69,16 @@ if cc.has_argument('-Wno-c99-designator') ] endif +# gcc 7.1 introduced processor-specific ABI breakages related to parameter +# passing on ARM platforms. This generates a large number of messages during +# compilation witg gcc >=7.1 until gcc 9. Silence them. +if (host_machine.cpu_family() == 'arm' and cc.get_id() == 'gcc' and + cc.version().version_compare('>=7.1') and cc.version().version_compare('<9')) + cpp_arguments += [ + '-Wno-psabi', + ] +endif + c_arguments += common_arguments cpp_arguments += common_arguments