Changes between Initial Version and Version 2 of Ticket #60356
- Timestamp:
- Apr 15, 2020, 8:11:40 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #60356
- Property Port gcc9 added
-
Ticket #60356 – Description
initial v2 25 25 }}} 26 26 27 28 29 30 31 27 This reproduces on my 4-year old laptop, but not my 5-year old mini. 32 28 Both are currently running 10.15.4 (usually the mini runs betas) and 33 29 have gcc 9.3.0 from MacPorts. On the laptop, this segfaults the 34 30 compiler when compiled with '-O2 -ffastmath': 35 31 {{{ 36 32 extern double sqrt(double); 37 33 double mad_vec_dist () { double r=0; return sqrt(r); } 38 34 }}} 39 35 (note that I removed the include of math.h). Changing sqrt() to sin() 40 36 also segfaults. However, this compiles fine: 41 37 {{{ 42 38 extern double trqs(double); 43 39 double vec_dist () { double r=0; return trqs(r); } 44 40 }}} 45 41 and the ones that segfault the compiler don't segfault if I add the 46 42 '-fno-builtin' flag--so it's something about the optimization of the … … 49 45 with Homebrew gcc 9.3 (or even on CentOS 7 gcc 9.3). 50 46 51 52 47 Please let me know if I should notify GNU, as well. 53 48