From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30714 invoked by alias); 10 Jul 2014 20:56:50 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 30646 invoked by uid 48); 10 Jul 2014 20:56:47 -0000 From: "jmichae3 at yahoo dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/61121] -O2 -ftree-parallelize-loops=0 for maximum not accepted in 4.9.0 Date: Thu, 10 Jul 2014 20:56:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jmichae3 at yahoo dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg00679.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61121 --- Comment #8 from Jim Michaels --- in the mingw-w64 gcc compiler at least, -ftree-parallize-loops=12 -O2 runs single-threaded. https://gcc.gnu.org/ml/gcc-help/2007-01/msg00165.html I probably don't understand the compiler, but I have been trying with -static and without, using -Wall -Wextra -v -save-temps -ftree-parallelize-loops=12 -O2 -std=c++11 I have also tried 0 on that number with same results. I always get single-threaded programs, and my stuff contains a lot of vectors and loops. I have also tried with -floop-parallelize-all -ftree-slp-vectorize additionally with same results. it's like that -ftree-parallize-loops is being ignored by the compiler. I did what everybody said and used the posix/pthreads version. this has not helped. auto-threading seems broken in 4.9.0 v3rev2.