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]

[1/2][PATCH,ARM]Generate UAL assembly code for Thumb-1 target


Hi There,

This is the first patch to enable GCC generate UAL assembly code for Thumb1
target. This new option enables user to specify which syntax is used in
their inline assembly code.  If the inline assembly code uses UAL format,
then gcc does nothing because gcc generates UAL code as well. If the inline
assembly code uses non-UAL, then gcc will insert some directives in final
assembly code. Is it ok to trunk?

BR,
Terry

2014-10-21  Terry Guo  <terry.guo@arm.com>

        * config/arm/arm.h (TARGET_UNIFIED_ASM): Also include thumb1.
        (ASM_APP_ON): Redefined.
        * config/arm/arm.c (arm_option_override): Thumb2 always uses UAL
        for inline assembly code.
        * config/arm/arm.opt (masm-syntax-unified): New option.
        * doc/invoke.texi (-masm-syntax-unified): Document new option.

Attachment: option-for-inline-asm-syntax-v10.txt
Description: Text document


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