#14460: GCC-4.8.0 miscompiles some sig_on() statements
----------------------------------------------------------------+-----------
Reporter: jdemeyer |
Owner: GeorgSWeber
Type: defect |
Status: closed
Priority: critical |
Milestone: sage-5.9
Component: build |
Resolution: fixed
Keywords: | Work
issues:
Report Upstream: Fixed upstream, but not in a stable release. |
Reviewers: Jean-Pierre Flori
Authors: Jeroen Demeyer | Merged
in: sage-5.9.rc0
Dependencies: |
Stopgaps:
----------------------------------------------------------------+-----------
Comment (by jpflori):
Replying to [comment:28 jdemeyer]:
> Replying to [comment:27 jpflori]:
> > gcc 4.8.0 (and so 4.8.1 as well) correctly compiles sig_on statements.
> Same answer as I made before: what makes you think that this is true?
Or that it is not true?
From your report it seemed you got segfaults only when passing
>
> > But then why not treat cases where -O3 is passed to CFLAGS and R
miscompiles and so on...
> I never said we shouldn't fix that. But this is a less serious issue,
since `-fipa-cp-clone` is not added by the default R flags of `-O2`.
Assuming the user does not use custom `CFLAGS`, adding `-fno-ipa-cp-clone`
will not make a difference.
I agree, I only posted all of this here so that I don't lose it in my
mind.
>
> > (By the way I've remarked that Python has the bad habit to override
CFLAGS by adding the content of an OPT variable on the compile command
line...)
> At least, the flags added by Sage come at the very end of the command
line.
Not really sure, I had a really painful experience lately building Python
on a Raspberry Pi.
Doing something like "CFLAGS="-O -g" ./sage -i python.spkg" does not work.
Doing "OPT= CFLAG="-O -g" ..." would work.
Look at configure.ac and Makefile.pre.in, the only thing that comes in
$CFLAGS after $OPT is $EXTRA_CFLAGS (which is surely meant to be mostly
user defined).
Anyway it's not really the place to discuss this.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14460#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.