From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7350 invoked by alias); 26 Oct 2011 14:54:49 -0000 Received: (qmail 7339 invoked by uid 22791); 26 Oct 2011 14:54:48 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 26 Oct 2011 14:54:31 +0000 From: "greed at pobox dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/50874] New: loc_t in tree-diagnostics.c conflicts with system header on AIX Date: Wed, 26 Oct 2011 14:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: greed at pobox 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-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 X-SW-Source: 2011-10/txt/msg02655.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D50874 Bug #: 50874 Summary: loc_t in tree-diagnostics.c conflicts with system header on AIX Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target AssignedTo: unassigned@gcc.gnu.org ReportedBy: greed@pobox.com Host: powerpc-ibm-aix5.3.0.0 Target: powerpc-ibm-aix5.3.0.0 Build: powerpc-ibm-aix5.3.0.0 Created attachment 25616 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=3D25616 Rename loc_t to lincol_t SVN Trunk revision 180430 fails to compile on AIX 5.3 TL4, with this error: /mnts/cdstools/build/source/gcc-r180430/gcc/tree-diagnostic.c:59: error: conflicting types for =E2=80=98loc_t=E2=80=99 Grepping around the system headers, I find a typedef struct localeinfo_tabl= e to loc_t in /usr/include/sys/localedef31.h. I've verified this is present in = AIX 5.3 TL4, 6.1 and 7.3. As the use of 'loc_t' is isolated to tree-diagnostic.c, I simply renamed it= to 'lincol_t' so I could get on with things. I've attached the diff, but some= one is far more than welcome to come up with a better name that doesn't conflict with AIX. (Or someone could make it so AIX never appears in my life again, that would work too.)