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

            Bug ID: 117289
           Summary: gcc.dg/debug/ctf/ctf-function-pointers-2.c failure
                    with -std=gnu23
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jsm28 at gcc dot gnu.org
                CC: uecker at gcc dot gnu.org
  Target Milestone: ---

If the test gcc.dg/debug/ctf/ctf-function-pointers-2.c is built with -std=gnu23
(or a compiler defaulting to -std=gnu23), in addition to the options listed in
that test, it fails:

FAIL: gcc.dg/debug/ctf/ctf-function-pointers-2.c scan-assembler-times [\t
]0x16000001[\t ]+[^\n]*ctt_info 1

A matching line now appears more than once.  The assembly diffs include:

+       .long   0       # ctt_name
+       .long   0x16000001      # ctt_info
+       .long   0x3     # ctt_size or ctt_type
+       .long   0x2     # dtu_argv
+       .long   0       # dtu_argv_padding
+       .long   0       # ctt_name
+       .long   0xe000000       # ctt_info
+       .long   0x6     # ctt_size or ctt_type

I suspect something to do with the C23 tag handling changes because I don't see
any reason for this to be different in C23 mode otherwise. (And it seems right
to me that this test should not have any more types etc. appearing in any kind
of debug info in C23 mode than in C17 mode.)

Reply via email to