[Bug c/69037] arrays of constants as function arguments misinterpreted

2015-12-24 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69037 --- Comment #2 from Mikael Pettersson --- Started with r231722.

[Bug c/69037] arrays of constants as function arguments misinterpreted

2015-12-24 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69037 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/67781] Wrong code generated on mips32 with -O1 -fexpensive-optimizations

2015-12-12 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/67781] Wrong code generated on mips32 with -O1 -fexpensive-optimizations

2015-12-12 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781 --- Comment #5 from Mikael Pettersson --- m68k is also affected, so it looks like all big-endian targets have this bug: --- shift.s-m68k-r2108422015-12-12 18:50:53.358503028 +0100 +++ shift.s-m68k-r2108432015-12-12

[Bug tree-optimization/67781] Wrong code generated on mips32 with -O1 -fexpensive-optimizations

2015-12-12 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781 Mikael Pettersson changed: What|Removed |Added CC||thomas.preudhomme at arm dot com

[Bug tree-optimization/68840] Wrong code in loop optimization

2015-12-10 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68840 --- Comment #1 from Mikael Pettersson --- Your program invokes undefined behaviour by running off the end of that array. Your loop termination condition is off by one. It's also the wrong way around: you must check the index before indexing

[Bug rtl-optimization/68328] [4.9/5/6 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2015-11-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68328 --- Comment #3 from Mikael Pettersson --- I'm on Fedora 20 / x86_64 (Ivy Bridge i7-3770K) w/ the 4.3 Linux kernel. I've tried various combinations of bootstrap compiler (system gcc-4.8.3 or my own gcc-4.9.3 + patches), support libraries (system

[Bug rtl-optimization/68328] [4.9/5/6 Regression] wrong code at -O2 and -O3 on x86_64-linux-gnu

2015-11-14 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68328 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug rtl-optimization/68298] [5/6 Regression] wrong code at -O3 on x86_64-linux-gnu (in 64-bit mode)

2015-11-14 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68298 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug c++/68184] [4.9/5/6 Regression] Exception from a virtual function does not get caught

2015-11-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68184 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug rtl-optimization/68189] [4.9/5/6 Regression] wrong code at -Os and above on x86_64-linux-gnu by RTL if-conversion

2015-11-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68189 --- Comment #7 from Mikael Pettersson --- (In reply to Mikael Pettersson from comment #6) > Started with r208165 (on x86_64-linux with -O3). And the subsequent fix in r208222 does not help for this test case.

[Bug rtl-optimization/68189] [4.9/5/6 Regression] wrong code at -Os and above on x86_64-linux-gnu by RTL if-conversion

2015-11-07 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68189 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug tree-optimization/68067] [4.9/5/6 Regression] Wrong constant folding

2015-10-24 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68067 Mikael Pettersson changed: What|Removed |Added CC||mikpelinux at gmail dot com

[Bug target/67474] [6 regression] tree-vect-loop.c:2759:1: error: insn does not satisfy its constraints breaks ARM bootstrap

2015-10-05 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67474 Mikael Pettersson changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/67474] [6 regression] tree-vect-loop.c:2759:1: error: insn does not satisfy its constraints breaks ARM bootstrap

2015-09-30 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67474 --- Comment #2 from Mikael Pettersson --- Still occurs with gcc-6-20150927. Started with r227382, an LRA patch.

[Bug target/67474] [6 regression] tree-vect-loop.c:2759:1: error: insn does not satisfy its constraints breaks ARM bootstrap

2015-09-21 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67474 --- Comment #1 from Mikael Pettersson --- Still occurs with gcc-6-20150920.

[Bug bootstrap/67672] New: [6 regression] Ada "Storage_Error stack overflow or erroneous memory access" error breaks sparc-linux bootstrap

2015-09-21 Thread mikpelinux at gmail dot com
Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to bootstrap gcc-6-20150920 (r227952) on s

[Bug bootstrap/67474] New: [6 regression] tree-vect-loop.c:2759:1: error: insn does not satisfy its constraints breaks ARM bootstrap

2015-09-07 Thread mikpelinux at gmail dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to bootstrap gcc-6-20150906 on armv7l w/ hard float fails with: /mnt/scratch

[Bug bootstrap/67475] New: [6 regression] reload1.c:3772:41: error: 'orig_dup[1]' may be used uninitialized in this function breaks SPARC bootstrap

2015-09-07 Thread mikpelinux at gmail dot com
Version: 6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- The last snapshot of trunk I was able to bootstrap

[Bug target/67037] [4.9 Regression] Wrong code at -O1 and above on ARM

2015-08-22 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67037 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- Started with r206023, an LRA patch.

[Bug target/67223] Address misaligned for ldrexd

2015-08-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67223 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- You didn't provide a self-contained test case. After extracting stats_record and the stats declaration from the source to linked to and providing my own stats_alloc (I'm

[Bug target/67226] Incorrect code generated for tail call, where parameters are structs passed by value, -O2 is used, and target is ARM

2015-08-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67226 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug middle-end/65358] wrong parameter passing code with tail call optimization on arm

2015-08-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358 --- Comment #28 from Mikael Pettersson mikpelinux at gmail dot com --- See PR67226 for another testcase that fails on ARM with the final fix for this PR (r223753), but succeeds with the initial proposed fix posted in: https://gcc.gnu.org/ml/gcc

[Bug target/67226] Incorrect code generated for tail call, where parameters are structs passed by value, -O2 is used, and target is ARM

2015-08-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67226 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- This bug is clearly related to PR65358. This PR's test case is NOT fixed by the final fix for PR65358 (r223753), but it IS fixed (on both trunk and gcc-5 branch

[Bug target/67037] [4.9 Regression] Wrong code at -O1 and above on ARM

2015-07-28 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67037 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/66964] Assembler error during ARM cross compile

2015-07-22 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66964 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/66917] ARM: NEON: memcpy compiles to vld1 and vst1 with incorrect alignment

2015-07-19 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- This test case changed behaviour twice in the 4.7-4.8 development cycle. First r185807 broke it by replacing code for unaligned memory accesses with code requiring more

[Bug target/66917] ARM: NEON: memcpy compiles to vld1 and vst1 with incorrect alignment

2015-07-18 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66917 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug middle-end/66876] vrp: changing unsigned to signed comparison

2015-07-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66876 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug libgcc/66809] stage 1 build failure in libgcc on sparc-sun-solaris2.10

2015-07-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66809 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- ld.so.1: cc1: fatal: libmpc.so.3: open failed: No such file or directory xgcc: internal compiler error: Killed (program cc1) You need to 1. Tell the dynamic linker where

[Bug libgcc/66809] stage 1 build failure in libgcc on sparc-sun-solaris2.10

2015-07-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66809 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- The --with-gmp= etc options work for include files and static link libraries. but do nothing for shared libraries.

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

2015-07-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58493 --- Comment #6 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to vgrebin...@gmail.com from comment #5) (In reply to Mikael Pettersson from comment #4) Checked that this works with current gcc-6/5/4.9. Can this be closed now

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

2015-07-05 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58493 --- Comment #4 from Mikael Pettersson mikpelinux at gmail dot com --- Checked that this works with current gcc-6/5/4.9. Can this be closed now?

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

2015-07-05 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57859 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- -ftrapv seems to be working a bit better in gcc-6: only the first test case fails (doesn't report the overflow) at -O1/2 for both -m32/-m64, but all other combinations of test

[Bug tree-optimization/66186] [4.9/5/6 Regression] wrong code at -O3 on x86_64-linux-gnu

2015-07-03 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66186 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/66754] [4.9/5/6] gcc.dg/builtin-apply2.c aborts with -m32 -mregparm=3

2015-07-03 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66754 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug c++/66666] ARM wrong copy constructor address on multiple inheritance

2015-06-29 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 --- Comment #10 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Antonio Poggiali from comment #9) Sorry, this code: https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cgraphunit. c?r1=221077r2=221076pathrev=221077 Yes, but I'm

[Bug c++/66666] ARM wrong copy constructor address on multiple inheritance

2015-06-28 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 --- Comment #7 from Mikael Pettersson mikpelinux at gmail dot com --- The test case in comment #0 stopped breaking on trunk with r221077, the fix for PR65236 (a gcc-5 IPA regression). Backporting r221077 to 4.9.3 unbreaks this test case

[Bug c++/66666] ARM wrong copy constructor address on multiple inheritance

2015-06-27 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=6 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug c/66598] With -O3 gcc incorrectly assumes aligned SSE instructions (e.g. movapd) can be used

2015-06-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66598 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug c/66598] With -O3 gcc incorrectly assumes aligned SSE instructions (e.g. movapd) can be used

2015-06-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66598 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- Started with r197189.

[Bug bootstrap/66252] [6 regression] bootstrap comparison failures on sparc-linux

2015-05-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66252 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- Started with r67: fc6cc27b3f46a6f70f610ec93a1c5e68d83c933b is the first bad commit commit fc6cc27b3f46a6f70f610ec93a1c5e68d83c933b Author: rguenth rguenth@138bc75d-0d04

[Bug bootstrap/66252] [6 regression] bootstrap comparison failures on sparc-linux

2015-05-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66252 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- Still occurs with trunk @ r223652.

[Bug bootstrap/66252] New: [6 regression] bootstrap comparison failures on sparc-linux

2015-05-22 Thread mikpelinux at gmail dot com
Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to bootstrap gcc trunk on sparc64-linux with options to default to 32-bit code, fails with: Comparing stages 2 and 3

[Bug bootstrap/66105] New: [6 regression] genpreds.c compile error in stage2 on powerpc64-linux

2015-05-11 Thread mikpelinux at gmail dot com
Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Target Milestone: --- Attempting to bootstrap gcc-6-20150510 on powerpc64-linux fails with: /mnt/scratch/objdir6/./prev-gcc/xg++ -B/mnt/scratch

[Bug tree-optimization/61114] Scalar evolution hides a big-endian const-folding bug.

2015-03-29 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61114 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug libgomp/64972] [5 Regression] Build failure in libgomp for i686-w64-mingw32 target after latest merge from gomp-4_0-branch

2015-03-24 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64972 --- Comment #9 from Mikael Pettersson mikpelinux at gmail dot com --- Please note that sizeof(long) == 4 while sizeof(size_t) == sizeof(void*) == 8 on x86_64-w64-mingw32, so your patch changes the behaviour of the code. Perhaps the change

[Bug target/63234] arm used label is removed

2015-03-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 --- Comment #7 from Mikael Pettersson mikpelinux at gmail dot com --- The wrong-code started in the 4.7 dev cycle with r183328, a fix for a similar bug (PR50313) in 4.6. That fix was backported to 4.6 but doesn't trigger this PR there (I just re

[Bug target/63234] arm used label is removed

2015-03-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 --- Comment #8 from Mikael Pettersson mikpelinux at gmail dot com --- The failures on 4.7+ seem to be triggered by r177855, yet another ARM costing tweak. I'm not going to investigate this any further.

[Bug target/65358] wrong parameter passing code with tail call optimization on arm

2015-03-09 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358 --- Comment #6 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Honggyu Kim from comment #4) Can I add this testcase with your modification as my first gcc contribution? :) Sure, just attach it to this PR as a new test case.

[Bug target/65358] wrong parameter passing code with tail call optimization on arm

2015-03-09 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65358 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/62109] __gthr_i486_lock_cmp_xchg missing clobber

2015-02-23 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62109 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- Do you have a test case which fails without your patch?

[Bug middle-end/65090] GCC produces instruction with bad alignment on SPARC when using -O

2015-02-17 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65090 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- I can reproduce the wrong-code with g++ 4.7.4 on sparc64-linux, but g++ 4.8.4 and 5 (current trunk) work.

[Bug target/64941] -O3 breaks tar

2015-02-14 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64941 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug rtl-optimization/64756] wrong code at -O3 on x86_64-linux-gnu (in 32-bit mode)

2015-01-31 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64756 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug rtl-optimization/64756] wrong code at -O3 on x86_64-linux-gnu (in 32-bit mode)

2015-01-31 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64756 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- Also fails on m68k, but not on powerpc64, sparc64, or ARMv5.

[Bug middle-end/57748] [4.8 Regression] ICE when expanding assignment to unaligned zero-sized array

2015-01-27 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57748 --- Comment #65 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Bernd Edlinger from comment #64) (In reply to Mikael Pettersson from comment #63) The backport request has been posted: https://gcc.gnu.org/ml/gcc-patches

[Bug middle-end/57748] [4.8 Regression] ICE when expanding assignment to unaligned zero-sized array

2015-01-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57748 --- Comment #63 from Mikael Pettersson mikpelinux at gmail dot com --- The backport request has been posted: https://gcc.gnu.org/ml/gcc-patches/2015-01/msg02192.html

[Bug middle-end/57748] [4.8 Regression] ICE when expanding assignment to unaligned zero-sized array

2015-01-22 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57748 --- Comment #62 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Bernd Edlinger from comment #61) if you already have used/tested that patch on 4.8 for such a long time, I would appreciate it very much if you post

[Bug middle-end/57748] [4.8 Regression] ICE when expanding assignment to unaligned zero-sized array

2015-01-16 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57748 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/64451] tic6x-elf: ICE in extract_insn, at recog.c:2202

2014-12-31 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64451 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- The ICE started with r189458, still occurs with 4.8.4, 4.9.2, and current trunk.

[Bug c/64442] -O1 modify output of a simple computation with rounding

2014-12-30 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64442 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- Are you compiling on 32-bit x86? I can reproduce on m68k, but not on x86_64 (even with -m32) or on ARMv5. I suspect you're seeing the effects of excess precision of the x87

[Bug c/64442] -O1 modify output of a simple computation with rounding

2014-12-30 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64442 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- See PR323 and https://gcc.gnu.org/bugs/#known You could experiment with -ffloat-store, -mpc64, or -msse2 (if your CPU supports SSE2, which it should if it isn't ancient).

[Bug target/63681] ICE in cfg_layout_initialize, at cfgrtl.c:4233

2014-12-29 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63681 --- Comment #5 from Mikael Pettersson mikpelinux at gmail dot com --- The ICE on bfin-elf started for 4.9 with r204985, and stopped for 5.0 with r210683. Backporting r210683 to current 4.9 branch is easy and fixes the ICE there too. I haven't

[Bug target/64172] [4.9/5 Regression] Wrong code with GCC vector extensions on ARM when compiled without NEON

2014-12-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64172 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug middle-end/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2014-12-24 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added Attachment #34323|0 |1

[Bug target/64379] VFP register restore in ARM epilogue can break indirect tailcalls

2014-12-23 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64379 --- Comment #5 from Mikael Pettersson mikpelinux at gmail dot com --- I can reproduce the wrong-code with gcc-4.9.2 on armv7l-linux-gnueabi. Appears to need both -foptimize-sibling-calls and -mapcs-frame to trigger.

[Bug target/64379] VFP register restore in ARM epilogue can break indirect tailcalls

2014-12-23 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64379 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug middle-end/50865] Invalid code generation for INT64_MIN % 1 on x86_64

2014-12-23 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50865 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/64379] VFP register restore in ARM epilogue can break indirect tailcalls

2014-12-22 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64379 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- Can you add a main() with the necessary parameter setup and call to mark_set() to make the testcase self-contained and executable? You can annotate mark_set() with attribute

[Bug tree-optimization/61931] Wrong Constant Folding

2014-12-21 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61931 --- Comment #5 from Mikael Pettersson mikpelinux at gmail dot com --- Created attachment 34307 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=34307action=edit backport of r197965 (without neon bits) + testcase Patch which fixes

[Bug target/64364] gcc ICE on min() on Intel Sandy Bridge CPU if compiler built on Haswell

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64364 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- Re-run g++ on the testcase with the -v flag, note the command line for cc1plus, run cc1plus from gdb with that command line, and show us the faulting instruction and what code

[Bug rtl-optimization/64294] invalid code, zero check gets optimized away

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64294 --- Comment #7 from Mikael Pettersson mikpelinux at gmail dot com --- The testcases don't build due to linkage errors. Please submit a self-contained and preferably minimized testcase.

[Bug rtl-optimization/57569] [4.8 Regression] wrong code for struct copy at -O3 on x86_64-linux

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57569 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug rtl-optimization/64294] invalid code, zero check gets optimized away

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64294 --- Comment #10 from Mikael Pettersson mikpelinux at gmail dot com --- You're invoking undefined behaviour due to overflow in signed integer arithmetic. Running it after compiling with -fsanitize=undefined produces: petite.c:391:28: runtime

[Bug tree-optimization/61931] Wrong Constant Folding

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61931 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug tree-optimization/61931] Wrong Constant Folding

2014-12-20 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61931 --- Comment #4 from Mikael Pettersson mikpelinux at gmail dot com --- This was fixed for 4.9 by r197965.

[Bug target/63347] m68k misoptimisation with -fschedule-insns

2014-12-15 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63347 --- Comment #9 from Mikael Pettersson mikpelinux at gmail dot com --- This wrong-code started with Bernd's r171845, possibly by exposing a latent issue.

[Bug rtl-optimization/63375] [4.8/4.9/5 Regression] reordering of reads across fences

2014-11-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63375 --- Comment #17 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Pranith Kumar from comment #16) printf(%d\n, *(int *)(val1+4)); This is broken, you're invoking undefined behaviour.

[Bug bootstrap/63624] [5.0 regression] internal compiler error: in unify_one_argument, at cp/pt.c:16638 breaks m68k-linux bootstrap

2014-10-31 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63624 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED

[Bug c/63645] Incorrect code generation

2014-10-28 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63645 --- Comment #25 from Mikael Pettersson mikpelinux at gmail dot com --- So, is there a way to under-allocate a union (just allocate enough for the member you want) and access it via the union pointer that is valid C?

[Bug c/63645] Incorrect code generation

2014-10-26 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63645 --- Comment #10 from Mikael Pettersson mikpelinux at gmail dot com --- I now think the test case is invalid. There is special provision in the standard for accessing the wrong member of a union, but the member has to be a struct type which

[Bug c/63645] Incorrect code generation

2014-10-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63645 --- Comment #9 from Mikael Pettersson mikpelinux at gmail dot com --- Can you tweak the testcase into something that throws an actual runtime error (by faulting or returning 1 from main or doing exit(1)) instead of relying on valgrind (which I

[Bug bootstrap/63624] New: [5.0 regression] internal compiler error: in unify_one_argument, at cp/pt.c:16638 breaks m68k-linux bootstrap

2014-10-23 Thread mikpelinux at gmail dot com
Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Attempting to bootstrap gcc-5-20141019 (r216444) on m68k-linux fails with: mkdir -p ./m68k

[Bug target/61770] march=native detects corei7-avx on non avx cpu (Celeron 847)

2014-10-16 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61770 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to R. Dragone from comment #1) Just encountered the same problem myself. gcc -march=native -E -v - /dev/null 21 | grep cc1 /usr/libexec/gcc/x86_64-pc-linux-gnu

[Bug bootstrap/63523] New: [5.0 regression] gcc/cp/pt.c -Werror=format breaks bootstrap on sparc-linux

2014-10-13 Thread mikpelinux at gmail dot com
: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: mikpelinux at gmail dot com Attempting to bootstrap gcc-5-20141012 on sparc-linux (sparc64 w/ --build and --target overridden) fails with: /mnt/scratch/objdir50/./prev-gcc

[Bug target/63347] m68k misoptimisation with -fschedule-insns

2014-10-06 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63347 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug c/63461] Inconsistent behaviour on ARM64 when inline assembly with .text directive is followed by a static variable

2014-10-05 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63461 --- Comment #5 from Mikael Pettersson mikpelinux at gmail dot com --- Use .pushsection and .popsection .

[Bug tree-optimization/63302] [4.9 Regression] Code with 64-bit long long constants is miscompiled on 32-bit host

2014-10-04 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63302 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/63347] m68k misoptimisation with -fschedule-insns

2014-10-04 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63347 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- I can't reproduce with a vanilla gcc-4.8.3 configured for m68k-elf. For the if (0x0 == haddr) ... it generates: lea (20,%sp),%sp tst.l %d2 seq %d2

[Bug c/63393] [regression]-ffreestanding not work: memset call cause valgrind crash

2014-09-27 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63393 --- Comment #3 from Mikael Pettersson mikpelinux at gmail dot com --- I don't know if this is supposed to be fixed (for all str* and mem* functions one might want to implement oneself), but the standard workaround is to compile with -fno-tree

[Bug c/63394] Segmentation Fault with -O3 flag on ARM v61 Processor

2014-09-27 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63394 --- Comment #1 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to Bruce Dale from comment #0) gcc build options: unknown gcc -v will tell you that

[Bug other/63395] Cygwin vs Cygwin64 Floating Point Discrepancy

2014-09-27 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63395 --- Comment #10 from Mikael Pettersson mikpelinux at gmail dot com --- I strongly suspect 32-bit Cygwin uses x87 by default, while 64-bit Cygwin probably uses SSE2 by default. These two FP implementations are very different, and it's not at all

[Bug middle-end/63373] ELF symbol sizes for variable-length objects are too small

2014-09-26 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63373 --- Comment #2 from Mikael Pettersson mikpelinux at gmail dot com --- Related to PR57180?

[Bug target/63234] arm used label is removed

2014-09-16 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

[Bug target/63234] arm used label is removed

2014-09-16 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63234 --- Comment #4 from Mikael Pettersson mikpelinux at gmail dot com --- (apparently TAB became save changes, how weird...) ... but .LPIC3 is not defined at all. .LPIC[0124] are all defined and used.

[Bug c/63233] Missing Warray-bounds warning for array within struct

2014-09-13 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63233 --- Comment #6 from Mikael Pettersson mikpelinux at gmail dot com --- (In reply to leis from comment #5) Fundamentally, what I'm really trying to do, is to have two arrays (of different types) in a fixed-sized struct. One array grows from

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

2014-09-13 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52773 --- Comment #11 from Mikael Pettersson mikpelinux at gmail dot com --- Probably just needs pinging. FWIW I've had it in my 4.7 and 4.8 toolchains (for all my targets) since last summer w/o issues.

[Bug target/52897] gcc 4.7.0 generates worse code than gcc 3.4.6 for m68000

2014-09-13 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52897 --- Comment #5 from Mikael Pettersson mikpelinux at gmail dot com --- I'm afraid that improving performance on m68k is not a high priority for most gcc developers. Interested parties may have to do the work themselves, or hire someone to do

[Bug target/63209] [ARM] Wrong conditional move generated

2014-09-09 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63209 Mikael Pettersson mikpelinux at gmail dot com changed: What|Removed |Added CC

<    1   2   3   4   5   >