This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug soft-fp/15667] New: __FP_FRAC_ADD_3 shadowing variables in _FP_MUL_MEAT_2_wide_3mul


http://sourceware.org/bugzilla/show_bug.cgi?id=15667

            Bug ID: 15667
           Summary: __FP_FRAC_ADD_3 shadowing variables in
                    _FP_MUL_MEAT_2_wide_3mul
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: soft-fp
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
                CC: joseph at codesourcery dot com

The soft-fp macro __FP_FRAC_ADD_3 defines variables _c1 and _c2.  The macro
_FP_MUL_MEAT_2_wide_3mul defines its own variables with those names and calls
__FP_FRAC_ADD_3 with arguments involving them, yielding erroneous results when
the wrong variables get used.

(I don't think this actually affects the current uses of soft-fp in glibc on
any architecture; it came up while testing a patch adding new uses.  But it
seems appropriate to file this in Bugzilla anyway.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]