public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/109216] New: Wrong behaviour explained in -fno-underscoring documentation
@ 2023-03-20 15:48 rhidalgochar at bloomberg dot net
  2023-03-20 19:46 ` [Bug fortran/109216] " anlauf at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: rhidalgochar at bloomberg dot net @ 2023-03-20 15:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109216
           Summary: Wrong behaviour explained in -fno-underscoring
                    documentation
           Product: gcc
           Version: 12.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rhidalgochar at bloomberg dot net
  Target Milestone: ---

In the documentation section for codegen options it has two parts explaining
the behaviour of -fno-underscoring (and implictly -funderscoring) and
-fsecond-underscore:
https://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html

However under -fno-underscoring it has an example for -funderscoring that seems
to describe the -fsecond-underscore behaviour.

Indeed if I compile the following example into an object and look at the
symbols I see that j_ and max_count_ are found as undefined symbols, not j_ and
max_count__ as suggested, though I do get that if I compile it with
-fsecond-underscore.

code: 
      program main
      integer i, j, max_count
      i = j() + max_count(i, j())
      end program main

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

end of thread, other threads:[~2023-03-21 10:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-20 15:48 [Bug fortran/109216] New: Wrong behaviour explained in -fno-underscoring documentation rhidalgochar at bloomberg dot net
2023-03-20 19:46 ` [Bug fortran/109216] " anlauf at gcc dot gnu.org
2023-03-20 21:48 ` cvs-commit at gcc dot gnu.org
2023-03-21  8:11 ` rguenth at gcc dot gnu.org
2023-03-21 10:25 ` rhidalgochar at bloomberg dot net

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