Re: [gnuplot:bugs] #2195 html fails to compile on mipsel platform

Anton Gladky <[email protected]>
Newsgroups gmane.linux.debian.ports.mips
Message-ID <CALF6qJ=hCJxKCZvv+He2G5rCuyL_1b-_Dqwup5_5ifhaVmWO2A@mail.gmail.com>
Hello Aurelien,

thanks for the note. It really helped!

@Ethan, could you please close the issue in gnuplot-tracker? It should
be fixed in GCC.

Regards

Anton

Am Sa., 14. Sept. 2019 um 18:38 Uhr schrieb Aurelien Jarno
<[email protected]>:

>
> On 2019-09-03 21:59, Anton Gladky wrote:
> > Dear mips porters,
> >
> > I am maintaining the gnuplot in the Debian and there is a segfault on the
> > mipsel, what I reported to upstream [1].
> >
> > There is a question from the gnuplot author, which I am not able to response.
> > Could you please have a look?
> >
> > It segfaults somewhere in the static global structure. And the problem appeared
> > recently, maybe due to the GCC-9 migration. There were not problems with GCC-8.
> > Some regressions?
>
> I confirm it's a regression due introduced by GCC 9. I have reported the
> bug upstream: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91769
>
>
> Until this bug is fixed, you can use the following workaround:
>
> --- gnuplot-5.2.6+dfsg1.orig/src/axis.c
> +++ gnuplot-5.2.6+dfsg1/src/axis.c
> @@ -2698,6 +2698,9 @@ map_y(double value)
>   * If update is TRUE then check and update rrange autoscaling
>   */
>  coord_type
> +#ifdef __mips
> +__attribute__((optimize("-O1")))
> +#endif
>  polar_to_xy( double theta, double r, double *x, double *y, TBOOLEAN update)
>  {
>      coord_type status = INRANGE;
>
> --
> Aurelien Jarno                          GPG: 4096R/1DDD8C9B
> [email protected]                 http://www.aurel32.net
>
> --
> Aurelien Jarno                          GPG: 4096R/1DDD8C9B
> [email protected]                 http://www.aurel32.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.