[Bug tree-optimization/71417] New: wrong code (SIGFPE) at -O3 on x86_64-linux-gnu

2016-06-04 Thread su at cs dot ucdavis.edu
model: posix gcc version 7.0.0 20160604 (experimental) [trunk revision 237091] (GCC) $ $ gcc-trunk -O2 small.c; ./a.out $ gcc-6.1 -O3 small.c; ./a.out $ $ gcc-trunk -O3 small.c $ ./a.out Floating point exception (core dumped) $ --- char a = -97; int b, c, d, e

[Bug c++/71402] -Wunused-variable warnings ignore initialization side effects

2016-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71402 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org

[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #10 from Max Wittal --- Sorry, I'm pretty sure now that there is some hard to find bug in my code, like the ABA problem. Please disregard my comment above.

[Bug c++/71394] -Werror=conversion-null identifies incorrect data member of member initializer list

2016-06-04 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71394 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/71402] -Wunused-variable warnings ignore initialization side effects

2016-06-04 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71402 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/71411] No warnings for OOB accesses with arrays of size 1

2016-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71411 Martin Sebor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Last reconfirmed|

[Bug c/67872] missing -Warray-bounds warning, bogus -Wmaybe-uninitialized

2016-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67872 Martin Sebor changed: What|Removed |Added CC||ch3root at openwall dot com --- Comment

[Bug c++/60335] confused by earlier errors, bailing out

2016-06-04 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60335 Paolo Carlini changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug tree-optimization/71416] New: ICE at -O3 in 32-bit and 64-bit modes on x86_64-linux-gnu (vectorizable_live_operation)

2016-06-04 Thread chengniansun at gmail dot com
-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 20160604 (experimental) [trunk revision 237091] (GCC

[Bug c/48116] -Wreturn-type does not work as advertised

2016-06-04 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48116 --- Comment #11 from Martin Sebor --- Author: msebor Date: Sat Jun 4 20:50:50 2016 New Revision: 237093 URL: https://gcc.gnu.org/viewcvs?rev=237093=gcc=rev Log: PR c/48116 - -Wreturn-type does not work as advertised gcc/ChangeLog: 2016-06-04

[Bug fortran/71401] [7 regression] spec2006 test case 416.gamess fails starting with r237003

2016-06-04 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71401 Jerry DeLisle changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/71404] [7 Regression] 416.gamess in SPEC CPU 2006 failed to build

2016-06-04 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71404 Jerry DeLisle changed: What|Removed |Added CC||seurer at linux dot vnet.ibm.com ---

[Bug fortran/71404] [7 Regression] 416.gamess in SPEC CPU 2006 failed to build

2016-06-04 Thread jvdelisle at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71404 Jerry DeLisle changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jvdelisle at gcc dot gnu.org

[Bug libstdc++/71364] [7 regression] recent tuple changes break range-v3 merge.cpp

2016-06-04 Thread ville.voutilainen at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71364 --- Comment #3 from Ville Voutilainen --- Which version of range-v3? I cloned https://github.com/ericniebler/range-v3.git and its tests seem to pass on the current trunk.

[Bug libstdc++/71415] New: std::filesystem::exists that does not throw sets error code if file does not exist

2016-06-04 Thread marejde at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71415 Bug ID: 71415 Summary: std::filesystem::exists that does not throw sets error code if file does not exist Product: gcc Version: 6.1.1 Status: UNCONFIRMED

[Bug target/71286] 6.1.0: compiling djgpp programs with LTO emits "visibility attribute not supported in this configuration" warnings

2016-06-04 Thread andris.pavenis at iki dot fi
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71286 Andris Pavenis changed: What|Removed |Added CC||andris.pavenis at iki dot fi ---

[Bug other/71414] New: 2x slower than clang summing small float array

2016-06-04 Thread yyc1992 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71414 Bug ID: 71414 Summary: 2x slower than clang summing small float array Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug ada/71413] New: [7 Regression] bootstrap (gnat) broken on arm-linux-gnueabi*

2016-06-04 Thread doko at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71413 Bug ID: 71413 Summary: [7 Regression] bootstrap (gnat) broken on arm-linux-gnueabi* Product: gcc Version: 6.1.1 Status: UNCONFIRMED Severity: normal

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #6 from relliott at umn dot edu --- > Have you considered the SAVE attribute? > > integer(c_int), pointer,save:: val > > laptop-kargl:kargl[246] gmake > gfc -O3 -g -Wall -pedantic -c skeleton-f.F90 > ~/work/bin/gcc -O3 -g -Wall

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread sgk at troutmask dot apl.washington.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #5 from Steve Kargl --- On Sat, Jun 04, 2016 at 04:36:24PM +, relliott at umn dot edu wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 > > --- Comment #4 from relliott at umn dot edu --- > > Ahem, give val the SAVE

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #4 from relliott at umn dot edu --- > Ahem, give val the SAVE attribute. > > integer(c_int), pointer, save :: val Hi, Thanks for your help. Unfortunately, I don't think using save will serve my purpose in this case. Although,

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #3 from kargl at gcc dot gnu.org --- (In reply to relliott from comment #2) > > I believe gfortran's behavior conforms to the standard. F2003 states > > > > When the execution of a procedure is terminated by execution > > of a

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 --- Comment #2 from relliott at umn dot edu --- > I believe gfortran's behavior conforms to the standard. F2003 states > > When the execution of a procedure is terminated by execution > of a RETURN or END statement, an allocatable variable

[Bug fortran/71412] iso_c_bindings and optimization interaction bug

2016-06-04 Thread kargl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 kargl at gcc dot gnu.org changed: What|Removed |Added CC||kargl at gcc dot gnu.org ---

[Bug tree-optimization/71405] [6/7 Regression] ICE on valid C++ code at -Os and above on x86_64-linux-gnu: verify_gimple failed

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71405 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Sat Jun 4 14:50:57 2016 New Revision: 237091 URL: https://gcc.gnu.org/viewcvs?rev=237091=gcc=rev Log: PR tree-optimization/71405 * tree-ssa.c

[Bug tree-optimization/71408] [7 Regression] wrong code at -Os and above on x86_64-linux-gnu

2016-06-04 Thread kugan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71408 --- Comment #3 from kugan at gcc dot gnu.org --- Looking into it. Looks like zero_one_operation is still broken.

[Bug tree-optimization/71407] [7 Regression] ICE at -O3 in 32-bit and 64-bit modes on x86_64-linux-gnu (verify_gimple: integral result type precision does not match field size of BIT_FIELD_REF)

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71407 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug fortran/71412] New: iso_c_bindings and optimization interaction bug

2016-06-04 Thread relliott at umn dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71412 Bug ID: 71412 Summary: iso_c_bindings and optimization interaction bug Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/71411] New: No warnings for OOB accesses with arrays of size 1

2016-06-04 Thread ch3root at openwall dot com
./a.out c = 1 a[0][c] = 5 a[0][1] = 7 ------ gcc version: gcc (GCC) 7.0.0 20160604 (experimental) For comparison: -- $ clang -std=c11 -Weverything -O3 test.c && ./a.out test.c

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #11 from Oleg Endo --- Author: olegendo Date: Sat Jun 4 11:00:58 2016 New Revision: 237090 URL: https://gcc.gnu.org/viewcvs?rev=237090=gcc=rev Log: gcc/ChangeLog PR tree-optimization/52171 * config/sh/sh.c

[Bug tree-optimization/71408] [7 Regression] wrong code at -Os and above on x86_64-linux-gnu

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71408 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/71406] [7 Regression] ICE on valid C++ code on x86_64-linux-gnu: in finish_class_member_access_expr, at cp/typeck.c:2782

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71406 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug tree-optimization/71405] [6/7 Regression] ICE on valid C++ code at -Os and above on x86_64-linux-gnu: verify_gimple failed

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

[Bug tree-optimization/71405] [6/7 Regression] ICE on valid C++ code at -Os and above on x86_64-linux-gnu: verify_gimple failed

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71405 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/71208] [6 regression] mmix: C++ code fails to link

2016-06-04 Thread hp at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71208 Hans-Peter Nilsson changed: What|Removed |Added CC||hp at gcc dot gnu.org

[Bug tree-optimization/71408] wrong code at -Os and above on x86_64-linux-gnu

2016-06-04 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71408 --- Comment #1 from Marc Glisse --- (Separately from the wrong code) some of the reads of c.f1 are represented as BIT_FIELD_REF & 262143, which prevents us from optimizing it to a constant (others that are represented as c.f1 work

[Bug tree-optimization/71410] New: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault

2016-06-04 Thread su at cs dot ucdavis.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71410 Bug ID: 71410 Summary: ICE on valid code at -O3 on x86_64-linux-gnu: Segmentation fault Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal

[Bug bootstrap/66947] Bootstrap error: Extraneous text after `else' directive

2016-06-04 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66947 Eric Botcazou changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/57466] [DR 1584] Argument deduction fails for 'const T*' when T is function type

2016-06-04 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57466 --- Comment #14 from Jonathan Wakely --- I agree that G++ seems to be correct according to the revised direction.

[Bug bootstrap/71409] New: darwin Comparing stages 2 and 3 slight failure

2016-06-04 Thread jay.krell at cornell dot edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71409 Bug ID: 71409 Summary: darwin Comparing stages 2 and 3 slight failure Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/71403] [7 Regression] wrong code (segfault) at -O3 on x86_64-linux-gnu

2016-06-04 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71403 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #9 from Max Wittal --- I still get this bug in gcc version 5.2.1 20151010 on x86_64-linux-gnu. Please see attached code.

[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions

2016-06-04 Thread max.wittal at mwittal dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Max Wittal changed: What|Removed |Added CC||max.wittal at mwittal dot de --- Comment

[Bug c++/70202] ICE on invalid code on x86_64-linux-gnu in build_simple_base_path, at cp/class.c:579

2016-06-04 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70202 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/70202] ICE on invalid code on x86_64-linux-gnu in build_simple_base_path, at cp/class.c:579

2016-06-04 Thread paolo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70202 --- Comment #2 from paolo at gcc dot gnu.org --- Author: paolo Date: Sat Jun 4 07:10:58 2016 New Revision: 237089 URL: https://gcc.gnu.org/viewcvs?rev=237089=gcc=rev Log: /cp 2016-06-04 Paolo Carlini PR

[Bug tree-optimization/71408] New: wrong code at -Os and above on x86_64-linux-gnu

2016-06-04 Thread su at cs dot ucdavis.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71408 Bug ID: 71408 Summary: wrong code at -Os and above on x86_64-linux-gnu Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug tree-optimization/71407] ICE at -O3 in 32-bit and 64-bit modes on x86_64-linux-gnu (verify_gimple: integral result type precision does not match field size of BIT_FIELD_REF)

2016-06-04 Thread chengniansun at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71407 Chengnian Sun changed: What|Removed |Added CC||chengniansun at gmail dot com ---

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 --- Comment #10 from Andreas Schwab --- ../../gcc/expr.c:1146:60: error: unused parameter 'mode' [-Werror=unused-parameter] move_by_pieces_d::generate (rtx op0, rtx op1, machine_mode mode)

[Bug middle-end/12086] memcmp(i,j,4) should use word (SI) subtraction

2016-06-04 Thread owner at bugs dot debian.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=12086 --- Comment #15 from owner at bugs dot debian.org --- Thank you for the additional information you have supplied regarding this Bug report. This is an automatically generated reply to let you know your message has been received. Your message

[Bug tree-optimization/52171] memcmp/strcmp/strncmp can be optimized when the result is tested for [in]equality with 0

2016-06-04 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52171 Andrew Pinski changed: What|Removed |Added Blocks||12086 --- Comment #9 from Andrew Pinski