[Bug modula2/101392] cc1gm2 -fdump-system-exports SEGV on Solaris/SPARC

gaius at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Nov 9 16:30:37 GMT 2022


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

--- 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.

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 ;


More information about the Gcc-bugs mailing list