[Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)

2020-01-09 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580 --- Comment #1 from Zavadovsky Yan --- Got same bug with all GCC version since (at least, doesn't check older versions) 6.3.0 and newer. Code: struct Base { Base(void*) { } virtual ~Base() { } }; template< typename... Ts > stru

[Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)

2020-01-09 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580 --- Comment #2 from Zavadovsky Yan --- Created attachment 47622 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47622&action=edit test.ii gcc --save-temps output

[Bug c++/88580] Parameter pack expansion fails (variadic constructor template inside a variadic class template)

2020-01-09 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88580 --- Comment #3 from Zavadovsky Yan --- (In reply to Petr Filipsky from comment #0) > Sorry if this kind of error has been reported already (I know that there are > already several bugs reported regarding variadic template parameter > expansion bu

[Bug c++/88562] New: Incorrect pointer incrementing on ST-SH4

2018-12-20 Thread zavadovsky.yan at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: zavadovsky.yan at gmail dot com Target Milestone: --- Created attachment 45268 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45268&action=edit code to trigger the bug Hello. I have got some piece of source cod

[Bug c++/88562] Incorrect pointer incrementing on ST-SH4

2018-12-20 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #1 from Zavadovsky Yan --- Created attachment 45269 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45269&action=edit ReadQm_Os.s Add full assembler output with buggy code. Command to compile: 'sh4-unknown-linux-gnu-g++ -Os -S

[Bug c++/88562] Incorrect pointer incrementing on ST-SH4

2018-12-20 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #2 from Zavadovsky Yan --- Created attachment 45270 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45270&action=edit ReadQm_Os_no_expensive_optimizations.s Add full assembler output with NON-buggy code. Command to compile: 'sh

[Bug c++/88562] Incorrect pointer incrementing on ST-SH4

2018-12-20 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #3 from Zavadovsky Yan --- Created attachment 45271 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45271&action=edit main.cpp Add some testing code. Command to compile: './820/bin/sh4-unknown-linux-gnu-g++ --sysroot=./820/sh4-

[Bug c++/88562] Incorrect pointer incrementing on ST-SH4

2018-12-20 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #4 from Zavadovsky Yan --- Some additional note. Test code is placed in separate file from 'Read32' function implementation because inlining of 'Read32' will avoid bug. Full source file on which bug was observed has about 300 lines

[Bug c++/88630] New: Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: zavadovsky.yan at gmail dot com Target Milestone: --- Created attachment 45299 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45299&action=edit main.cpp: code to trigger

[Bug c++/88630] Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #1 from Zavadovsky Yan --- Rewriting code as float float_val = ; int int_val = -(int)float_val; avoids bug. And rewriting code as double float_val = ; int int_val = -float_val; also avoids bug.

[Bug c++/88630] Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #2 from Zavadovsky Yan --- Created attachment 45300 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45300&action=edit main494.s: assembler output from GCC-4.9.4

[Bug c++/88630] Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #3 from Zavadovsky Yan --- Created attachment 45301 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45301&action=edit main820.s: assembler output from GCC-8.2.0

[Bug c++/88630] Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #4 from Zavadovsky Yan --- Compilation command: sh4-unknown-linux-gnu-g++ --sysroot=../8.2.0/sh4-unknown-linux-gnu/sysroot -static -Os -o test820 main.cpp GCC info: Using built-in specs. COLLECT_GCC=../000_sh4_gcc/820/bin/sh4-unknown

[Bug c++/88630] Incorrect float negating together with convertion to int on SH4

2018-12-28 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #5 from Zavadovsky Yan --- Created attachment 45302 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45302&action=edit main.ii: -save-temps output

[Bug target/88630] Incorrect float negating together with convertion to int on SH4

2019-09-30 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #7 from Zavadovsky Yan --- Hello. >your posted disassembly doesn't seem to match >the actual source that you have posted Sorry, my mistake. Seems that I attached some temporary ASM sources. Must be check for -12, of course. >The

[Bug c++/88562] Incorrect pointer incrementing on SH4

2019-10-01 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #11 from Zavadovsky Yan --- Thanks for fixing!

[Bug c++/88562] Incorrect pointer incrementing on SH4

2019-10-01 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88562 --- Comment #12 from Zavadovsky Yan --- I've checked this patch locally on our STiH237 hardware. Using GCC 8.2 built by crosstool-ng. It works!

[Bug target/88630] Incorrect float negating together with convertion to int on SH4

2019-10-01 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #9 from Zavadovsky Yan --- >Can you try it out please and see >if it fixes the issue on your hardware? Checked GCC 8.2 + your patch and crosstool-ng to build toolchain(using same config as I've used while reporting bug). At least it

[Bug target/88630] Incorrect float negating together with convertion to int on ST-40

2019-10-02 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #11 from Zavadovsky Yan --- >We can set it as a default behavior for all FPU-capable SH4 variants, >but that will pessimize it for everything. >The other option is to enable this only for your specific CPU (ST-40), >which would req

[Bug target/88630] Incorrect float negating together with convertion to int on ST-40

2019-10-08 Thread zavadovsky.yan at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88630 --- Comment #13 from Zavadovsky Yan --- (In reply to Oleg Endo from comment #12) > > Please try it out. Let me know what you find GCC 8.2 + "trial patch" : assert passed GCC 8.2 + "patch from comment 12" : assert failed GCC 8.2 + "patch from c