[Bug target/69124] arm miss compiled code since gcc 5

2016-01-04 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69124 --- Comment #5 from Mikael Pettersson --- The OP's compiler has --with-mode=thumb! If I compile with -mtune=generic-armv7-a -mthumb then I see the following errors from the test case: 12 0xc0b165f1 != 0xdf5e0cae 13 0x8b329fe4 != 0x8b329fe3 19 0

[Bug target/69124] arm miss compiled code since gcc 5

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

[Bug tree-optimization/67781] [5/6 Regression] wrong code generated on big-endian with -O1 -fexpensive-optimizations

2015-12-29 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67781 --- Comment #10 from Mikael Pettersson --- (In reply to Thomas Preud'homme from comment #9) > I have a patch that seems to be working. Running regression testing and > bootstrap now. Is there any progress on that patch?

[Bug target/69051] Misaligned read from the stack when using odd sized character array

2015-12-25 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69051 --- Comment #3 from Mikael Pettersson --- Sounds like you're using the wrong target. m68k-linux implies a 68020, 030, 040, or 060 CPU, and they don't have alignment constraints. Perhaps you should be using an m68k-elf toolchain?

[Bug c/69037] [5 Regression] 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 #3 from Mikael Pettersson --- Trunk had the same regression, until r231374 fixed it.

[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 --- 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 18:54:43.93835

[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/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/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 the

[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/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 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 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 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 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/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
oduct: gcc 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 bo

[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 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 --- Started with r206023, an LRA patch.

[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 --- 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-patches/2015-03/msg01014.html

[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 --- 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) by the initial proposed fix for PR65358:

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 not using your zcalloc), I cannot

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 alignment than present in the sou

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- The --with-gmp= etc options work for include files and static link libraries. but do nothing for shared libraries.

[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 --- > 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 to find the gmp etc shared l

[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 --- (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? > > I'm fine to close i

[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 --- -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 case, -O0 vs -O1/2, and -m32

[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 --- Checked that this works with current gcc-6/5/4.9. Can this be closed now?

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- (In reply to Antonio Poggiali from comment #9) > Sorry, this code: > > https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cgraphunit. > c?r1=221077&r2=221076&pathrev=221077 Yes, but I'm not convinced it's the r

[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 --- 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 there. However: - I can't get this

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- Started with r197189.

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- Still occurs with trunk @ r223652.

[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 --- Started with r67: fc6cc27b3f46a6f70f610ec93a1c5e68d83c933b is the first bad commit commit fc6cc27b3f46a6f70f610ec93a1c5e68d83c933b Author: rguenth Date: Tue Apr 21 12:52:43 2015 + 2015-04

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 is benign, but I'd use uintptr_t a

[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 --- 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/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 --- 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-checked with 4.6.4). The b

[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 --- (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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 --- 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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- Also fails on m68k, but not on powerpc64, sparc64, or ARMv5.

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- (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/2015-01/msg02192.htm

[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 --- 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 --- (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 it on the gcc-patches mailing > list

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 #3 from Mikael Pettersson --- 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 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 --- 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 FPU (much like the m68k FPU).

[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 --- 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 checked c6x. See also: https

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 changed: What|Removed |Added Attachment #34323|0 |1 is obsolete|

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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-22 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64379 --- Comment #3 from Mikael Pettersson --- 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((noinline,noclone)) to preven

[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 --- Created attachment 34307 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34307&action=edit backport of r197965 (without neon bits) + testcase Patch which fixes this testcase; I'll do a full bootstra

[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 --- This was fixed for 4.9 by r197965.

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 error: signed integer overflow:

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- The testcases don't build due to linkage errors. Please submit a self-contained and preferably minimized testcase.

[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 --- 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/function it occurs in. You

[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 --- 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 --- (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 changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[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 --- 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 --- 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 shares a prefix with the curren

[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 --- 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 don't trust) to spot a/the pro

[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 --- (In reply to R. Dragone from comment #1) > Just encountered the same problem myself. > > >> gcc -march=native -E -v - &1 | grep cc1 > /usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.3/cc1 -E -quiet -v - > -mar

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- Use .pushsection and .popsection .

[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 --- 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 extb.l %d2 ne

[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 changed: What|Removed |Added CC||mikpelinux at gmail dot com

[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 --- 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 surprising to see different

[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 --- (In reply to Bruce Dale from comment #0) > gcc build options: unknown "gcc -v" will tell you that

[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 --- 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-loop-distribute-patterns. Th

[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 --- 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 --- Comment #4 from Mikael Pettersson --- (apparently TAB became "save changes", how weird...) ... but .LPIC3 is not defined at all. .LPIC[0124] are all defined and used.

<    1   2   3   4   5   >