[Bug target/48595] score-elf fails to build with --enable-werror-always

2019-08-08 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48595 Eric Gallager changed: What|Removed |Added Keywords||build Status|UNCONFIRMED

[Bug c++/80078] Incorrect classification of address of volatile as not constant

2019-08-08 Thread headch at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80078 --- Comment #3 from Christopher Head --- I tried 9.1 at gcc.godbolt.org and it looks like this is fixed. Anyone else care to take a look? If there are no further comments, I guess I’ll close this ticket in a few days.

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment

[Bug c++/90473] gcc does not call function in comma operator for default argument

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90473 Marek Polacek changed: What|Removed |Added Keywords||patch --- Comment #4 from Marek Polacek

[Bug driver/80545] option -Wstringop-overflow not recognized by Fortran

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

[Bug ada/82813] warning: '.builtin_memcpy' writing between 2 and 6 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82813 Bug 82813 depends on bug 80545, which changed state. Bug 80545 Summary: option -Wstringop-overflow not recognized by Fortran https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80545 What|Removed |Added

[Bug tree-optimization/89176] Vectorizer fails to consider narrower vector width for res[i] = v1[i] < v2[i] ? v2[i] : v1[i]

2019-08-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89176 H.J. Lu changed: What|Removed |Added CC||crazylht at gmail dot com --- Comment #2 from

[Bug c++/90473] gcc does not call function in comma operator for default argument

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90473 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/90473] gcc does not call function in comma operator for default argument

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90473 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug c++/91394] C++ ABI incompatibility (stdexcept)

2019-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91394 --- Comment #4 from Jonathan Wakely --- Some programs which happen to not use any new features might work with an older version of libstdc++.so but that is not guaranteed, and definitely not supported. Removing one or two functions from a

[Bug driver/91406] New: gcc -Q -v lies about what flags are enabled

2019-08-08 Thread sje at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91406 Bug ID: 91406 Summary: gcc -Q -v lies about what flags are enabled Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component:

[Bug target/47779] Problem cross-compiling trunk for bfin

2019-08-08 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47779 Jeffrey A. Law changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/91394] C++ ABI incompatibility (stdexcept)

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

[Bug libgcc/91379] internal compiler error __gcov_fork

2019-08-08 Thread cbunch at cfhp dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91379 --- Comment #4 from Clinton Bunch --- Setting the CFLAGS and CXXFLAGS to -O0 -g as suggested didn't help. It still blew up at the same point building libgcc. Interestingly, I noticed that it doesn't blow up if the code is compiled in -mlp64

[Bug c++/91405] [concepts] internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:41206

2019-08-08 Thread kingoipo at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91405 --- Comment #1 from Michael de Lang --- Correction, the reported line number for 7.4.0 is cp.parser.c:38874

[Bug c++/91405] New: [concepts] internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:41206

2019-08-08 Thread kingoipo at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91405 Bug ID: 91405 Summary: [concepts] internal compiler error: in synthesize_implicit_template_parm, at cp/parser.c:41206 Product: gcc Version: 9.1.0

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-08 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #19 from Martin Sebor --- That's a valid concern. Issuing a warning (either at the same time as or in lieu of the folding) would be a way to detect and prevent these kinds of problems. Exposing it to enough code (like in a whole

[Bug target/91229] RISC-V ABI problem with zero-length bit-fields and float struct fields

2019-08-08 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91229 Jim Wilson changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug target/91229] RISC-V ABI problem with zero-length bit-fields and float struct fields

2019-08-08 Thread wilson at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91229 --- Comment #3 from Jim Wilson --- Author: wilson Date: Thu Aug 8 19:04:56 2019 New Revision: 274215 URL: https://gcc.gnu.org/viewcvs?rev=274215=gcc=rev Log: RISC-V: Fix C ABI for flattened struct with 0-length bitfield. gcc/

[Bug tree-optimization/91403] GCC fails with ICE.

2019-08-08 Thread belyshev at depni dot sinp.msu.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91403 Serge Belyshev changed: What|Removed |Added CC||belyshev at depni dot sinp.msu.ru ---

[Bug tree-optimization/91403] GCC fails with ICE.

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91403 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/91334] [10 Regression] ICE in propagate_necessity at gcc/tree-ssa-dce.c:813 since r273791

2019-08-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91334 H.J. Lu changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug ipa/91404] New: [10 Regression] internal compiler error: Segmentation fault

2019-08-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91404 Bug ID: 91404 Summary: [10 Regression] internal compiler error: Segmentation fault Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug c++/91402] PowerPC unecessary -Wignored-attriubte warnings on template specialization with -mlongcall

2019-08-08 Thread andrewdkaster at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91402 --- Comment #1 from Andrew Kaster --- As a note, I was able to reproduce using godbolt, but they don't have very recent versions of gcc for powerpc: https://godbolt.org/z/20lNhf Of the available compilers: No warnings: power64le clang (trunk)

[Bug tree-optimization/91403] New: GCC fails with ICE.

2019-08-08 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91403 Bug ID: 91403 Summary: GCC fails with ICE. Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization

[Bug tree-optimization/91178] [9 Regression] Infinite recursion in split_constant_offset in slp after r260289

2019-08-08 Thread vsevolod.livinskij at frtk dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91178 --- Comment #17 from Vsevolod Livinskiy --- (In reply to Serge Belyshev from comment #16) > (In reply to Vsevolod Livinskiy from comment #15) > > I don't know if it is the same error or not, but the reproducer looks > > similar. > > This one is

[Bug go/86535] FreeBSD/PowerPC64 - Building Go Frontend support for gcc 7.3.0 fails

2019-08-08 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86535 --- Comment #23 from Ian Lance Taylor --- Look for _kern in runtime.inc. See what struct it is part of. The struct is likely defined in the generated file runtime_sysinfo.go. You may need to modify libgo/mkrsysinfo.sh to not add that struct

[Bug c++/79520] Spurious caching for constexpr arguments

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

[Bug c++/79520] Spurious caching for constexpr arguments

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79520 --- Comment #3 from Marek Polacek --- Author: mpolacek Date: Thu Aug 8 17:54:58 2019 New Revision: 274214 URL: https://gcc.gnu.org/viewcvs?rev=274214=gcc=rev Log: PR c++/79520 * g++.dg/cpp1y/constexpr-79520.C: New test. Added:

[Bug c++/91402] New: PowerPC unecessary -Wignored-attriubte warnings on template specialization with -mlongcall

2019-08-08 Thread andrewdkaster at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91402 Bug ID: 91402 Summary: PowerPC unecessary -Wignored-attriubte warnings on template specialization with -mlongcall Product: gcc Version: 7.4.0 Status: UNCONFIRMED

[Bug c++/79520] Spurious caching for constexpr arguments

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79520 Marek Polacek changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug c++/88330] Implement P0542R5, P1289R1, C++20 contract based programming.

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88330 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/88323] implement C++20 language features.

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88323 Bug 88323 depends on bug 88330, which changed state. Bug 88330 Summary: Implement P0542R5, P1289R1, C++20 contract based programming. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88330 What|Removed |Added

[Bug c++/88102] Implement P0542R5, C++20 contracts

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

[Bug c++/88323] implement C++20 language features.

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88323 Bug 88323 depends on bug 88102, which changed state. Bug 88102 Summary: Implement P0542R5, C++20 contracts https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88102 What|Removed |Added

[Bug c/91398] Possible missed optimization: Can a pointer be passed as hidden pointer in x86-64 System V ABI

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91398 --- Comment #1 from joseph at codesourcery dot com --- ABI question: is a function that returns a value through such a hidden pointer required not to write anything to the storage pointed to until it knows that it will definitely be returning

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 --- Comment #5 from joseph at codesourcery dot com --- It's *accessible objects* whose value on second return from setjmp is the same as when longjmp is called (unless non-volatile, automatic storage duration and changed between setjmp and

[Bug c++/81930] [meta-bug] Issues with -Weffc++

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81930 Bug 81930 depends on bug 57854, which changed state. Bug 57854 Summary: Would like to have a warning for virtual overrides without C++11 "override" keyword https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854 What|Removed

[Bug c++/57854] Would like to have a warning for virtual overrides without C++11 "override" keyword

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57854 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/80061] error on constexpr function with an unevaluated throw

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80061 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug tree-optimization/91227] pointer relational expression not folded but equivalent inequality is

2019-08-08 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91227 --- Comment #18 from joseph at codesourcery dot com --- I don't expect people to do such comparisons with addresses of local variables directly. It is plausible that they have a memmove-like function, and once it gets inlined the compiler can

[Bug c++/90313] [7/8/9/10 Regression] Is an assignment elided with gcc7.3 -O2?

2019-08-08 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90313 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED

[Bug c++/63391] Erroneous -Wsign-conversion with offsetof

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63391 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug driver/91396] Link error when I use -fvtable-verify=std and -static

2019-08-08 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91396 Eric Gallager changed: What|Removed |Added Keywords||link-failure CC|

[Bug c++/91334] [10 Regression] ICE in propagate_necessity at gcc/tree-ssa-dce.c:813 since r273791

2019-08-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91334 --- Comment #11 from H.J. Lu --- (In reply to Martin Liška from comment #10) > (In reply to H.J. Lu from comment #9) > > [hjl@gnu-mic-1 build_base_lto.]$ > > /export/gnu/import/git/gcc-test-spec-lto/usr/bin/g++ -S -DSPEC_CPU -DNDEBUG > >

[Bug c/91401] schedule + dist_schedule clauses rejected on distribute parallel for

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91401 Jakub Jelinek changed: What|Removed |Added Keywords||rejects-valid

[Bug c/91401] New: schedule + dist_schedule clauses rejected on distribute parallel for

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91401 Bug ID: 91401 Summary: schedule + dist_schedule clauses rejected on distribute parallel for Product: gcc Version: 9.1.1 Status: UNCONFIRMED Severity: normal

[Bug c++/87519] -Wsign-conversion -Wconversion explicit cast fails to silence warning

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #12 from Marek Polacek --- Fixed on trunk, will backport to 9.3 later.

[Bug c++/87519] -Wsign-conversion -Wconversion explicit cast fails to silence warning

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 --- Comment #11 from Marek Polacek --- Author: mpolacek Date: Thu Aug 8 15:37:46 2019 New Revision: 274211 URL: https://gcc.gnu.org/viewcvs?rev=274211=gcc=rev Log: PR c++/87519 - bogus warning with -Wsign-conversion. * typeck.c

[Bug tree-optimization/91400] New: __builtin_cpu_supports conjunction is optimized poorly

2019-08-08 Thread vanyacpp at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91400 Bug ID: 91400 Summary: __builtin_cpu_supports conjunction is optimized poorly Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug target/91399] New: parse_mtune_ctrl_str shouldn't use ix86_tune_ctrl_string

2019-08-08 Thread hjl.tools at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91399 Bug ID: 91399 Summary: parse_mtune_ctrl_str shouldn't use ix86_tune_ctrl_string Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal

[Bug c++/87519] -Wsign-conversion -Wconversion explicit cast fails to silence warning

2019-08-08 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87519 Marek Polacek changed: What|Removed |Added Keywords||patch Status|NEW

[Bug lto/91376] g++.dg/lto/pr90990 FAILs with gld 2.32.51

2019-08-08 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91376 --- Comment #8 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #7 from Martin Liška --- > (In reply to Martin Liška from comment #6) >> Good, then let me take a look. > > So I've just tested current master of binutils and I can see: >

[Bug c/91398] New: Possible missed optimization: Can a pointer be passed as hidden pointer in x86-64 System V ABI

2019-08-08 Thread no...@turm-lahnstein.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91398 Bug ID: 91398 Summary: Possible missed optimization: Can a pointer be passed as hidden pointer in x86-64 System V ABI Product: gcc Version: 9.1.0 Status: UNCONFIRMED

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #9 from Steinar H. Gunderson --- Putting this at the start of mem_strdupl() suppresses the warning: if (len + 1 == 0) __builtin_unreachable(); This seemingly also does: if (static_cast(len) < 0) __builtin_unreachable(); So

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #8 from Steinar H. Gunderson --- But all of those conditions include last_slash > path. I tried adding this just before the mem_strdupl() call: if (last_slash < path) { ib::fatal() << "Logic error.";

[Bug middle-end/91358] Wrong code with dynamic allocation and optional like class

2019-08-08 Thread matz at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91358 --- Comment #7 from Michael Matz --- (In reply to Antony Polukhin from comment #6) > (In reply to Michael Matz from comment #3) > > I don't really see any, no good idea here :-/ > > How about moving all the optimizations based on reading

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #7 from Marc Glisse --- (In reply to Steinar H. Gunderson from comment #6) > So basically GCC is worried that I might be calling allocate() with -1 > bytes, and gives a warning? Yes, although it might not always give the warning,

[Bug tree-optimization/91178] [9 Regression] Infinite recursion in split_constant_offset in slp after r260289

2019-08-08 Thread belyshev at depni dot sinp.msu.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91178 --- Comment #16 from Serge Belyshev --- (In reply to Vsevolod Livinskiy from comment #15) > I don't know if it is the same error or not, but the reproducer looks > similar. This one is different. It does not fail for me with -O3

[Bug middle-end/91358] Wrong code with dynamic allocation and optional like class

2019-08-08 Thread antoshkka at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91358 --- Comment #6 from Antony Polukhin --- (In reply to Michael Matz from comment #3) > I don't really see any, no good idea here :-/ How about moving all the optimizations based on reading uninitialized values under a flag like

[Bug driver/91396] Link error when I use -fvtable-verify=std and -static

2019-08-08 Thread niva at niisi dot msk.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91396 niva at niisi dot msk.ru changed: What|Removed |Added Version|unknown |7.4.0 --- Comment #1 from

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #6 from Steinar H. Gunderson --- So basically GCC is worried that I might be calling allocate() with -1 bytes, and gives a warning? last_slash presumably has to be >= path, given that it comes out of strrchr(). But maybe GCC won't

[Bug target/91052] [10 Regression] ICE in fix_reg_equiv_init, at ira.c:2705

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91052 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | Status|UNCONFIRMED

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #5 from Marc Glisse --- mem_strdupl calls allocate(len+1). If len+1 is 0, you proceed to write to s[len] i.e. 0[-1]. I think gcc would be happier if you handled this special case explicitly (you could error, trap, just assume it

[Bug target/91306] [MSP430] libgcc/crtstuff.c: Alignment of frame_dummy .init_array entry is too big

2019-08-08 Thread jozefl.gcc at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91306 --- Comment #4 from Jozef Lawrynowicz --- Should I submit a patch which changes uses of sizeof in alignment attributes to __alignof__? Or are you working on it?

[Bug c++/90313] [7/8/9/10 Regression] Is an assignment elided with gcc7.3 -O2?

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90313 Martin Liška changed: What|Removed |Added Keywords|needs-bisection | CC|

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #4 from Marc Glisse --- I guess it happens in some dead path that gcc doesn't know is dead. At some point, you look at last_slash-path+1. Here there is a branch on whether this number is 0, and if it is 0, nonsense happens (writing 0

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #3 from Steinar H. Gunderson --- Yes, the reduced one is awkward. Thus the unreduced one :-)

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #2 from Marc Glisse --- if (g == 0) return (char *)malloc(0); for (;;) ; so the only way this can return is if g is 0. This means that in j, k is -1, and you are calling memcpy with a huge

[Bug libstdc++/90415] [9/10 Regression] std::is_copy_constructible> is incomplete

2019-08-08 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90415 --- Comment #8 from Jonathan Wakely --- (In reply to Lei YU from comment #6) > @Jonathan Wakely Is there a quick fix for this? I would like to test it. If I had a fix I would have committed it.

[Bug c++/91397] -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 --- Comment #1 from Steinar H. Gunderson --- Created attachment 46689 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46689=edit Unreduced test case

[Bug c++/91397] New: -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807

2019-08-08 Thread steinar+gcc at gunderson dot no
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91397 Bug ID: 91397 Summary: -Wstringop-overflow specified bound 18446744073709551615 exceeds maximum object size 9223372036854775807 Product: gcc Version: 9.1.0

[Bug driver/91396] New: Link error when I use -fvtable-verify=std and -static

2019-08-08 Thread niva at niisi dot msk.ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91396 Bug ID: 91396 Summary: Link error when I use -fvtable-verify=std and -static Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c/91392] g++: internal compiler error: Aborted (program cc1plus)

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91392 --- Comment #3 from Martin Liška --- I would try any of these: https://mingw-w64.org/doku.php/download

[Bug lto/91287] LTO disables linking with scalar MASS library (Fortran only)

2019-08-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287 --- Comment #37 from rguenther at suse dot de --- On August 8, 2019 3:35:26 AM GMT+02:00, "luoxhu at cn dot ibm.com" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287 > >--- Comment #34 from Xiong Hu XS Luo --- >(In reply to

[Bug lto/91287] LTO disables linking with scalar MASS library (Fortran only)

2019-08-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287 --- Comment #36 from rguenther at suse dot de --- On August 8, 2019 10:27:38 AM GMT+02:00, "rsandifo at gcc dot gnu.org" wrote: >https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287 > >rsandifo at gcc dot gnu.org changed: > > What

[Bug c/91392] g++: internal compiler error: Aborted (program cc1plus)

2019-08-08 Thread harry.onslow at emenda dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91392 --- Comment #2 from Harry Onslow --- Hi Martin, Thanks for the message. I will try a newer version - Could you please advise on where I can download the latest release please? Regards, Harry

[Bug target/91386] open-iscsi iscsiadm miscompiled by LTO on aarch64

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91386 Martin Liška changed: What|Removed |Added Known to fail||10.0, 9.1.0 --- Comment #19 from Martin

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread ali at pivotal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 --- Comment #4 from Adam --- (In reply to Andrew Pinski from comment #3) > In theory other can cause a call to longjmp but gcc does not know it cannot. Thanks for the quick reply. I got the longjmp() part, it could be called anytime. The part

[Bug bootstrap/91352] [10 Regression] Jobserver detection uses fcntl, which is not available on mingw-w64

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91352 Martin Liška changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug rtl-optimization/66087] Invalid narrowing of MEM with containing POST_INC

2019-08-08 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66087 --- Comment #4 from Mikael Pettersson --- Still miscompiled by gcc-10.0, 9.1, and 8.3 at -O1 and above.

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 --- Comment #7 from Jakub Jelinek --- Forgot to say, if you are just looking for a workaround for the warning (note, -O2 -Wreturn-type doesn't warn, in this case you need also no optimizations), then I'd just move the return from the default:

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 --- Comment #6 from Martin Liška --- (In reply to Jakub Jelinek from comment #5) > (In reply to Martin Liška from comment #4) > > (In reply to Jakub Jelinek from comment #3) > > > I see dead code everywhere in the function, they must have some

[Bug lto/91287] LTO disables linking with scalar MASS library (Fortran only)

2019-08-08 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91287 rsandifo at gcc dot gnu.org changed: What|Removed |Added CC||rsandifo at gcc dot

[Bug sanitizer/86899] [8/9/10 regression] TSAN incorrect warning: control reaches end of non-void function

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86899 --- Comment #6 from Jakub Jelinek --- *** Bug 91389 has been marked as a duplicate of this bug. ***

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 --- Comment #3 from Andrew Pinski --- In theory other can cause a call to longjmp but gcc does not know it cannot.

[Bug libstdc++/90415] [9/10 Regression] std::is_copy_constructible> is incomplete

2019-08-08 Thread mine260309 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90415 --- Comment #7 from Lei YU --- Additional information. std::experimental::fundamentals_v1::any has no problem, so the below code compiles fine. ``` #include #include #include bool is_copy_constructible_tuple_any() { return

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 --- Comment #4 from Martin Liška --- (In reply to Jakub Jelinek from comment #3) > I see dead code everywhere in the function, they must have some weirdo macro > for cases that wraps everything in case something { ... } break; Is the 'break;'

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 --- Comment #3 from Jakub Jelinek --- I see dead code everywhere in the function, they must have some weirdo macro for cases that wraps everything in case something { ... } break; Many of those break; statements are dead code.

[Bug bootstrap/91352] [10 Regression] Jobserver detection uses fcntl, which is not available on mingw-w64

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91352 --- Comment #4 from Martin Liška --- Author: marxin Date: Thu Aug 8 07:50:28 2019 New Revision: 274208 URL: https://gcc.gnu.org/viewcvs?rev=274208=gcc=rev Log: Fix file descriptor existence of MinGW. 2019-08-08 Martin Liska PR

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread ali at pivotal dot io
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 --- Comment #2 from Adam --- I got the point "The local variables that do not have the volatile type and have been changed between the setjmp() invocation and longjmp() call are indeterminate" But save_exception_stack is not changed between the

[Bug target/91386] open-iscsi iscsiadm miscompiled by LTO on aarch64

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91386 --- Comment #18 from Martin Liška --- (In reply to Richard Earnshaw from comment #17) > Created attachment 46686 [details] > candidate patch > > Could you try this patch please? So far only very lightly tested. Sure, I'll test the problematic

[Bug libgcc/91379] internal compiler error __gcov_fork

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91379 --- Comment #3 from Martin Liška --- (In reply to Clinton Bunch from comment #2) > As I stated, I've tried to compile 4.9.4, 5.3.0, 5.5.0, 6.1.0, 6.5.0 and > 8.3.0 I get the same error on all of them. I reported on 9.1.0 as it is the > current

[Bug sanitizer/91389] [7/8/9/10 Regression] error: control reaches end of non-void function with -fsanitize=thread since r219201

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91389 --- Comment #2 from Martin Liška --- Created attachment 46688 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46688=edit Original test-case I'm fine with the approach to remove a dead code. However, I can't easily find what to change in

[Bug c/91392] g++: internal compiler error: Aborted (program cc1plus)

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91392 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug lto/91393] lto1: internal compiler error: decompressed stream: Destination buffer is too small

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91393 Martin Liška changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug middle-end/91395] Report an uninitialized variable on its initialization statement (setjmp)

2019-08-08 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91395 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Component|c

[Bug c++/91334] [10 Regression] ICE in propagate_necessity at gcc/tree-ssa-dce.c:813 since r273791

2019-08-08 Thread marxin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91334 --- Comment #10 from Martin Liška --- (In reply to H.J. Lu from comment #9) > [hjl@gnu-mic-1 build_base_lto.]$ > /export/gnu/import/git/gcc-test-spec-lto/usr/bin/g++ -S -DSPEC_CPU -DNDEBUG > -DAPP_NO_THREADS -DXALAN_INMEM_MSG_LOADER -I.

[Bug libstdc++/90415] [9/10 Regression] std::is_copy_constructible> is incomplete

2019-08-08 Thread mine260309 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90415 Lei YU changed: What|Removed |Added CC||mine260309 at gmail dot com --- Comment #6

  1   2   >