Skip to content

Commit cb512f3

Browse files
Added tests and releasenotes entry
1 parent adf4236 commit cb512f3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// RUN: not %clang --target=x86_64 -c -mcmodel=tiny %s 2>&1 | FileCheck %s
2+
// CHECK: error: unsupported argument 'tiny' to option '-mcmodel=' for target '{{.*}}'

llvm/docs/ReleaseNotes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ Changes to Sanitizers
153153
Other Changes
154154
-------------
155155

156+
* The -mcmodel=tiny option for the x86 architecture now triggers a frontend diagnostic.
157+
158+
156159
External Open Source Projects Using LLVM {{env.config.release}}
157160
===============================================================
158161

0 commit comments

Comments
 (0)