GCC modified for the FreeChainXenon project
Find a file
Markus Trippelsdorf ced17de640 Fix PR78588 - rtlanal.c:5210:38: runtime error: shift exponent 4294967295 is too large for 64-bit type
Building gcc with -fsanitize=undefined shows:
 rtlanal.c:5210:38: runtime error: shift exponent 4294967295 is too large for 64-bit type 'long unsigned int'

This happens because if_then_else_cond() in combine.c calls
num_sign_bit_copies() in rtlanal.c with mode==BLKmode.

5205   bitwidth = GET_MODE_PRECISION (mode);
5206   if (bitwidth > HOST_BITS_PER_WIDE_INT)
5207     return 1;
5208
5209   nonzero = nonzero_bits (x, mode);
5210   return nonzero & (HOST_WIDE_INT_1U << (bitwidth - 1))
5211          ? 1 : bitwidth - floor_log2 (nonzero) - 1;

This causes (bitwidth - 1) to wrap around.

	PR rtl-optimization/78588
	* combine.c (if_then_else_cond): Also guard against BLKmode.
	* rtlanal.c (num_sign_bit_copies1): Add assert.

From-SVN: r242997
2016-11-30 07:30:55 +00:00
config Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
contrib
fixincludes Don't define libstdc++-internal macros in Solaris 10+ <math.h> 2016-11-21 16:09:47 +00:00
gcc Fix PR78588 - rtlanal.c:5210:38: runtime error: shift exponent 4294967295 is too large for 64-bit type 2016-11-30 07:30:55 +00:00
gnattools
gotools
include libiberty: Add Rust symbol demangling. 2016-11-16 23:09:27 +00:00
INSTALL
intl
libada
libatomic
libbacktrace
libcc1 Add SET_DECL_MODE 2016-11-18 10:03:12 +00:00
libcilkrts
libcpp system.h (HAVE_DESIGNATED_INITIALIZERS, [...]): Do not use "defined" in macros. 2016-11-23 10:06:07 +00:00
libdecnumber
libffi
libgcc re PR target/74748 (libgcc_s.so.1 isn't created correctly for Blackfin FDPIC) 2016-11-28 14:30:40 -07:00
libgfortran re PR libfortran/51119 (MATMUL slow for large matrices) 2016-11-16 21:54:25 +00:00
libgo runtime: fixes for -buildmode=c-archive 2016-11-30 02:09:24 +00:00
libgomp libgomp: remove config/nvptx/critical.c 2016-11-28 16:50:23 +03:00
libiberty * cp-demangle.c (d_print_comp_inner): Fix parameter indentation. 2016-11-29 15:28:52 +00:00
libitm
libmpx
libobjc Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
liboffloadmic
libquadmath
libsanitizer Remove r242480 from libsanitizer/LOCAL_PATCHES 2016-11-29 13:13:31 +00:00
libssp
libstdc++-v3 re PR libstdc++/68838 (AIX 32 bit wchar_t testsuite failures) 2016-11-29 12:50:27 -05:00
libvtv
lto-plugin
maintainer-scripts
zlib
.dir-locals.el
.gitattributes
.gitignore
ABOUT-NLS
ChangeLog Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
ChangeLog.jit
ChangeLog.tree-ssa
compile
config-ml.in
config.guess config.guess: Import latest version. 2016-11-25 08:38:27 +11:00
config.rpath
config.sub config.guess: Import latest version. 2016-11-25 08:38:27 +11:00
configure Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
configure.ac Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
COPYING
COPYING.LIB
COPYING.RUNTIME
COPYING3
COPYING3.LIB
depcomp
install-sh
libtool-ldflags
libtool.m4
ltgcc.m4
ltmain.sh
ltoptions.m4
ltsugar.m4
ltversion.m4
lt~obsolete.m4
MAINTAINERS * MAINTAINERS (nvptx): Remove self. 2016-11-28 15:18:45 +00:00
Makefile.def Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
Makefile.in Makefile.def: Remove reference to boehm-gc target module. 2016-11-30 00:12:45 +00:00
Makefile.tpl Makefile.def: Remove references to GCJ. 2016-11-15 17:29:12 +00:00
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.