Re: [Patch, avr, PR86635] Fix miscompilation with __memx and libgcc float function __gtsf2

2018-07-26 Thread Senthil Kumar Selvaraj
Senthil Kumar Selvaraj writes: > The below patch fixes a miscompilation of function calls with__memx address > space > arguments. > > For code like > > extern const __memx float a; > extern const float b; > > int diff () { return a > b; } > > when compiled with -Os, a is never loaded and passe

[Patch, avr, PR86635] Fix miscompilation with __memx and libgcc float function __gtsf2

2018-07-25 Thread Senthil Kumar Selvaraj
The below patch fixes a miscompilation of function calls with__memx address space arguments. For code like extern const __memx float a; extern const float b; int diff () { return a > b; } when compiled with -Os, a is never loaded and passed in as an argument to the __gtsf2 libgcc function. T