public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
@ 2024-06-12 16:48 dmalcolm at gcc dot gnu.org
  2024-06-12 16:48 ` [Bug bootstrap/115465] " dmalcolm at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2024-06-12 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 115465
           Summary: [15 Regression] aarch64-early-ra.cc:3449:23: error:
                    ‘class pretty_printer’ has no member named ‘buffer’
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---
            Target: aarch64-*-*

Looks like I broke the build on aarch64 with r15-1209-gc5e3be456888aa.

  https://builder.sourceware.org/buildbot/#/builders/266/builds/3613

../../gcc/gcc/config/aarch64/aarch64-early-ra.cc: In member function ‘void
{anonymous}::early_ra::process_block(basic_block, bool)’:
../../gcc/gcc/config/aarch64/aarch64-early-ra.cc:3449:23: error: ‘class
pretty_printer’ has no member named ‘buffer’; did you mean ‘output_buffer*
pretty_printer::m_buffer’? (not accessible from this context)
 3449 |           rtl_slim_pp.buffer->stream = dump_file;
      |                       ^~~~~~
In file included from ../../gcc/gcc/rtl-ssa.h:39,
                 from ../../gcc/gcc/config/aarch64/aarch64-early-ra.cc:49:
../../gcc/gcc/pretty-print.h:327:18: note: declared private here
  327 |   output_buffer *m_buffer;

Sorry; am working on a fix.

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
@ 2024-06-12 16:48 ` dmalcolm at gcc dot gnu.org
  2024-06-12 16:49 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2024-06-12 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |dmalcolm at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2024-06-12

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
  2024-06-12 16:48 ` [Bug bootstrap/115465] " dmalcolm at gcc dot gnu.org
@ 2024-06-12 16:49 ` pinskia at gcc dot gnu.org
  2024-06-12 16:54 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-12 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org
           Keywords|                            |build
   Target Milestone|---                         |15.0

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
  2024-06-12 16:48 ` [Bug bootstrap/115465] " dmalcolm at gcc dot gnu.org
  2024-06-12 16:49 ` pinskia at gcc dot gnu.org
@ 2024-06-12 16:54 ` pinskia at gcc dot gnu.org
  2024-06-12 18:25 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-06-12 16:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
          pretty_printer rtl_slim_pp;
          rtl_slim_pp.buffer->stream = dump_file;
          print_insn (&rtl_slim_pp, insn, 1);
          pp_flush (&rtl_slim_pp);
          fprintf (dump_file, "\n");


There seems to be a better way of implement this than the above too.

Maybe change dump_insn_slim to take an bool argument that defaults to true and
then if it was false use print_insn instead of print_insn_with_notes.

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2024-06-12 16:54 ` pinskia at gcc dot gnu.org
@ 2024-06-12 18:25 ` cvs-commit at gcc dot gnu.org
  2024-06-12 18:30 ` dmalcolm at gcc dot gnu.org
  2024-06-12 19:01 ` dmalcolm at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-06-12 18:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by David Malcolm <dmalcolm@gcc.gnu.org>:

https://gcc.gnu.org/g:e35f4eab68773b08324f9784ca69f8ace3c657cc

commit r15-1220-ge35f4eab68773b08324f9784ca69f8ace3c657cc
Author: David Malcolm <dmalcolm@redhat.com>
Date:   Wed Jun 12 14:24:47 2024 -0400

    pretty_printer: unbreak build on aarch64 [PR115465]

    I missed this target-specific usage of pretty_printer::buffer when
    making the fields private in r15-1209-gc5e3be456888aa; sorry.

    gcc/ChangeLog:
            PR bootstrap/115465
            * config/aarch64/aarch64-early-ra.cc (early_ra::process_block):
            Update for fields of pretty_printer becoming private in
            r15-1209-gc5e3be456888aa.

    Signed-off-by: David Malcolm <dmalcolm@redhat.com>

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2024-06-12 18:25 ` cvs-commit at gcc dot gnu.org
@ 2024-06-12 18:30 ` dmalcolm at gcc dot gnu.org
  2024-06-12 19:01 ` dmalcolm at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2024-06-12 18:30 UTC (permalink / raw)
  To: gcc-bugs

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

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #3 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Build breakage should be fixed by the above patch.

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

* [Bug bootstrap/115465] [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’
  2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2024-06-12 18:30 ` dmalcolm at gcc dot gnu.org
@ 2024-06-12 19:01 ` dmalcolm at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2024-06-12 19:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
(In reply to David Malcolm from comment #3)
> Build breakage should be fixed by the above patch.

Indeed, https://builder.sourceware.org/buildbot/#/builders/266/builds/3620
succeeded.

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

end of thread, other threads:[~2024-06-12 19:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-12 16:48 [Bug bootstrap/115465] New: [15 Regression] aarch64-early-ra.cc:3449:23: error: ‘class pretty_printer’ has no member named ‘buffer’ dmalcolm at gcc dot gnu.org
2024-06-12 16:48 ` [Bug bootstrap/115465] " dmalcolm at gcc dot gnu.org
2024-06-12 16:49 ` pinskia at gcc dot gnu.org
2024-06-12 16:54 ` pinskia at gcc dot gnu.org
2024-06-12 18:25 ` cvs-commit at gcc dot gnu.org
2024-06-12 18:30 ` dmalcolm at gcc dot gnu.org
2024-06-12 19:01 ` dmalcolm 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).