[Bug libstdc++/87194] New: Associative container cannot be inserted from move iterators that refer to elements implicitly convertible to value_type

2018-09-02 Thread kariya_mitsuru at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87194 Bug ID: 87194 Summary: Associative container cannot be inserted from move iterators that refer to elements implicitly convertible to value_type Product: gcc

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #7 from Rich Felker --- Nope. If the array is not in a struct, the warning works, e.g. void bar(void *); void foo() { int a[10]; bar(a+12); }

[Bug c++/87178] Compilation failure when program contains multiple variables allocated in particular section, and at least one variable is C++17 "inline"

2018-09-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87178 Andrew Pinski changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #6 from Marc Glisse --- I think the warning is about *accessing* (read or write) out of bound, not just creating a pointer. That sounds like a separate warning (clang calls it -Warray-bounds-pointer-arithmetic).

[Bug c/87191] UBSan doesn't catch invalid pointer arithmetic outside known object bounds

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87191 --- Comment #2 from Rich Felker --- This PR is about UBSan. I agree it's usually preferable to detect this type of error statically by warnings, and I also filed #87192 for -Warray-bounds not being able to catch the specific type of case I was

[Bug libstdc++/87193] New: symbols in have inconsistent types

2018-09-02 Thread webrown.cpp at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87193 Bug ID: 87193 Summary: symbols in have inconsistent types Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #5 from Rich Felker --- By "second" I meant in membership order, i.e. after the array. I understand the need for supporting some (albeit wrong, UB even in C89) legacy code doing FAM hacks, but it should be possible to disable that

[Bug middle-end/87157] [9 regression] gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails starting with r263981

2018-09-02 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87157 --- Comment #7 from Bill Schmidt --- OK, that makes sense. And I verified that r263981 does indeed introduce the extra functions. Thanks for looking into it!

[Bug middle-end/87157] [9 regression] gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails starting with r263981

2018-09-02 Thread hubicka at ucw dot cz
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87157 --- Comment #6 from Jan Hubicka --- > But this change to sreal seems very unlikely to cause that. > Are we sure about the bisection to r263981? Sreals are used to estimate profile which in turn may affect decision of function splitting &

[Bug tree-optimization/87186] Does not inline constant to simplify bitwise expression

2018-09-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87186 --- Comment #3 from Andrew Pinski --- Can you provide a full testcase that can compile?

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #4 from Andrew Pinski --- (In reply to Rich Felker from comment #3) > Adding a second member int b; does not make it work. Was that second member before or after the array? > is it for the sake of supporting > code with erroneous

[Bug middle-end/87157] [9 regression] gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails starting with r263981

2018-09-02 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87157 --- Comment #5 from Bill Schmidt --- So, the test case compiled with r264043 produces 3 functions: main1.part.0, main1, and main. The test case compiled with r263980 produces only 1 function (main). The loop is vectorized in both main and

[Bug web/87050] Bump wwwdocs to html5

2018-09-02 Thread gerald at pfeifer dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87050 --- Comment #10 from Gerald Pfeifer --- Mostly done, cf. https://gcc.gnu.org/ml/gcc/2018-09/msg5.html And for the actual conversion, cf. https://gcc.gnu.org/ml/gcc-patches/2018-09/msg00026.html The sole page not labeled as HTML 5 now is

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #3 from Rich Felker --- Adding a second member int b; does not make it work. I'm not sure why the end of the struct should be special anyway; is it for the sake of supporting code with erroneous alternatives to flexible array

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #1 from Andrew Pinski --- This is most likely due to the array being at the end of the struct.

[Bug c/87192] -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 --- Comment #2 from Andrew Pinski --- (In reply to Andrew Pinski from comment #1) > This is most likely due to the array being at the end of the struct. There is most likely another bug about this same thing.

[Bug c/87191] UBSan doesn't catch invalid pointer arithmetic outside known object bounds

2018-09-02 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87191 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug c/87192] New: -Warray-bounds (even =2) does not work on struct members

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87192 Bug ID: 87192 Summary: -Warray-bounds (even =2) does not work on struct members Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug target/68178] [arm] Relative address expressions bind at as-time, even if symbol is weak

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68178 --- Comment #10 from Rich Felker --- Was this ever fixed? I've been using -ffunction-sections -fdata-sections by default for a long time now so it dropped off my radar.

[Bug c/87191] New: UBSan doesn't catch invalid pointer arithmetic outside known object bounds

2018-09-02 Thread bugdal at aerifal dot cx
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87191 Bug ID: 87191 Summary: UBSan doesn't catch invalid pointer arithmetic outside known object bounds Product: gcc Version: unknown Status: UNCONFIRMED Severity:

[Bug web/87190] Feedback on documentation for symbol visibility

2018-09-02 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87190 --- Comment #3 from Alexander Monakov --- Remember that -fvisibility is not a perfect substitute to proper annotations via the visibility pragma and attributes. If you do extern void foo(void); void bar() { foo(); } then with

[Bug web/87190] Feedback on documentation for symbol visibility

2018-09-02 Thread amonakov at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87190 Alexander Monakov changed: What|Removed |Added CC||amonakov at gcc dot gnu.org ---

[Bug c++/87178] Compilation failure when program contains multiple variables allocated in particular section, and at least one variable is C++17 "inline"

2018-09-02 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87178 --- Comment #2 from Jakub Jelinek --- I believe it is rejects-invalid instead. comdat works at the section granularity, so can't really work if you force inline vars with other vars into the same section.

[Bug c++/87178] Compilation failure when program contains multiple variables allocated in particular section, and at least one variable is C++17 "inline"

2018-09-02 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87178 Jonathan Wakely changed: What|Removed |Added Keywords||rejects-valid

[Bug c++/53972] array constant expression not valid as template argument

2018-09-02 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53972 Eric Gallager changed: What|Removed |Added CC||jason at redhat dot com,

[Bug middle-end/87157] [9 regression] gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails starting with r263981

2018-09-02 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87157 --- Comment #4 from Bill Schmidt --- Created attachment 44649 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44649=edit vect details dump for r264043 Here's the requested dump information.

[Bug web/87190] Feedback on documentation for symbol visibility

2018-09-02 Thread noloader at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87190 --- Comment #1 from Jeffrey Walton --- In case it is needed, here's the citation for "Remember the docs say all symbols are private (not some symbols)": https://gcc.gnu.org/onlinedocs/gcc/Code-Gen-Options.html: Set the default ELF image symbol

[Bug web/87190] New: Feedback on documentation for symbol visibility

2018-09-02 Thread noloader at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87190 Bug ID: 87190 Summary: Feedback on documentation for symbol visibility Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug tree-optimization/87188] Function pointer canonicalization optimized away

2018-09-02 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188 --- Comment #2 from John David Anglin --- Created attachment 44648 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=44648=edit Preprocessed source

[Bug tree-optimization/87188] Function pointer canonicalization optimized away

2018-09-02 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188 John David Anglin changed: What|Removed |Added Component|middle-end |tree-optimization --- Comment #1

[Bug libgcc/87189] libgcc/gthr-posix.h (__gthread_active_p) makes unwarranted assumptions about libpthread.a

2018-09-02 Thread ppluzhnikov at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 --- Comment #1 from Paul Pluzhnikov --- Crash stack for reference: Program received signal SIGSEGV, Segmentation fault. 0x in ?? () (gdb) bt #0 0x in ?? () #1 0x00477f7c in __gthread_mutex_lock

[Bug libgcc/87189] New: libgcc/gthr-posix.h (__gthread_active_p) makes unwarranted assumptions about libpthread.a

2018-09-02 Thread ppluzhnikov at google dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87189 Bug ID: 87189 Summary: libgcc/gthr-posix.h (__gthread_active_p) makes unwarranted assumptions about libpthread.a Product: gcc Version: unknown Status: UNCONFIRMED

[Bug middle-end/87157] [9 regression] gcc.dg/vect/costmodel/ppc/costmodel-vect-33.c fails starting with r263981

2018-09-02 Thread wschmidt at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87157 --- Comment #3 from Bill Schmidt --- I don't have a recently built gcc lying around, but from an earlier version, here's the command line from the testsuite log: /home/wschmidt/gcc/build/gccgit-test/gcc/xgcc

[Bug middle-end/87188] New: Function pointer canonicalization optimized away

2018-09-02 Thread danglin at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87188 Bug ID: 87188 Summary: Function pointer canonicalization optimized away Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3

[Bug c++/87185] ICE in prune_lambda_captures()

2018-09-02 Thread nathan at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87185 Nathan Sidwell changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug tree-optimization/87186] Does not inline constant to simplify bitwise expression

2018-09-02 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87186 --- Comment #2 from Marc Glisse --- How did you check? Looking at the .optimized dump or the asm, it is optimized to a simple xor.

[Bug lto/87187] FAIL: gfortran.dg/short_circuiting_3.f90 -g -flto (internal compiler error) on darwin

2018-09-02 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87187 Dominique d'Humieres changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|

[Bug lto/87187] New: FAIL: gfortran.dg/short_circuiting_3.f90 -g -flto (internal compiler error) on darwin

2018-09-02 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87187 Bug ID: 87187 Summary: FAIL: gfortran.dg/short_circuiting_3.f90 -g -flto (internal compiler error) on darwin Product: gcc Version: 9.0 Status: UNCONFIRMED

[Bug target/67246] MIPS: lw (load word) is generated for byte bitfield, leading to unaligned access

2018-09-02 Thread sqrammi at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67246 --- Comment #10 from Jeff Hansen --- So you're recommending that we add __attribute__((packed)) to the struct?

[Bug other/44803] LIBRARY_PATH should work on cross-compilers

2018-09-02 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44803 Eric Gallager changed: What|Removed |Added Status|WAITING |RESOLVED Last reconfirmed|2018-06-02

[Bug tree-optimization/33915] iv folding fails with pointer iterations

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

[Bug c/17426] Emit mandatory warning for manual expansions of offsetof

2018-09-02 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=17426 Eric Gallager changed: What|Removed |Added Assignee|giovannibajo at gmail dot com |unassigned at gcc dot gnu.org

[Bug target/36381] preprocessing, fortran: register include paths and framework

2018-09-02 Thread egallager at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=36381 Eric Gallager changed: What|Removed |Added Assignee|dfranke at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug tree-optimization/87186] Does not inline constant to simplify bitwise expression

2018-09-02 Thread mcccs at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87186 --- Comment #1 from MCCCS --- It can simplify ~(~(x|s)|x)|~(~(x|s)|s) to s^x but it can't simplify const int t = x|s; ~(~t|x)|~(~t|s) or const int t = ~(x|s); ~(t|x)|~(t|s) or const int t = ~x&~s; ~(t|x)|~(t|s)

[Bug tree-optimization/87186] New: Does not inline constant to sim

2018-09-02 Thread mcccs at gmx dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87186 Bug ID: 87186 Summary: Does not inline constant to sim Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization