GCC Middle and Back End API Reference
|
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl-error.h"
#include "diagnostic.h"
#include "intl.h"
Functions | |
static location_t | location_for_asm (const rtx_insn *) |
static void | diagnostic_for_asm (const rtx_insn *, const char *, va_list *, diagnostic_t) ATTRIBUTE_GCC_DIAG(2 |
void | error_for_asm (const rtx_insn *insn, const char *gmsgid,...) |
void | warning_for_asm (const rtx_insn *insn, const char *gmsgid,...) |
void | _fatal_insn (const char *msgid, const_rtx insn, const char *file, int line, const char *function) |
void | _fatal_insn_not_found (const_rtx insn, const char *file, int line, const char *function) |
void _fatal_insn | ( | const char * | msgid, |
const_rtx | insn, | ||
const char * | file, | ||
int | line, | ||
const char * | function ) |
References _, debug_rtx(), error(), errorcount, and fancy_abort().
Referenced by _fatal_insn_not_found().
void _fatal_insn_not_found | ( | const_rtx | insn, |
const char * | file, | ||
int | line, | ||
const char * | function ) |
rtl-error.cc
References _fatal_insn(), and INSN_CODE.
|
static |
Report a diagnostic MESSAGE (an error or a WARNING) at the line number of the insn INSN. This is used only when INSN is an `asm' with operands, and each ASM_OPERANDS records its own source file and line.
References diagnostic_report_diagnostic(), diagnostic_set_info(), global_dc, line_table, location_for_asm(), and msg.
Referenced by error_for_asm(), and warning_for_asm().
void error_for_asm | ( | const rtx_insn * | insn, |
const char * | gmsgid, | ||
... ) |
References ap, and diagnostic_for_asm().
Referenced by curr_insn_transform(), do_output_reload(), failed_reload(), find_reloads(), instantiate_virtual_regs_in_insn(), lra_asm_insn_error(), output_operand_lossage(), push_reload(), reload(), reload_as_needed(), and spill_failure().
|
static |
RTL specific diagnostic subroutines for GCC Copyright (C) 2001-2024 Free Software Foundation, Inc. Contributed by Gabriel Dos Reis <gdr@codesourcery.com> This file is part of GCC. GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see <http://www.gnu.org/licenses/>.
Figure the location of the given INSN.
References ASM_OPERANDS_SOURCE_LOCATION, GET_CODE, input_location, NULL, PATTERN(), SET, SET_SRC, and XVECEXP.
Referenced by diagnostic_for_asm().
void warning_for_asm | ( | const rtx_insn * | insn, |
const char * | gmsgid, | ||
... ) |
References ap, and diagnostic_for_asm().