From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22402 invoked by alias); 23 Oct 2009 12:21:36 -0000 Received: (qmail 22393 invoked by uid 22791); 23 Oct 2009 12:21:35 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SPF_FAIL X-Spam-Check-By: sourceware.org Received: from mx20.gnu.org (HELO mx20.gnu.org) (199.232.41.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Oct 2009 12:21:29 +0000 Received: from mail.codesourcery.com ([38.113.113.100]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N1J95-0006HM-3G for gcc-patches@gcc.gnu.org; Fri, 23 Oct 2009 08:21:27 -0400 Received: (qmail 6488 invoked from network); 23 Oct 2009 12:21:25 -0000 Received: from unknown (HELO digraph.polyomino.org.uk) (joseph@127.0.0.2) by mail.codesourcery.com with ESMTPA; 23 Oct 2009 12:21:25 -0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.69) (envelope-from ) id 1N1J92-0003zw-AQ; Fri, 23 Oct 2009 12:21:24 +0000 Date: Fri, 23 Oct 2009 12:29:00 -0000 From: "Joseph S. Myers" To: Richard Guenther cc: gcc-patches@gcc.gnu.org Subject: Re: Alias sets for VLAs and strict aliasing warnings (PR 41673) In-Reply-To: <84fc9c000910230221g43c9a7f1o2086d50d9c21be71@mail.gmail.com> Message-ID: References: <84fc9c000910230221g43c9a7f1o2086d50d9c21be71@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-detected-operating-system: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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: 2009-10/txt/msg01465.txt.bz2 On Fri, 23 Oct 2009, Richard Guenther wrote: > The change is ok, but I wonder why the C FE sets > TYPE_STRUCTURAL_EQUALITY_P on VLAs. As you can see It's not the front end setting it - tree.c:build_index_type sets it for the index type with nonconstant bounds, while tree.c:build_array_type sets it for arrays if it is set for either the element type or the index type. -- Joseph S. Myers joseph@codesourcery.com