[Bug sanitizer/78708] [7 Regression][ASAN][LTO] ICE in expand_ASAN_MARK, at internal-fn.c:380 - when compiling but not linking with ASAN

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78708 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Sat Dec 10 08:01:17 2016 New Revision: 243514 URL: https://gcc.gnu.org/viewcvs?rev=243514&root=gcc&view=rev Log: PR sanitizer/78708 * lto-streamer-in.c (input_function): I

[Bug sanitizer/78708] [7 Regression][ASAN][LTO] ICE in expand_ASAN_MARK, at internal-fn.c:380 - when compiling but not linking with ASAN

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78708 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/78758] [7 Regression] Warning: '__builtin_memcpy' ... overflows the destination for string assignment

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78758 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/78758] [7 Regression] Warning: '__builtin_memcpy' ... overflows the destination for string assignment

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78758 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sat Dec 10 08:02:21 2016 New Revision: 243515 URL: https://gcc.gnu.org/viewcvs?rev=243515&root=gcc&view=rev Log: PR fortran/78758 * tree-object-size.c (compute_object_offs

[Bug c++/78761] C++14, compiler generate mangled name that can not be demangled

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78761 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug fortran/78737] [OOP] linking error with deferred, undefined user-defined derived-type I/O

2016-12-10 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78737 --- Comment #7 from janus at gcc dot gnu.org --- It seems that the function get_dtio_proc in trans-io.c needs to be fixed.

[Bug target/78222] target-tilegx: Incorrect bundle: let addli in y pipe

2016-12-10 Thread gang.chen.5i5j at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78222 --- Comment #1 from Chen Gang --- The root cause is: in tilegx_gen_bundle, gcc will lose prev insn when it deletes useless insns. The related insns before tilegx_gen_bbundle (it is correct). 249 (insn:TI 71 68 75 4 (set (mem:DI (reg/f:DI 10 r10

[Bug target/47754] [missed optimization] AVX allows unaligned memory operands but GCC uses unaligned load and register operand

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47754 Allan Jensen changed: What|Removed |Added CC||linux at carewolf dot com --- Comment #7

[Bug target/47754] [missed optimization] AVX allows unaligned memory operands but GCC uses unaligned load and register operand

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47754 --- Comment #8 from Allan Jensen --- Note this happens with -mavx2, but not with -march=haswell. It appears the tuning is a bit too pessimistic when avx2 is enabled on generic x64.

[Bug tree-optimization/78720] [7 Regression] Illegal instruction in generated code

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78720 --- Comment #7 from Jakub Jelinek --- Author: jakub Date: Sat Dec 10 12:06:12 2016 New Revision: 243516 URL: https://gcc.gnu.org/viewcvs?rev=243516&root=gcc&view=rev Log: PR tree-optimization/78720 * match.pd (A < 0 ? C : 0): Onl

[Bug tree-optimization/78720] [7 Regression] Illegal instruction in generated code

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78720 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug tree-optimization/78721] [7 Regression] ICE on valid code at -O2 and -O3 on x86_64-linux-gnu: in set_value_range, at tree-vrp.c:371

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78721 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug target/47754] [missed optimization] AVX allows unaligned memory operands but GCC uses unaligned load and register operand

2016-12-10 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47754 --- Comment #9 from Marc Glisse --- (In reply to Allan Jensen from comment #7) > This is significantly worse with integer operands. > > _mm256_storeu_si256((__m256i *)&data[3], > _mm256_add_epi32(_mm256_loadu_si256((const __m256i *)&data[0])

[Bug target/47754] [missed optimization] AVX allows unaligned memory operands but GCC uses unaligned load and register operand

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47754 --- Comment #10 from Allan Jensen --- No I mean it triggers when you compile with -mavx2, it is solved with -march=haswell. It appears the issue is the tune flag X86_TUNE_AVX256_UNALIGNED_LOAD_OPTIMAL is set for all processors that support avx2,

[Bug libstdc++/71107] wstring_convert::from_bytes produces wide chars with the wrong byte order

2016-12-10 Thread cantabile.desu at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71107 --- Comment #8 from Bitterblue --- Can a fix for this bug be my Christmas present?

[Bug target/77904] [ARM Cortex-M0] Frame pointer thrashes registers if assembly statements with "sp" clobber are used

2016-12-10 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77904 --- Comment #9 from Freddie Chopin --- Any chance for merging the fix to gcc-6 branch before gcc 6.3 would be released?

[Bug target/78762] New: Regression: Splitting unaligned AVX loads also when AVX2 is enabled

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78762 Bug ID: 78762 Summary: Regression: Splitting unaligned AVX loads also when AVX2 is enabled Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug target/78762] Regression: Splitting unaligned AVX loads also when AVX2 is enabled

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78762 --- Comment #1 from Allan Jensen --- Created attachment 40296 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40296&action=edit Test compiled with -mavx2

[Bug target/78762] Regression: Splitting unaligned AVX loads also when AVX2 is enabled

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78762 --- Comment #2 from Allan Jensen --- Created attachment 40297 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40297&action=edit Test compiled with -march=haswell

[Bug target/78762] Regression: Splitting unaligned AVX loads also when AVX2 is enabled

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78762 --- Comment #3 from Allan Jensen --- Created attachment 40298 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40298&action=edit Test compiled with gcc 6

[Bug target/47754] [missed optimization] AVX allows unaligned memory operands but GCC uses unaligned load and register operand

2016-12-10 Thread linux at carewolf dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47754 --- Comment #11 from Allan Jensen --- The think the issue I noted is completely separate from this one, so I opened https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78762 to deal with it. I think this one could probably be closed though.

[Bug go/78763] New: go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:8352

2016-12-10 Thread jdanek at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78763 Bug ID: 78763 Summary: go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:8352 Product: gcc Version: 6.2.0 Status: UNCONFIRMED Sev

[Bug fortran/78350] ICE in gfc_code2string(): Bad code, at fortran/misc.c:193

2016-12-10 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78350 --- Comment #5 from Paul Thomas --- Author: pault Date: Sat Dec 10 18:35:47 2016 New Revision: 243517 URL: https://gcc.gnu.org/viewcvs?rev=243517&root=gcc&view=rev Log: 2016-12-10 Paul Thomas PR fortran/78350 * resolve.c (reso

[Bug target/78764] New: CPU type option discarded on 32-bit powerpc

2016-12-10 Thread rin at NetBSD dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78764 Bug ID: 78764 Summary: CPU type option discarded on 32-bit powerpc Product: gcc Version: 5.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: targe

[Bug go/78763] go1: internal compiler error: in do_get_backend, at go/gofrontend/expressions.cc:8352

2016-12-10 Thread jdanek at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78763 --- Comment #1 from Jiri Danek --- How reproducible: Always Reproduction steps: docker run --rm -it jdanekrh/gcc-78763 make (I pushed the partially built container to Docker Hub (docker.io) and the above command fetches it from there and runs ma

[Bug middle-end/78689] [7 Regression] ICE (segfault)

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78689 --- Comment #3 from Jakub Jelinek --- I had further look at this. E.g. build_over_call's nargs = 2 in: if (ctor_omit_inherited_parms (fn)) nargs = 2; is seen in inh-ctor23.C, inh-ctor24.C and inh-ctor28.C testcases. Looking at thes

[Bug libstdc++/78717] no definition of string::find when lowered to gimple

2016-12-10 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78717 --- Comment #1 from Marc Glisse --- Did you forget to enable optimizations? At -O0, there is no point keeping those extern templates around, so gcc saves time by dropping them. At -O1 and above, I do see some extra functions in the gimple dump. I

[Bug c++/78765] New: ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_build_addr_expr_1, at cp/typeck.c:5708)

2016-12-10 Thread chengniansun at gmail dot com
COLLECT_LTO_WRAPPER=/usr/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/7.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-source-trunk/configure --enable-languages=c,c++,lto --prefix=/usr/local/gcc-trunk --disable-bootstrap Thread model: posix gcc version 7.0.0 20161210 (experimental

[Bug fortran/78746] charlen_15.f90, charlen_03, charlen_10 ICE

2016-12-10 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78746 --- Comment #3 from kargl at gcc dot gnu.org --- The issue with charlen_15.f90 was fixed here: https://gcc.gnu.org/ml/gcc-bugs/2016-12/msg01451.html The issues with both charlen_03.f90 and charlen_10.f90 have nothing at all to do with a charlen.

[Bug other/78766] New: GCC Awk scripts use the non-POSIX /^{/ regex

2016-12-10 Thread sstewartgallus00 at mylangara dot bc.ca
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78766 Bug ID: 78766 Summary: GCC Awk scripts use the non-POSIX /^{/ regex Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: oth

[Bug tree-optimization/78709] Code size is bigger at -Os than at -O3, -Os does not enable -ftree-loop-distribute-patterns

2016-12-10 Thread erika.molnar at cyberthorstudios dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78709 --- Comment #3 from ErikaMolnar --- Thank you for your reply. To make it work on -Os I need to make the following change in tree-loop-distribution.c: - /* Only optimize hot loops. */ - if (!optimize_loop_for_speed_p (loop)) -contin

ICE in maybe_record_trace_start, at dwarf2cfi.c:2328 (trunk@243328)

2016-12-10 Thread George Spelvin
This is avr-gcc compiled from the git mirror commit fcdd7053da, which says it's SVN trunk@243328. This code used to work on some earlier GCC, but I don't know which version. Host is Debian Linux, i686, compiled with gcc (Debian 6.2.1-5) 6.2.1 20161124. Configured with: ../gcc/configure --target=

[Bug c++/78767] New: ICE when inheriting constructor of base class

2016-12-10 Thread daniel+gcc at trvx dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78767 Bug ID: 78767 Summary: ICE when inheriting constructor of base class Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/78765] [7 Regression] ICE on invalid C++ code on x86_64-linux-gnu (internal compiler error: in cp_build_addr_expr_1, at cp/typeck.c:5708)

2016-12-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78765 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P4 Status|UNCONFIRMED

[Bug fortran/78226] Fill out location information everywhere

2016-12-10 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78226 --- Comment #15 from Thomas Koenig --- Author: tkoenig Date: Sat Dec 10 22:28:32 2016 New Revision: 243520 URL: https://gcc.gnu.org/viewcvs?rev=243520&root=gcc&view=rev Log: 2016-12-10 Thomas Koenig PR fortran/78226 * error.c

[Bug fortran/78226] Fill out location information everywhere

2016-12-10 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78226 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug lto/78768] New: -Walloca-larger-than and -Wformat-length warnings disabled by -flto

2016-12-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78768 Bug ID: 78768 Summary: -Walloca-larger-than and -Wformat-length warnings disabled by -flto Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug lto/78768] -Walloca-larger-than and -Wformat-length warnings disabled by -flto

2016-12-10 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78768 Martin Sebor changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug sanitizer/69204] ThreadSanitizer: False positive on std::promise usage

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69204 Andrew Pinski changed: What|Removed |Added CC||csaba_22 at yahoo dot co.uk --- Comment

[Bug sanitizer/78755] Thread sanitizer reports race with std::promise with -O0, works with -O{1,2,3}

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78755 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/78382] ICE when compiling on aarch64 in ILP32 mode with traditional thread local storage and pic

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78382 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug middle-end/78769] New: [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1;

2016-12-10 Thread babokin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78769 Bug ID: 78769 Summary: [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1; Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug middle-end/78769] [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1;

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78769 --- Comment #1 from Andrew Pinski --- This might have been just fixed by r243516 .

[Bug middle-end/78769] [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1;

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78769 Andrew Pinski changed: What|Removed |Added Keywords||wrong-code Target Milestone|---

[Bug rtl-optimization/78652] [7 regression]LRA generates wrong code by inheriting changed register

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78652 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0

[Bug middle-end/78769] [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1;

2016-12-10 Thread babokin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78769 --- Comment #2 from Dmitry Babokin --- I've used r243504, the latest available on git://gcc.gnu.org/git/gcc.git

[Bug libstdc++/78717] no definition of string::find when lowered to gimple

2016-12-10 Thread hiraditya at msn dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78717 --- Comment #2 from AK --- With -O3 I see only the following definition of find which calls the real find function I was expecting to be visible in the gimple. D.12805 = _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findERKS4_mD.11635

[Bug target/78624] [7 Regression] ICE (invalid rtl sharing) while doing a build

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78624 Andrew Pinski changed: What|Removed |Added Keywords||build, ice-on-valid-code Compon

[Bug target/78624] [7 Regression] ICE (invalid rtl sharing) while doing a build

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78624 Andrew Pinski changed: What|Removed |Added Depends on||78614 --- Comment #1 from Andrew Pinski

[Bug target/78624] [7 Regression] ICE (invalid rtl sharing) while doing a build

2016-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78624 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug middle-end/78769] [7 Regression] Incorrect arithmetic optimization for (a < 0) << 29 >> 1;

2016-12-10 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78769 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug tree-optimization/78720] [7 Regression] Illegal instruction in generated code

2016-12-10 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78720 --- Comment #9 from Markus Trippelsdorf --- *** Bug 78769 has been marked as a duplicate of this bug. ***