-
- Downloads
common.opt: New option -fstack-protector-explicit.
2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com> * common.opt: New option -fstack-protector-explicit. * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum. (stack_protect_decl_phase): Handle stack_protect attribute for explicit stack protection requests. (expand_used_vars): Similarly. * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro. * doc/extend.texi: Add documentation for "stack_protect" attribute. * doc/invoke.texi: Add documentation for -fstack-protector-explicit. * c-cppbuiltin.c (c_cpp_builtins): New cpp define __SSP_EXPLICIT__ for the new option fstack-protector_explicit. * c-common.c (c_common_attribute_table): Add stack_protect attribute. (handle_stack_protect_attribute): New function. * gcc.dg/stackprotectexplicit1.c: New test. * g++.dg/stackprotectexplicit2.c: New test. From-SVN: r219633
Showing
- gcc/ChangeLog 11 additions, 0 deletionsgcc/ChangeLog
- gcc/c-family/ChangeLog 7 additions, 0 deletionsgcc/c-family/ChangeLog
- gcc/c-family/c-common.c 22 additions, 0 deletionsgcc/c-family/c-common.c
- gcc/c-family/c-cppbuiltin.c 2 additions, 0 deletionsgcc/c-family/c-cppbuiltin.c
- gcc/cfgexpand.c 27 additions, 6 deletionsgcc/cfgexpand.c
- gcc/common.opt 4 additions, 0 deletionsgcc/common.opt
- gcc/doc/cpp.texi 4 additions, 0 deletionsgcc/doc/cpp.texi
- gcc/doc/extend.texi 7 additions, 1 deletiongcc/doc/extend.texi
- gcc/doc/invoke.texi 8 additions, 2 deletionsgcc/doc/invoke.texi
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/stackprotectexplicit2.C 27 additions, 0 deletionsgcc/testsuite/g++.dg/stackprotectexplicit2.C
- gcc/testsuite/gcc.dg/stackprotectexplicit1.c 23 additions, 0 deletionsgcc/testsuite/gcc.dg/stackprotectexplicit1.c
Loading
Please register or sign in to comment