From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id CFF123AA8C77 for ; Tue, 30 Aug 2022 15:36:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CFF123AA8C77 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-x42d.google.com with SMTP id e20so14720113wri.13 for ; Tue, 30 Aug 2022 08:36:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date; bh=LC9R73hESgKuat3rgO82rImKyu8CkBN5vjItMctcsQ4=; b=NLpYMRriZ2T8uTI60GQvu+Fzs3aDwr92GUmBRozXK7rnVIj3SwM8fPnBYcRI7KNZdl aL7KuY0kt8y+0slDXn1dKhUTlqT2i3MMBZ8nNfxOaR3/VpH/l/TRtndWrm7dEfy0zPaG GRvkTy0TE7A3vbR+uBF2eS6/LHEOx4GWteSCLuoAOWaN5f8rrHK+IaHDZWYpLwfsaI1r sCjhwcQpWezdn9z9LundIP+suoafKxjTlSSlN+NWx4AdOInz6er3KK72SpAvxaRzNQJc WswBJ1FNf9Zf1uKxQ4etsdOs+QTMj+pdcEOmUrrkhwE8hWc4Lx1uAhUfgDON1j1LBnE2 gWaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date; bh=LC9R73hESgKuat3rgO82rImKyu8CkBN5vjItMctcsQ4=; b=eem56mhkPnDSoYJv7mfbVjlVBdbN3TVr8DZ6koJx6q62wctVNenRm2wK5x1fG+bN1V uDwSsmJMoCZIYSqmcJ2HLqE9ihmhHRxze3JJIQW1ytpJOGLnBjJADWcXXoGOjiMvZ81f VkaaQiPnBrjSmHBL/0+cfOYivFJKVySHvfKz97u1WCK7QQq+KpT+lr4XEumyPJidV8aN 3kraGRr2pNot3IOQmnzepEXbvt19QxBvkCRnIKrNJ/DKHtz0DikqXG9fIpOgTcpgxzBg O2N79r/k+VbEGBBLj9fEdYt8i9uf1Y77okqDUZPsJ0zvyx8UCxpY1mmB+sEHQUw6fUC3 pXrQ== X-Gm-Message-State: ACgBeo3+b6t1QwrqXf9NPL52q3NUu+WLtc8qFVwGNpkYL7bOPtLUyvEu C4gh8T2scsfPlreyvwq55y0= X-Google-Smtp-Source: AA6agR5YN0+QD3P4GcVHzFaAVWhIUpinVvbD3A6UlfP2aqb9wkuvTqjDhwHi6YvJrdKW/0WfRgJFog== X-Received: by 2002:a05:6000:616:b0:226:d80b:76ab with SMTP id bn22-20020a056000061600b00226d80b76abmr6642771wrb.547.1661873783184; Tue, 30 Aug 2022 08:36:23 -0700 (PDT) Received: from lancelot ([195.147.220.46]) by smtp.gmail.com with ESMTPSA id l9-20020a7bc349000000b003a5fa79007fsm12518206wmj.7.2022.08.30.08.36.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 08:36:22 -0700 (PDT) Received: from gaius by lancelot with local (Exim 4.94.2) (envelope-from ) id 1oT3Hp-00DOd3-F5; Tue, 30 Aug 2022 16:36:21 +0100 From: Gaius Mulley To: Martin =?utf-8?Q?Li=C5=A1ka?= Cc: gcc-patches@gcc.gnu.org Subject: Re: Modula-2: merge followup (brief update on the progress of the new linking implementation) References: <87h73qy3vb.fsf@debian> <87ler60z9c.fsf@debian> <163022e2-1f71-da70-abd4-0539e3579a13@suse.cz> Date: Tue, 30 Aug 2022 16:36:21 +0100 In-Reply-To: <163022e2-1f71-da70-abd4-0539e3579a13@suse.cz> ("Martin =?utf-8?Q?Li=C5=A1ka=22's?= message of "Tue, 30 Aug 2022 14:44:59 +0200") Message-ID: <87tu5t3fre.fsf@debian> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Martin Li=C5=A1ka writes: > On 8/30/22 13:03, Gaius Mulley via Gcc-patches wrote: >>=20 >> Another very brief update to say that I'm now tidying up the code and >> primary platform testing >>=20 >> regards, >> Gaius > > Hello. > > As you may know I'm working on the documentation migration from texinfo t= o Sphinx > and I noticed you have quite some documentation written in Texinfo. Thus,= I tried > using my conversion script, but ended with: > > $ m2/boot-bin/mc --olang=3Dc++ --h-file-prefix=3DG > -I/home/marxin/Programming/gcc2/gcc/m2/gm2-libs > -I/home/marxin/Programming/gcc2/gcc/m2/gm2-compiler > -I/home/marxin/Programming/gcc2/gcc/m2/gm2-libiberty > -I/home/marxin/Programming/gcc2/gcc/m2/gm2-gcc --quiet > --gcc-config-system --extended-opaque > -o=3Dm2/gm2-compiler-boot/M2GCCDeclare.c > /home/marxin/Programming/gcc2/gcc/m2/gm2-compiler/M2GCCDeclare.mod > /* --extended-opaque seen therefore no #include will be used and everyth= ing will be declared in full. */ > terminate called after throwing an instance of 'unsigned int' > Aborted (core dumped) > > $ Program received signal SIGSEGV, Segmentation fault. > 0x000000000043771e in decl_isConst (n=3D0xbabababababababa) at /home/marx= in/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:22530 > 22530 return n->kind =3D=3D const_; > (gdb) bt > #0 0x000000000043771e in decl_isConst (n=3D0xbabababababababa) at /home/= marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:22530 > #1 0x0000000000432526 in addEnumConst (n=3D0xbabababababababa) at /home/= marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:19914 > #2 0x00000000004313aa in visitNode (v=3D0x17cd5910, n=3D0xbababababababa= ba, p=3D...) at /home/marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:19240 > #3 0x0000000000430ba9 in visitIntrinsic (v=3D0x17cd5910, n=3D0x5015c0, p= =3D...) at /home/marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:18871 > #4 0x0000000000430cc6 in visitDependants (v=3D0x17cd5910, n=3D0x5015c0, = p=3D...) at /home/marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:18923 > #5 0x00000000004313c1 in visitNode (v=3D0x17cd5910, n=3D0x5015c0, p=3D..= .) at /home/marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:19241 > #6 0x00000000004325b8 in populateTodo (p=3D...) at /home/marxin/Programm= ing/gcc2/gcc/m2/mc-boot/Gdecl.c:19938 > #7 0x0000000000432613 in topologicallyOut (c=3D..., t=3D..., v=3D..., tp= =3D..., pc=3D..., pt=3D..., pv=3D...) at /home/marxin/Programming/gcc2/gcc/= m2/mc-boot/Gdecl.c:19957 > #8 0x0000000000426ffb in outDeclsImpC (p=3D0x17cc39a0, s=3D...) at /home= /marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:13910 > #9 0x0000000000432f2f in outImpC (p=3D0x17cc39a0, n=3D0x541800) at /home= /marxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:20142 > #10 0x00000000004337b5 in outC (p=3D0x17cc39a0, n=3D0x541800) at /home/ma= rxin/Programming/gcc2/gcc/m2/mc-boot/Gdecl.c:20285 > #11 0x000000000043bd9b in decl_out () at /home/marxin/Programming/gcc2/gc= c/m2/mc-boot/Gdecl.c:26621 > #12 0x000000000043eae6 in doCompile (s=3D0x50a190) at /home/marxin/Progra= mming/gcc2/gcc/m2/mc-boot/GmcComp.c:223 > #13 0x000000000043f646 in mcComp_compile (s=3D0x50a190) at /home/marxin/P= rogramming/gcc2/gcc/m2/mc-boot/GmcComp.c:637 > #14 0x0000000000451d91 in init () at /home/marxin/Programming/gcc2/gcc/m2= /mc-boot/Gtop.c:59 > #15 0x0000000000451da8 in _M2_top_init (argc=3D12, argv=3D0x7fffffffd9a8)= at /home/marxin/Programming/gcc2/gcc/m2/mc-boot/Gtop.c:64 > #16 0x000000000048b4c2 in main (argc=3D12, argv=3D0x7fffffffd9a8) at > m2/mc-boot/main.c:179 Hi Martin, ah interesting - thanks for the trace will look into the above fault. > Have a couple of questions: > > 1) What's gcc/m2/www/tools/createhtml.py about? Will you need it once > the branch is merged to master? no it will be purged. It was part of the tool set used to generate https://www.nongnu.org/gm2/homepage.html from gm2.texi. createhtml allowed gcc-10, 11, 12 documentation to coexist. I've seen and like the demos of the documentation you are producing. I was curious is there provision for older gcc release documentation (say gcc-10 onwards) to be accessible via the Sphinx=E2=80=99s documentatio= n? > 2) You generate some texi files on fly: ./gcc/m2/gm2-ebnf.texi, ./gcc/m2/= Builtins.texi > Would it be possible emitting Sphinx in the future? yes sure - I was meaning to email about this earlier. Are there any do/don'ts you would advise when writing texinfo (or subset/template examples?). I'm keen to change the tools which generate gm2-ebnf.texi and Builtins.texi to accommodate Sphinx. regards, Gaius