From patchwork Mon Jan 26 19:50:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 433022 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A5FE51401DD for ; Tue, 27 Jan 2015 06:51:39 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; q=dns; s=default; b=UQ6KkZEhV24T+0OjD thRLIC+iwFTGQhiRutUhhwQuVNDstYvzfQZ4bVRIXPZ4VSYWXqz6wwTjgAmk0yUH SapsKIH2mKg2JLddQjOcRO2QCtcGUto60jGhPf1qykhz3bE4myH8DHJF12RoFsLC TYKBz1JB1/Een52UntsDnja/Fs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; s=default; bh=ImfjbAA07Vx8iXiacU5Twez 2WI4=; b=TZ+UMjE5K8TKzbWiBN2yH2La0fA0q70l0zB3eybmqvznBO9pr0ekwO3 FD8gMGl1Zgw3Wenq7tvWZPwMTwvI1e+qtgoNX222srQUxZ4RREeOGzqXLTmgHaOw fD2UqHz54eIBViAe6uSUTCEtcKmE1jUwSjcNp4wooLfYZbclLApA= Received: (qmail 2324 invoked by alias); 26 Jan 2015 19:51:32 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 2312 invoked by uid 89); 26 Jan 2015 19:51:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: resqmta-po-04v.sys.comcast.net Received: from resqmta-po-04v.sys.comcast.net (HELO resqmta-po-04v.sys.comcast.net) (96.114.154.163) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 26 Jan 2015 19:51:28 +0000 Received: from resomta-po-19v.sys.comcast.net ([96.114.154.243]) by resqmta-po-04v.sys.comcast.net with comcast id kjrL1p0045FMDhs01jrSDY; Mon, 26 Jan 2015 19:51:26 +0000 Received: from [IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d] ([IPv6:2001:558:6045:a4:40c6:7199:cd03:b02d]) by resomta-po-19v.sys.comcast.net with comcast id kjrR1p0082ztT3H01jrRwU; Mon, 26 Jan 2015 19:51:26 +0000 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Subject: Re: #pragma GCC unroll support From: Mike Stump In-Reply-To: <9FE5AF27-EB8A-4CC3-A345-A69C2BFD8F30@comcast.net> Date: Mon, 26 Jan 2015 11:50:26 -0800 Cc: gcc-patches Patches , Jason Merrill , "Joseph S. Myers" Message-Id: References: <0596944B-9DDC-4299-8CBC-9B6EB06BEF68@comcast.net> <9FE5AF27-EB8A-4CC3-A345-A69C2BFD8F30@comcast.net> To: Richard Biener X-IsSubscribed: yes I missed including the documentation patch in the last set. :-( Here it is: Index: extend.texi =================================================================== --- extend.texi (revision 220084) +++ extend.texi (working copy) @@ -17881,6 +17881,17 @@ void ignore_vec_dep (int *a, int k, int @} @end smallexample +@table @code +@item #pragma GCC unroll @var{"n"} +@cindex pragma GCC unroll @var{"n"} + +With this pragma, the programmer informs the optimizer how many times +a loop should be unrolled. A 0 or 1 informs the compiler to not +perform any loop unrolling. The pragma must be immediately before +@samp{#pragma ivdep} or a @code{for}, @code{while} or @code{do} loop +and applies only to the loop that follows. + +@end table @node Unnamed Fields @section Unnamed struct/union fields within structs/unions