Changes in src/InitTweak/InitTweak.hpp [13481af0:5f225f5]
- File:
-
- 1 edited
-
src/InitTweak/InitTweak.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/InitTweak/InitTweak.hpp
r13481af0 r5f225f5 9 9 // Author : Rob Schluntz 10 10 // Created On : Fri May 13 11:26:36 2016 11 // Last Modified By : Peter A. Buhr12 // Last Modified On : Thu Jul 2 16:45:44 202613 // Update Count : 1211 // Last Modified By : Andrew Beach 12 // Last Modified On : Wed Sep 22 9:21:00 2022 13 // Update Count : 9 14 14 // 15 15 … … 69 69 bool isConstExpr( const ast::Init * init ); 70 70 71 /// Modifies objDecl to have: 72 /// __attribute__((section (".data#"))) 73 /// which makes gcc put the declared variable in the data section, 74 /// which is helpful for global constants on newer gcc versions, 75 /// so that CFA's generated initialization won't segfault when writing it via a const cast. 76 /// The trailing # is an injected assembly comment, to suppress the "a" in 77 /// .section .data,"a" 78 /// .section .data#,"a" 79 /// to avoid assembler warning "ignoring changed section attributes for .data" 80 void addDataSectionAttribute( ast::ObjectDecl * objDecl ); 81 71 82 class InitExpander final { 72 83 public:
Note:
See TracChangeset
for help on using the changeset viewer.