Answer the question
In order to leave comments, you need to log in
What is flag_function_sections in gcc sources?
I'm trying to compile gcc-4.2 sources (or rather llvm-gcc-4.2). However, I am getting an error:
../../llvm-gcc-4.2-2.9/gcc/toplev.c: In function ‘process_options’:
../../llvm-gcc-4.2-2.9/gcc/toplev.c:1995:11: error: ‘flag_function_sections’ undeclared (first use in this function)
../../llvm-gcc-4.2-2.9/gcc/toplev.c:1995:11: note: each undeclared identifier is reported only once for each function it appears in
int flag_function_sections = 0;
int flag_data_sections = 0;
Answer the question
In order to leave comments, you need to log in
gcc 4.7.0
The definition is not found in the
source flag_function_sections
, it appears in the file gcc/common.opt
:
ffunction-sections
Common Report Var(flag_function_sections)
Place each function into its own section
Options for the language- and target-independent parts of the compiler
/* Nonzero means place each function into its own section on those platforms
which support arbitrary section names and unlimited numbers of sections. */
int flag_function_sections = 0;
/* ... and similar for data. */
int flag_data_sections = 0;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question