Find a file
Richard Sandiford a365fa0636 Add call_used_or_fixed_reg_p
Similarly to the call_used_or_fixed_regs patch, this one replaces
tests of call_used_regs[i] with call_used_or_fixed_reg_p (i).
The only remaining direct uses of call_used_regs are in reginfo.c
and in the conditional register usage hooks.

Again, this is purely mechanical.  A later patch will clear up the
oddities in config/ code.

2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
	* hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
	* cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
	instead of testing call_used_regs directly.
	* config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
	(aarch64_components_for_bb): Likewise.
	* config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
	* config/arc/arc.c (arc_must_save_register): Likewise.
	(arc_epilogue_uses): Likewise.
	* config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
	(legitimize_pic_address, callee_saved_reg_p): Likewise.
	(arm_compute_save_reg0_reg12_mask): Likewise.
	(arm_compute_save_core_reg_mask): Likewise.
	(arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
	(arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
	(cmse_nonsecure_entry_clear_before_return): Likewise.
	(thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
	(arm_expand_epilogue): Likewise.
	* config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
	(avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
	(_reg_unused_after): Likewise.
	* config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
	(expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
	(add_to_reg, hwloop_optimize): Likewise.
	* config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
	(bpf_expand_epilogue): Likewise.
	* config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
	* config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
	* config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
	* config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
	(epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
	(epiphany_output_mi_thunk, epiphany_start_function): Likewise.
	* config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
	* config/frv/frv.c (frv_stack_info): Likewise.
	* config/ft32/ft32.c (ft32_compute_frame): Likewise.
	(ft32_expand_prologue, ft32_expand_epilogue): Likewise.
	* config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
	(move_callee_saved_registers): Likewise.
	* config/h8300/h8300.c (byte_reg): Likewise.
	* config/i386/i386-options.c (ix86_set_current_function): Likewise.
	* config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
	(ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
	* config/i386/predicates.md (sibcall_memory_operand): Likewise.
	* config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
	(next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
	* config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
	* config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
	* config/m32c/m32c.c (need_to_save): Likewise.
	* config/m68k/m68k.c (m68k_save_reg): Likewise.
	* config/mcore/mcore.c (calc_live_regs): Likewise.
	* config/microblaze/microblaze.c (microblaze_must_save_register):
	Likewise.
	* config/mmix/mmix.c (mmix_local_regno): Likewise.
	(mmix_initial_elimination_offset, mmix_reorg): Likewise.
	(mmix_use_simple_return, mmix_expand_prologue): Likewise.
	(mmix_expand_epilogue): Likewise.
	* config/moxie/moxie.c (moxie_compute_frame): Likewise.
	(moxie_expand_prologue, moxie_expand_epilogue): Likewise.
	* config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
	* config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
	(NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
	* config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
	* config/or1k/or1k.c (callee_saved_regno_p): Likewise.
	* config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
	* config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
	* config/pru/pru.c (prologue_saved_reg_p): Likewise.
	* config/riscv/riscv.c (riscv_save_reg_p): Likewise.
	(riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
	* config/rl78/rl78.c (need_to_save): Likewise.
	* config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
	(rs6000_stack_info, generate_set_vrsave): Likewise.
	(rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
	* config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
	* config/rx/rx.c (rx_get_stack_layout): Likewise.
	* config/s390/s390.c (s390_call_saved_register_used): Likewise.
	* config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
	* config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
	(save_local_or_in_reg_p): Likewise.
	* config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
	(xstormy16_epilogue_uses): Likewise.
	* config/tilegx/tilegx.c (need_to_save_reg): Likewise.
	* config/tilepro/tilepro.c (need_to_save_reg): Likewise.
	* config/v850/v850.c (compute_register_save_size): Likewise.
	* config/vax/vax.c (vax_expand_prologue): Likewise.
	* config/visium/visium.c (visium_save_reg_p): Likewise.
	* config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
	* cselib.c (cselib_process_insn): Likewise.
	* df-scan.c (df_get_entry_block_def_set): Likewise.
	* function.c (aggregate_value_p): Likewise.
	* haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
	* ira-lives.c (process_bb_node_lives): Likewise.
	* ira.c (do_reload): Likewise.
	* lra-lives.c (process_bb_lives): Likewise.
	* lra-remat.c (lra_remat): Likewise.
	* lra.c (lra): Likewise.
	* postreload.c (reload_combine_recognize_pattern): Likewise.
	(reload_cse_move2add): Likewise.
	* recog.c (peep2_find_free_register): Likewise.
	* regrename.c (check_new_reg_p): Likewise.
	* reload.c (find_equiv_reg): Likewise.
	* reload1.c (reload, find_reg): Likewise.
	* sel-sched.c (init_hard_regs_data): Likewise.

From-SVN: r275602
2019-09-10 18:56:51 +00:00
config [ARM/FDPIC v6 02/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in configure scripts 2019-09-10 09:37:00 +02:00
contrib GCC port for eBPF 2019-09-09 12:13:23 +02:00
fixincludes [Darwin, fixincludes] Fix PR83531 2019-08-18 18:54:13 +00:00
gcc Add call_used_or_fixed_reg_p 2019-09-10 18:56:51 +00:00
gnattools PR81878: fix --disable-bootstrap --enable-languages=ada 2018-11-20 00:07:47 +00:00
gotools libgo: update to Go 1.13beta1 release 2019-09-06 18:12:46 +00:00
include Fix file descriptor existence of MinGW. 2019-08-08 07:50:28 +00:00
INSTALL
intl iconv.m4 (AM_ICONV_LINK): Don't overwrite CPPFLAGS. 2018-11-07 15:41:21 -07:00
libada Update copyright years. 2019-01-01 13:31:55 +01:00
libatomic [ARM/FDPIC v6 02/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in configure scripts 2019-09-10 09:37:00 +02:00
libbacktrace Remove Cell Broadband Engine SPU targets 2019-09-03 15:08:28 +00:00
libcc1 [C++ PATCH] Using decls 2019-05-21 14:33:24 +00:00
libcpp [preprocessor] Popping "" file names 2019-09-06 12:54:19 +00:00
libdecnumber Update copyright years. 2019-01-01 13:31:55 +01:00
libffi re PR other/79543 (Inappropriate "ld --version" checking) 2019-09-03 14:10:26 +00:00
libgcc [ARM/FDPIC v6 13/24] [ARM] FDPIC: Force LSB bit for PC in Cortex-M architecture 2019-09-10 09:58:44 +02:00
libgfortran Improve PRNG jumping when using threads 2019-09-05 09:59:55 +03:00
libgo cmd/go: look for tool build ID before hashing entire file 2019-09-10 02:48:24 +00:00
libgomp Fix GCC_LINUX_FUTEX to work with C99 compilers 2019-09-06 12:27:36 +02:00
libhsail-rt Update copyright years. 2019-01-01 13:31:55 +01:00
libiberty rust-demangle.c (unescape): Remove. 2019-09-03 14:04:32 -06:00
libitm [ARM/FDPIC v6 23/24] [ARM] FDPIC: Implement libitm support. 2019-09-10 10:11:46 +02:00
libobjc re PR target/89093 (C++ exception handling clobbers d8 VFP register) 2019-04-23 12:03:41 +02:00
liboffloadmic PR other/16615 [1/5] 2019-01-09 16:37:45 -05:00
libphobos libphobos.exp (libphobos_init): Add multi-lib libgcc dirs to the ld_library_path var. 2019-09-03 08:24:03 +00:00
libquadmath quadmath.h (M_Eq, [...]): Use two more decimal places. 2019-08-02 09:59:19 +02:00
libsanitizer [ARM/FDPIC v6 03/24] [ARM] FDPIC: Force FDPIC related options unless -mno-fdpic is provided 2019-09-10 09:39:47 +02:00
libssp Update copyright years. 2019-01-01 13:31:55 +01:00
libstdc++-v3 Implement std::common_reference for C++20 2019-09-10 17:28:27 +01:00
libvtv Fix testsuite 2019-02-20 08:07:19 -08:00
lto-plugin lto-plugin, removed unused variable 2019-05-15 14:10:27 +00:00
maintainer-scripts update_web_docs_svn: Proceed even if the invocation of sphinx fails. 2019-08-04 22:31:54 +00:00
zlib Makefile.am (noinst_LTLIBRARIES): Rename libzgcj_convience.la to libz_convenience.la. 2019-01-21 17:23:58 +00:00
.dir-locals.el
.gitattributes
.gitignore Add .clangd and compile_commands.json to .gitignore. 2019-08-28 19:33:28 +00:00
ABOUT-NLS
ar-lib Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
ChangeLog [ARM/FDPIC v6 02/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in configure scripts 2019-09-10 09:37:00 +02:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess Update config.sub and config.guess. 2019-09-09 11:14:32 +02:00
config.rpath
config.sub Update config.sub and config.guess. 2019-09-09 11:14:32 +02:00
configure GCC port for eBPF 2019-09-09 12:13:23 +02:00
configure.ac GCC port for eBPF 2019-09-09 12:13:23 +02:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4 [ARM/FDPIC v6 02/24] [ARM] FDPIC: Handle arm*-*-uclinuxfdpiceabi in configure scripts 2019-09-10 09:37:00 +02:00
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS GCC port for eBPF 2019-09-09 12:13:23 +02:00
Makefile.def Sync top-level change from gdb 2019-06-15 21:32:03 +00:00
Makefile.in Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. 2019-08-23 15:37:22 -06:00
Makefile.tpl Makefile.tpl (HOST_EXPORTS): Add CXX_FOR_BUILD. 2019-08-23 15:37:22 -06:00
missing
mkdep
mkinstalldirs
move-if-change
multilib.am Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
README
symlink-tree
test-driver Update GCC to autoconf 2.69, automake 1.15.1 (PR bootstrap/82856). 2018-10-31 17:03:16 +00:00
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.