@@ -434,7 +434,7 @@ extern const enum reg_class arc64_regno_to_regclass[];
434
434
#define ASM_COMMENT_START "#"
435
435
436
436
#define ASM_OUTPUT_ALIGN (FILE ,LOG ) \
437
- fprintf(FILE, "\t.align\t%d\n", (int)LOG)
437
+ fprintf(FILE, "\t.align\t%d\n", 1 << (int)LOG)
438
438
439
439
/* Output to assembler file text saying following lines
440
440
may contain character constants, extra white space, comments, etc. */
@@ -446,12 +446,18 @@ extern const enum reg_class arc64_regno_to_regclass[];
446
446
#undef ASM_APP_OFF
447
447
#define ASM_APP_OFF ""
448
448
449
- #undef ASM_OUTPUT_LABELREF
450
- #define ASM_OUTPUT_LABELREF (FILE ,NAME ) \
451
- do { \
452
- fputs ("@", (FILE)); \
453
- fputs ((NAME), (FILE)); \
454
- } while (0)
449
+ /* This is how to output a reference to a symbol_ref / label_ref as
450
+ (part of) an operand. To disambiguate from register names like a1
451
+ / a2 / status etc, symbols are preceded by '@'. */
452
+ #define ASM_OUTPUT_SYMBOL_REF (FILE ,SYM ) \
453
+ ASM_OUTPUT_LABEL_REF ((FILE), XSTR ((SYM), 0))
454
+ #define ASM_OUTPUT_LABEL_REF (FILE ,STR ) \
455
+ do \
456
+ { \
457
+ fputs ("@", (FILE)); \
458
+ assemble_name ((FILE), (STR)); \
459
+ } \
460
+ while (0)
455
461
456
462
/* Section selection. */
457
463
0 commit comments