From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28806 invoked by alias); 25 Apr 2007 03:09:53 -0000 Received: (qmail 28795 invoked by uid 22791); 25 Apr 2007 03:09:52 -0000 X-Spam-Check-By: sourceware.org Received: from dair.pair.com (HELO dair.pair.com) (209.68.1.49) by sourceware.org (qpsmtpd/0.31) with SMTP; Wed, 25 Apr 2007 04:09:49 +0100 Received: (qmail 33751 invoked by uid 20157); 25 Apr 2007 03:03:35 -0000 Date: Wed, 25 Apr 2007 03:09:00 -0000 From: Hans-Peter Nilsson To: Alan Modra cc: gdb-patches@sourceware.org, binutils@sourceware.org, cgen@sourceware.org Subject: sim build failures (was Re: use instead of on Solaris...)snapshot binutils-2.17.50) In-Reply-To: <20070424033403.GF10537@bubble.grove.modra.org> Message-ID: References: <200704202230.AAA10323@neuro.insel.ch> <20070424033403.GF10537@bubble.grove.modra.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2007-q2/txt/msg00001.txt.bz2 On Tue, 24 Apr 2007, Alan Modra wrote: > * sysdep.h: Don't include ansidecl.h here. This bit caused problems for some simulators, which include the bfd sysdep.h (some from CGEN-generated files), without including ansidecl.h before. At least the following target simulators now fail building: sh64-elf, sh-elf, cris-elf, d10v-elf, with errors like the following (cutnpastenmunged): gcc -c -DHAVE_CONFIG_H -DWITH_DEFAULT_MODEL='"crisv32"' -DPROFILE=1 -DWITH_PROFILE=-1 -DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT \ -DWITH_ENVIRONMENT=ALL_ENVIRONMENT -DWITH_HW=0 -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SCACHE=16384 -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -I. -I/h/hp/sim/cvs_latest/src/sim/cris -I../common -I/h/hp/sim/cvs_latest/src/sim/cris/../common -I../../include -I/h/hp/sim/cvs_latest/src/sim/cris/../../include -I../../bfd -I/h/hp/sim/cvs_latest/src/sim/cris/../../bfd -I../../opcodes -I/h/hp/sim/cvs_latest/src/sim/cris/../../opcodes -g -O2 \ /h/hp/sim/cvs_latest/src/sim/cris/cris-desc.c In file included from /h/hp/sim/cvs_latest/src/sim/cris/cris-desc.c:25: /h/hp/sim/cvs_latest/src/sim/cris/../../bfd/sysdep.h:124: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'malloc' or: In file included from /mnt/4/hp/axis/simwrite/src/sim/sh64/sh-desc.c:25: /mnt/4/hp/axis/simwrite/src/bfd/sysdep.h:124: error: syntax error before "malloc" /mnt/4/hp/axis/simwrite/src/bfd/sysdep.h:124: error: conflicting types for `malloc' /usr/include/stdlib.h:556: error: previous declaration of `malloc' Just as a heads-up. I plan on fixing it within a few weeks. :-P I'm undecided about actually complaining about the bfd sysdep.h change. Its name seemed dependable as the first #include in any .c file generated or not, but maybe not? brgds, H-P