Skip to content

riscv-nuclei-elf-gcc: do not fail on "-masm=att" #1008

Description

@vazhnov

Hello!

I'm not sure this is correct project to ask this feature.

I use workstation with GNU/Linux and x86_64 architecture.
I use vim + vim-syntastic for syntax and style checks.
I use riscv-nuclei-elf-gcc from package toolchain-gd32v from PlatformIO:

 % riscv-nuclei-elf-gcc --version
riscv-nuclei-elf-gcc (GCC) 9.2.0
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I faced with an issue: when I use riscv-nuclei-elf-gcc instead of system gcc, I receive an error message:

syntastic: 0.575801: checker output: [‘gcc: error: unrecognized command-line option ‘-masm=att’’, '']

This option, -masm=att came from this code https://github.com/vim-syntastic/syntastic/blob/master/syntax_checkers/asm/gcc.vim#L44 :

'main_flags': '-x assembler -fsyntax-only' . (g:syntastic_asm_generic ? '' : ' -masm=' . s:GetDialect(buf)) })

Is it possible to ignore this option, -masm=att, and not fail?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions