* PR26044, Some targets can't be compiled with GCC 10 (tilepro)
@ 2020-05-28 11:41 Alan Modra
0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2020-05-28 11:41 UTC (permalink / raw)
To: binutils
Since this value is used in fields of type tilepro_pipeline (as
NO_PIPELINE, see tc-tilepro.c) it is appropriate to put it in
the tilepro_pipelen enum. This avoids a warning about converting from
one enum type to another.
PR 26044
* opcode/tilepro.h (TILEPRO_NUM_PIPELINE_ENCODINGS): Move to
tilepro_pipeline enum.
diff --git a/include/opcode/tilepro.h b/include/opcode/tilepro.h
index 511df96a44..1c2d399df4 100644
--- a/include/opcode/tilepro.h
+++ b/include/opcode/tilepro.h
@@ -1412,6 +1412,7 @@ typedef enum
TILEPRO_PIPELINE_Y0,
TILEPRO_PIPELINE_Y1,
TILEPRO_PIPELINE_Y2,
+ TILEPRO_NUM_PIPELINE_ENCODINGS
} tilepro_pipeline;
#define tilepro_is_x_pipeline(p) ((int)(p) <= (int)TILEPRO_PIPELINE_X1)
@@ -1432,9 +1433,6 @@ enum
/* Maximum number of instructions in a bundle (2 for X, 3 for Y). */
TILEPRO_MAX_INSTRUCTIONS_PER_BUNDLE = 3,
- /* How many different pipeline encodings are there? X0, X1, Y0, Y1, Y2. */
- TILEPRO_NUM_PIPELINE_ENCODINGS = 5,
-
/* Log base 2 of TILEPRO_BUNDLE_SIZE_IN_BYTES. */
TILEPRO_LOG2_BUNDLE_SIZE_IN_BYTES = 3,
--
Alan Modra
Australia Development Lab, IBM
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-05-28 11:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 11:41 PR26044, Some targets can't be compiled with GCC 10 (tilepro) Alan Modra
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).