[PATCH] D31140: [LLVMbugs] [Bug 18710] Only generate .ARM.exidx and .ARM.extab when needed in EHABI

Christian Bruel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 14 00:35:44 PDT 2017


chrib added a comment.

OK, we can refine so that unwind-table is also not generated  for C++ -fno-exceptions.

To summarize this gives or C++ :

|                | Unwind   (table) | Exceptions (can throw) |
| default        | Y                | Y                      |
| fno-unwind     | N                | Y (1)                  |
| fno-exceptions | N                | N                      |

(1) without unwind, no handler can be found so the default is to terminate.

for C :

|             | Unwind   (table) | Exceptions (can throw) |
| default     | N                | N                      |
| funwind     | Y                | N                      |
| fexceptions | Y                | N                      |

Cheers,


https://reviews.llvm.org/D31140





More information about the cfe-commits mailing list