Bug 156985

Summary: [patch] math/hexcalc gets wrong result for some functions (like 2+5)
Product: Ports & Packages Reporter: Tim Zingelman <zingelman>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Tim Zingelman 2011-05-12 22:00:18 UTC
hexcalc gets wrong result for some functions (like 2+5)

This is due to gcc optimizer handing of questionable code in the program.
(works fine compiled without optimization)

See http://bugs.gentoo.org/show_bug.cgi?id=140987 for details.

Fix: 

apply patch from http://bugs.gentoo.org/show_bug.cgi?id=140987
How-To-Repeat: install hexcalc from ports. add 2+5= (get wrong result '4')
Comment 1 dfilter service freebsd_committer freebsd_triage 2011-05-13 09:23:32 UTC
wen         2011-05-13 08:23:23 UTC

  FreeBSD ports repository

  Modified files:
    math/hexcalc         Makefile 
  Added files:
    math/hexcalc/files   patch-hexcalc.c 
  Log:
  - Apply a patch from Gentoo to fix run error:
    http://bugs.gentoo.org/show_bug.cgi?id=140987
  
  PR:             ports/156985
  Submitted by:   Tim Zingelman <zingelman@fnal.gov>
  
  Revision  Changes    Path
  1.22      +1 -1      ports/math/hexcalc/Makefile
  1.1       +51 -0     ports/math/hexcalc/files/patch-hexcalc.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 2 Wen Heping freebsd_committer freebsd_triage 2011-05-13 09:25:10 UTC
State Changed
From-To: open->closed

Committed. Thanks!