1 /* This testcase is part of GDB, the GNU debugger.
3 Copyright (C) 2012 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
18 /* The file ../gdb.dwarf2/inline-break.S was generated manually from
19 this file, and should be regenerated if this file is modified. */
22 # define ATTR __attribute__((always_inline))
27 /* A static inlined function that is called once. */
29 static inline ATTR
int
35 /* A non-static inlined function that is called once. */
43 /* A static inlined function that calls another static inlined
46 static inline ATTR
int
49 return x
< 14 ? 1 : 2;
52 static inline ATTR
int
55 return func3b (x
* 23);
58 /* A non-static inlined function that calls a static inlined
61 static inline ATTR
int
64 return x
< 13 ? 1 : 2;
70 return func4b (x
* 17);
73 /* A static inlined function that calls a non-static inlined
79 return x
< 12 ? 1 : 2;
82 static inline ATTR
int
85 return func5b (x
* 23);
88 /* A non-static inlined function that calls another non-static inlined
94 return x
< 14 ? 3 : 2;
100 return func6b (x
* 17);
103 /* A static inlined function that is called more than once. */
105 static inline ATTR
int
108 return x
< 23 ? 1 : 4;
111 static inline ATTR
int
114 return func7b (x
* 29);
117 /* A non-static inlined function that is called more than once. */
122 return x
< 7 ? 11 : 9;
125 static inline ATTR
int
128 return func8b (x
* 31);
134 main (int argc
, char *argv
[])
136 /* Declaring x as volatile here prevents GCC from combining calls.
137 If GCC is allowed to combine calls then some of them end up with
138 no instructions at all, so there is no specific address for GDB
139 to set a breakpoint at. */
140 volatile int x
= argc
;
154 x
= func7a (x
) + func7b (x
);
156 x
= func8a (x
) + func8b (x
);
This page took 0.041204 seconds and 5 git commands to generate.