forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite45b0df
committed
Fix portability fallout from commitdc227eb.
Give up on trying to mechanically forbid abort() within libpq.Even though there are no such calls in the source code, we've nowseen three different scenarios where build toolchains silentlyinsert such calls: gcc does it for profiling, some platformsimplement assert() using it, and icc does so for no visible reason.Checking for accidental use of exit() seems considerably moreimportant than checking for abort(), so we'll settle for doingthat for now.Also, filter out __cxa_atexit() to avoid a false match. It seemsthat OpenBSD inserts a call to that despite the fact that libpqcontains no C++ code.Discussion:https://postgr.es/m/3128896.1624742969@sss.pgh.pa.us1 parent3465c8a commite45b0df
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
105 |
| - | |
106 |
| - | |
107 |
| - | |
108 |
| - | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 |
| |
110 | 112 |
| |
111 |
| - | |
| 113 | + | |
112 | 114 |
| |
113 | 115 |
| |
114 | 116 |
| |
|
0 commit comments
Comments
(0)