This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] doc - document how gcc relies on the length of an asm


Richard Earnshaw <rearnsha@arm.com> writes:

> This is a documentation update in response to PR 11442 where the
> user had put a .skip directive in an ASM statement and this broke
> GCC's asm size estimation rules.  It tries to make it clear that
> this is a user error that will only be detected by the assembler.

It should be mentioned that this might not only lead to assembler
errors, but also to silently generated bad code (PR 12108). Also, I
don't understand what you mean with "compiler directives that can
expand to a large amount of space in the object file".

By the way, would it be possible to assert gcc's guess for the size of
an asm by putting a label before and after it and emitting an
".assert" directive or something? That might avoid such errors.

-- 
	Falk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]