[m-rev.] for review: workaround bug #307

Julien Fischer jfischer at opturion.com
Thu Jan 9 04:27:30 AEDT 2014



On Thu, 9 Jan 2014, Julien Fischer wrote:

>
> For review by anyone.
>
> Branches: master, 14.01
> (This diff could also be applied to the 13.05 branch if required.)
>
> ---------------------
>
> Add a workaround for bug #307.
>
> We encounter internal errors in GCC 4.8.2 on i686 Linux when compiling
> runtime/mercury_ho_call.c in grades that use global registers when -fpic is
> enabled.  This change adds a test to configure to check whether GCC 4.8.X is
> broken in this way and, if so, forces the use of `none' as the LLDS base 
> grade.

Actually, it should now be safe to run this test for all versions of GCC,
not just 4.8 -- I didn't do that originally because previous versions of
this changed used gcc options that are only supported by more recent
compilers -- I'll update the change accordingly.

Cheers,
Julien.



More information about the reviews mailing list