1 /* Copyright 2024 Free Software Foundation, Inc. 2 3 This file is part of GDB. 4 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. 9 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. 14 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/>. */ 17 18 void 19 f1 (void) 20 { 21 asm ("f1_prologue_end: .globl f1_prologue_end"); 22 } 23 24 int 25 f2 (int a) 26 { 27 asm ("f2_prologue_end: .globl f2_prologue_end"); 28 return a; 29 } 30 31 void 32 f3 (void) 33 { 34 asm ("f3_prologue_end: .globl f3_prologue_end"); 35 f1 (); 36 } 37 38 int 39 f4 (int a) 40 { 41 asm ("f4_prologue_end: .globl f4_prologue_end"); 42 return f2 (a); 43 } 44 45 int 46 main (void) 47 { 48 f1 (); 49 f2 (0); 50 f3 (); 51 f4 (0); 52 53 return 0; 54 } 55