Changes between Initial Version and Version 2 of Ticket #60356


Ignore:
Timestamp:
Apr 15, 2020, 8:11:40 PM (4 years ago)
Author:
mf2k (Frank Schima)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #60356

    • Property Port gcc9 added
  • Ticket #60356 – Description

    initial v2  
    2525}}}
    2626
    27 
    28 
    29 
    30 
    3127This reproduces on my 4-year old laptop, but not my 5-year old mini.
    3228Both are currently running 10.15.4 (usually the mini runs betas) and
    3329have gcc 9.3.0 from MacPorts.  On the laptop, this segfaults the
    3430compiler when compiled with '-O2 -ffastmath':
    35 
     31{{{
    3632extern double sqrt(double);
    3733double mad_vec_dist () { double r=0; return sqrt(r); }
    38 
     34}}}
    3935(note that I removed the include of math.h).  Changing sqrt() to sin()
    4036also segfaults.  However, this compiles fine:
    41 
     37{{{
    4238extern double trqs(double);
    4339double vec_dist () { double r=0; return trqs(r); }
    44 
     40}}}
    4541and the ones that segfault the compiler don't segfault if I add the
    4642'-fno-builtin' flag--so it's something about the optimization of the
     
    4945with Homebrew gcc 9.3 (or even on CentOS 7 gcc 9.3).
    5046
    51 
    5247Please let me know if I should notify GNU, as well.
    5348