From fb118890402f44a816c7e345b80e2b2dd54c73b7 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin (Intel)" Date: Fri, 9 Aug 2019 14:21:42 -0700 Subject: BR 3392590: add warning for valid but obsolete instructions Just becase one is compiling for an old CPU doesn't mean one wants to use obsolete instructions that would not be forward compatible. Rename the "obsolete" warning to "obsolete-removed" and create a new "obsolete-valid" warning to go with it (-w[+-]obsolete controls both options, as usual.) Suggested-by: C. Masloch Signed-off-by: H. Peter Anvin (Intel) --- test/obsolete.asm | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/obsolete.asm (limited to 'test') diff --git a/test/obsolete.asm b/test/obsolete.asm new file mode 100644 index 00000000..49dd772f --- /dev/null +++ b/test/obsolete.asm @@ -0,0 +1,9 @@ + bits 16 + + cpu 8086 + pop cs + mov cs,ax + + cpu 386 + pop cs + mov cs,ax -- cgit v1.2.3