public inbox for cgen@sourceware.org
 help / color / mirror / Atom feed
* sim build failures (was Re: use <sys/int_types.h> instead of <stdint.h>  on Solaris...)snapshot binutils-2.17.50)
       [not found] ` <20070424033403.GF10537@bubble.grove.modra.org>
@ 2007-04-25  3:09   ` Hans-Peter Nilsson
  2007-04-25  6:29     ` Alan Modra
  0 siblings, 1 reply; 2+ messages in thread
From: Hans-Peter Nilsson @ 2007-04-25  3:09 UTC (permalink / raw)
  To: Alan Modra; +Cc: gdb-patches, binutils, cgen

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sim build failures (was Re: use <sys/int_types.h> instead of <stdint.h> on Solaris...)snapshot binutils-2.17.50)
  2007-04-25  3:09   ` sim build failures (was Re: use <sys/int_types.h> instead of <stdint.h> on Solaris...)snapshot binutils-2.17.50) Hans-Peter Nilsson
@ 2007-04-25  6:29     ` Alan Modra
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2007-04-25  6:29 UTC (permalink / raw)
  To: Hans-Peter Nilsson; +Cc: gdb-patches, binutils, cgen

On Tue, Apr 24, 2007 at 11:03:35PM -0400, Hans-Peter Nilsson wrote:
> On Tue, 24 Apr 2007, Alan Modra wrote:
> 
> > 	* sysdep.h: Don't include ansidecl.h here.
> 
> This bit caused problems for some simulators

Sorry, I'll revert it.  I didn't look further than bfd/.  All files
there that include sysdep.h also include bfd.h.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-25  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200704202230.AAA10323@neuro.insel.ch>
     [not found] ` <20070424033403.GF10537@bubble.grove.modra.org>
2007-04-25  3:09   ` sim build failures (was Re: use <sys/int_types.h> instead of <stdint.h> on Solaris...)snapshot binutils-2.17.50) Hans-Peter Nilsson
2007-04-25  6:29     ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).