[Bug rtl-optimization/87096] "Optimised" snprintf is not POSIX conformant

2018-08-26 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87096 --- Comment #3 from Richard Biener --- I don't think we "preserve" exceptional behavior consistently. That is, we happily change code with exceptional behavior to code without if the main computation result is the same.

[Bug ipa/87094] Suboptimal accounting for stack growth in inlining

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

[Bug testsuite/78529] gcc.c-torture/execute/builtins/strcat-chk.c failed with lto/O2

2018-08-26 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529 --- Comment #37 from rguenther at suse dot de --- On Fri, 24 Aug 2018, joey.ye at arm dot com wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78529 > > Joey Ye changed: > >What|Removed |Added > --

[Bug rtl-optimization/87096] "Optimised" snprintf is not POSIX conformant

2018-08-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87096 Andrew Pinski changed: What|Removed |Added CC||bugdal at aerifal dot cx --- Comment #2

[Bug c/87111] erroneous builtin snprintf transformations

2018-08-26 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87111 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/87111] New: erroneous builtin snprintf transformations

2018-08-26 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87111 Bug ID: 87111 Summary: erroneous builtin snprintf transformations Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

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

2018-08-26 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80528 Eric Gallager changed: What|Removed |Added CC||list+gcc-bugzilla@meyering.

[Bug c++/44520] improve diagnostic for ambiguous lookup

2018-08-26 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44520 Eric Gallager changed: What|Removed |Added CC||dmalcolm at gcc dot gnu.org,

[Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction

2018-08-26 Thread chengming at bjuci dot com.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87085 --- Comment #6 from chengming at bjuci dot com.cn --- Created attachment 44604 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44604&action=edit preprocessed file

[Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction

2018-08-26 Thread chengming at bjuci dot com.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87085 --- Comment #5 from chengming at bjuci dot com.cn --- Created attachment 44603 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44603&action=edit output of gcc

[Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction

2018-08-26 Thread chengming at bjuci dot com.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87085 --- Comment #4 from chengming at bjuci dot com.cn --- Created attachment 44602 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44602&action=edit ELF file compiled with command gcc -v -save-temps -m32 -march=i386 -fcf-protection=none -o onlyR

[Bug target/87085] with -march=i386, gcc should not generate code including endbr instruction

2018-08-26 Thread chengming at bjuci dot com.cn
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87085 --- Comment #3 from chengming at bjuci dot com.cn --- Created attachment 44601 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44601&action=edit C source code

[Bug target/52090] FAIL: c-c++-common/simulate-thread/bitfields-4.c -O2 -g thread simulation test

2018-08-26 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52090 --- Comment #1 from John David Anglin --- I believe this is probably a gdb bug. Calling the verify routine after each step can corrupt the register state. I don't see a way to save and restore all general registers in verify routine.

[Bug c/63303] Pointer subtraction is broken when using -fsanitize=undefined

2018-08-26 Thread jvg1981 at aim dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63303 --- Comment #20 from Joshua Green --- > "But if we don't know which pointer is greater, it gets more complicated: > ..." > > I'm not sure that this is true. For types that are larger than 1 byte, it > seems that one can do the subtraction after

[Bug preprocessor/87088] Attached program doesn't finish compiling and linking

2018-08-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87088 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug preprocessor/87088] Attached program doesn't finish compiling and linking

2018-08-26 Thread miltonkbenjamin at verizon dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87088 miltonkbenjamin changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug preprocessor/87088] Attached program doesn't finish compiling and linking

2018-08-26 Thread miltonkbenjamin at verizon dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87088 --- Comment #7 from miltonkbenjamin --- (In reply to miltonkbenjamin from comment #5) > (In reply to Jonathan Wakely from comment #2) > > (In reply to miltonkbenjamin from comment #0) > > > Created attachment 44589 [details] > > > Output from win

[Bug target/86662] [7/8/9 Regression] msp430-elf segfault with -flto and -mlarge

2018-08-26 Thread jozef.l at mittosystems dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86662 Jozef Lawrynowicz changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/86647] Test on constant expression (unsigned) -1 < 0 triggers a spurious -Wtype-limits warning

2018-08-26 Thread bernd.edlinger at hotmail dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86647 Bernd Edlinger changed: What|Removed |Added CC||bernd.edlinger at hotmail dot de --- C

[Bug preprocessor/87088] Attached program doesn't finish compiling and linking

2018-08-26 Thread miltonkbenjamin at verizon dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87088 --- Comment #6 from miltonkbenjamin --- (In reply to miltonkbenjamin from comment #5) > (In reply to Jonathan Wakely from comment #2) > > (In reply to miltonkbenjamin from comment #0) > > > Created attachment 44589 [details] > > > Output from win

[Bug preprocessor/87088] Attached program doesn't finish compiling and linking

2018-08-26 Thread miltonkbenjamin at verizon dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87088 --- Comment #5 from miltonkbenjamin --- (In reply to Jonathan Wakely from comment #2) > (In reply to miltonkbenjamin from comment #0) > > Created attachment 44589 [details] > > Output from win_flex > > > > C:\parser>g++ -Xpreprocessor "C:\MinGW\

[Bug fortran/29550] Optimize -fexternal-blas calls for conjg()

2018-08-26 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=29550 --- Comment #12 from Thomas Koenig --- Created attachment 44600 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44600&action=edit Patch which has a problem The attached patch shows how something could be done, but it has one problem: The ha

[Bug c/87110] New: tree check fail in to_wide, at tree.h:5523

2018-08-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87110 Bug ID: 87110 Summary: tree check fail in to_wide, at tree.h:5523 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c

[Bug fortran/86328] [8/9 Regression] Runtime segfault reading an allocatable class(*) object in allocate statements

2018-08-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86328 janus at gcc dot gnu.org changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug c++/87109] Wrong overload picked with ref-qualifiers

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109 --- Comment #1 from Marek Polacek --- I guess this can serve as a run-time testcase: #include struct C { int i; }; struct A { operator C() & { return { 1 }; } operator C() && { return { 2 }; } }; C f(A a) { return a; } C f2(A a) { re

[Bug fortran/86760] [8/9 Regression] FORTRAN: polymorphic arrays inside a user-defined type generate segmentation faults

2018-08-26 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86760 janus at gcc dot gnu.org changed: What|Removed |Added CC||janus at gcc dot gnu.org --- C

[Bug c++/87109] New: Wrong overload picked with ref-qualifiers

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109 Bug ID: 87109 Summary: Wrong overload picked with ref-qualifiers Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/87029] Add -Wredundant-move warning

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87029 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/87029] Add -Wredundant-move warning

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87029 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Sun Aug 26 16:45:51 2018 New Revision: 263863 URL: https://gcc.gnu.org/viewcvs?rev=263863&root=gcc&view=rev Log: PR c++/87029, Implement -Wredundant-move. * c.opt (Wred

[Bug c++/87108] New: Template partial specialization is ignored

2018-08-26 Thread ghabriel.nunes at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87108 Bug ID: 87108 Summary: Template partial specialization is ignored Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++

[Bug c++/87080] [9 Regression] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87080 Marek Polacek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/87080] [9 Regression] ice in cp_get_fndecl_from_callee, at cp/cvt.c:965

2018-08-26 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87080 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Sun Aug 26 16:31:27 2018 New Revision: 263862 URL: https://gcc.gnu.org/viewcvs?rev=263862&root=gcc&view=rev Log: PR c++/87080 * typeck.c (maybe_warn_pessimizing_move):

Reducing the Transaction Memory test case

2018-08-26 Thread sameeran joshi
Hi, I have found an ICE in the transaction memory extension while compiling a program with gcc,but unfortunately for filing a bug in the gcc bugzilla I am unable to reduce the buggy file with creduce . I have included the command line option -fgnu-tm while compiling it. Does creduce support transa

[Bug tree-optimization/87105] Autovectorization [X86, SSE2, AVX2, DoublePrecision]

2018-08-26 Thread kobalicek.petr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87105 --- Comment #6 from Petr --- I think the test-case can even be simplified to something like this: #include #include struct Point { double x, y; void reset(double x, double y) { this->x = x; this->y = y; } }; void f1(Point* p,

[Bug fortran/86481] [OOP] Memory leak with sourced allocation

2018-08-26 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86481 Paul Thomas changed: What|Removed |Added CC||pault at gcc dot gnu.org Assigne

[Bug web/87050] Bump wwwdocs to html5

2018-08-26 Thread gerald at pfeifer dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87050 --- Comment #9 from Gerald Pfeifer --- (In reply to jos...@codesourcery.com from comment #6) > A replacement for MetaHTML is already available, we just need to switch to > using it. > > https://gcc.gnu.org/ml/gcc-patches/2018-06/msg00176.html

[Bug c++/87107] New: Template instantiation is 50x slower than with clang++

2018-08-26 Thread ufospoke at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87107 Bug ID: 87107 Summary: Template instantiation is 50x slower than with clang++ Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug fortran/86704] [8/9 Regression] Segmentation fault when using matmul in combination with transpose

2018-08-26 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86704 Thomas Koenig changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug fortran/86704] [8/9 Regression] Segmentation fault when using matmul in combination with transpose

2018-08-26 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86704 --- Comment #6 from Thomas Koenig --- Author: tkoenig Date: Sun Aug 26 12:02:28 2018 New Revision: 263861 URL: https://gcc.gnu.org/viewcvs?rev=263861&root=gcc&view=rev Log: 2018-08-26 Thomas Koenig Backport from trunk PR libf

[Bug libstdc++/87106] New: Group move and destruction of the source, where possible, for speed

2018-08-26 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87106 Bug ID: 87106 Summary: Group move and destruction of the source, where possible, for speed Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: missed-optimi

[Bug c/53769] [C11]: Macros __STDC_NO_THREADS__ / __STDC_NO_ATOMIC__ missing.

2018-08-26 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53769 --- Comment #8 from Vincent Lefèvre --- (In reply to Florian Weimer from comment #7) > Furthermore, if I don't misread the standard, the expectation is that if an > implementation does not support threads, it still recognizes _Thread_local > and

[Bug tree-optimization/87105] Autovectorization [X86, SSE2, AVX2, DoublePrecision]

2018-08-26 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87105 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org --- Comm

[Bug tree-optimization/87105] Autovectorization [X86, SSE2, AVX2, DoublePrecision]

2018-08-26 Thread kobalicek.petr at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87105 --- Comment #4 from Petr --- I think this code is vectorizable without --fast-math. However, it seems that once a min/max (or something else) is kept scalar it poisons the rest of the code. The following code works perfectly (scalar): ``` #incl

[Bug tree-optimization/87105] Autovectorization [X86, SSE2, AVX2, DoublePrecision]

2018-08-26 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87105 --- Comment #3 from Marc Glisse --- With -ffast-math we (awkwardly) vectorize a couple min/max at the beginning, but clearly not the whole thing like llvm.