diff options
author | Thomas Schwinge <tschwinge@baylibre.com> | 2024-10-24 20:56:21 +0200 |
---|---|---|
committer | Thomas Schwinge <tschwinge@baylibre.com> | 2024-10-24 21:13:49 +0200 |
commit | b3aa301db1b09b533b3635791a98d6bf906e9a15 (patch) | |
tree | ed467b2910e13c3661d32233f517e3162c5e72a3 | |
parent | d01dc97a26d2f5034ca135f46094aa52c44cc90a (diff) | |
download | gcc-b3aa301db1b09b533b3635791a98d6bf906e9a15.zip gcc-b3aa301db1b09b533b3635791a98d6bf906e9a15.tar.gz gcc-b3aa301db1b09b533b3635791a98d6bf906e9a15.tar.bz2 |
Use unique_ptr in more places in pretty_printer/diagnostics: 'gcc/config/gcn/mkoffload.cc' [PR116613]
After recent commit bf43fe6aa966eaf397ea3b8ebd6408d3d124e285
"Use unique_ptr in more places in pretty_printer/diagnostics [PR116613]":
[...]
In file included from ../../source-gcc/gcc/config/gcn/mkoffload.cc:31:0:
../../source-gcc/gcc/diagnostic.h:29:3: error: #error "You must define INCLUDE_MEMORY before including system.h to use diagnostic.h"
# error "You must define INCLUDE_MEMORY before including system.h to use diagnostic.h"
^
In file included from ../../source-gcc/gcc/diagnostic.h:34:0,
from ../../source-gcc/gcc/config/gcn/mkoffload.cc:31:
../../source-gcc/gcc/pretty-print.h:29:3: error: #error "You must define INCLUDE_MEMORY before including system.h to use pretty-print.h"
# error "You must define INCLUDE_MEMORY before including system.h to use pretty-print.h"
^
In file included from ../../source-gcc/gcc/diagnostic.h:34:0,
from ../../source-gcc/gcc/config/gcn/mkoffload.cc:31:
../../source-gcc/gcc/pretty-print.h:280:16: error: 'unique_ptr' in namespace 'std' does not name a template type
virtual std::unique_ptr<pretty_printer> clone () const;
^
In file included from ../../source-gcc/gcc/config/gcn/mkoffload.cc:31:0:
../../source-gcc/gcc/diagnostic.h:585:32: error: 'std::unique_ptr' has not been declared
void set_output_format (std::unique_ptr<diagnostic_output_format> output_format);
^
[...]
PR other/116613
gcc/
* config/gcn/mkoffload.cc: Add '#define INCLUDE_MEMORY'.
-rw-r--r-- | gcc/config/gcn/mkoffload.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/gcn/mkoffload.cc b/gcc/config/gcn/mkoffload.cc index c1d80aa..17a3342 100644 --- a/gcc/config/gcn/mkoffload.cc +++ b/gcc/config/gcn/mkoffload.cc @@ -24,6 +24,7 @@ This is not a complete assembler. We presume the source is well formed from the compiler and can die horribly if it is not. */ +#define INCLUDE_MEMORY #include "config.h" #include "system.h" #include "coretypes.h" |