http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50874
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: unassig...@gcc.gnu.org ReportedBy: gr...@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=25616 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 ‘loc_t’ Grepping around the system headers, I find a typedef struct localeinfo_table 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 someone 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.)