mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-27 13:54:19 +08:00
4c311d95cf
Add instruction level discriminator support. r173196 Cary Coutant <ccoutant@google.com> * basic-block.h (struct basic_block_def): Remove discriminator field. * cfghooks.c (split_block): Remove discriminator field. * cfglayout.c (insn_discriminator): New function. * final.c (discriminator): Remove. (override_discriminator): New file-scope variable. (final_start_function): Remove tracking of discriminator by basic block. (final_scan_insn): Track discriminator by instruction. (notice_source_line): Check for discriminator override. Get discriminator from instruction. * gimple-pretty-print.c (dump_gimple_stmt): Print discriminator. (dump_bb_header): Don't print discriminator. * input.c: Include vecprim.h. (discriminator_location_locations): New variable. (discriminator_location_discriminators): New variable. (min_discriminator_location): New variable. (expand_location): Use map_discriminator_location. (location_with_discriminator): New function. (has_discriminator): New function. (map_discriminator_location): New function. (get_discriminator_from_locus): New function. * input.h (location_with_discriminator): New function. (has_discriminator): New function. (map_discriminator_location): New function. (get_discriminator_from_locus): New function. * print-rtl.c (print_rtx): Print discriminator. * rtl.h (insn_discriminator): New function. * tree-cfg.c: Include input.h. (assign_discriminator): Assign discriminators to instructions rather than to the basic block. * tree-pretty-print.c (dump_location): Print discriminator. r190269 Cary Coutant <ccoutant@google.com> This patch is for the google/main and google/gcc-4_7 branches. New code in GCC 4.7 is calling linemap_lookup with a location_t that may still represent a location-with-discriminator. Before using a location_t value to lookup the line number, it needs to be mapped to a real location_t value. From-SVN: r199154 |
||
---|---|---|
boehm-gc | ||
config | ||
contrib | ||
fixincludes | ||
function_reordering_plugin | ||
gcc | ||
gnattools | ||
include | ||
INSTALL | ||
intl | ||
libada | ||
libatomic | ||
libbacktrace | ||
libcpp | ||
libdecnumber | ||
libffi | ||
libgcc | ||
libgfortran | ||
libgo | ||
libgomp | ||
libiberty | ||
libitm | ||
libjava | ||
libmudflap | ||
libobjc | ||
libquadmath | ||
libsanitizer | ||
libssp | ||
libstdc++-v3 | ||
lto-plugin | ||
maintainer-scripts | ||
zlib | ||
.gitignore | ||
ABOUT-NLS | ||
ChangeLog | ||
ChangeLog.tree-ssa | ||
compile | ||
config-ml.in | ||
config.guess | ||
config.rpath | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
COPYING3 | ||
COPYING3.LIB | ||
COPYING.LIB | ||
COPYING.RUNTIME | ||
depcomp | ||
install-sh | ||
libtool-ldflags | ||
libtool.m4 | ||
lt~obsolete.m4 | ||
ltgcc.m4 | ||
ltmain.sh | ||
ltoptions.m4 | ||
ltsugar.m4 | ||
ltversion.m4 | ||
MAINTAINERS | ||
Makefile.def | ||
Makefile.in | ||
Makefile.tpl | ||
missing | ||
mkdep | ||
mkinstalldirs | ||
move-if-change | ||
README | ||
symlink-tree | ||
ylwrap |
This directory contains the GNU Compiler Collection (GCC). The GNU Compiler Collection is free software. See the files whose names start with COPYING for copying permission. The manuals, and some of the runtime libraries, are under different terms; see the individual source files for details. The directory INSTALL contains copies of the installation information as HTML and plain text. The source of this information is gcc/doc/install.texi. The installation information includes details of what is included in the GCC sources and what files GCC installs. See the file gcc/doc/gcc.texi (together with other files that it includes) for usage and porting information. An online readable version of the manual is in the files gcc/doc/gcc.info*. See http://gcc.gnu.org/bugs/ for how to report bugs usefully. Copyright years on GCC source files may be listed using range notation, e.g., 1987-2012, indicating that every year in the range, inclusive, is a copyrightable year that could otherwise be listed individually.