"Bingfeng Mei" <b...@broadcom.com> writes: > According to current GCC internal manual. > http://gcc.gnu.org/onlinedocs/gccint/File-Framework.html#index-TARGET_005fASM_005fNAMED_005fSECTION-4335 > > - Target Hook: void TARGET_ASM_NAMED_SECTION (const char *name, unsigned int > flags, unsigned int align) > > Output assembly directives to switch to section name. The section should > have attributes as specified by flags, which is a bit mask of the SECTION_* > flags defined in output.h. If align is nonzero, it contains an alignment in > bytes to be used for the section, otherwise some target default should be > used. Only targets that must specify an alignment within the section > directive need pay attention to align - we will still use ASM_OUTPUT_ALIGN. > > > But the actually the third argument should be "tree decl" instead of > "unsigned int align". The following is the default hook. > > default_elf_asm_named_section (const char *name, unsigned int flags, > tree decl ATTRIBUTE_UNUSED) > > Is it an error or do I miss something?
It is an error in the documentation. Ian