From 7ab0897ac6a632dd01f7ac661a148f6a42f31fcf Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 30 Sep 2011 14:25:10 -0700 Subject: [PATCH] rustc: Track link_args attributes on C stack cdecl natives as well --- src/comp/metadata/creader.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/comp/metadata/creader.rs b/src/comp/metadata/creader.rs index 066243476d6..8424ac48ccb 100644 --- a/src/comp/metadata/creader.rs +++ b/src/comp/metadata/creader.rs @@ -53,7 +53,8 @@ fn visit_view_item(e: env, i: @ast::view_item) { fn visit_item(e: env, i: @ast::item) { alt i.node { ast::item_native_mod(m) { - if m.abi != ast::native_abi_rust && m.abi != ast::native_abi_cdecl { + if m.abi != ast::native_abi_rust && m.abi != ast::native_abi_cdecl && + m.abi != ast::native_abi_c_stack_cdecl { ret; } let cstore = e.sess.get_cstore();