public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/109675] New: GCC 13.1: the Modula-2 front-end fails to build on some platforms
@ 2023-04-29  1:19 gr.audio at gmail dot com
  2023-05-02 12:34 ` [Bug modula2/109675] " gaius at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: gr.audio at gmail dot com @ 2023-04-29  1:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109675
           Summary: GCC 13.1: the Modula-2 front-end fails to build on
                    some platforms
           Product: gcc
           Version: 13.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: gr.audio at gmail dot com
  Target Milestone: ---

Happens on any platform on which the 'long unsigned int' type can't hold
a pointer (for instance: Windows/mingw64).

The culprit is this:

../../gcc-13.1.0/gcc/m2/mc-boot/GDynamicStrings.cc: In function 'void
writeAddress(void*)':
../../gcc-13.1.0/gcc/m2/mc-boot/GDynamicStrings.cc:909:18: error: cast from
'void*' to 'long unsigned int' loses precision [-fpermissive]
  909 |   writeLongcard ((long unsigned int ) (a));
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~

Casting a pointer to a 'long unsigned int' is not exactly portable.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-07-28 11:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-29  1:19 [Bug modula2/109675] New: GCC 13.1: the Modula-2 front-end fails to build on some platforms gr.audio at gmail dot com
2023-05-02 12:34 ` [Bug modula2/109675] " gaius at gcc dot gnu.org
2023-05-03 15:09 ` gaius at gcc dot gnu.org
2023-05-04  0:37 ` cvs-commit at gcc dot gnu.org
2023-05-04  0:42 ` gaius at gcc dot gnu.org
2023-07-28 11:56 ` cvs-commit at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).