#8773: GCC-4.5.0 breaks GAP -- the workspace is broken, hence gap('2+2') fails.
-------------------------------------------------------+--------------------
 Reporter:  was                                        |         Owner:  
GeorgSWeber
     Type:  defect                                     |        Status:  closed 
    
 Priority:  major                                      |     Milestone:  
sage-4.4.1 
Component:  build                                      |    Resolution:  fixed  
    
 Keywords:                                             |        Author:         
    
 Upstream:  Reported upstream. Little or no feedback.  |      Reviewer:         
    
   Merged:  4.4.1.alpha0                               |   Work_issues:         
    
-------------------------------------------------------+--------------------

Comment(by was):

 More readable:
 "Well done Willem. The diagnosis looks correct. This is old code and
 clearly the nice solution is to use a suitable union type so as to be more
 honest with the C compiler about what is actually being passed back and
 forth. Is there an easy way to pass me the proposed patch and I'll either
 apply it to GAP development branch or send you a preferred version if I
 want to do it a little differently.

 SaveDouble/LoadDouble can probably also be handled correctly with unions,
 so long as, in
 {{{
 union { char bytes[sizeof(double)], double d};
 }}}

 one can rely on bytes including all the data of double. Does anyone know
 anything about this? Otherwise might be better to use void * and memcopy
 or something like that.

        Steve"

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8773#comment:16>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to