[Bug c/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

2017-01-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79244 --- Comment #2 from David Binderman --- Goes wrong in revision 241727, dated 20161101.

[Bug preprocessor/79210] "internal compiler error: in get_substring_ranges_for_loc" processing -Wformat-signedness warning

2017-01-26 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79210 --- Comment #4 from David Malcolm --- I'm not able to reproduce the assertion failure, with xgcc (GCC) 7.0.1 20170120 (experimental); on x86_64-pc-linux-gnu. $ ./xgcc -B. -c /tmp/test.c -Wformat -Wformat-signedness /tmp/test.c: In function ‘lpfc

[Bug libstdc++/79246] New: [C++17] with versioned namespace: FAIL: 27_io/manipulators/standard/wchar_t/2.cc (test for excess errors)

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79246 Bug ID: 79246 Summary: [C++17] with versioned namespace: FAIL: 27_io/manipulators/standard/wchar_t/2.cc (test for excess errors) Product: gcc Version: 7.0.1

[Bug fortran/79247] New: Race condition on OpenMP reduction variable

2017-01-26 Thread paul.k.romano at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79247 Bug ID: 79247 Summary: Race condition on OpenMP reduction variable Product: gcc Version: 6.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortr

[Bug target/65482] -mno-allow-movmisalign undocumented

2017-01-26 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65482 --- Comment #4 from Bill Schmidt --- OK, that explains how we got here. At the moment, the usage of the flag only matters to the test suite when running on older hardware. On P8, the test suite uses -mpower8-vector rather than -mvsx -mno-allow-

[Bug translation/79248] New: Typo in symtab.c:1032 "byt" instead of "but"

2017-01-26 Thread fmarchal at perso dot be
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79248 Bug ID: 79248 Summary: Typo in symtab.c:1032 "byt" instead of "but" Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: transl

[Bug c++/68727] [5/6/7 regression] invalid offsetof expressions accepted

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68727 --- Comment #5 from Jakub Jelinek --- Author: jakub Date: Thu Jan 26 19:39:40 2017 New Revision: 244949 URL: https://gcc.gnu.org/viewcvs?rev=244949&root=gcc&view=rev Log: PR c++/68727 * cp-tree.def (OFFSETOF_EXPR): Bump number of

[Bug libstdc++/70607] [5/6/7 Regression] The return type of std::conj must be std::complex

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70607 --- Comment #9 from Jonathan Wakely --- Author: redi Date: Thu Jan 26 19:40:02 2017 New Revision: 244951 URL: https://gcc.gnu.org/viewcvs?rev=244951&root=gcc&view=rev Log: PR libstdc++/70607 revert recent changes to PR libstdc++/70607

[Bug tree-optimization/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

2017-01-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79244 --- Comment #3 from David Binderman --- Seems ok in revision 240685,so that gives a band of [240685, 241727) for the bug.

[Bug translation/79248] Typo in symtab.c:1032 "byt" instead of "but"

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79248 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug fortran/79247] Race condition on OpenMP reduction variable

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79247 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/68727] [5/6/7 regression] invalid offsetof expressions accepted

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68727 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug fortran/79247] Race condition on OpenMP reduction variable

2017-01-26 Thread paul.k.romano at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79247 --- Comment #2 from Paul Romano --- Thanks for clarifying!

[Bug tree-optimization/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

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

[Bug tree-optimization/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79244 --- Comment #5 from Jakub Jelinek --- Slightly cleaned up testcase: long buf[5]; int bar (void); int foo (int x) { int y = __builtin_setjmp (buf); while (x != 3 && x && x && x != 2) x = bar (); return y; }

[Bug fortran/79165] 100% compile-time increase for polyhedron aermod by r244581

2017-01-26 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79165 --- Comment #20 from David Malcolm --- Some other benchmarks spiked at same time (and recovered with the removal of the bad linemap): * "doduc" (from 3.5s up to to 4.s) (with the bad linemap, get_next_line is 15% of the profile (in perf)

[Bug fortran/79165] 100% compile-time increase for polyhedron aermod by r244581

2017-01-26 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79165 --- Comment #21 from David Malcolm --- (In reply to David Malcolm from comment #19) [...] > In particular, repeated accesses to the same source line are more expensive > that they could be: each time it tries to count forwards from the last > lin

[Bug c++/67273] Incorrect -Wshadow warning with generic lambdas

2017-01-26 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67273 Nathan Sidwell changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug fortran/79165] 100% compile-time increase for polyhedron aermod by r244581

2017-01-26 Thread dmalcolm at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79165 David Malcolm changed: What|Removed |Added Status|ASSIGNED|NEW Assignee|dmalcolm at gcc d

[Bug tree-optimization/79244] [7 Regression] ice in replace_uses_by, at tree-cfg.c:1866

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79244 --- Comment #6 from Jakub Jelinek --- So here we have (ab) SSA_NAME as lhs and we try to replace it with non-(ab) SSA_NAME, which isn't supported except for virtual operands. So, one possibility I see is if lhs is (ab) and var is SSA_NAME that is

[Bug c++/79249] New: Lambda call does not create exception handler.

2017-01-26 Thread jesse at mind dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 Bug ID: 79249 Summary: Lambda call does not create exception handler. Product: gcc Version: 6.2.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c+

[Bug c++/79249] Lambda call does not create exception handler.

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code Status|UNCONFIR

[Bug c++/79249] Lambda call does not create exception handler.

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 --- Comment #2 from Jonathan Wakely --- Reduced: template auto attempt(FnT f) { return [f]() { try { f(); } catch(...) { __builtin_puts("caught"); } }; } // More complex behavior does not seem to mat

[Bug c++/79249] Lambda call does not create exception handler.

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79249 --- Comment #3 from Jonathan Wakely --- Slightly further reduced: template auto attempt(FnT f) { return [f]() { try { f(); } catch(...) { __builtin_puts("caught"); } }; } // More complex behavior doe

[Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM

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

[Bug libstdc++/79243] [7 Regression] Ambiguity with and versioned namespaces

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79243 Jonathan Wakely changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM

2017-01-26 Thread vogt at linux dot vnet.ibm.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79131 --- Comment #5 from Dominik Vogt --- The tests cases from the first message still fail using a cross compiler and r244951.

[Bug middle-end/78703] -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point

2017-01-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78703 --- Comment #9 from Martin Sebor --- Author: msebor Date: Thu Jan 26 21:14:18 2017 New Revision: 244953 URL: https://gcc.gnu.org/viewcvs?rev=244953&root=gcc&view=rev Log: PR middle-end/78703 -fprintf-return-value floating point handling incorrec

[Bug other/79250] New: brig/brigfrontend/brig-to-generic.cc: two small problems

2017-01-26 Thread dcb314 at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79250 Bug ID: 79250 Summary: brig/brigfrontend/brig-to-generic.cc: two small problems Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priorit

[Bug c++/78690] [7 Regression] ICE in cxx_incomplete_type_diagnostic, at cp/typeck2.c:552

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78690 --- Comment #4 from Jakub Jelinek --- Another testcase for this: struct C; template struct A { struct C { static void bar (); }; }; template struct B { using A::C; void foo () { C.bar (); } };

[Bug target/79251] New: PowerPC vec_insert generates store-hit-load if the element number is variable

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79251 Bug ID: 79251 Summary: PowerPC vec_insert generates store-hit-load if the element number is variable Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: enh

[Bug target/79251] PowerPC vec_insert generates store-hit-load if the element number is variable

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79251 Michael Meissner changed: What|Removed |Added Priority|P3 |P5 CC|

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 --- Comment #14 from Jakub Jelinek --- Author: jakub Date: Thu Jan 26 21:44:49 2017 New Revision: 244954 URL: https://gcc.gnu.org/viewcvs?rev=244954&root=gcc&view=rev Log: PR debug/78835 * dwarf2out.c (prune_unused_types): Mark a

[Bug debug/78835] [7 regression] ICE with -fdebug-types-section and member function

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78835 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c++/79129] [7 Regression] ICE with -fdebug-types-section starting with r240578

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79129 --- Comment #3 from Jakub Jelinek --- Author: jakub Date: Thu Jan 26 21:45:57 2017 New Revision: 244955 URL: https://gcc.gnu.org/viewcvs?rev=244955&root=gcc&view=rev Log: PR debug/79129 * dwarf2out.c (generate_skeleton_bottom_up)

[Bug c++/79129] [7 Regression] ICE with -fdebug-types-section starting with r240578

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79129 Jakub Jelinek changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug target/79252] New: Improve code generation of vec_insert on PowerPC ISA 2.07 (i.e. power8)

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79252 Bug ID: 79252 Summary: Improve code generation of vec_insert on PowerPC ISA 2.07 (i.e. power8) Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: enhanceme

[Bug target/79251] PowerPC vec_insert generates store-hit-load if the element number is variable

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79251 --- Comment #1 from Michael Meissner --- Created attachment 40595 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40595&action=edit File to show various vector inserts Compile this file with -O2 -mcpu=power9 (or -O2 -mcpu=power8), and look

[Bug target/79251] PowerPC vec_insert generates store-hit-load if the element number is variable

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79251 Michael Meissner changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug target/79252] Improve code generation of vec_insert on PowerPC ISA 2.07 (i.e. power8)

2017-01-26 Thread meissner at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79252 --- Comment #1 from Michael Meissner --- Created attachment 40594 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40594&action=edit Test case to show the various vec_inserts Compile this code with -O2 -mcpu=power8, and look at the various v

[Bug target/79131] [7 Regression] ICE: in extract_constrain_insn, at recog.c:2213, big-endian ARM

2017-01-26 Thread vmakarov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79131 --- Comment #6 from Vladimir Makarov --- (In reply to Jakub Jelinek from comment #4) > So, is this now fixed or is further work needed? A further work is needed. There are a few different problems with the big endian support. I'll submit more

[Bug c++/79253] New: [7 Regression] ICE in tsubst_copy starting with r243723

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79253 Bug ID: 79253 Summary: [7 Regression] ICE in tsubst_copy starting with r243723 Product: gcc Version: 7.0 Status: UNCONFIRMED Severity: normal Priority

[Bug c++/79253] [7 Regression] ICE in tsubst_copy starting with r243723

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79253 Jakub Jelinek changed: What|Removed |Added Priority|P3 |P1 Status|UNCONFIRMED

[Bug c++/78896] [C++17] Segmentation fault occurs when use variable initialized using structured binding with capture-by-ref lambda

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78896 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug lto/79061] [7 Regression][LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco"

2017-01-26 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79061 --- Comment #29 from Jakub Jelinek --- (In reply to Maxim Ostapenko from comment #28) > > In short, the easiest fix is just to disable the initialization order > > checking altogether for LTO (by forcing dynamically_initialized = 0 in LTO). > >

[Bug preprocessor/79210] "internal compiler error: in get_substring_ranges_for_loc" processing -Wformat-signedness warning

2017-01-26 Thread arnd at linaro dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79210 --- Comment #5 from Arnd Bergmann --- Created attachment 40596 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40596&action=edit test case with correct whitespace I thought I had tried it with the source pasted from the bug last time, but t

[Bug middle-end/78703] -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point

2017-01-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78703 --- Comment #10 from Martin Sebor --- Author: msebor Date: Thu Jan 26 23:07:02 2017 New Revision: 244956 URL: https://gcc.gnu.org/viewcvs?rev=244956&root=gcc&view=rev Log: PR middle-end/78703 - fprintf-return-value floating point handling incorr

[Bug middle-end/78703] -fprintf-return-value floating point handling incorrect in locales with a mulltibyte decimal point

2017-01-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78703 Martin Sebor changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug c/79216] Feature request: byte order attributes

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216 --- Comment #8 from H. Peter Anvin --- I guess I'm confused why it would not be possible to specify the endianness of a scalar, or perhaps far more importantly a pointer to a scalar. Other than that, this feature seems to do 90% of what I was as

[Bug middle-end/78468] [7 regression] libgomp.c/reduction-10.c and many more FAIL

2017-01-26 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78468 --- Comment #23 from Eric Botcazou --- Created attachment 40597 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40597&action=edit Tentative fix I'm going to test.

[Bug c/79219] Feature request: double width/single width -> single width integer division and remainder

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219 --- Comment #4 from H. Peter Anvin --- There are a few issues with that: a) the overflow behavior is inherently different, which is why the inline you propose doesn't work. Try compiling the attached program, on x86-64 it produces a call to __u

[Bug c/79217] Feature request: high half of an integer multiplication

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79217 --- Comment #1 from H. Peter Anvin --- Created attachment 40598 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40598&action=edit Source code

[Bug c/79217] Feature request: high half of an integer multiplication

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79217 --- Comment #2 from H. Peter Anvin --- Created attachment 40599 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40599&action=edit Preprocessor output

[Bug c/79217] Feature request: high half of an integer multiplication

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79217 --- Comment #3 from H. Peter Anvin --- Created attachment 40600 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40600&action=edit Assembly output

[Bug c/79217] Feature request: high half of an integer multiplication

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79217 --- Comment #4 from H. Peter Anvin --- My apologies for the three attachments; I incorrectly attached them to the wrong bug report.

[Bug c/79216] Feature request: byte order attributes

2017-01-26 Thread ebotcazou at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216 --- Comment #9 from Eric Botcazou --- > I guess I'm confused why it would not be possible to specify the endianness > of a scalar, or perhaps far more importantly a pointer to a scalar. Other > than that, this feature seems to do 90% of what I w

[Bug c/79219] Feature request: double width/single width -> single width integer division and remainder

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219 --- Comment #5 from H. Peter Anvin --- Created attachment 40601 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40601&action=edit Test case: source code

[Bug c/79219] Feature request: double width/single width -> single width integer division and remainder

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219 --- Comment #6 from H. Peter Anvin --- Created attachment 40602 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40602&action=edit Test case: preprocessor output

[Bug c/79219] Feature request: double width/single width -> single width integer division and remainder

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219 --- Comment #7 from H. Peter Anvin --- Created attachment 40603 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40603&action=edit Test case: assembly output

[Bug c/79219] Feature request: double width/single width -> single width integer division and remainder

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219 --- Comment #8 from H. Peter Anvin --- (In reply to Richard Biener from comment #1) > So you mean DW/W -> W, but that can result in the result being not > representable? > What's the desired behavior in this case? Invoking undefined behavior? W

[Bug c/79217] Feature request: high half of an integer multiplication

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79217 --- Comment #5 from H. Peter Anvin --- As noted on bug 79219 there are a few issues with simply relying on __int128, even if 32 bits is the natural "limb" size on a 32-bit architecture. a) it requires algorithms to be implemented using lengthy (

[Bug c/79216] Feature request: byte order attributes

2017-01-26 Thread hpa at zytor dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79216 --- Comment #10 from H. Peter Anvin --- It is not. I guess I'd like to modify the request to allow __attribute__((scalar_storage_order())) to be specified for scalar *pointer*. That would bring the 90% up to 99% at the very least; the inability

[Bug libstdc++/79254] New: basic_string::operator= isn't exception safe

2017-01-26 Thread gcc-bugzilla at daryl dot haresign.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 Bug ID: 79254 Summary: basic_string::operator= isn't exception safe Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: li

[Bug c/69602] [6/7 Regression] over-ambitious logical-op warning on EAGAIN vs EWOULDBLOCK

2017-01-26 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602 --- Comment #17 from Manuel López-Ibáñez --- (In reply to Martin Sebor from comment #16) > There are straightforward ways to avoid interspersing code with preprocessor > conditionals: Will GCC adopt this approach so that the warning can be enabl

[Bug tree-optimization/71433] [7 Regression] -Warray-bounds false positive with -O2

2017-01-26 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71433 Vincent Lefèvre changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|FIXED

[Bug target/79211] ICE in extract_insn, at recog.c:2311

2017-01-26 Thread segher at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79211 --- Comment #1 from Segher Boessenkool --- I cannot reproduce this problem; are there any special (configure) flags I need?

[Bug tree-optimization/71433] [7 Regression] -Warray-bounds false positive with -O2

2017-01-26 Thread vincent-gcc at vinc17 dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71433 --- Comment #12 from Vincent Lefèvre --- New test case, based on the previous one (just a __builtin_expect added): int t[1]; int a (void); int fct (int r, long e, int neg) { int d = 0; if (r == 4) r = neg ? 3 : 2; if (__builtin_expect(

[Bug c/69602] [6/7 Regression] over-ambitious logical-op warning on EAGAIN vs EWOULDBLOCK

2017-01-26 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602 --- Comment #18 from Martin Sebor --- I don't know the full history behind this particular warning but I think a good way to find out if it can be adopted by GCC is to see the extent of the changes required to clean up the code base so it compile

[Bug libstdc++/79254] basic_string::operator= isn't exception safe

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug libstdc++/79254] basic_string::operator= isn't exception safe

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 --- Comment #2 from Jonathan Wakely --- Created attachment 40604 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40604&action=edit Untested patch

[Bug libstdc++/79254] basic_string::operator= isn't exception safe

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 --- Comment #3 from Jonathan Wakely --- That patch is wrong, it also needs this in the catch block to restore the original allocator: _M_get_allocator() = __guard._M_alloc;

[Bug libstdc++/79254] [5/6/7 Regression] basic_string::operator= isn't exception safe

2017-01-26 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 Jonathan Wakely changed: What|Removed |Added Known to work||4.9.4 Version|unknown

[Bug libstdc++/79254] [5/6/7 Regression] basic_string::operator= isn't exception safe

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

[Bug libstdc++/79254] [5/6/7 Regression] basic_string::operator= isn't exception safe

2017-01-26 Thread gcc-bugzilla at daryl dot haresign.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 --- Comment #6 from Daryl Haresign --- I guess you don't want _M_copy_assign to be public, either.

[Bug libstdc++/79254] [5/6/7 Regression] basic_string::operator= isn't exception safe

2017-01-26 Thread gcc-bugzilla at daryl dot haresign.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79254 --- Comment #7 from Daryl Haresign --- I would also be inclined to reverse your Guard: have it take 'this', have an 'activate' method which swaps in the new values, have a 'deactivate' method which releases the memory, and have its destructor swa

[Bug c++/79241] error wen compiling -Os, OK with another optimizations

2017-01-26 Thread night_ghost at ykoctpa dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79241 --- Comment #5 from night_ghost at ykoctpa dot ru --- I'll try to exclude maximum of unneeded code from testcase and then upload it.

<    1   2