https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101392

--- Comment #6 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot 
Uni-Bielefeld.DE> ---
> --- Comment #5 from Gaius Mulley <gaius at gcc dot gnu.org> ---
> thanks for this excellent analysis.  Here is a patch which will fix the 
> passing
> of binop.proc in M2GenGCC.c.

I'd tried looking into this at least once before, but didn't get
anywhere then.

> diff --git a/gcc/m2/gm2-gcc/m2expr.def b/gcc/m2/gm2-gcc/m2expr.def
> index 8988c78d575..e622d31d09b 100644
> --- a/gcc/m2/gm2-gcc/m2expr.def
> +++ b/gcc/m2/gm2-gcc/m2expr.def
> @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public
> License
>  along with GNU Modula-2; see the file COPYING3.  If not see
>  <http://www.gnu.org/licenses/>.  *)
>
> -DEFINITION MODULE m2expr ;
> +DEFINITION MODULE FOR "C" m2expr  ;
>
>  FROM SYSTEM IMPORT ADDRESS ;
>  FROM m2tree IMPORT Tree ;

That worked like a charm and got the build way beyond the current
failure point.  I later ran into PR modula2/105392 again, but that
proved to be a similar issue.

Thanks a lot.

Reply via email to