This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

r242258 - in /branches/ARM/sve-branch/gcc: asan...


Author: rsandifo
Date: Fri Nov 11 17:29:14 2016
New Revision: 242258

URL: https://gcc.gnu.org/viewcvs?rev=242258&root=gcc&view=rev
Log:
poly_int: int_size_in_bytes

This patch makes int_size_in_bytes return a poly_int64, but also
adds an int_size_in_bytes_hwi for callers that really are only
interested in constant sizes.

Target code can generally use either int_size_in_bytes or
int_size_in_bytes_hwi, due to the implicit conversion from
poly_int64 to HOST_WIDE_INT in target files when NUM_POLY_INT_COEFFS
is 1.  However, using int_size_in_bytes in ?: requires a cast if the
other arm of the expression is a constant.  The patch therefore does
a blanket replacement of int_size_in_bytes with int_size_in_bytes_hwi
for consistency.

base_type_die and subrange_type_die both used int_size_in_bytes
for things that must have a constant size (i.e. -1 wasn't possible),
so the patch changes them to use tree_to_uhwi instead.

Modified:
    branches/ARM/sve-branch/gcc/asan.c
    branches/ARM/sve-branch/gcc/c-family/c-common.c
    branches/ARM/sve-branch/gcc/c/c-aux-info.c
    branches/ARM/sve-branch/gcc/c/c-typeck.c
    branches/ARM/sve-branch/gcc/calls.c
    branches/ARM/sve-branch/gcc/config/aarch64/aarch64.c
    branches/ARM/sve-branch/gcc/config/alpha/alpha.c
    branches/ARM/sve-branch/gcc/config/alpha/alpha.h
    branches/ARM/sve-branch/gcc/config/arc/arc.c
    branches/ARM/sve-branch/gcc/config/arc/arc.h
    branches/ARM/sve-branch/gcc/config/arm/arm-builtins.c
    branches/ARM/sve-branch/gcc/config/arm/arm.c
    branches/ARM/sve-branch/gcc/config/arm/arm.h
    branches/ARM/sve-branch/gcc/config/avr/avr.c
    branches/ARM/sve-branch/gcc/config/bfin/bfin.c
    branches/ARM/sve-branch/gcc/config/c6x/c6x.c
    branches/ARM/sve-branch/gcc/config/cr16/cr16.c
    branches/ARM/sve-branch/gcc/config/cris/cris.h
    branches/ARM/sve-branch/gcc/config/darwin.c
    branches/ARM/sve-branch/gcc/config/epiphany/epiphany.c
    branches/ARM/sve-branch/gcc/config/fr30/fr30.c
    branches/ARM/sve-branch/gcc/config/frv/frv.c
    branches/ARM/sve-branch/gcc/config/ft32/ft32.c
    branches/ARM/sve-branch/gcc/config/h8300/h8300.c
    branches/ARM/sve-branch/gcc/config/i386/i386.c
    branches/ARM/sve-branch/gcc/config/i386/i386elf.h
    branches/ARM/sve-branch/gcc/config/i386/sol2.h
    branches/ARM/sve-branch/gcc/config/i386/winnt.c
    branches/ARM/sve-branch/gcc/config/ia64/ia64.c
    branches/ARM/sve-branch/gcc/config/iq2000/iq2000.c
    branches/ARM/sve-branch/gcc/config/iq2000/iq2000.h
    branches/ARM/sve-branch/gcc/config/lm32/lm32.c
    branches/ARM/sve-branch/gcc/config/lm32/lm32.h
    branches/ARM/sve-branch/gcc/config/m32r/m32r.c
    branches/ARM/sve-branch/gcc/config/m68k/m68k.c
    branches/ARM/sve-branch/gcc/config/mcore/mcore-elf.h
    branches/ARM/sve-branch/gcc/config/mcore/mcore.c
    branches/ARM/sve-branch/gcc/config/microblaze/microblaze.c
    branches/ARM/sve-branch/gcc/config/microblaze/microblaze.h
    branches/ARM/sve-branch/gcc/config/mips/mips.c
    branches/ARM/sve-branch/gcc/config/mmix/mmix.h
    branches/ARM/sve-branch/gcc/config/mn10300/mn10300.c
    branches/ARM/sve-branch/gcc/config/moxie/moxie.c
    branches/ARM/sve-branch/gcc/config/msp430/msp430.c
    branches/ARM/sve-branch/gcc/config/nds32/nds32.h
    branches/ARM/sve-branch/gcc/config/nios2/nios2.c
    branches/ARM/sve-branch/gcc/config/nvptx/nvptx.c
    branches/ARM/sve-branch/gcc/config/openbsd.h
    branches/ARM/sve-branch/gcc/config/pa/pa.c
    branches/ARM/sve-branch/gcc/config/pa/pa.h
    branches/ARM/sve-branch/gcc/config/pdp11/pdp11.c
    branches/ARM/sve-branch/gcc/config/rl78/rl78.c
    branches/ARM/sve-branch/gcc/config/rs6000/rs6000.c
    branches/ARM/sve-branch/gcc/config/rx/rx.c
    branches/ARM/sve-branch/gcc/config/s390/s390.c
    branches/ARM/sve-branch/gcc/config/sh/sh.c
    branches/ARM/sve-branch/gcc/config/sparc/sol2.h
    branches/ARM/sve-branch/gcc/config/sparc/sparc.c
    branches/ARM/sve-branch/gcc/config/spu/spu.c
    branches/ARM/sve-branch/gcc/config/stormy16/stormy16.c
    branches/ARM/sve-branch/gcc/config/stormy16/stormy16.h
    branches/ARM/sve-branch/gcc/config/tilegx/tilegx.c
    branches/ARM/sve-branch/gcc/config/tilepro/tilepro.c
    branches/ARM/sve-branch/gcc/config/v850/v850.c
    branches/ARM/sve-branch/gcc/config/vax/vax.c
    branches/ARM/sve-branch/gcc/config/visium/visium.c
    branches/ARM/sve-branch/gcc/config/xtensa/xtensa.c
    branches/ARM/sve-branch/gcc/cp/semantics.c
    branches/ARM/sve-branch/gcc/dbxout.c
    branches/ARM/sve-branch/gcc/defaults.h
    branches/ARM/sve-branch/gcc/dwarf2out.c
    branches/ARM/sve-branch/gcc/explow.c
    branches/ARM/sve-branch/gcc/expr.c
    branches/ARM/sve-branch/gcc/fold-const.c
    branches/ARM/sve-branch/gcc/fortran/target-memory.c
    branches/ARM/sve-branch/gcc/fortran/trans-common.c
    branches/ARM/sve-branch/gcc/fortran/trans-types.c
    branches/ARM/sve-branch/gcc/function.c
    branches/ARM/sve-branch/gcc/gimple-fold.c
    branches/ARM/sve-branch/gcc/gimplify.c
    branches/ARM/sve-branch/gcc/go/go-gcc.cc
    branches/ARM/sve-branch/gcc/godump.c
    branches/ARM/sve-branch/gcc/ipa-icf.c
    branches/ARM/sve-branch/gcc/objc/objc-encoding.c
    branches/ARM/sve-branch/gcc/omp-low.c
    branches/ARM/sve-branch/gcc/rtlanal.c
    branches/ARM/sve-branch/gcc/sdbout.c
    branches/ARM/sve-branch/gcc/tree-data-ref.c
    branches/ARM/sve-branch/gcc/tree-inline.c
    branches/ARM/sve-branch/gcc/tree-ssa-loop-prefetch.c
    branches/ARM/sve-branch/gcc/tree-ssa-phiopt.c
    branches/ARM/sve-branch/gcc/tree-ssa-strlen.c
    branches/ARM/sve-branch/gcc/tree.c
    branches/ARM/sve-branch/gcc/tree.h
    branches/ARM/sve-branch/gcc/tsan.c
    branches/ARM/sve-branch/gcc/ubsan.c
    branches/ARM/sve-branch/gcc/varasm.c
    branches/ARM/sve-branch/gcc/xcoffout.c


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]