blob: 1332a6841fe992a21a63140f1f0b7fa938560396 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* { dg-do compile } */
/* { dg-options "-g -mframe-header-opt -mbranch-likely" } */
/* GCC was generating an ICE with the above options and -Os because
it was putting the save of $31 in two annulled delay slots but
there was only one restore since only one of the two saves could be
executed. This was correct code but it confused dwarf2cfi and
caused it to ICE when using the -g option. */
enum demangle_component_type
{
DEMANGLE_COMPONENT_TRINARY_ARG2,
};
struct demangle_component
{
enum demangle_component_type type;
};
struct d_info
{
int next_comp;
int num_comps;
};
struct demangle_component * d_make_empty (struct d_info *di)
{
if (di->next_comp >= di->num_comps) return ((void *)0);
++di->next_comp;
}
struct demangle_component *d_make_comp (
struct d_info *di,
enum demangle_component_type type,
struct demangle_component *left)
{
struct demangle_component *p;
switch (type)
{
case DEMANGLE_COMPONENT_TRINARY_ARG2:
if (left == ((void *)0)) return ((void *)0);
}
p = d_make_empty (di);
p->type = type;
}
|