[PATCH] D33211: [builtins] Fix a check from __GNU__ to __GNUC__ for disabling executable stack.

Manoj Gupta via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 13:54:34 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL303112: [builtins] Fix a check from __GNU__ to __GNUC__ for disabling executable stack. (authored by manojgupta).

Changed prior to commit:
  https://reviews.llvm.org/D33211?vs=99058&id=99059#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D33211

Files:
  compiler-rt/trunk/lib/builtins/assembly.h


Index: compiler-rt/trunk/lib/builtins/assembly.h
===================================================================
--- compiler-rt/trunk/lib/builtins/assembly.h
+++ compiler-rt/trunk/lib/builtins/assembly.h
@@ -44,7 +44,7 @@
 #endif
 #define CONST_SECTION .section .rodata
 
-#if defined(__GNU__) || defined(__ANDROID__) || defined(__FreeBSD__)
+#if defined(__GNUC__) || defined(__ANDROID__) || defined(__FreeBSD__)
 #define NO_EXEC_STACK_DIRECTIVE .section .note.GNU-stack,"",%progbits
 #else
 #define NO_EXEC_STACK_DIRECTIVE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33211.99059.patch
Type: text/x-patch
Size: 529 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170515/d492530f/attachment.bin>


More information about the llvm-commits mailing list