#1411 Wrong behaviour on -mrcp

Bug
closed-works-for-me
Neil Hodgson
Scintilla (789)
5
2014-05-22
2012-10-18
thomas
No

Observed when building Code::Blocks -- uses (wx)Scintilla 3.2.2:

Compiling with -mrcp (this makes the compiler use a 2-step Newton-Raphson approximation with SSE2 reciprocal instructions for divide and square root) disables the "cursor up" function (i.e. nothing happens when you hit the up-arrow key) on semi-random lines in a document. Which lines are inaccessible changes when you scroll the window.

---> Floating-point == comparison used in line calculation causing problem?

GCC does emit a couple of warnings about floatingpoint comparisons, too (platform.h lines 123, 124, editor.cxx lines 428, 506, 567, 2210, 2481, 2826, 2944, 3193, 3285, 3381, 3944, 5102, 6486)

Older versions (e.g. 2.2.9) which do not have XYPOSITION/XYACCUMULATOR as floating point work fine.

Discussion

  • Neil Hodgson
    Neil Hodgson
    2012-10-20

    • assigned_to: nobody --> nyamatongwe
    • milestone: --> Bug
    • labels: --> Scintilla
    • status: open --> open-later
     
  • Neil Hodgson
    Neil Hodgson
    2012-10-20

    I won't be able to look at this until 2013.

     
  • Neil Hodgson
    Neil Hodgson
    2012-12-30

    • status: open-later --> open-works-for-me
     
  • Neil Hodgson
    Neil Hodgson
    2012-12-30

    The -mrcp option isn't supported by Mingw GCC 4.7 but there is a -mrecip which sounds like the same thing (http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options).
    Could not reproduce using the win32 platform layer. I don't support the wxWidgets port.

     
  • Neil Hodgson
    Neil Hodgson
    2014-05-22

    • status: open-works-for-me --> closed-works-for-me
     
  • Neil Hodgson
    Neil Hodgson
    2014-05-22

    Couldn't reproduce on Linux/GTK+ with 3.2.2 either so closing.