From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26497 invoked by alias); 19 Nov 2012 19:57:24 -0000 Received: (qmail 26472 invoked by uid 22791); 19 Nov 2012 19:57:22 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 19 Nov 2012 19:57:09 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id 8B76CB004B; Mon, 19 Nov 2012 14:57:08 -0500 (EST) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id qAJJv8cG015543; Mon, 19 Nov 2012 14:57:08 -0500 Date: Mon, 19 Nov 2012 19:57:00 -0000 From: Jack Howarth To: Andrew Pinski Cc: Diego Novillo , Hans-Peter Nilsson , gcc-patches@gcc.gnu.org Subject: Re: VEC re-write [patch 01/25] Message-ID: <20121119195707.GA15344@bromo.med.uc.edu> References: <20121115215319.AE4ACC0916@torture.tor.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) 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 X-SW-Source: 2012-11/txt/msg01597.txt.bz2 On Sun, Nov 18, 2012 at 11:15:22AM -0800, Andrew Pinski wrote: > On Sun, Nov 18, 2012 at 9:12 AM, Diego Novillo wrote: > > On Sun, Nov 18, 2012 at 12:05 PM, Hans-Peter Nilsson wrote: > >> On Sat, 17 Nov 2012, Diego Novillo wrote: > >>> I have now committed all 25 parts of this patch as rev 193595. Please > >>> CC me on any problems that you think may be related to this rewrite. > >> > >> That seems to have trigged some bug in gcc-4.4-era. See > >> PR55381. There are a lot of suspicious warnings from vec.h. > >> It smells a bit like a host gcc bug, but I'll have to find a > >> newer version where it builds to confirm. (If so, "hopefully" > >> it's as "simple" as upping the minimum host gcc version or > >> blacklisting gcc-4.4.x.) > > > > Yeah, I got those warnings in my sparc and hppa builds, but they are > > harmless. Strictly speaking offsetof cannot be applied to non-PODs. > > The only thing that makes that class non-POD is the protected > > attribute, but that does not alter the physical layout. So the > > compiler is emitting a harmless warning (newer versions have > > tightened the check to warn when you are using offsetof on a non-base > > class). > > But then we are no longer writing in C++. Is there a reason why this > warning does not break the build? We should not be using offsetof > with non-PODs. > > Thanks, > Andrew Pinski The changes to tree-data-ref.c have broken the bootstrap on x86_64-apple-darwin11/12 using the Apple clang 4.1 compiler... clang++ -c -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-4.8-20121119/gcc -I../../gcc-4.8-20121119/gcc/. -I../../gcc-4.8-20121119/gcc/../include -I../../gcc-4.8-20121119/gcc/../libcpp/include -I/sw/include -I/sw/include -I../../gcc-4.8-20121119/gcc/../libdecnumber -I../../gcc-4.8-20121119/gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc-4.8-20121119/gcc/../libbacktrace -DCLOOG_INT_GMP -I/sw/include -I/sw/include -I/sw/include ../../gcc-4.8-20121119/gcc/tree-data-ref.c -o tree-data-ref.o clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1599:31: error: second argument to 'va_arg' is of non-POD type 'affine_fn' (aka 'vec') [-Wnon-pod-varargs] ret->fns[i] = va_arg (ap, affine_fn); ~~~~~~~~~~~~^~~~~~~~~~ /usr/bin/../lib/clang/4.1/include/stdarg.h:35:50: note: expanded from macro 'va_arg' #define va_arg(ap, type) __builtin_va_arg(ap, type) ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1665:34: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1666:34: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1812:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1813:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1858:39: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1862:39: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (tmp)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1938:39: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:1941:39: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (tmp)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2203:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (2, ova1, ova2); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2203:43: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (2, ova1, ova2); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2204:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, ovb); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2208:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2209:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2404:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2405:37: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, affine_fn_cst (integer_zero_node)); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2462:34: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_a = conflict_fn (1, ova); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2463:34: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] *overlaps_b = conflict_fn (1, ovb); ^ ../../gcc-4.8-20121119/gcc/tree-data-ref.c:2604:11: error: cannot pass object of non-POD type 'affine_fn' (aka 'vec') through variadic function; call will abort at runtime [-Wnon-pod-varargs] affine_fn_univar (build_int_cst (NULL_TREE, x1), ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. > > > > > My cris-elf builds worked fine, but config-list.mk only builds stage > > 1, it does not build libgfortran. Can you give me instructions on how > > to build your target on my x86 workstation? > > > > > > Thanks. Diego.