1 /* RTL utility routines.
2 Copyright (C) 1987-2025 Free Software Foundation, Inc.
4 This file is part of GCC.
6 GCC is free software; you can redistribute it and/or modify it under
7 the terms of the GNU General Public License as published by the Free
8 Software Foundation; either version 3, or (at your option) any later
11 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 You should have received a copy of the GNU General Public License
17 along with GCC; see the file COPYING3. If not see
18 <http://www.gnu.org/licenses/>. */
20 /* This file is compiled twice: once for the generator programs
21 once for the compiler. */
29 #include "coretypes.h"
36 # include "diagnostic-core.h"
40 /* Indexed by rtx code, gives number of operands for an rtx with that code.
41 Does NOT include rtx header data (code and links). */
43 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) sizeof FORMAT - 1 ,
45 const unsigned char rtx_length
[NUM_RTX_CODE
] = {
51 /* Indexed by rtx code, gives the name of that kind of rtx, as a C string. */
53 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) NAME ,
55 const char * const rtx_name
[NUM_RTX_CODE
] = {
56 #include "rtl.def" /* rtl expressions are documented here */
61 /* Indexed by rtx code, gives a sequence of operand-types for
62 rtx's of that code. The sequence is a C string in which
63 each character describes one operand. */
65 const char * const rtx_format
[NUM_RTX_CODE
] = {
67 can cause a warning message
68 "0" field is unused (or used in a phase-dependent manner)
72 "n" like "i", but prints entries from `note_insn_name'
73 "L" like "i", but correctly sized to hold a location_t,
74 which may be configured as 32- or 64-bit.
75 "w" an integer of width HOST_BITS_PER_WIDE_INT
77 "s" a pointer to a string
79 "S" like "s", but optional:
80 the containing rtx may end before this operand
81 "T" like "s", but treated specially by the RTL reader;
82 only found in machine description patterns.
83 "e" a pointer to an rtl expression
85 "E" a pointer to a vector that points to a number of rtl expressions
86 prints a list of the rtl expressions
87 "V" like "E", but optional:
88 the containing rtx may end before this operand
89 "u" a pointer to another insn
90 prints the uid of the insn.
91 "b" is a pointer to a bitmap header.
92 "B" is a basic block pointer.
93 "t" is a tree pointer.
95 "p" is a poly_uint16 offset. */
97 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) FORMAT ,
98 #include "rtl.def" /* rtl expressions are defined here */
102 /* Indexed by rtx code, gives a character representing the "class" of
103 that rtx code. See rtl.def for documentation on the defined classes. */
105 const enum rtx_class rtx_class
[NUM_RTX_CODE
] = {
106 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) CLASS,
107 #include "rtl.def" /* rtl expressions are defined here */
111 /* Whether rtxs with the given code store data in the hwint field. */
113 #define RTX_CODE_HWINT_P_1(ENUM) \
114 ((ENUM) == CONST_INT || (ENUM) == CONST_DOUBLE \
115 || (ENUM) == CONST_FIXED || (ENUM) == CONST_WIDE_INT)
116 #ifdef GENERATOR_FILE
117 #define RTX_CODE_HWINT_P(ENUM) \
118 (RTX_CODE_HWINT_P_1 (ENUM) || (ENUM) == EQ_ATTR_ALT)
120 #define RTX_CODE_HWINT_P RTX_CODE_HWINT_P_1
123 /* Indexed by rtx code, gives the size of the rtx in bytes. */
125 const unsigned char rtx_code_size
[NUM_RTX_CODE
] = {
126 #define DEF_RTL_EXPR(ENUM, NAME, FORMAT, CLASS) \
127 (RTX_CODE_HWINT_P (ENUM) \
128 ? RTX_HDR_SIZE + (sizeof FORMAT - 1) * sizeof (HOST_WIDE_INT) \
130 ? RTX_HDR_SIZE + sizeof (reg_info) \
131 : RTX_HDR_SIZE + (sizeof FORMAT - 1) * sizeof (rtunion)),
137 /* Names for kinds of NOTEs and REG_NOTEs. */
139 const char * const note_insn_name
[NOTE_INSN_MAX
] =
141 #define DEF_INSN_NOTE(NAME) #NAME,
142 #include "insn-notes.def"
146 const char * const reg_note_name
[REG_NOTE_MAX
] =
148 #define DEF_REG_NOTE(NAME) #NAME,
149 #include "reg-notes.def"
153 static size_t rtx_alloc_counts
[(int) LAST_AND_UNUSED_RTX_CODE
];
154 static size_t rtx_alloc_sizes
[(int) LAST_AND_UNUSED_RTX_CODE
];
155 static size_t rtvec_alloc_counts
;
156 static size_t rtvec_alloc_sizes
;
159 /* Allocate an rtx vector of N elements.
160 Store the length, and initialize all elements to zero. */
163 rtvec_alloc (size_t n
)
167 /* rtvec_def.num_elem is an int. */
168 gcc_assert (n
< INT_MAX
);
170 rt
= ggc_alloc_rtvec_sized (n
);
171 /* Clear out the vector. */
172 memset (&rt
->elem
[0], 0, n
* sizeof (rtx
));
174 PUT_NUM_ELEM (rt
, n
);
176 if (GATHER_STATISTICS
)
178 rtvec_alloc_counts
++;
179 rtvec_alloc_sizes
+= n
* sizeof (rtx
);
185 /* Create a bitwise copy of VEC. */
188 shallow_copy_rtvec (rtvec vec
)
193 n
= GET_NUM_ELEM (vec
);
194 newvec
= rtvec_alloc (n
);
195 memcpy (&newvec
->elem
[0], &vec
->elem
[0], sizeof (rtx
) * n
);
199 /* Return the number of bytes occupied by rtx value X. */
202 rtx_size (const_rtx x
)
204 if (CONST_WIDE_INT_P (x
))
206 + sizeof (struct hwivec_def
)
207 + ((CONST_WIDE_INT_NUNITS (x
) - 1)
208 * sizeof (HOST_WIDE_INT
)));
209 if (CONST_POLY_INT_P (x
))
211 + sizeof (struct const_poly_int_def
)
212 + CONST_POLY_INT_COEFFS (x
).extra_size ());
213 if (GET_CODE (x
) == SYMBOL_REF
&& SYMBOL_REF_HAS_BLOCK_INFO_P (x
))
214 return RTX_HDR_SIZE
+ sizeof (struct block_symbol
);
215 return RTX_CODE_SIZE (GET_CODE (x
));
218 /* Allocate an rtx of code CODE with EXTRA bytes in it. The CODE is
219 stored in the rtx; all the rest is initialized to zero. */
222 rtx_alloc_stat_v (RTX_CODE code MEM_STAT_DECL
, int extra
)
224 rtx rt
= ggc_alloc_rtx_def_stat (RTX_CODE_SIZE (code
) + extra
229 if (GATHER_STATISTICS
)
231 rtx_alloc_counts
[code
]++;
232 rtx_alloc_sizes
[code
] += RTX_CODE_SIZE (code
);
238 /* Allocate an rtx of code CODE. The CODE is stored in the rtx;
239 all the rest is initialized to zero. */
242 rtx_alloc (RTX_CODE code MEM_STAT_DECL
)
244 return rtx_alloc_stat_v (code PASS_MEM_STAT
, 0);
247 /* Write the wide constant X to OUTFILE. */
250 cwi_output_hex (FILE *outfile
, const_rtx x
)
252 int i
= CWI_GET_NUM_ELEM (x
);
254 if (CWI_ELT (x
, i
- 1) == 0)
255 /* The HOST_WIDE_INT_PRINT_HEX prepends a 0x only if the val is
256 non zero. We want all numbers to have a 0x prefix. */
257 fprintf (outfile
, "0x");
258 fprintf (outfile
, HOST_WIDE_INT_PRINT_HEX
, CWI_ELT (x
, --i
));
260 fprintf (outfile
, HOST_WIDE_INT_PRINT_PADDED_HEX
, CWI_ELT (x
, i
));
264 /* Return true if ORIG is a sharable CONST. */
267 shared_const_p (const_rtx orig
)
269 gcc_assert (GET_CODE (orig
) == CONST
);
271 /* CONST can be shared if it contains a SYMBOL_REF. If it contains
272 a LABEL_REF, it isn't sharable. */
274 return (GET_CODE (XEXP (orig
, 0)) == PLUS
275 && GET_CODE (XEXP (XEXP (orig
, 0), 0)) == SYMBOL_REF
276 && poly_int_rtx_p (XEXP (XEXP (orig
, 0), 1), &offset
));
280 /* Create a new copy of an rtx.
281 Recursively copies the operands of the rtx,
282 except for those few rtx codes that are sharable. */
290 const char *format_ptr
;
292 code
= GET_CODE (orig
);
306 /* SCRATCH must be shared because they represent distinct values. */
309 /* Share clobbers of hard registers, but do not share pseudo reg
310 clobbers or clobbers of hard registers that originated as pseudos.
311 This is needed to allow safe register renaming. */
312 if (REG_P (XEXP (orig
, 0)) && REGNO (XEXP (orig
, 0)) < FIRST_PSEUDO_REGISTER
313 && ORIGINAL_REGNO (XEXP (orig
, 0)) == REGNO (XEXP (orig
, 0)))
318 if (shared_const_p (orig
))
322 /* A MEM with a constant address is not sharable. The problem is that
323 the constant address may need to be reloaded. If the mem is shared,
324 then reloading one copy of this mem will cause all copies to appear
325 to have been reloaded. */
331 /* Copy the various flags, fields, and other information. We assume
332 that all fields need copying, and then clear the fields that should
333 not be copied. That is the sensible default behavior, and forces
334 us to explicitly document why we are *not* copying a flag. */
335 copy
= shallow_copy_rtx (orig
);
337 format_ptr
= GET_RTX_FORMAT (GET_CODE (copy
));
339 for (i
= 0; i
< GET_RTX_LENGTH (GET_CODE (copy
)); i
++)
340 switch (*format_ptr
++)
343 if (XEXP (orig
, i
) != NULL
)
344 XEXP (copy
, i
) = copy_rtx (XEXP (orig
, i
));
349 if (XVEC (orig
, i
) != NULL
)
351 XVEC (copy
, i
) = rtvec_alloc (XVECLEN (orig
, i
));
352 for (j
= 0; j
< XVECLEN (copy
, i
); j
++)
353 XVECEXP (copy
, i
, j
) = copy_rtx (XVECEXP (orig
, i
, j
));
368 /* These are left unchanged. */
377 /* Create a new copy of an rtx. Only copy just one level. */
380 shallow_copy_rtx (const_rtx orig MEM_STAT_DECL
)
382 const unsigned int size
= rtx_size (orig
);
383 rtx
const copy
= ggc_alloc_rtx_def_stat (size PASS_MEM_STAT
);
384 memcpy (copy
, orig
, size
);
385 switch (GET_CODE (orig
))
387 /* RTX codes copy_rtx_if_shared_1 considers are shareable,
388 the used flag is often used for other purposes. */
401 /* For all other RTXes clear the used flag on the copy.
402 CALL_INSN use "used" flag to indicate it's a fake call. */
404 RTX_FLAG (copy
, used
) = 0;
410 /* Nonzero when we are generating CONCATs. */
411 int generating_concat_p
;
413 /* Nonzero when we are expanding trees to RTL. */
414 int currently_expanding_to_rtl
;
418 /* Return true if X and Y are identical-looking rtx's.
419 This is the Lisp function EQUAL for rtx arguments.
421 Call CB on each pair of rtx if CB is not NULL.
422 When the callback returns true, we continue with the new pair. */
425 rtx_equal_p (const_rtx x
, const_rtx y
, rtx_equal_p_callback_function cb
)
435 if (x
== 0 || y
== 0)
438 /* Invoke the callback first. */
440 && ((*cb
) (&x
, &y
, &nx
, &ny
)))
441 return rtx_equal_p (nx
, ny
, cb
);
444 /* Rtx's of different codes cannot be equal. */
445 if (code
!= GET_CODE (y
))
448 /* (MULT:SI x y) and (MULT:HI x y) are NOT equivalent.
449 (REG:SI x) and (REG:HI x) are NOT equivalent. */
451 if (GET_MODE (x
) != GET_MODE (y
))
454 /* MEMs referring to different address space are not equivalent. */
455 if (code
== MEM
&& MEM_ADDR_SPACE (x
) != MEM_ADDR_SPACE (y
))
458 /* Some RTL can be compared nonrecursively. */
462 return (REGNO (x
) == REGNO (y
));
465 return label_ref_label (x
) == label_ref_label (y
);
468 return XSTR (x
, 0) == XSTR (y
, 0);
477 if (!same_vector_encodings_p (x
, y
))
481 case DEBUG_IMPLICIT_PTR
:
482 return DEBUG_IMPLICIT_PTR_DECL (x
)
483 == DEBUG_IMPLICIT_PTR_DECL (y
);
485 case DEBUG_PARAMETER_REF
:
486 return DEBUG_PARAMETER_REF_DECL (x
)
487 == DEBUG_PARAMETER_REF_DECL (y
);
490 return rtx_equal_p (ENTRY_VALUE_EXP (x
), ENTRY_VALUE_EXP (y
), cb
);
496 /* Compare the elements. If any pair of corresponding elements
497 fail to match, return 0 for the whole thing. */
499 fmt
= GET_RTX_FORMAT (code
);
500 for (i
= GET_RTX_LENGTH (code
) - 1; i
>= 0; i
--)
505 if (XWINT (x
, i
) != XWINT (y
, i
))
511 if (XINT (x
, i
) != XINT (y
, i
))
516 if (XLOC (x
, i
) != XLOC (y
, i
))
521 if (maybe_ne (SUBREG_BYTE (x
), SUBREG_BYTE (y
)))
527 /* Two vectors must have the same length. */
528 if (XVECLEN (x
, i
) != XVECLEN (y
, i
))
531 /* And the corresponding elements must match. */
532 for (j
= 0; j
< XVECLEN (x
, i
); j
++)
533 if (!rtx_equal_p (XVECEXP (x
, i
, j
), XVECEXP (y
, i
, j
), cb
))
538 if (!rtx_equal_p (XEXP (x
, i
), XEXP (y
, i
), cb
))
544 if ((XSTR (x
, i
) || XSTR (y
, i
))
545 && (! XSTR (x
, i
) || ! XSTR (y
, i
)
546 || strcmp (XSTR (x
, i
), XSTR (y
, i
))))
551 /* These are just backpointers, so they don't matter. */
558 /* It is believed that rtx's at this level will never
559 contain anything but integers and other rtx's,
560 except for within LABEL_REFs and SYMBOL_REFs. */
568 /* Return true if all elements of VEC are equal. */
571 rtvec_all_equal_p (const_rtvec vec
)
573 const_rtx first
= RTVEC_ELT (vec
, 0);
574 /* Optimize the important special case of a vector of constants.
575 The main use of this function is to detect whether every element
576 of CONST_VECTOR is the same. */
577 switch (GET_CODE (first
))
580 for (int i
= 1, n
= GET_NUM_ELEM (vec
); i
< n
; ++i
)
581 if (first
!= RTVEC_ELT (vec
, i
))
586 for (int i
= 1, n
= GET_NUM_ELEM (vec
); i
< n
; ++i
)
587 if (!rtx_equal_p (first
, RTVEC_ELT (vec
, i
)))
593 /* Return true if VEC contains a linear series of integers
594 { START, START+1, START+2, ... }. */
597 rtvec_series_p (rtvec vec
, int start
)
599 for (int i
= 0; i
< GET_NUM_ELEM (vec
); i
++)
601 rtx x
= RTVEC_ELT (vec
, i
);
602 if (!CONST_INT_P (x
) || INTVAL (x
) != i
+ start
)
608 /* Return an indication of which type of insn should have X as a body.
609 In generator files, this can be UNKNOWN if the answer is only known
610 at (GCC) runtime. Otherwise the value is CODE_LABEL, INSN, CALL_INSN
614 classify_insn (rtx x
)
618 if (GET_CODE (x
) == CALL
)
620 if (ANY_RETURN_P (x
))
622 if (GET_CODE (x
) == ASM_OPERANDS
&& ASM_OPERANDS_LABEL_LENGTH (x
))
624 if (GET_CODE (x
) == SET
)
626 if (GET_CODE (SET_DEST (x
)) == PC
)
628 else if (GET_CODE (SET_SRC (x
)) == CALL
)
633 if (GET_CODE (x
) == PARALLEL
)
636 bool has_return_p
= false;
637 for (j
= XVECLEN (x
, 0) - 1; j
>= 0; j
--)
638 if (GET_CODE (XVECEXP (x
, 0, j
)) == CALL
)
640 else if (ANY_RETURN_P (XVECEXP (x
, 0, j
)))
642 else if (GET_CODE (XVECEXP (x
, 0, j
)) == SET
643 && GET_CODE (SET_DEST (XVECEXP (x
, 0, j
))) == PC
)
645 else if (GET_CODE (XVECEXP (x
, 0, j
)) == SET
646 && GET_CODE (SET_SRC (XVECEXP (x
, 0, j
))) == CALL
)
650 if (GET_CODE (XVECEXP (x
, 0, 0)) == ASM_OPERANDS
651 && ASM_OPERANDS_LABEL_LENGTH (XVECEXP (x
, 0, 0)))
654 #ifdef GENERATOR_FILE
655 if (GET_CODE (x
) == MATCH_OPERAND
656 || GET_CODE (x
) == MATCH_OPERATOR
657 || GET_CODE (x
) == MATCH_PARALLEL
658 || GET_CODE (x
) == MATCH_OP_DUP
659 || GET_CODE (x
) == MATCH_DUP
660 || GET_CODE (x
) == PARALLEL
)
666 /* Comparator of indices based on rtx_alloc_counts. */
669 rtx_count_cmp (const void *p1
, const void *p2
)
671 const unsigned *n1
= (const unsigned *)p1
;
672 const unsigned *n2
= (const unsigned *)p2
;
674 return rtx_alloc_counts
[*n1
] - rtx_alloc_counts
[*n2
];
678 dump_rtx_statistics (void)
680 int total_counts
= 0;
683 if (! GATHER_STATISTICS
)
685 fprintf (stderr
, "No RTX statistics\n");
689 fprintf (stderr
, "\nRTX Kind Count Bytes\n");
690 fprintf (stderr
, "-------------------------------------------\n");
692 auto_vec
<unsigned> indices (LAST_AND_UNUSED_RTX_CODE
);
693 for (unsigned i
= 0; i
< LAST_AND_UNUSED_RTX_CODE
; i
++)
694 indices
.quick_push (i
);
695 indices
.qsort (rtx_count_cmp
);
697 for (unsigned i
= 0; i
< LAST_AND_UNUSED_RTX_CODE
; i
++)
699 unsigned j
= indices
[i
];
700 if (rtx_alloc_counts
[j
])
702 fprintf (stderr
, "%-24s " PRsa (6) " " PRsa (9) "\n",
704 SIZE_AMOUNT (rtx_alloc_counts
[j
]),
705 SIZE_AMOUNT (rtx_alloc_sizes
[j
]));
706 total_counts
+= rtx_alloc_counts
[j
];
707 total_sizes
+= rtx_alloc_sizes
[j
];
711 if (rtvec_alloc_counts
)
713 fprintf (stderr
, "%-24s " PRsa (6) " " PRsa (9) "\n", "rtvec",
714 SIZE_AMOUNT (rtvec_alloc_counts
),
715 SIZE_AMOUNT (rtvec_alloc_sizes
));
716 total_counts
+= rtvec_alloc_counts
;
717 total_sizes
+= rtvec_alloc_sizes
;
719 fprintf (stderr
, "-----------------------------------------------\n");
720 fprintf (stderr
, "%-24s " PRsa (6) " " PRsa (9) "\n",
721 "Total", SIZE_AMOUNT (total_counts
),
722 SIZE_AMOUNT (total_sizes
));
723 fprintf (stderr
, "-----------------------------------------------\n");
726 #if defined ENABLE_RTL_CHECKING && (GCC_VERSION >= 2007)
728 /* Disable warnings about missing quoting in GCC diagnostics for
729 the internal_error calls. Their format strings deliberately don't
730 follow GCC diagnostic conventions. */
732 #pragma GCC diagnostic push
733 #pragma GCC diagnostic ignored "-Wformat-diag"
737 rtl_check_failed_bounds (const_rtx r
, int n
, const char *file
, int line
,
741 ("RTL check: access of elt %d of '%s' with last elt %d in %s, at %s:%d",
742 n
, GET_RTX_NAME (GET_CODE (r
)), GET_RTX_LENGTH (GET_CODE (r
)) - 1,
743 func
, trim_filename (file
), line
);
747 rtl_check_failed_type1 (const_rtx r
, int n
, int c1
, const char *file
, int line
,
751 ("RTL check: expected elt %d type '%c', have '%c' (rtx %s) in %s, at %s:%d",
752 n
, c1
, GET_RTX_FORMAT (GET_CODE (r
))[n
], GET_RTX_NAME (GET_CODE (r
)),
753 func
, trim_filename (file
), line
);
757 rtl_check_failed_type2 (const_rtx r
, int n
, int c1
, int c2
, const char *file
,
758 int line
, const char *func
)
761 ("RTL check: expected elt %d type '%c' or '%c', have '%c' (rtx %s) in %s, at %s:%d",
762 n
, c1
, c2
, GET_RTX_FORMAT (GET_CODE (r
))[n
], GET_RTX_NAME (GET_CODE (r
)),
763 func
, trim_filename (file
), line
);
767 rtl_check_failed_code1 (const_rtx r
, enum rtx_code code
, const char *file
,
768 int line
, const char *func
)
770 internal_error ("RTL check: expected code '%s', have '%s' in %s, at %s:%d",
771 GET_RTX_NAME (code
), GET_RTX_NAME (GET_CODE (r
)), func
,
772 trim_filename (file
), line
);
776 rtl_check_failed_code2 (const_rtx r
, enum rtx_code code1
, enum rtx_code code2
,
777 const char *file
, int line
, const char *func
)
780 ("RTL check: expected code '%s' or '%s', have '%s' in %s, at %s:%d",
781 GET_RTX_NAME (code1
), GET_RTX_NAME (code2
), GET_RTX_NAME (GET_CODE (r
)),
782 func
, trim_filename (file
), line
);
786 rtl_check_failed_code3 (const_rtx r
, enum rtx_code code1
, enum rtx_code code2
,
787 enum rtx_code code3
, const char *file
, int line
,
791 ("RTL check: expected code '%s', '%s' or '%s', have '%s' in %s, at %s:%d",
792 GET_RTX_NAME (code1
), GET_RTX_NAME (code2
), GET_RTX_NAME (code3
),
793 GET_RTX_NAME (GET_CODE (r
)), func
, trim_filename (file
), line
);
797 rtl_check_failed_code_mode (const_rtx r
, enum rtx_code code
, machine_mode mode
,
798 bool not_mode
, const char *file
, int line
,
801 internal_error ((not_mode
802 ? ("RTL check: expected code '%s' and not mode '%s', "
803 "have code '%s' and mode '%s' in %s, at %s:%d")
804 : ("RTL check: expected code '%s' and mode '%s', "
805 "have code '%s' and mode '%s' in %s, at %s:%d")),
806 GET_RTX_NAME (code
), GET_MODE_NAME (mode
),
807 GET_RTX_NAME (GET_CODE (r
)), GET_MODE_NAME (GET_MODE (r
)),
808 func
, trim_filename (file
), line
);
812 #pragma GCC diagnostic pop
815 /* Report that line LINE of FILE tried to access the block symbol fields
816 of a non-block symbol. FUNC is the function that contains the line. */
819 rtl_check_failed_block_symbol (const char *file
, int line
, const char *func
)
822 ("RTL check: attempt to treat non-block symbol as a block symbol "
823 "in %s, at %s:%d", func
, trim_filename (file
), line
);
826 /* XXX Maybe print the vector? */
828 cwi_check_failed_bounds (const_rtx x
, int n
, const char *file
, int line
,
832 ("RTL check: access of hwi elt %d of vector with last elt %d in %s, at %s:%d",
833 n
, CWI_GET_NUM_ELEM (x
) - 1, func
, trim_filename (file
), line
);
836 /* XXX Maybe print the vector? */
838 rtvec_check_failed_bounds (const_rtvec r
, int n
, const char *file
, int line
,
842 ("RTL check: access of elt %d of vector with last elt %d in %s, at %s:%d",
843 n
, GET_NUM_ELEM (r
) - 1, func
, trim_filename (file
), line
);
845 #endif /* ENABLE_RTL_CHECKING */
847 #if defined ENABLE_RTL_FLAG_CHECKING
849 rtl_check_failed_flag (const char *name
, const_rtx r
, const char *file
,
850 int line
, const char *func
)
853 ("RTL flag check: %s used with unexpected rtx code '%s' in %s, at %s:%d",
854 name
, GET_RTX_NAME (GET_CODE (r
)), func
, trim_filename (file
), line
);
856 #endif /* ENABLE_RTL_FLAG_CHECKING */