Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2011 20:56:34 GMT
From:      Tim Zingelman <zingelman@fnal.gov>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/156985: excalc gets wrong result for some functions (like 2+5)
Message-ID:  <201105122056.p4CKuYHj093127@red.freebsd.org>
Resent-Message-ID: <201105122100.p4CL0JqS072109@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         156985
>Category:       ports
>Synopsis:       excalc gets wrong result for some functions (like 2+5)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 12 21:00:18 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Tim Zingelman
>Release:        8.1-RELEASE-p2
>Organization:
Fermilab
>Environment:
FreeBSD hostname 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #4: Fri Dec 10 16:39:32 CST 2010     toor@hostname:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
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.
>How-To-Repeat:
install hexcalc from ports. add 2+5= (get wrong result '4')
>Fix:
apply patch from http://bugs.gentoo.org/show_bug.cgi?id=140987

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105122056.p4CKuYHj093127>