1*e4b17023SJohn Marino /* Dwarf2 assembler output helper routines. 2*e4b17023SJohn Marino Copyright (C) 2001, 2003, 2005, 2007, 2008, 2010 3*e4b17023SJohn Marino Free Software Foundation, Inc. 4*e4b17023SJohn Marino 5*e4b17023SJohn Marino This file is part of GCC. 6*e4b17023SJohn Marino 7*e4b17023SJohn Marino GCC is free software; you can redistribute it and/or modify it under 8*e4b17023SJohn Marino the terms of the GNU General Public License as published by the Free 9*e4b17023SJohn Marino Software Foundation; either version 3, or (at your option) any later 10*e4b17023SJohn Marino version. 11*e4b17023SJohn Marino 12*e4b17023SJohn Marino GCC is distributed in the hope that it will be useful, but WITHOUT ANY 13*e4b17023SJohn Marino WARRANTY; without even the implied warranty of MERCHANTABILITY or 14*e4b17023SJohn Marino FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 15*e4b17023SJohn Marino for more details. 16*e4b17023SJohn Marino 17*e4b17023SJohn Marino You should have received a copy of the GNU General Public License 18*e4b17023SJohn Marino along with GCC; see the file COPYING3. If not see 19*e4b17023SJohn Marino <http://www.gnu.org/licenses/>. */ 20*e4b17023SJohn Marino 21*e4b17023SJohn Marino 22*e4b17023SJohn Marino extern void dw2_assemble_integer (int, rtx); 23*e4b17023SJohn Marino 24*e4b17023SJohn Marino extern void dw2_asm_output_data_raw (int, unsigned HOST_WIDE_INT); 25*e4b17023SJohn Marino 26*e4b17023SJohn Marino extern void dw2_asm_output_data (int, unsigned HOST_WIDE_INT, 27*e4b17023SJohn Marino const char *, ...) 28*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 29*e4b17023SJohn Marino 30*e4b17023SJohn Marino extern void dw2_asm_output_delta (int, const char *, const char *, 31*e4b17023SJohn Marino const char *, ...) 32*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_4; 33*e4b17023SJohn Marino 34*e4b17023SJohn Marino extern void dw2_asm_output_vms_delta (int, const char *, const char *, 35*e4b17023SJohn Marino const char *, ...) 36*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_4; 37*e4b17023SJohn Marino 38*e4b17023SJohn Marino extern void dw2_asm_output_offset (int, const char *, section *, 39*e4b17023SJohn Marino const char *, ...) 40*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_4; 41*e4b17023SJohn Marino 42*e4b17023SJohn Marino extern void dw2_asm_output_addr (int, const char *, const char *, ...) 43*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 44*e4b17023SJohn Marino 45*e4b17023SJohn Marino extern void dw2_asm_output_addr_rtx (int, rtx, const char *, ...) 46*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 47*e4b17023SJohn Marino 48*e4b17023SJohn Marino extern void dw2_asm_output_encoded_addr_rtx (int, rtx, bool, 49*e4b17023SJohn Marino const char *, ...) 50*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_4; 51*e4b17023SJohn Marino 52*e4b17023SJohn Marino extern void dw2_asm_output_nstring (const char *, size_t, 53*e4b17023SJohn Marino const char *, ...) 54*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 55*e4b17023SJohn Marino 56*e4b17023SJohn Marino extern void dw2_asm_output_data_uleb128_raw (unsigned HOST_WIDE_INT); 57*e4b17023SJohn Marino 58*e4b17023SJohn Marino extern void dw2_asm_output_data_uleb128 (unsigned HOST_WIDE_INT, 59*e4b17023SJohn Marino const char *, ...) 60*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_2; 61*e4b17023SJohn Marino 62*e4b17023SJohn Marino extern void dw2_asm_output_data_sleb128_raw (HOST_WIDE_INT); 63*e4b17023SJohn Marino 64*e4b17023SJohn Marino extern void dw2_asm_output_data_sleb128 (HOST_WIDE_INT, 65*e4b17023SJohn Marino const char *, ...) 66*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_2; 67*e4b17023SJohn Marino 68*e4b17023SJohn Marino extern void dw2_asm_output_delta_uleb128 (const char *, const char *, 69*e4b17023SJohn Marino const char *, ...) 70*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 71*e4b17023SJohn Marino 72*e4b17023SJohn Marino extern int size_of_uleb128 (unsigned HOST_WIDE_INT); 73*e4b17023SJohn Marino extern int size_of_sleb128 (HOST_WIDE_INT); 74*e4b17023SJohn Marino extern int size_of_encoded_value (int); 75*e4b17023SJohn Marino extern const char *eh_data_format_name (int); 76*e4b17023SJohn Marino 77*e4b17023SJohn Marino extern rtx dw2_force_const_mem (rtx, bool); 78*e4b17023SJohn Marino extern void dw2_output_indirect_constants (void); 79*e4b17023SJohn Marino 80*e4b17023SJohn Marino /* These are currently unused. */ 81*e4b17023SJohn Marino 82*e4b17023SJohn Marino #if 0 83*e4b17023SJohn Marino extern void dw2_asm_output_pcrel (int, const char *, const char *, ...) 84*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 85*e4b17023SJohn Marino 86*e4b17023SJohn Marino extern void dw2_asm_output_delta_sleb128 (const char *, const char *, 87*e4b17023SJohn Marino const char *, ...) 88*e4b17023SJohn Marino ATTRIBUTE_NULL_PRINTF_3; 89*e4b17023SJohn Marino #endif 90