https://sourceware.org/bugzilla/show_bug.cgi?id=23126
--- Comment #5 from Freddie Chopin <freddie_chopin at op dot pl> --- > Right - it turns out that command line options are additive, so if you specify > -march=armv6-m -mcpu=cortx-m0 you get the features of both the architecture > and cpu enabled, even if they are not the same. (This also applies if the > options are specified in the opposite order). > > But - directives inside the assembler source file override any previous > directives or command line options. So I guess this could be treated as a GAS bug, right? Should I file a separate report or maybe you'd just edit the description of this one? > Yes - for a -mcpu=cortex-m0 gcc command line option gcc should be generating > a ".arch armv6s-m" directive and not a ".arch armv6-m" directive. (This > presumably applies to other cortex-m?? variants as well, although I have not > checked). Alternatively it should just generate a .cpu directive and no > ".arch" directive, and leave it up to the assembler to divine the > architecture involved. Here's the relevant GCC bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85606 -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils