GCC Middle and Back End API Reference
input.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef source_location location_t

Functions

expanded_location expand_location (source_location)
const char * location_get_source_line (expanded_location xloc)
expanded_location expand_location_to_spelling_point (source_location)
source_location expansion_point_location_if_in_system_header (source_location)
void dump_line_table_statistics (void)

Variables

struct line_maps * line_table
char builtins_location_check [(BUILTINS_LOCATION< RESERVED_LOCATION_COUNT)?1:-1]
location_t input_location

Typedef Documentation

typedef source_location location_t
Historically GCC used location_t, while cpp used source_location.
   This could be removed but it hardly seems worth the effort.   

Function Documentation

void dump_line_table_statistics ( void  )
Dump statistics to stderr about the memory usage of the line_table
   set of line maps.  This also displays some statistics about macro
   expansion.   

References line_table, and memset().

Referenced by dump_memory_report().

expanded_location expand_location ( source_location  )
expanded_location expand_location_to_spelling_point ( source_location  )
source_location expansion_point_location_if_in_system_header ( source_location  )
const char* location_get_source_line ( expanded_location  xloc)

Variable Documentation

char builtins_location_check[(BUILTINS_LOCATION< RESERVED_LOCATION_COUNT)?1:-1]
line-map.c reserves RESERVED_LOCATION_COUNT to the user.  Ensure
   both UNKNOWN_LOCATION and BUILTINS_LOCATION fit into that.   
location_t input_location
@verbatim Data and functions related to line maps and input files.

Copyright (C) 2004-2013 Free Software Foundation, Inc.

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/.

Current position in real source file.   

Referenced by analyze_function(), assign_assembler_name_if_neeeded(), build_fn_decl(), cgraph_build_static_cdtor_1(), check_global_declaration_1(), compute_branch_probabilities(), construct_exit_block(), create_tmp_var_raw(), decl_attributes(), diagnostic_for_asm(), dwarf2out_imported_module_or_decl_1(), error(), expand_call_inline(), expand_function(), expand_function_end(), expand_gimple_stmt(), expand_omp(), expand_thunk(), extract_fixed_bit_field(), fatal_error(), finalize_record_size(), fold_builtin_next_arg(), fold_undefer_overflow_warnings(), force_gimple_operand_1(), get_coverage_counts(), gimplify_adjust_omp_clauses_1(), gimplify_asm_expr(), gimplify_body(), gimplify_call_expr(), gimplify_expr(), gimplify_omp_for(), init_asm_output(), internal_error(), lang_dependent_init(), lower_omp(), lower_omp_1(), make_node_stat(), new_omp_context(), number_of_iterations_exit(), place_field(), read_profile_edge_counts(), scan_omp(), scan_omp_1_stmt(), self_referential_size(), simplify_abs_using_ranges(), simplify_cond_using_ranges(), simplify_div_or_mod_using_ranges(), sorry(), std_gimplify_va_arg_expr(), thunk_adjust(), vrp_evaluate_conditional(), walk_gimple_stmt(), and warning().