[Bug bootstrap/21512] New: build failure on ppc-apple-darwin5.5 in libcpp
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed May 11 11:09:00 GMT 2005
When compiling libcpp/init.c:
../../gcc/libcpp/init.c:59: parse error before `,'
[9 times]
This error happens on:
TRIGRAPH_MAP
s('=', '#') s(')', ']') s('!', '|')
s('(', '[') s('\'', '^') s('>', '}')
s('/', '\\') s('<', '{') s('-', '~')
END
which, once preprocessed, is:
__extension__ const uchar _cpp_trigraph_map[255 + 1] = {
[ '=' ] = '#' , [ ')' ] = ']' , [ '!' ] = '|' ,
[ '(' ] = '[' , [ '\'' ] = '^' , [ '>' ] = '}' ,
[ '/' ] = '\\' , [ '<' ] = '{' , [ '-' ] = '~' ,
};
The following minimal code:
__extension__ const unsigned char _cpp_trigraph_map[255 + 1] = {
[ '=' ] = '#' , [ ')' ] = ']' , [ '!' ] = '|'
};
compiles fine on my linux box but gives 3 "parse error before `,'" on ppc-darwin5.5.
A workaround seems to specify -DHAVE_DESIGNATED_INITIALIZERS=0.
--
Summary: build failure on ppc-apple-darwin5.5 in libcpp
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: fxcoudert at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: ppc-apple-darwin5.5
GCC host triplet: ppc-apple-darwin5.5
GCC target triplet: ppc-apple-darwin5.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21512
More information about the Gcc-bugs
mailing list