This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Pass -mtune and -march options to assembler.
Paul Brook <paul@codesourcery.com> wrote:
Or, even better, use the .arch directive that already
exists and add .tune.
IMHO, we have use only common for all assemblers
directives and do not create new one. Probably comment is
most safety choice. If some assembler can't get -mtune or
-march from comment, it will no prodece errors.
For example.
gcc/toplevel.c
#ifdef ASM_COMMENT_START
{
/* Print optimization options -mtune and -march
into the assembler file as comments. */
print_version (asm_out_file, ASM_COMMENT_START);
print_optimization_options(asm_out_file);
fprintf (asm_out_file, "\n");
}
#endif
---
Professional hosting for everyone - http://www.host.ru