GCC Middle and Back End API Reference
rtl-error.cc File Reference
#include "config.h"
#include "system.h"
#include "coretypes.h"
#include "tm.h"
#include "rtl-error.h"
#include "diagnostic.h"
#include "intl.h"
Include dependency graph for rtl-error.cc:

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)
 

Function Documentation

◆ _fatal_insn()

void _fatal_insn ( const char * msgid,
const_rtx insn,
const char * file,
int line,
const char * function )

◆ _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.

◆ diagnostic_for_asm()

static void diagnostic_for_asm ( const rtx_insn * insn,
const char * msg,
va_list * args_ptr,
diagnostic_t kind )
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().

◆ error_for_asm()

◆ location_for_asm()

static void static location_t location_for_asm ( const rtx_insn * insn)
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().

◆ warning_for_asm()

void warning_for_asm ( const rtx_insn * insn,
const char * gmsgid,
... )

References ap, and diagnostic_for_asm().