* sim vs c99
@ 2015-02-19 14:06 DJ Delorie
2015-02-19 16:02 ` Mike Frysinger
0 siblings, 1 reply; 2+ messages in thread
From: DJ Delorie @ 2015-02-19 14:06 UTC (permalink / raw)
To: gdb
clang defaults to c99 and gcc is moving towards it.
The simulator won't build with -std=c99, lots of these due to "extern
inline" using the c89 semantics:
libsim.a(sim-core.o): In function `sim_addr_range_hit_p':
binutils-gdb/sim/msp430/../common/sim-arange.c:290: multiple definition of `sim_addr_range_hit_p'
nrun.o:binutils-gdb/sim/msp430/../common/sim-arange.c:290: first defined here
Are there any plans to switch to C99 or at least detect/support a C99
environment?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: sim vs c99
2015-02-19 14:06 sim vs c99 DJ Delorie
@ 2015-02-19 16:02 ` Mike Frysinger
0 siblings, 0 replies; 2+ messages in thread
From: Mike Frysinger @ 2015-02-19 16:02 UTC (permalink / raw)
To: DJ Delorie; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
On 19 Feb 2015 09:06, DJ Delorie wrote:
> clang defaults to c99 and gcc is moving towards it.
>
> The simulator won't build with -std=c99, lots of these due to "extern
> inline" using the c89 semantics:
>
> libsim.a(sim-core.o): In function `sim_addr_range_hit_p':
> binutils-gdb/sim/msp430/../common/sim-arange.c:290: multiple definition of `sim_addr_range_hit_p'
> nrun.o:binutils-gdb/sim/msp430/../common/sim-arange.c:290: first defined here
>
> Are there any plans to switch to C99 or at least detect/support a C99
> environment?
i'm not actively looking into it (and probably won't until gcc blows up), but i
have no problem if someone else wants to do so ahead of time.
-mike
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-19 16:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-19 14:06 sim vs c99 DJ Delorie
2015-02-19 16:02 ` Mike Frysinger
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).