From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109092 invoked by alias); 27 May 2015 16:00:20 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 108121 invoked by uid 89); 27 May 2015 16:00:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 27 May 2015 16:00:13 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id CA8CC340D78; Wed, 27 May 2015 16:00:10 +0000 (UTC) From: Mike Frysinger To: gcc-patches@gcc.gnu.org Cc: cltang@codesourcery.com, sandra@codesourcery.com Subject: [PATCH] nios2-linux: add missing cpp specs Date: Wed, 27 May 2015 16:05:00 -0000 Message-Id: <1432742409-23547-1-git-send-email-vapier@gentoo.org> X-SW-Source: 2015-05/txt/msg02483.txt.bz2 Define CPP_SPEC for nios2 linux targets so that -posix & -pthread work like on all other linux targets. 2015-05-27 Mike Frysinger * config/nios2/linux.h (CPP_SPEC): Define. --- gcc/config/nios2/linux.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/nios2/linux.h b/gcc/config/nios2/linux.h index 41cad94..f43f655 100644 --- a/gcc/config/nios2/linux.h +++ b/gcc/config/nios2/linux.h @@ -26,6 +26,9 @@ } \ while (0) +#undef CPP_SPEC +#define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}" + #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-nios2.so.1" #undef LINK_SPEC -- 2.4.1