Skip to content

Commit

Permalink
gcov: Fix building with GCC8
Browse files Browse the repository at this point in the history
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
stewartsmith committed Oct 16, 2018
1 parent a43e9a6 commit 2d68e6f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions core/Makefile.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ CORE_OBJS += pci-dt-slot.o direct-controls.o cpufeatures.o

ifeq ($(SKIBOOT_GCOV),1)
CORE_OBJS += gcov-profiling.o
CFLAGS_SKIP_core/gcov-profiling.o = -Wsuggest-attribute=const
endif

CORE=core/built-in.a
Expand Down
14 changes: 7 additions & 7 deletions core/gcov-profiling.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ struct gcov_info *gcov_info_list;

void __gcov_init(struct gcov_info* f);
void skiboot_gcov_done(void);
void __gcov_flush(void) __attrconst;
void __gcov_merge_add(gcov_type *counters, unsigned int n_counters) __attrconst;
void __gcov_merge_single(gcov_type *counters, unsigned int n_counters) __attrconst;
void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters) __attrconst;
void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters) __attrconst;
void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters) __attrconst;
void __gcov_exit(void) __attrconst;
void __gcov_flush(void);
void __gcov_merge_add(gcov_type *counters, unsigned int n_counters);
void __gcov_merge_single(gcov_type *counters, unsigned int n_counters);
void __gcov_merge_delta(gcov_type *counters, unsigned int n_counters);
void __gcov_merge_ior(gcov_type *counters, unsigned int n_counters);
void __gcov_merge_time_profile(gcov_type *counters, unsigned int n_counters);
void __gcov_exit(void);

void __gcov_init(struct gcov_info* f)
{
Expand Down

0 comments on commit 2d68e6f

Please sign in to comment.