action(YASM_WARN_UNINIT_CONTENTS);
else if (strcmp(cmd, "size-override") == 0)
action(YASM_WARN_SIZE_OVERRIDE);
+ else if (strcmp(cmd, "segreg-in-64bit") == 0)
+ action(YASM_WARN_SEGREG_IN_64BIT);
else
return 1;
action(YASM_WARN_UNINIT_CONTENTS);
else if (strcmp(cmd, "size-override") == 0)
action(YASM_WARN_SIZE_OVERRIDE);
+ else if (strcmp(cmd, "segreg-in-64bit") == 0)
+ action(YASM_WARN_SEGREG_IN_64BIT);
else
return 1;
action(YASM_WARN_UNINIT_CONTENTS);
else if (strcmp(cmd, "size-override") == 0)
action(YASM_WARN_SIZE_OVERRIDE);
+ else if (strcmp(cmd, "segreg-in-64bit") == 0)
+ action(YASM_WARN_SEGREG_IN_64BIT);
else
return 1;
YASM_WARN_ORPHAN_LABEL, /**< Label alone on a line without a colon */
YASM_WARN_UNINIT_CONTENTS, /**< Uninitialized space in code/data section */
YASM_WARN_SIZE_OVERRIDE,/**< Double size override */
- YASM_WARN_IMPLICIT_SIZE_OVERRIDE /**< Implicit size override */
+ YASM_WARN_IMPLICIT_SIZE_OVERRIDE, /**< Implicit size override */
+ YASM_WARN_SEGREG_IN_64BIT /**< Segment register ignored in 64-bit mode */
} yasm_warn_class;
/** Error classes. Bitmask-based to support limited subclassing. */
}
if (type == YASM_ARCH_SEGREG && bits != 0 && arch_x86->mode_bits == bits) {
- yasm_warn_set(YASM_WARN_GENERAL,
+ yasm_warn_set(YASM_WARN_SEGREG_IN_64BIT,
N_("`%s' segment register ignored in %u-bit mode"), id,
bits);
}