[Bug c/87367] New: GCC gives false warning on -Wnull-dereference when using -O2

2018-09-20 Thread mytbk920423 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87367 Bug ID: 87367 Summary: GCC gives false warning on -Wnull-dereference when using -O2 Product: gcc Version: 8.2.1 Status: UNCONFIRMED Severity: normal P

[Bug c/87367] GCC gives false warning on -Wnull-dereference when using -O2

2018-09-20 Thread mytbk920423 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87367 Iru Cai changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-20 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #11 from Dominique d'Humieres --- This is indeed caused by r263916.

[Bug c/87367] GCC gives false warning on -Wnull-dereference when using -O2

2018-09-20 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87367 --- Comment #2 from Andrew Pinski --- copy->next = list_new(); You dont check the return value here.

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #6 from Richard Biener --- So I tried debugging using LTO bootstrapped cc1. profiling gdb for a simple gdb ./cc1 (gdb) b do_rpo_vn (gdb) q yields Samples: 2K of event 'instructions', Event count (approx.): 45695722362 Ove

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #7 from Richard Biener --- The following makes it work for a simple C int main() {}. It's also a little bit less hacky... Index: gcc/dwarf2out.c === --- gcc/dwarf2out.c

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #8 from Richard Biener --- (In reply to Richard Biener from comment #7) > The following makes it work for a simple C int main() {}. It's also a little > bit less hacky... > > Index: gcc/dwarf2out.c >

[Bug middle-end/63155] [6/7/8/9 Regression] memory hog

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63155 --- Comment #31 from Richard Biener --- So we end up with an almost fully set ssa_edge_worklist because we add all the PHIs from blocks we already processed by having visited the backedge defs. But the backedge isn't actually yet executable and

[Bug fortran/87359] [9 regression] pointer being freed was not allocated

2018-09-20 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359 --- Comment #12 from Dominique d'Humieres --- The problem is with the file process_mci.f90: if I compile all the other files with r264428 and process_mci.f90 with r263915, the test succeeds.

[Bug target/86877] ICE in vectorizable_load, at tree-vect-stmts.c:8038

2018-09-20 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86877 --- Comment #2 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Sep 20 12:58:16 2018 New Revision: 264439 URL: https://gcc.gnu.org/viewcvs?rev=264439&root=gcc&view=rev Log: Add missing alignment checks in epilogue loop vectorisat

[Bug target/87288] [8/9 Regression] Segfault after const_cast with "-O2 -ftree-loop-vectorize" but _without_ "-mavx"

2018-09-20 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87288 --- Comment #9 from rsandifo at gcc dot gnu.org --- Author: rsandifo Date: Thu Sep 20 12:58:23 2018 New Revision: 264440 URL: https://gcc.gnu.org/viewcvs?rev=264440&root=gcc&view=rev Log: Fix PEELING_FOR_NITERS calculation (PR 87288) PEELING_F

[Bug target/87368] New: missing masking inline functions for VCVTSS2SD and VCVTSD2SS

2018-09-20 Thread jbeulich at novell dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87368 Bug ID: 87368 Summary: missing masking inline functions for VCVTSS2SD and VCVTSD2SS Product: gcc Version: 8.2.0 Status: UNCONFIRMED Severity: normal P

[Bug tree-optimization/53947] [meta-bug] vectorizer missed-optimizations

2018-09-20 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53947 Bug 53947 depends on bug 86877, which changed state. Bug 86877 Summary: ICE in vectorizable_load, at tree-vect-stmts.c:8038 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86877 What|Removed |Added

[Bug target/86877] ICE in vectorizable_load, at tree-vect-stmts.c:8038

2018-09-20 Thread rsandifo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86877 rsandifo at gcc dot gnu.org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolutio

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #9 from Richard Biener --- Created attachment 44729 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44729&action=edit patch This avoids most of the forwarders (slightly hackish) and adds linkage names. gdb startup is faster, mo

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #10 from Richard Biener --- (In reply to Richard Biener from comment #9) > Created attachment 44729 [details] > patch > > This avoids most of the forwarders (slightly hackish) and adds linkage names. > > gdb startup is faster, more

[Bug debug/87362] GCC produces with LTO debug info with which gdb is not happy about

2018-09-20 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 --- Comment #11 from Richard Biener --- (In reply to Richard Biener from comment #10) > (In reply to Richard Biener from comment #9) > > Created attachment 44729 [details] > > patch > > > > This avoids most of the forwarders (slightly hackish) a

[Bug fortran/87270] "FINAL" subroutine is called when compiled with "gfortran -O1", but not "gfortran -O0"

2018-09-20 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87270 janus at gcc dot gnu.org changed: What|Removed |Added CC||janus at gcc dot gnu.org,

[Bug target/87369] New: Regression on aarch64/copysign-bsl.c since r264264

2018-09-20 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87369 Bug ID: 87369 Summary: Regression on aarch64/copysign-bsl.c since r264264 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Compone

[Bug c++/87075] [7/8/9 Regression] ICE when compiling the test suite of GLM 0.9.9.0

2018-09-20 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87075 Jason Merrill changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a

[Bug c++/87075] [7/8/9 Regression] ICE when compiling the test suite of GLM 0.9.9.0

2018-09-20 Thread jason at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87075 --- Comment #6 from Jason Merrill --- Author: jason Date: Thu Sep 20 17:09:19 2018 New Revision: 264442 URL: https://gcc.gnu.org/viewcvs?rev=264442&root=gcc&view=rev Log: PR c++/87075 - ICE with constexpr array initialization. My patch

[Bug middle-end/87370] New: Regression in return struct code

2018-09-20 Thread trashyankes at wp dot pl
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87370 Bug ID: 87370 Summary: Regression in return struct code Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end

[Bug other/87371] New: Spurious -Wreturn-type warning with "pathological" for

2018-09-20 Thread mwoehlke.floss at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87371 Bug ID: 87371 Summary: Spurious -Wreturn-type warning with "pathological" for Product: gcc Version: 8.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Compo

[Bug c/63886] float will fit into int with abs - possible missing warning Wabsolute-value

2018-09-20 Thread egall at gwmail dot gwu.edu
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63886 --- Comment #12 from Eric Gallager --- I think someone added the -Wabsolute-value warning flag to GCC recently; is it ok to close this bug now?

[Bug middle-end/87370] Regression in return struct code

2018-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87370 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org --- Comment

[Bug fortran/87270] "FINAL" subroutine is called when compiled with "gfortran -O1", but not "gfortran -O0"

2018-09-20 Thread pault at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87270 --- Comment #3 from Paul Thomas --- (In reply to janus from comment #2) > (In reply to Dominique d'Humieres from comment #1) > > This seems to have been fixed by revision r264008 on trunk > > Seems the segfault is 'fixed' due to the fact that th

[Bug c++/86881] [8, 9 regression] tree check fail with flag Wshadow-compatible-local

2018-09-20 Thread clyon at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86881 --- Comment #8 from Christophe Lyon --- (In reply to Nathan Sidwell from comment #7) > Thanks Christophe, I noticed that when checking the 8 backport and committed > a fix, so updating should make it work. Indeed it works since r264394. Thanks!

[Bug middle-end/87054] misaligned asm output is turned into dereferenced pointer-to-aligned

2018-09-20 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87054 --- Comment #4 from Alexandre Oliva --- Author: aoliva Date: Thu Sep 20 19:34:44 2018 New Revision: 264450 URL: https://gcc.gnu.org/viewcvs?rev=264450&root=gcc&view=rev Log: [PR87054] fix unaligned access Building an ADDR_EXPR uses the canonica

[Bug bootstrap/87013] Error: junk at end of line, first unrecognized character is `i'

2018-09-20 Thread aoliva at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87013 --- Comment #9 from Alexandre Oliva --- Author: aoliva Date: Thu Sep 20 19:34:30 2018 New Revision: 264449 URL: https://gcc.gnu.org/viewcvs?rev=264449&root=gcc&view=rev Log: [PR87013] check for .loc is_stmt support in the assembler Back when we

[Bug bootstrap/87338] gcc 8.2 fails to bootstrap on ia64

2018-09-20 Thread glaubitz at physik dot fu-berlin.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87338 John Paul Adrian Glaubitz changed: What|Removed |Added CC||glaubitz at physik dot fu-be

[Bug other/87371] Spurious -Wreturn-type warning with "pathological" for

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

[Bug c/67629] bogus -Wreturn-type in a function with tautological if-else

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67629 Manuel López-Ibáñez changed: What|Removed |Added CC||mwoehlke.floss at gmail dot com --

[Bug middle-end/60725] [-Wreturn-type] false positive in trivial switch

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60725 Manuel López-Ibáñez changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/67629] bogus -Wreturn-type in a function with tautological if-else

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67629 Manuel López-Ibáñez changed: What|Removed |Added CC||skvadrik at gmail dot com --- Comm

[Bug c++/49931] valid code rejected (named operator)

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49931 Manuel López-Ibáñez changed: What|Removed |Added Keywords||rejects-valid Last reconfirmed|2

[Bug c++/85914] -Wreturn-type false positive with a ternary that is always false (fixed?)

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85914 Manuel López-Ibáñez changed: What|Removed |Added Status|UNCONFIRMED |WAITING Last reconfirmed|

[Bug c++/81674] gcc cannot detect missing initialisers for fields in constructors

2018-09-20 Thread manu at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81674 Manuel López-Ibáñez changed: What|Removed |Added Keywords||patch CC|

[Bug c++/85070] [8/9 Regression] ICE on C++ code: in lazily_declare_fn, at cp/method.c:2409

2018-09-20 Thread paolo.carlini at oracle dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85070 Paolo Carlini changed: What|Removed |Added CC||paolo.carlini at oracle dot com --- Comm

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

2018-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87109 --- Comment #5 from Marek Polacek --- Author: mpolacek Date: Thu Sep 20 23:20:19 2018 New Revision: 264452 URL: https://gcc.gnu.org/viewcvs?rev=264452&root=gcc&view=rev Log: PR c++/87109 - wrong ctor with maybe-rvalue semantics.

[Bug c++/85070] [8/9 Regression] ICE on C++ code: in lazily_declare_fn, at cp/method.c:2409

2018-09-20 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85070 --- Comment #5 from Nathan Sidwell --- || errorcount sounds completely plausible

[Bug c++/87372] New: __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-20 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 Bug ID: 87372 Summary: __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/40752] -Wconversion generates false warnings for operands not larger than target type

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=40752 Eric Gallager changed: What|Removed |Added CC||msebor at gcc dot gnu.org,

[Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete

2018-09-20 Thread dave.gittins at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172 --- Comment #26 from Gubbins --- If anyone is interested, I received the following response on my bug report with Apple. > This issue behaves as intended based on the following: > > The program produced by ld64 seems fine: > > [/tmp/35663253]>

[Bug lto/82172] Destruction of basic_string in basic_stringbuf::overflow with _GLIBCXX_USE_CXX11_ABI=0, -flto, and C++17 mode results in invalid delete

2018-09-20 Thread dave.gittins at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82172 --- Comment #27 from Gubbins --- > Dave, the fix for PR 86138 might also fix this case for Darwin - could you > check that please? I can confirm that using my homebrew-installed gcc 8.2.0 package on OSX, the issue no longer occurs. I don't know

[Bug rtl-optimization/18446] [meta-bug] We need to distinguish value extension and value truncation

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18446 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug rtl-optimization/18395] [meta-bug] combine needs to be templatized like a peepholer

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=18395 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 Marek Polacek changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug c++/16992] [meta-bug] -fpermissive causes some diagnostic problems

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=16992 Eric Gallager changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/14167] Unneeded C++ types are output in debug info due to use of static constants

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=14167 Eric Gallager changed: What|Removed |Added Keywords||wrong-debug CC|

[Bug target/21824] [meta-bug] bootstrap bugs for *-gnu*

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21824 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug other/21823] MAXPATHLEN usage in [gcc]/fixincludes

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=21823 Eric Gallager changed: What|Removed |Added Keywords||easyhack CC|

[Bug target/25893] [meta-bug] cris-linux: various libgomp tests fail

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25893 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug other/39302] [meta-bug] bugs waiting for Copyright Assignment acknowledgemt for ARC International (UK) Ltd

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39302 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug target/39725] [6/7/8/9 Regression][cond-optab] MIPS pessimizations on floating-point

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39725 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-20 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 --- Comment #2 from eric-bugs at omnifarious dot org --- Also, this works in clang 6.0 (with --std=c++17), but not gcc 8.2: #include constexpr int ce_strlen(char const *s) { int i = 0; while (s[i]) ++i; return i; } templat

[Bug bootstrap/17464] [meta-bug] The newly built gcc shared libraries aren't used for bootstap and check

2018-09-20 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17464 Eric Gallager changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug c++/70555] lambda capture of multi-dimensional VLA

2018-09-20 Thread godmar at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70555 Godmar Back changed: What|Removed |Added CC||godmar at gmail dot com --- Comment #10 fr

[Bug c++/70555] lambda capture of multi-dimensional VLA

2018-09-20 Thread godmar at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70555 --- Comment #11 from Godmar Back --- I have attached a test case where capture of multidimensional VLA results in internal compiler error: in expand_expr_real_1, at expr.c:9908 I do not know if this is a duplicate of this bug or a separate bug

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-20 Thread mpolacek at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 --- Comment #3 from Marek Polacek --- Patch for the original problem posted: https://gcc.gnu.org/ml/gcc-patches/2018-09/msg01206.html

[Bug c++/87372] [9 Regression] __PRETTY_FUNCTION__ not constexpr in gcc trunk on compiler explorer

2018-09-20 Thread eric-bugs at omnifarious dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87372 --- Comment #4 from eric-bugs at omnifarious dot org --- Should I file a new bug with my new comment in it? I should probably test against a trunk with your change in it first.

[Bug c++/87373] New: Packed structs are not handled properly on ARM architecture even with misaligned access is enabled

2018-09-20 Thread murat.ursavas at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87373 Bug ID: 87373 Summary: Packed structs are not handled properly on ARM architecture even with misaligned access is enabled Product: gcc Version: unknown Status: UNCONFIRME