Changeset dd7df1c in mainline for uspace/lib/c/generic/rtld/symbol.c
- Timestamp:
- 2023-10-22T17:26:17Z (17 months ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- dcef1127
- Parents:
- 71b4444
- git-author:
- Vojtech Horky <vojtech.horky@…> (2023-07-14 09:54:21)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 17:26:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/rtld/symbol.c
r71b4444 rdd7df1c 135 135 modules_untag(start->rtld); 136 136 137 /* Insert root (the program) into the queue and tag it */ 137 /* 138 * Insert root (the program) into the queue and tag it. 139 * 140 * We disable the dangling-pointer warning because the compiler incorrectly 141 * assumes that we leak local address (queue) to a parent scope (to start 142 * argument). However, we always empty the list so the pointer cannot 143 * actually escape. Probably the compiler can never statically analyze that 144 * correctly. 145 */ 138 146 list_initialize(&queue); 139 147 start->bfs_tag = true; 148 #pragma GCC diagnostic push 149 #if defined(__GNUC__) && (__GNUC__ >= 12) 150 #pragma GCC diagnostic ignored "-Wdangling-pointer" 151 #endif 140 152 list_append(&start->queue_link, &queue); 153 #pragma GCC diagnostic pop 141 154 142 155 /* If the symbol is found, it will be stored in 'sym' */
Note:
See TracChangeset
for help on using the changeset viewer.