diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:35:39 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-03-30 20:35:39 +0000 |
commit | 739dfd28c359b1b0ef4a78092f990f86ca0e165b (patch) | |
tree | f2945f5208c5c10c1835726160c58e490e87204b /sim | |
parent | 59db87ade3bc8a5797560d60827cabebcb54485a (diff) | |
download | binutils-739dfd28c359b1b0ef4a78092f990f86ca0e165b.zip binutils-739dfd28c359b1b0ef4a78092f990f86ca0e165b.tar.gz binutils-739dfd28c359b1b0ef4a78092f990f86ca0e165b.tar.bz2 |
sim: fix unused profile_print_addr_ranges warning
The profile_print_addr_ranges() function is only used when
SIM_HAVE_ADDR_RANGE is defined, so #ifdef it accordingly.
Diffstat (limited to 'sim')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/sim-profile.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 15fbf8e..7c5e1b7 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,5 +1,10 @@ 2010-03-30 Mike Frysinger <vapier@gentoo.org> + * sim-profile.c (profile_print_addr_ranges): Wrap with the + SIM_HAVE_ADDR_RANGE define. + +2010-03-30 Mike Frysinger <vapier@gentoo.org> + * dv-glue.c (hw_glue_ports): Swap static and const. 2010-03-30 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/common/sim-profile.c b/sim/common/sim-profile.c index 408f205..dabf14a 100644 --- a/sim/common/sim-profile.c +++ b/sim/common/sim-profile.c @@ -1051,6 +1051,7 @@ profile_print_speed (sim_cpu *cpu) } } +#ifdef SIM_HAVE_ADDR_RANGE /* Print selected address ranges. */ static void @@ -1071,6 +1072,7 @@ profile_print_addr_ranges (sim_cpu *cpu) sim_io_printf (sd, "\n"); } } +#endif /* Top level function to print all summary profile information. It is [currently] intended that all such data is printed by this function. |