[Bug bootstrap/58509] [4.9 regression] ICE in calc_dfs_tree, at dominance.c:397 breaks Ada bootstrap on sparc64-linux

2013-09-24 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58509 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- (gdb) break fancy_abort Breakpoint 2 at 0x9e4a04 (gdb) run -gnatwa -quiet -nostdinc -dumpbase g-awk.adb -auxbase-strip g-awk.o -O2 -Wextra -Wall -fPIC -g -gnatpg -mcpu=ultrasparc

[Bug target/58493] loop is not correctly optimized with O3 and AVX

2013-09-23 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58493 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug bootstrap/58509] New: [4.9 regression] ICE in calc_dfs_tree, at dominance.c:397 breaks Ada bootstrap on sparc64-linux

2013-09-23 Thread mikpe at it dot uu.se
Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Host: sparc64-linux Target: sparc-linux Build: sparc-linux Attempting to bootstrap gcc-4.9

[Bug bootstrap/58368] [4.9 regression] bootstrap comparison failure in expr.o and i386.o on x86_64-linux

2013-09-16 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58368 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug bootstrap/57797] configure --enable-languages=c builds libstdc++-v3

2013-09-11 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57797 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Earnie from comment #4) Your statement doesn't resolve anything at all. It is fine for gcc to require c++ but it is not fine for configure to continue if I only

[Bug rtl-optimization/58369] [4.8/4.9 regression] ICE in subreg_get_info when compiling boost for m68k-linux

2013-09-11 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58369 --- Comment #4 from Mikael Pettersson mikpe at it dot uu.se --- (All source references here are for vanilla gcc-4.8.1.) The problem appears to start in choose_reload_regs, in the if (inheritance) block at lines 6497 to 6679. It finds (reg:DF 0

[Bug rtl-optimization/58369] [4.8/4.9 regression] ICE in subreg_get_info when compiling boost for m68k-linux

2013-09-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58369 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- Created attachment 30783 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30783action=edit smaller test case, from C-reduce

[Bug rtl-optimization/58369] [4.8/4.9 regression] ICE in subreg_get_info when compiling boost for m68k-linux

2013-09-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58369 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- Created attachment 30787 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30787action=edit hand-reduced test case This is as small as I can get it without losing the ICE.

[Bug rtl-optimization/58369] [4.8/4.9 regression] ICE in subreg_get_info when compiling boost for m68k-linux

2013-09-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58369 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- The ICE occurs because reload is asking for a DFmode (8-byte) subreg of an XFmode (12-byte) hardreg, but 12 % 8 != 0 so the gcc_assert fails.

[Bug bootstrap/58368] New: [4.9 regression] bootstrap comparison failure in expr.o and i386.o on x86_64-linux

2013-09-09 Thread mikpe at it dot uu.se
Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Attempting to bootstrap gcc-4.9-20130908 (r202372) on x86_64-linux fails with: make[3]: Leaving directory `/mnt/scratch/objdir49' Comparing

[Bug bootstrap/58368] [4.9 regression] bootstrap comparison failure in expr.o and i386.o on x86_64-linux

2013-09-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58368 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- Applying r202379 didn't fix the comparison failure, but reverting r202345 did.

[Bug rtl-optimization/58369] New: [4.8/4.9 regression] ICE in subreg_get_info when compiling boost for m68k-linux

2013-09-09 Thread mikpe at it dot uu.se
: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Created attachment 30773 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30773action=edit Pre-processed non-reduced test case

[Bug ipa/58345] ICE with SIGFPE at -O1 on x86_64-linux-gnu (affecting trunk and 4.8)

2013-09-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58345 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug ipa/58346] ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk, 4.8, 4.7, and 4.6)

2013-09-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58346 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c/58349] ARMv7: ICE in vect_determine_vectorization_factor, at tree-vect-loop.c:349

2013-09-07 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58349 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- I can't reproduce the ICE with either one of gcc 4.6.3, 4.6.4, 4.7.3, or 4.8.1, configured as crosses to armv7l-linux-gnueabi from x86_64-linux, with options -march=armv7-a -mfloat

[Bug bootstrap/58242] [4.9 regression] linux-android.c:40:7: error: 'OPTION_BIONIC' was not declared in this scope breaks bootstrap on powerpc64-linux

2013-09-05 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58242 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added Status|NEW |RESOLVED

[Bug c/58287] [4.9 regression] internal compiler error: in c_builtin_function_ext_scope

2013-08-31 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58287 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- This is a duplicate of PR57848.

[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-29 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260 --- Comment #11 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to anand.karanam from comment #9) Do we need to have a copy of the Linux host includes and libraries to prepare the cross compiler? Or can we avoid this with newlib

[Bug c/58270] Wrong code while accessing array elements in a global structure

2013-08-29 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58270 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- Your examples are invalid C. In one module you present the compiler with a specific declaration, and complain when it utilizes constraints derived from that declaration

[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-28 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to anand.karanam from comment #0) checking for suffix of object files... configure: error: in `/home/ekarana/ekarana_2013/GCC463_OSE5.6/Solaris_to_Linux/INSTALL/build-gcc

[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-28 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260 --- Comment #4 from Mikael Pettersson mikpe at it dot uu.se --- You got several 'conftest.c:16:1: internal compiler error: Bus Error' from the newly built compiler. You should try one of those compilation attempts manually, in gdb, to see where

[Bug libgcc/58260] configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. gmake[1]: *** [configure-target-libgcc] Error 1

2013-08-28 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58260 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Jonathan Wakely from comment #6) (In reply to Mikael Pettersson from comment #4) (I always build gmp/mpfr/mpc with --disable-shared exactly to avoid such issues

[Bug bootstrap/58242] New: [4.9 regression] linux-android.c:40:7: error: 'OPTION_BIONIC' was not declared in this scope breaks bootstrap on powerpc64-linux

2013-08-26 Thread mikpe at it dot uu.se
Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Attempting to bootstrap gcc-4.9-20130825 on powerpc64-linux fails with: g

[Bug target/58208] dequestd::string 32-bit -O3 bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- Unmodified FSF gcc-4.8.1 configured as follows: /tmp/gcc-4.8.1/configure --prefix=/tmp/install --with-gmp=/path/to/my/gmp-5.1.2 --with-mpfr=/path/to/my/mpfr-3.1.2 --with-mpc=/path

[Bug target/58208] dequestd::string 32-bit -O3 bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #6 from Mikael Pettersson mikpe at it dot uu.se --- I've just bootstrapped gcc-4.8.1 on CentOS 5.8 (the closest I have to the OP's RHEL 5.5), and LD_LIBRARY_PATH=. ./import does indeed SEGV there.

[Bug target/58208] dequestd::string 32-bit -O3 bug

2013-08-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- CentOS 5.8 has an old binutils-2.17.50.0.6-20.el5_8.3. Building and installing binutils-2.23.2 and rebuilding gcc-4.8.1 against that makes no difference, ./import still SEGVs. I'm

[Bug target/58208] dequestd::string 32-bit -O3 bug

2013-08-24 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58208 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- I can't reproduce the SEGV on Fedora 17 with gcc-4.8.1 -m32 or gcc-4.9 -m32. However, I think the build recipe is flawed. If I follow it to the letter (with -Wl,-rpath pointing

[Bug target/58218] -mcmodel=medium cause assembler warning ignoring incorrect section type for .lbss

2013-08-22 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58218 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- I can reproduce with gcc-4.7.3. It generates: .section.lbss,aw,@progbits gas doesn't like ,@progbits on .lbss and ignores it; readelf on the produced .o file

[Bug middle-end/52306] ICE in cselib_record_set, at cselib.c:2158

2013-08-17 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52306 --- Comment #20 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Thorsten Glaser from comment #19) Created attachment 30668 [details] Testcase from qtbase-opensource-src_5.1.0+dfsg-4 and g++ 4.8.1 This issue still appears

[Bug target/58158] internal compiler error: in extract_insn, at recog.c:2150 while compiling ImageMagick on mipsel

2013-08-16 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58158 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug middle-end/58143] wrong code at -O3 on x86_64-linux-gnu

2013-08-14 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58143 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||hubicka at gcc

[Bug tree-optimization/58039] -ftree-vectorizer makes a loop crash on a non-aligned memory

2013-08-12 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Alexander Barkov from comment #4) The vectorizer turns those into larger and still mis-aligned `movdqa' stores, which x86 does not allow, hence the SEGV. Can you

[Bug c/56824] pragma GCC diagnostic push/pop regression for GCC diagnostic ignored -Waggregate-return

2013-08-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56824 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||dehao at gcc dot

[Bug tree-optimization/58039] -ftree-vectorizer makes a loop crash on a non-aligned memory

2013-08-07 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58039 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- Your code performs mis-aligned uint16_t stores, which x86 allows. The vectorizer turns those into larger and still mis-aligned `movdqa' stores, which x86 does not allow, hence

[Bug c/58092] BEQ (Branch on equal) jumps to wrong address (executes conditional code!)

2013-08-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58092 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- Please attach the pre-processed test.i (gcc -E or -save-temps).

[Bug c/58092] BEQ (Branch on equal) jumps to wrong address (executes conditional code!)

2013-08-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58092 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- I can't reproduce the wrong-code with 4.6.4. 4.7.2, or 4.8.1. They all generate: test: 0: 24020002li v0,2 4: aca2sw v0,0(a1) 8

[Bug rtl-optimization/58079] internal compiler error: in do_SUBST, at combine.c:711

2013-08-05 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58079 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug rtl-optimization/58079] internal compiler error: in do_SUBST, at combine.c:711

2013-08-05 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58079 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||rdsandiford

[Bug c++/58059] gcc-4.7.2-r1 - g++: internal compiler error: Segmentation fault (program cc1plus)

2013-08-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58059 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- The non-preprocessed test case crashes g++ 4.7, 4.8, and 4.9 for me on x86_64-linux.

[Bug libgcc/58061] internal compiler error

2013-08-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58061 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- This is clearly a duplicate of PR57848. Then there is PR57897 which crashes with a different error message but still on #pragma target and mingw, I believe that one is at least

[Bug fortran/58064] Cannot compile gcc-4.8.1 by gcc-3.4.6

2013-08-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58064 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- init2.c:37: MPFR assertion failed: (64 - 0) == ((64 - 0)/8) * 8 sizeof(mp_limb_t) == ((64 - 0)/8) seems your mpfr library is broken

[Bug middle-end/58041] Unaligned access to arrays in packed structure

2013-08-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug middle-end/58041] Unaligned access to arrays in packed structure

2013-08-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||wschmidt at gcc

[Bug middle-end/58041] Unaligned access to arrays in packed structure

2013-08-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- I see the exact same failure pattern on sparc64-linux: 4.7 generates working code, 4.8 and 4.9 generate code that SIGBUS:es, failure starts with r190037, -m32 or -m64 makes

[Bug c/58048] internal compiler error: Max. number of generated reload insns per insn is achieved (90)

2013-08-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58048 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug middle-end/58041] Unaligned access to arrays in packed structure

2013-08-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58041 --- Comment #18 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Bill Schmidt from comment #15) Bernd, Mikael, Martin: Could you please test this on your respective targets? This patch eliminates the misalignment faults for me

[Bug rtl-optimization/57967] [4.7 regresssion] Incorrect code generated on ARM with -fexpensive-optimizations

2013-07-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57967 --- Comment #4 from Mikael Pettersson mikpe at it dot uu.se --- I can reproduce the wrong-code with gcc-4.7.3 on armv5tel-linux-gnueabi. The wrong-code disappeared on 4.7 branch with the recent PR57829 fix in r200773. On trunk the wrong-code

[Bug java/57929] gcc-4.8: FTBFS on m68k: ICE compiling libjava/interpret.cc

2013-07-19 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57929 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- Dup of PR49847. The patch attached there fixes this ICE.

[Bug c/57896] ICE in in expand_expr_real_2

2013-07-15 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57896 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c/57896] ICE in in expand_expr_real_2

2013-07-15 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57896 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||glisse at gcc

[Bug middle-end/57886] Invalid folding of (float)-x to -(float)x

2013-07-12 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57886 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- Dup of PR55771?

[Bug c/57862] invalid read struct uint32_t member (ARMV5)

2013-07-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57862 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- Your test case contains this: ===snip=== struct iphdr { ... }; ... int main() { char thePacket[1518]; memset(thePacket, 0, 1518); thePacket[30] = 1; thePacket[31] = 2

[Bug c/57862] invalid read struct uint32_t member (ARMV5)

2013-07-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57862 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Gaetano Mendola from comment #6) struct in_addr myInAddr; myInAddr.s_addr = theIpHeader-daddr; as not portable, where myInAddr.s_addr and theIpHeader-daddr

[Bug tree-optimization/57861] wrong code at -O3 on x86_64-linux-gnu in 32-bit mode

2013-07-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57861 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||vmakarov at gcc

[Bug tree-optimization/57860] wrong code for bitwise ops with long long literal on x86_64-linux (32-bit mode)

2013-07-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57860 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||vmakarov at gcc

[Bug middle-end/57859] -ftrapv does not trap on signed overflows for struct fields (32-bit mode)

2013-07-10 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57859 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- With -m64: both test cases work with gcc-3.2.3, and fail with every release from 3.3.6 up to current trunk. With -m32: the first test case doesn't trap with any release since 3.2.3

[Bug c/57862] invalid read struct uint32_t member (ARMV5)

2013-07-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57862 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- This has all the indications of a mis-aligned memory access. Since you're on Linux, please make sure that the 'User faults' field in /proc/cpu/alignment shows a value of 2 (fixup

[Bug c/57862] invalid read struct uint32_t member (ARMV5)

2013-07-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57862 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Gaetano Mendola from comment #2) who is faulty? Kernel configuration on this platform, the architecture, the compiler or even me ? All of the above

[Bug tree-optimization/57864] [4.7 Regression] ICE in bitmap_set_replace_value, at tree-ssa-pre.c:862

2013-07-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57864 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- Created attachment 30486 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30486action=edit slightly reduced test case in plain C Doesn't depend on C++, this plain C version also

[Bug tree-optimization/57864] [4.7 Regression] ICE in bitmap_set_replace_value, at tree-ssa-pre.c:862

2013-07-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57864 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- The ICE on 4.7 branch started with the PR55107 backport in r195755.

[Bug target/57847] Compile ARM linux kernel with configuration of SLUB allocator, kernel failed to boot

2013-07-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57847 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- There was a known problem in the Linux kernel on ARM with gcc-4.7+ due to one of the mem* procedures (likely memset or memcpy) being written in such a way that its return value didn't

[Bug target/57848] internal compiler error on build with mingw-w64

2013-07-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug target/57848] internal compiler error on build with mingw-w64

2013-07-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- Created attachment 30475 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30475action=edit reduced test case

[Bug target/57848] internal compiler error on build with mingw-w64

2013-07-08 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57848 --- Comment #4 from Mikael Pettersson mikpe at it dot uu.se --- The reduced test case also ICEs 4.8-20130704, 4.7-20130706, and 4.6-20130405 (haven't checked older versions yet).

[Bug tree-optimization/57829] Wrong constant folding

2013-07-05 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57829 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug tree-optimization/56982] [4.8 Regression] Bad optimization with setjmp()

2013-07-02 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56982 --- Comment #14 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Bernd Edlinger from comment #13) Created attachment 30431 [details] another example of wrong compilation This is another example where the optimization can go

[Bug target/57735] ICE with -mtune=xscale (error: could not split insn) when building webkit

2013-07-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57735 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to ktkachov from comment #6) After looking at it more closely: Mikael, are you sure the revisions are right? It seems to me that r199813 is just the backport of r199188

[Bug target/57735] ICE with -mtune=xscale (error: could not split insn) when building webkit

2013-06-30 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57735 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c++/57504] invalid this pointer passed in call to virtual function that returns a struct

2013-06-30 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57504 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug target/57564] regmove switched operands?

2013-06-30 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57564 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug tree-optimization/57719] [4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-06-29 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57719 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug tree-optimization/57719] [4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-06-29 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57719 --- Comment #4 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Zhendong Su from comment #2) test #3: wrong code from gcc trunk (but not gcc 4.8) at -O3 in 32-bit mode only: The wrong-code for test #3 started with r198121.

[Bug tree-optimization/57719] [4.8/4.9 Regression] wrong code at -O3 on x86_64-linux-gnu

2013-06-29 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57719 --- Comment #5 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Zhendong Su from comment #2) test #4: wrong code from gcc trunk (but not gcc 4.8) at -O3 in both 32-bit and 64-bit modes: The wrong-code for test #4 also started

[Bug tree-optimization/57723] Missed optimization: recursion around empty function

2013-06-27 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57723 --- Comment #9 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Michael Matz from comment #8) (the argument being that an infinite loop is in itself a side-effect observable from outside). Exactly. A function containing

[Bug tree-optimization/57685] GCC stuck in an infinite loop

2013-06-23 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57685 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c++/57688] -O3 -march=native generates illegal opcode on AMD

2013-06-23 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57688 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- Run it in gdb, wait for the fault, and disassemble the code around the faulting PC. That valgrind report doesn't really say anything useful.

[Bug tree-optimization/57685] GCC stuck in an infinite loop

2013-06-23 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57685 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- Started with the PR55079 fix in r193098. The test case uses the values of uninitialized auto variables, perhaps that's confusing the compiler.

[Bug target/57688] -O3 -march=native generates illegal opcode on AMD Phenom

2013-06-23 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57688 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577

2013-06-21 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773 --- Comment #7 from Mikael Pettersson mikpe at it dot uu.se --- Bernd Schmidt has posted a patch for review: http://gcc.gnu.org/ml/gcc-patches/2013-06/msg01147.html

[Bug target/57637] Miscompare on 178.galgel in SPEC2000 on arm

2013-06-21 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57637 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug c/52773] internal error: in replace_pseudos_in, at reload1.c:577

2013-06-18 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773 --- Comment #6 from Mikael Pettersson mikpe at it dot uu.se --- Created attachment 30319 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30319action=edit reduced test case Still ICEs 4.9-20130616, 4.8-20130613, and 4.7-20130615. Needs -O1

[Bug middle-end/57625] internal compiler error: seg fault when building gcc 4.7.2

2013-06-15 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57625 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- I can't reproduce with FSF gcc 4.8.1 and 4.7.2 on Fedora 17 x86_64. Your archlinux system compiler is presumably somewhat modified; can you try again with an FSF 4.8.1? Also please

[Bug target/57583] large switches with jump tables are horribly broken on m68k

2013-06-12 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- It's not too difficult to make the m68k backend use 32-bit offsets in its jump tables (adjust CASE_VECTOR_MODE, ASM_OUTPUT_ADDR_DIFF_ELT, ASM_RETURN_CASE_JUMP, drop the sign-extend

[Bug target/57583] New: large switches with jump tables are horribly broken on m68k

2013-06-11 Thread mikpe at it dot uu.se
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Created attachment 30288 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30288action=edit test case and generator program Switch jump tables on m68k-linux use 16-bit

[Bug target/57583] large switches with jump tables are horribly broken on m68k

2013-06-11 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57583 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- http://sourceware.org/bugzilla/show_bug.cgi?id=15602 is the corresponding binutils/gas bug.

[Bug rtl-optimization/57479] [ARM][NEON] internal compiler error: Segmentation fault in add_dependence_list

2013-06-07 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57479 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug rtl-optimization/57459] [4.8/4.9 Regression] LRA inheritance bug

2013-06-06 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57459 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug target/12081] Gcc can't be compiled with -mregparm=3

2013-06-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081 --- Comment #22 from Mikael Pettersson mikpe at it dot uu.se --- FWIW, the updated patch for gcc 4.9 bootstraps and regtests cleanly on several hosts (x86_64, sparc64, powerpc64, armv5tel, m68k).

[Bug middle-end/55030] [4.8 Regression]: gcc.c-torture/execute/builtins/memcpy-chk.c execution, -Os (et al)

2013-06-03 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55030 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug rtl-optimization/57479] [ARM][NEON] internal compiler error: Segmentation fault in add_dependence_list

2013-06-01 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57479 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- I can't reproduce the ICE with gcc-4.7.3 hosted on x86_64-linux configured as a cross to either armv7l-unknown-linux-gnueabi or armv7l-unknown-eabi. How was your gcc configured?

[Bug target/57477] New: gcc generates suboptimal code for a simple and-shift-zeroextend combination on x86_64

2013-05-30 Thread mikpe at it dot uu.se
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Consider the following set of trivial functions: cat q.c unsigned int g(unsigned int x) { return x 0x1f; } unsigned long f(unsigned int x

[Bug target/12081] Gcc can't be compiled with -mregparm=3

2013-05-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081 Mikael Pettersson mikpe at it dot uu.se changed: What|Removed |Added CC||mikpe at it dot

[Bug target/12081] Gcc can't be compiled with -mregparm=3

2013-05-25 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12081 --- Comment #21 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Mikael Pettersson from comment #20) Grepping around I also noticed that nothing used GEN_FCN11 (or is that used by the out-of-tree OpenRISC port?) This add-on fixes

[Bug bootstrap/57340] New: [4.9 regression] stage2 miscompiles build/genconditions on armv5tel-linux-gnueabi breaking bootstrap

2013-05-20 Thread mikpe at it dot uu.se
Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Attempting to bootstrap gcc-4.9-20130519 on armv5tel-linux-gnueabi fails with: /mnt/scratch/objdir49

[Bug rtl-optimization/57321] static function call miscompiled at -Os and above

2013-05-18 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57321 --- Comment #1 from Mikael Pettersson mikpe at it dot uu.se --- I can reproduce the wrong-code. It was fixed on 4.8 branch by r198737 aka PR56988.

[Bug middle-end/56548] [4.8 Regression] ICE in emit_move_insn, at expr.c:3486 with -march=pentium{pro,2,3} -O3

2013-05-16 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56548 --- Comment #9 from Mikael Pettersson mikpe at it dot uu.se --- (In reply to Ralf Baechle from comment #8) FWIW, I'm also hitting the same compiler bug with vanilla GCC 4.7.2 and 4.8.0 compiling a heavily patched 3.4 kernel with LTO for a mips64

[Bug bootstrap/57266] [4.9 regression] comparison between signed and unsigned integer expressions in fold_binary_loc breaks m68k bootstrap

2013-05-14 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57266 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- My m68k bootstrap has now recompiled fold-const.c + your patch three times without warnings or errors. Thanks for the quick fix.

[Bug bootstrap/57266] New: [4.9 regression] comparison between signed and unsigned integer expressions in fold_binary_loc breaks m68k bootstrap

2013-05-13 Thread mikpe at it dot uu.se
: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpe at it dot uu.se Attempting to bootstrap gcc-4.9-20130512 on m68k-linux fails with: /mnt/scratch/objdir49

[Bug c/57180] Structures with a flexible arrray member have wrong size

2013-05-11 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57180 --- Comment #3 from Mikael Pettersson mikpe at it dot uu.se --- According to http://gcc.gnu.org/onlinedocs/gcc-4.8.0/gcc/Zero-Length.html#Zero-Length, arrays of structures with trailing flex arrays are invalid and rejected. The page also gives

[Bug c/57180] Structures with a flexible arrray member have wrong size

2013-05-09 Thread mikpe at it dot uu.se
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57180 --- Comment #2 from Mikael Pettersson mikpe at it dot uu.se --- This test case also fails on x86_64-linux with every gcc release from 3.2.3 up to today's 4.9 (r198748). Looking at the assembly code for the x[] initializer it's easy to see why

  1   2   3   4   5   6   7   8   9   >