[Bug lto/87698] [lto] Shared library build with -ffat-lto-objects generates extra global absolute symbol relocations

2018-10-23 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87698 --- Comment #3 from Romain Geissler --- Well I might not understand everything but no I don't think I am comparing uncomparable things. I never build/link with -fno-lto, -flto is *always* provided. See for example the case with fat objects:

[Bug lto/87698] [lto] Shared library build with -ffat-lto-objects generates extra global absolute symbol relocations

2018-10-22 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87698 --- Comment #1 from Romain Geissler --- Note: this is the source of the following error when linking with ld.lld 7.0: ld.lld: error: corrupt input file: version definition index 0 for symbol _libssh2_ntohu32 is out of bounds >>> defined in

[Bug lto/87698] New: [lto] Shared library build with -ffat-lto-objects generates extra global absolute symbol relocations

2018-10-22 Thread romain.geissler at amadeus dot com
: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com CC: marxin at gcc dot gnu.org Target Milestone: --- Hi, Is it expected that a shared library where

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

2018-10-04 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87362 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug c/81577] -ftrack-macro-expansion=0 causes spurious “this ‘else’ clause does not guard” with -Wall

2018-07-02 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81577 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug c++/85973] New: [[nodiscard]] shall emit a warning for unused anonymous variable

2018-05-29 Thread romain.geissler at amadeus dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I would to know if the following (currently not implemented) behaviour of [[nodiscard]] would be useful or not. I am raising

[Bug c++/85912] New: -fdump-lang-raw ICE on valid code

2018-05-24 Thread romain.geissler at amadeus dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, This simple snippet, when built with -fdump-lang-raw will ICE: cat test.cpp void f() { switch(1) { case 1: break; } } int i

[Bug other/78063] libbacktrace fails to handle cross CU DW_AT_abstract_origin

2018-05-03 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78063 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug target/67400] -fno-plt doesn't work with function pointers

2018-04-02 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67400 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug c++/84727] [8 regression] Constant class initialization not detected as such

2018-03-05 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84727 --- Comment #1 from Romain Geissler --- Mmmh on Godbolt it seems to work with the gcc from today: https://godbolt.org/g/91wxk7 So it's has been most likely fixed in the meantime.

[Bug c++/84727] New: [8 regression] Constant class initialization not detected as such

2018-03-05 Thread romain.geissler at amadeus dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, There appear to be a recent regression, triggered when compiling tcmalloc. This snippet: #include // A safe way of doing

[Bug c++/81976] bad is_standard_layout/has_unique_object_representations results with a chain of empty bases

2018-03-03 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81976 --- Comment #2 from Romain Geissler --- Hi, Note that in the meantime, this was fixed on trunk (gcc 8). I don't know when, but it was fixed between December 2017 and now, and don't know with which commit. Cheers, Romain

[Bug libstdc++/84601] [8 Regression] std::optional<std::pair<int, int>> is not assignment copyable

2018-03-03 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84601 --- Comment #2 from Romain Geissler --- Hi, FYI, I confirm that the patch you posted here https://gcc.gnu.org/ml/gcc-patches/2018-02/msg01578.html fixes my real test case from which I extracted the reproducer from comment 1. Cheers, Romain

[Bug tree-optimization/84670] [8 Regression] ICE: in compute_antic_aux, at tree-ssa-pre.c:2148 with -O2 -fno-tree-dominator-opts

2018-03-02 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84670 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug libstdc++/84601] New: std::optional<std::pair<int, int>> is not assignment copyable

2018-02-27 Thread romain.geissler at amadeus dot com
rity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I am having trouble with this simple code snippet: < using pair_t = std::pair<int, int>; using

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-27 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #15 from Romain Geissler --- Hi, This latest patch seems to fix the occurences I have in my own code. Thanks ;) Cheers, Romain

[Bug lto/84579] New: __gnu_lto_v1 should be removed when linking with -fno-lto

2018-02-26 Thread romain.geissler at amadeus dot com
Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com CC: marxin at gcc dot gnu.org Target Milestone: --- Hi, When you want to build a project where for some reason you want to use fat LTO

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-25 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #13 from Romain Geissler --- Hi, It looks like that the code in #comment 11 works when you build just with -O2, but not when you add debug symbols: -O2 -g. Do we have a way to ignore debug statements when looking for the next

[Bug tree-optimization/84561] -Wstrinop-truncation with -O2 depends on strncpy's size type

2018-02-25 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84561 --- Comment #1 from Romain Geissler --- Note: I am testing with gcc snapshot from 24th February + patch from PR 84468 manually applied (at least I think I did).

[Bug tree-optimization/84561] New: -Wstrinop-truncation with -O2 depends on strncpy's size type

2018-02-25 Thread romain.geissler at amadeus dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, There is another -Wformat-truncation that I don't understand with -O2. It looks like I may or may not get

[Bug tree-optimization/84555] strncpy warnings (and friends) are not ignorable with pragmas when inlined

2018-02-25 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84555 --- Comment #1 from Romain Geissler --- This example emits: error: ‘char* __builtin_strncpy(char*, const char*, long unsigned int)’ output truncated before terminating nul copying 3 bytes from a string of the same length

[Bug tree-optimization/84555] New: strncpy warnings (and friends) are not ignorable with pragmas when inlined

2018-02-25 Thread romain.geissler at amadeus dot com
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I have hit this case today. Let's consider that for any reason, you have a wrapper around strncpy

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-25 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #11 from Romain Geissler --- Hi, Indeed this version of the patch doesn't have any segv. However it seems that it doesn't fix anymore the initial bug report. Does it actually passes the new tests you introduced in your patch ?

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-24 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #9 from Romain Geissler --- Ok I was able to strip down the ICE to this very simple reproducer: < static char keyword[4]; static void f (void) { strncpy(keyword, "if ", 4); } EOF

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-24 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #8 from Romain Geissler --- I am currently testing a little variant of your patch (check that "nextbb" if not NULL before trying to use it): Index: gcc/tree-ssa-strlen.c

[Bug tree-optimization/84468] [8 Regression] bogus -Wstringop-truncation despite assignment after conditional strncpy

2018-02-24 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #6 from Romain Geissler --- Hi, Tried to apply this patch on top of current trunk. During my build process, I bootstrap a complete Linux/binutils/glibc/gcc toolchain following the Linux From Scratch guidelines. Without the patch,

[Bug tree-optimization/84480] [8 Regression] bogus -Wstringop-truncation despite assignment with an inlined string literal

2018-02-22 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84480 --- Comment #6 from Romain Geissler --- Thanks ;)

[Bug tree-optimization/84480] Unexpected -Wstringop-truncation on strncpy with string literal at -O2

2018-02-21 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84480 --- Comment #1 from Romain Geissler --- Hi, I looked at the code. Actually all happens in tree-ssa-strlen.c, you have both handle_builtin_stxncpy and maybe_diag_stxncpy_trunc. It happens that the logic where you look at the next statement to

[Bug tree-optimization/84480] New: Unexpected -Wstringop-truncation on strncpy with string literal at -O2

2018-02-20 Thread romain.geissler at amadeus dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, As required in PR 84474, here is a more real life example of unexpected -Wstringop-truncation. Let's

[Bug tree-optimization/84474] New: Unexpected -Wstringop-truncation

2018-02-19 Thread romain.geissler at amadeus dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, When migrating some code base to gcc 8, I am hitting an issue on this snippet: < void f() { char aBuf[3 + 1]; strncpy(aBuf, "123", 3);

[Bug c/83955] false positive implicit-fallthrough warning on switch enum

2018-02-19 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83955 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug tree-optimization/84468] [gcc 8] Inconsistent -Wstringop-truncation warnings with -O2

2018-02-19 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84468 --- Comment #3 from Romain Geissler --- Ok there maybe a problem with the optimizer as you describe it in bug 84470. However why does variant 3 from comment #0 yields a warning too ? if (iCString) { strncpy(_cstring, iCString,

[Bug c++/84468] New: [gcc 8] Inconsistent -Wstringop-truncation warnings with -O2

2018-02-19 Thread romain.geissler at amadeus dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I can see some strange behavior for the warning -W=stringop-truncation with -O2 and current master, depending on how I enclose

[Bug tree-optimization/84084] New: -O2 Early VPR pass wrongly removes "ret" exit basic block causing infinite loop/segfaults

2018-01-28 Thread romain.geissler at amadeus dot com
NCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, It looks like there is a regression in the Early VRP pass with -O2 th

[Bug c++/81976] bad is_standard_layout/has_unique_object_representations results with a chain of empty bases

2017-12-18 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81976 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug bootstrap/69725] LTO/PGO bootstrap fails with in-tree gmp

2017-10-22 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69725 --- Comment #19 from Romain Geissler --- Note: don't forget to apply the gmp patch to the "configure" file too (wasted some time myself because I did...)

[Bug bootstrap/69725] LTO/PGO bootstrap fails with in-tree gmp

2017-10-21 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69725 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug c++/78044] -Wmaybe-uninitialized and -O2: false positive with boost::optional

2016-10-19 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78044 --- Comment #1 from Romain Geissler --- Created attachment 39844 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39844=edit test.i

[Bug c++/78044] New: -Wmaybe-uninitialized and -O2: false positive with boost::optional

2016-10-19 Thread romain.geissler at amadeus dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Created attachment 39843 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39843=edit test.cpp Hi, I am having a fa

[Bug c++/72104] Inner templated class with stream operator fails to compile

2016-08-16 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72104 Romain Geissler changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/72104] New: Inner templated class with stream operator fails to compile

2016-07-25 Thread romain.geissler at amadeus dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Hi, I am having issues with code that used to build fine with gcc 4.9 and 5.3, but doesn't work anymore with gcc 6.1.1 (20160725

[Bug c++/70977] [6/7 Regression] Out of memory during compilation of facebook/wangle (flag c++0x works, flag c++14 fails).

2016-07-18 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70977 --- Comment #10 from Romain Geissler --- This is actually a dup of #70824 which was just fixed in trunk.

[Bug c++/70977] [6/7 Regression] Out of memory during compilation of facebook/wangle (flag c++0x works, flag c++14 fails).

2016-07-14 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70977 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug testsuite/71021] [libatomic testsuite] Test program compilation fail (missing -pthread flag)

2016-06-30 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71021 Romain Geissler changed: What|Removed |Added Resolution|FIXED |INVALID

[Bug testsuite/71021] [libatomic testsuite] Test program compilation fail (missing -pthread flag)

2016-06-30 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71021 Romain Geissler changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug debug/71057] [6 Regression] ICE in schedule_generic_params_dies_gen, at dwarf2out.c:24142

2016-05-31 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71057 --- Comment #10 from Romain Geissler --- Thanks ! The current gcc6 branch works fine now.

[Bug debug/71057] [6 Regression] ICE in schedule_generic_params_dies_gen, at dwarf2out.c:24142

2016-05-30 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71057 Romain Geissler changed: What|Removed |Added CC||romain.geissler at amadeus dot com

[Bug testsuite/71021] [libatomic testsuite] Test program compilation fail (missing -pthread flag)

2016-05-11 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71021 --- Comment #3 from Romain Geissler --- Please note that this is the only target lib that fails for me. Others (like libgomp) are fine.

[Bug testsuite/71021] [libatomic testsuite] Test program compilation fail (missing -pthread flag)

2016-05-11 Thread romain.geissler at amadeus dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71021 --- Comment #2 from Romain Geissler --- The very same thing happens with gcc 6.1.1.

[Bug testsuite/71021] New: [libatomic testsuite] Test program compilation fail (missing -pthread flag)

2016-05-09 Thread romain.geissler at amadeus dot com
: normal Priority: P3 Component: testsuite Assignee: unassigned at gcc dot gnu.org Reporter: romain.geissler at amadeus dot com Target Milestone: --- Created attachment 38452 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38452=edit Add "-pthre

<    1   2