[Bug tree-optimization/80541] New: Wrong constant folding

2017-04-26 Thread ishiura-compiler at ml dot kwansei.ac.jp
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80541 Bug ID: 80541 Summary: Wrong constant folding Product: gcc Version: 7.0.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/80540] New: gcc ICE at -O2 and above on x86_64-linux-gnu in "assign_by_spills"

2017-04-26 Thread helloqirun at gmail dot com
in both 32- and 64-bit modes. Unlike PR79636, -O0 and -O1 work fine. Moreover, gcc-4.8.5 crashes at all levels; gcc-4.9 accepts it at all levels; gcc-5.X,6 accept it at -O1 and -O0, and reject it at -O2 and above. $ gcc-trunk --version gcc-trunk (GCC) 8.0.0 20170426 (experimental) [trunk revis

[Bug tree-optimization/80523] -Wformat-overflow doesn't consider -fexec-charset

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80523 Martin Sebor changed: What|Removed |Added Keywords||patch --- Comment #2 from Martin Sebor -

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 Markus Trippelsdorf changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comme

[Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 --- Comment #4 from Jonathan Wakely --- But in any case, I don't have any say over warnings for the C front-end. It's just a personal opinion, not a GCC one.

[Bug tree-optimization/80539] New: gcc ICE at -O2 and above on valid code on x86_64-linux-gnu in "chrec_fold_plus_poly_poly"

2017-04-26 Thread helloqirun at gmail dot com
d above on x86_64-linux-gnu in both 32- and 64-bit modes. $ gcc-trunk --version gcc-trunk (GCC) 8.0.0 20170426 (experimental) [trunk revision 247284] Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; no

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 Markus Trippelsdorf changed: What|Removed |Added CC||jason at gcc dot gnu.org --- Comme

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 Markus Trippelsdorf changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #18 from janus at gcc dot gnu.org --- (In reply to paul.richard.tho...@gmail.com from comment #16) > The attached does what you want to the testcase. For CLASS objects, it > is the data that has to be copied to a variable, that data fr

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 --- Comment #1 from Freddie Chopin --- Created attachment 41276 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41276&action=edit preprocessed source which causes the problem - minimal version OK, I've managed to narrow it down to a much sm

[Bug sanitizer/80536] [6/7/8 Regression] UBSAN: compile time segfault

2017-04-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80536 Marek Polacek changed: What|Removed |Added Target Milestone|--- |6.4 Summary|UBSAN: compile ti

[Bug libstdc++/80538] New: Probably unwanted thread yield for thread::sleep_for with < 1s

2017-04-26 Thread zulliger at indel dot ch
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80538 Bug ID: 80538 Summary: Probably unwanted thread yield for thread::sleep_for with < 1s Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/80537] New: missing -Wformat-overflow on POSIX %C conversion specification

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80537 Bug ID: 80537 Summary: missing -Wformat-overflow on POSIX %C conversion specification Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal P

[Bug sanitizer/80536] UBSAN: compile time segfault

2017-04-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80536 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug sanitizer/80536] New: UBSAN: compile time segfault

2017-04-26 Thread babokin at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80536 Bug ID: 80536 Summary: UBSAN: compile time segfault Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: sanitizer As

[Bug tree-optimization/80535] New: missing -Wformat-overfow on POSIX directives with the apostrophe flag

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80535 Bug ID: 80535 Summary: missing -Wformat-overfow on POSIX directives with the apostrophe flag Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug c++/80534] [7/8 Regression] 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 Andrew Pinski changed: What|Removed |Added Keywords||ice-on-valid-code Target Milestone|---

[Bug c++/80534] New: 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963

2017-04-26 Thread freddie_chopin at op dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80534 Bug ID: 80534 Summary: 7.1 RC - internal compiler error: in finish_member_declaration, at cp/semantics.c:2963 Product: gcc Version: 7.0.1 Status: UNCONFIRMED Se

[Bug fortran/80524] Problematic behaviour with a finalization subroutine in gfortran

2017-04-26 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80524 Jerry DeLisle changed: What|Removed |Added CC||jvdelisle at gcc dot gnu.org --- Comment

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #17 from janus at gcc dot gnu.org --- Hi Paul, (In reply to paul.richard.tho...@gmail.com from comment #16) > The attached does what you want to the testcase. For CLASS objects, it > is the data that has to be copied to a variable, th

[Bug middle-end/80533] New: Alias analysis of zero length array does not recognize accesses beyond end of array

2017-04-26 Thread sje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80533 Bug ID: 80533 Summary: Alias analysis of zero length array does not recognize accesses beyond end of array Product: gcc Version: 8.0 Status: UNCONFIRMED Severit

[Bug gcov-profile/67463] PGO (Profile Guided Optimizations) are not applied with gcc-5.2.1 (they are fine on gcc-4.9.x)

2017-04-26 Thread shlomif at shlomifish dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67463 --- Comment #4 from Shlomi Fish --- (In reply to Shlomi Fish from comment #3) > Hi Martin, thanks for returning to me. > > (In reply to Martin Liška from comment #2) > > Hi. > > > > Sorry for waiting for some time. I tested your benchmark, wher

[Bug demangler/80513] demangler walks past trailing nul in mangled name in a bunch of cases

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80513 Jonathan Wakely changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 --- Comment #3 from Jonathan Wakely --- (In reply to Eric Gallager from comment #2) > (In reply to Jonathan Wakely from comment #1) > > IMHO warnings should not be enforcing in-house coding guidelines. Use > > clang-tidy for that. > > GCC alread

[Bug bootstrap/80531] [7 Regression] RC1 bootstrap comparison failure

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80531 --- Comment #3 from Jakub Jelinek --- That is really weird, because atomic.c has two exported functions, so should have first_global_object_name set. Can you find out why notice_global_symbol is not called? Or is it called only after get_file_fu

[Bug target/79038] Improve PowerPC ISA 3.0 conversion between integers and hardware _Float128

2017-04-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79038 Michael Meissner changed: What|Removed |Added Attachment #40827|0 |1 is obsolete|

[Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag

2017-04-26 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 --- Comment #2 from Eric Gallager --- (In reply to Jonathan Wakely from comment #1) > IMHO warnings should not be enforcing in-house coding guidelines. Use > clang-tidy for that. GCC already has several warnings added for that purpose. -Wtemplat

[Bug demangler/80513] demangler walks past trailing nul in mangled name in a bunch of cases

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80513 --- Comment #4 from Jonathan Wakely --- (In reply to Richard Smith from comment #1) > While we're here, this check for overflow in consume_count is nonsense, and > any decent optimising compiler is going to optimise away the overflow check: > >

[Bug tree-optimization/80532] New: warning on pointer access after free

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80532 Bug ID: 80532 Summary: warning on pointer access after free Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimizat

[Bug bootstrap/80531] [7 Regression] RC1 bootstrap comparison failure

2017-04-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80531 Andrew Pinski changed: What|Removed |Added Target Milestone|--- |7.0 Summary|RC1 bootstrap com

[Bug target/80530] [7/8 Regression][AArch64] ICE when expanding reciprocal square root with -mcpu=exynos-m1 or -mcpu=xgene-1

2017-04-26 Thread wilco at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80530 wilco at gcc dot gnu.org changed: What|Removed |Added CC||wilco at gcc dot gnu.org --- C

[Bug bootstrap/80531] RC1 bootstrap comparison failure

2017-04-26 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80531 David Edelsohn changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug bootstrap/80531] New: RC1 bootstrap comparison failure

2017-04-26 Thread dje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80531 Bug ID: 80531 Summary: RC1 bootstrap comparison failure Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap

[Bug tree-optimization/80519] if(p)free(p) with -Os

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug c/80522] Enhancement request: __attribute__((warn_untested_result))

2017-04-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80522 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug demangler/80513] demangler walks past trailing nul in mangled name in a bunch of cases

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80513 --- Comment #3 from Jonathan Wakely --- Oops, no, that's not the right character to check!

[Bug demangler/80513] demangler walks past trailing nul in mangled name in a bunch of cases

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80513 --- Comment #2 from Jonathan Wakely --- For the first problem this should be sufficient: --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -3173,6 +3173,8 @@ gnu_special (struct work_stuff *work, const char **mangled, string *declp)

[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs

2017-04-26 Thread gcc at zutt dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498 --- Comment #15 from jonne --- I ran the below command to check memory usage. After an initial quick increase it doesn't seem to grow much. $ while true; sleep 1; do ps -p $(pgrep -fl ./a.out | awk '{ print $1 }') -o pmem,rss,vsize,pid; done %ME

[Bug c/80529] Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag

2017-04-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 --- Comment #1 from Jonathan Wakely --- IMHO warnings should not be enforcing in-house coding guidelines. Use clang-tidy for that.

[Bug target/80479] [7/8 Regression] strcmp() produces valgrind errors on ppc64le

2017-04-26 Thread jreiser at bitwagon dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80479 --- Comment #14 from jreiser at bitwagon dot com --- Here's how to retain the increased speed (and save around 300 bytes per call) while enabling valgrind happiness. Make a closed subroutine __gcc_strcmp_ppc64le whose calling sequence is: la

[Bug target/80530] [7/8 Regression][AArch64] ICE when expanding reciprocal square root with -mcpu=exynos-m1 or -mcpu=xgene-1

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80530 Richard Earnshaw changed: What|Removed |Added Target||aarch64 Status|UNCONFIRME

[Bug target/80530] New: [7 Regression][AArch64] ICE when expanding reciprocal square root with -mcpu=exynos-m1 or -mcpu=xgene-1

2017-04-26 Thread jgreenhalgh at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80530 Bug ID: 80530 Summary: [7 Regression][AArch64] ICE when expanding reciprocal square root with -mcpu=exynos-m1 or -mcpu=xgene-1 Product: gcc Version: 7.0 Status: UNCONFIRM

[Bug rtl-optimization/80491] [6/7/8 Regression] Compiler regression for long-add case.

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80491 --- Comment #8 from Jakub Jelinek --- (In reply to Segher Boessenkool from comment #7) > (In reply to Jakub Jelinek from comment #6) > > Segher, any idea what can be done about the second (combiner) issue? > > Is it possible to special case MODE_

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 Richard Biener changed: What|Removed |Added Depends on||80491 --- Comment #4 from Richard Biene

[Bug c++/80527] SSE4 Compiling issue

2017-04-26 Thread milo.zhang at spreadtrum dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80527 --- Comment #3 from Milo --- (In reply to Marc Glisse from comment #2) > 4.8 is not maintained anymore, and I think this is already fixed in 4.9. Can > you check with a newer compiler? Thank you for your rapid reply. We are using Ubuntu 12.04.

[Bug c/80528] reimplement gnulib's "useless-if-before-free" script as a compiler warning

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80528 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1

[Bug c++/80527] SSE4 Compiling issue

2017-04-26 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80527 --- Comment #2 from Marc Glisse --- 4.8 is not maintained anymore, and I think this is already fixed in 4.9. Can you check with a newer compiler?

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-04-26 Thread krister.walfridsson at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 --- Comment #3 from krister.walfridsson at gmail dot com --- You can see the issue in the generated code with int foo(std::mt19937 &gen) { std::uniform_int_distribution dist(0,99); return dist(gen); } too. I.e. it is not just an ar

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 --- Comment #81 from Thomas Koenig --- (In reply to Jakub Jelinek from comment #79) > Created attachment 41269 [details] > gcc7-pr79430.patch > > Untested patch meant for 7.x, which just modifies reg-stack.c and nothing > else. > Unlike the abov

[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs

2017-04-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498 --- Comment #14 from Martin Liška --- (In reply to jonne from comment #13) > Thanks for all your help, Martin, I really appreciate. You're welcome. > > I re-ran with ASAN_OPTIONS as you suggested. The program seems to get killed > after about

[Bug c/80529] New: Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag

2017-04-26 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80529 Bug ID: 80529 Summary: Split "C++ style comments are not allowed in ISO C90" pedwarn into its own warning flag Product: gcc Version: 8.0 Status: UNCONFIRMED Key

[Bug rtl-optimization/80352] Improper reload of operands with equiv pseudo

2017-04-26 Thread thopre01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80352 --- Comment #5 from Thomas Preud'homme --- FWIW, I've configured GCC with --target=arm-none-eabi --with-cpu=cortex-m7 --with-mode=thumb and then ran make all-gcc. I think it would work equally well without the cpu and mode given that these are gi

[Bug rtl-optimization/80352] Improper reload of operands with equiv pseudo

2017-04-26 Thread thopre01 at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80352 --- Comment #4 from Thomas Preud'homme --- (In reply to Vladimir Makarov from comment #1) > Thomas, it seems from your description the problem really exists. I tried > to reproduce the problem with the test you provided but I've failed. I used

[Bug fortran/80524] Problematic behaviour with a finalization subroutine in gfortran

2017-04-26 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80524 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/80519] if(p)free(p) with -Os

2017-04-26 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519 --- Comment #4 from Eric Gallager --- (In reply to Marc Glisse from comment #3) > A warning would be quite a different thing. You would want it in the > front-end, to detect when a user literally wrote if(p)free(p). What I am > interested in is a

[Bug c/80528] New: reimplement gnulib's "useless-if-before-free" script as a compiler warning

2017-04-26 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80528 Bug ID: 80528 Summary: reimplement gnulib's "useless-if-before-free" script as a compiler warning Product: gcc Version: 8.0 Status: UNCONFIRMED Keywords: diagno

[Bug target/80479] [7/8 Regression] strcmp() produces valgrind errors on ppc64le

2017-04-26 Thread acsawdey at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80479 acsawdey at gcc dot gnu.org changed: What|Removed |Added CC||munroesj at gcc dot gnu.org,

[Bug c++/80527] SSE4 Compiling issue

2017-04-26 Thread milo.zhang at spreadtrum dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80527 --- Comment #1 from Milo --- Created attachment 41272 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41272&action=edit declearation of the function

[Bug c++/80527] New: SSE4 Compiling issue

2017-04-26 Thread milo.zhang at spreadtrum dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80527 Bug ID: 80527 Summary: SSE4 Compiling issue Product: gcc Version: 4.8.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unas

[Bug tree-optimization/80519] if(p)free(p) with -Os

2017-04-26 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519 --- Comment #3 from Marc Glisse --- A warning would be quite a different thing. You would want it in the front-end, to detect when a user literally wrote if(p)free(p). What I am interested in is an optimization that detects when, possibly after i

[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs

2017-04-26 Thread gcc at zutt dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498 --- Comment #13 from jonne --- Thanks for all your help, Martin, I really appreciate. I re-ran with ASAN_OPTIONS as you suggested. The program seems to get killed after about 44 seconds. I already tried with clang before, seems to work ok over

[Bug tree-optimization/80519] if(p)free(p) with -Os

2017-04-26 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519 Eric Gallager changed: What|Removed |Added CC||egall at gwmail dot gwu.edu --- Comment

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread paul.richard.thomas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #16 from paul.richard.thomas at gmail dot com --- Hi Janus, The attached does what you want to the testcase. For CLASS objects, it is the data that has to be copied to a variable, that data freed and the _data field pointed to the va

[Bug debug/80526] -fcompare-debug doesn't make sense for -c -flto

2017-04-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80526 --- Comment #2 from Markus Trippelsdorf --- (In reply to Richard Biener from comment #1) > Maybe it does if you use -ffat-lto-objects. Sure, yes. But -fno-fat-lto-objects is the default.

[Bug debug/80526] -fcompare-debug doesn't make sense for -c -flto

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80526 --- Comment #1 from Richard Biener --- Maybe it does if you use -ffat-lto-objects.

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 --- Comment #80 from Jakub Jelinek --- The only difference with the #c79 patch on the testcase is: @@ -18865,7 +18865,6 @@ __shower_core_MOD_shower_generate_next_i callintegral_over_z_part_isr.6797 .LVL1471: .LM2026: - fldt

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 --- Comment #79 from Jakub Jelinek --- Created attachment 41269 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41269&action=edit gcc7-pr79430.patch Untested patch meant for 7.x, which just modifies reg-stack.c and nothing else. Unlike the

[Bug target/77728] [5/6 Regression] Miscompilation multiple vector iteration on ARM

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728 --- Comment #54 from Jakub Jelinek --- The notices are only for ABI of actually compiled code, so it depends on optimizations, if functions are inlined or optimized away, we don't report anything, so at -O0 when fewer functions are inlined and al

[Bug debug/80526] New: -fcompare-debug doesn't make sense for -c -flto

2017-04-26 Thread trippels at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80526 Bug ID: 80526 Summary: -fcompare-debug doesn't make sense for -c -flto Product: gcc Version: 7.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: d

[Bug c/80525] New: -Wlogical-op confused by undefined integer overflow

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80525 Bug ID: 80525 Summary: -Wlogical-op confused by undefined integer overflow Product: gcc Version: 7.0.1 Status: UNCONFIRMED Keywords: diagnostic, xfail Severity: normal

[Bug gcov-profile/78792] gfortran + gcov confused by #line directive

2017-04-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78792 Martin Liška changed: What|Removed |Added Status|NEW |WAITING --- Comment #3 from Martin Liška

[Bug target/77728] [5/6 Regression] Miscompilation multiple vector iteration on ARM

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728 Richard Earnshaw changed: What|Removed |Added CC||biblbroks at hotmail dot com --- Comm

[Bug target/69841] Wrong template instantiation in C++11 on armv7l

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69841 Richard Earnshaw changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libstdc++/80149] segfault in std::vector::resize when mixing binaries from gcc4 and gcc5 on armhf

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80149 Richard Earnshaw changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug target/77728] [5/6 Regression] Miscompilation multiple vector iteration on ARM

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728 Richard Earnshaw changed: What|Removed |Added CC||klug.stefan at gmx dot de --- Comment

[Bug target/77728] [5/6 Regression] Miscompilation multiple vector iteration on ARM

2017-04-26 Thread rearnsha at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77728 --- Comment #51 from Richard Earnshaw --- (In reply to Jonathan Wakely from comment #50) > (In reply to ktkachov from comment #3) > > Started with r225465. > > Something to do with alignment. > > I wonder if it's related to PR69841 ? > > Seems t

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread stefano.zaghi at cnr dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #15 from Stefano Zaghi --- Dear all, I add that the workaround (inserting an allocatable inside the type being a result of polymorphic function) if used into a real code (https://github.com/szaghi/FORESEER) does not solve the memory

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #14 from janus at gcc dot gnu.org --- (In reply to paul.richard.tho...@gmail.com from comment #11) > I'll take a look tonight. I believe, without the source in front of me, that > > s/gfc_add_expr_to_block (&post, gfc_call_free > (tmp

[Bug sanitizer/80498] Simple program with address sanitizer and regex hangs

2017-04-26 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80498 --- Comment #12 from Martin Liška --- I'm sorry I cannot help more as I don't have a handy Mac operating system. I would also try to use clang with the sanitizer and test it. Moreover, you can test following: $ gcc /tmp/main.c -fsanitize=address

[Bug fortran/80524] Problematic behaviour with a finalization subroutine in gfortran

2017-04-26 Thread andrew at fluidgravity dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80524 --- Comment #1 from Andrew Wood --- Intel's response: Hello Andrew, Our development team investigated the issue and determined the following: --- Finalization is a tricky thing - there are many different events that trigger a

[Bug fortran/80524] New: Problematic behaviour with a finalization subroutine in gfortran

2017-04-26 Thread andrew at fluidgravity dot co.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80524 Bug ID: 80524 Summary: Problematic behaviour with a finalization subroutine in gfortran Product: gcc Version: 6.3.0 Status: UNCONFIRMED Severity: normal

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 --- Comment #78 from Jakub Jelinek --- Untested fix. The problem is that autoinc/dec of stack_pointer_rtx doesn't use REG_INC notes (various comments, e.g. in auto_inc_p or in auto-inc-dec.c seem to suggest that stack_pointer_rtx is just special

[Bug tree-optimization/79824] [7 Regression] Failure to peel for gaps leads to read beyond mapped memory

2017-04-26 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79824 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|REOPENED|RESOLVED Resolutio

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread juergen.reuter at desy dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 --- Comment #77 from Jürgen Reuter --- (In reply to Jakub Jelinek from comment #76) > Reproduced (in the dumps), debugging now. Maybe I should stress again that this only happens if the real and complex types in our code have kind=10, for kind=8

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread stefano.zaghi at cnr dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #13 from Stefano Zaghi --- Dear all, I have done further test about Vipul's workaround, you can find my complete report here https://github.com/szaghi/leaks_hunter#results Essentially, my current conclusion is that the workaround d

[Bug target/79430] [7/8 Regression] action of statement incorrectly optimised away

2017-04-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79430 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak

2017-04-26 Thread stefano.zaghi at cnr dot it
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477 --- Comment #12 from Stefano Zaghi --- Created attachment 41267 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41267&action=edit simple inheritance leaker

[Bug target/80517] [missed optimization] constant propagation through Intel intrinsics

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80517 Richard Biener changed: What|Removed |Added Keywords||missed-optimization Target|

[Bug tree-optimization/80519] if(p)free(p) with -Os

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80519 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/80520] [7/8 Regression] Performance regression from missing if-conversion

2017-04-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80520 Richard Biener changed: What|Removed |Added Priority|P3 |P2 Target Milestone|---