[Bug c++/96868] C++20 designated initializer erroneous warnings

2023-08-21 Thread roland at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96868 roland at gnu dot org changed: What|Removed |Added CC||roland at gnu dot org

[Bug middle-end/105762] New: [12 Regression] -Warray-bounds false positives for integer-to-pointer casts

2022-05-28 Thread roland at gnu dot org via Gcc-bugs
: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- This code: ``` void crash(void) { volatile int* ptr

[Bug target/94993] aarch64 incompatible with -mgeneral-regs-only

2021-11-29 Thread roland at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94993 roland at gnu dot org changed: What|Removed |Added CC||rearnsha at gcc dot gnu.org

[Bug c++/103291] New: gcc 11 regression with #pragma GCC visibility vs extern inside C++ functions

2021-11-16 Thread roland at gnu dot org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- GCC 11 has a regression with: ``` #pragma GCC visibility push(hidden) int

[Bug c++/103290] New: gcc 11 regression with C++ designated initializers, unions, anonymous struct

2021-11-16 Thread roland at gnu dot org via Gcc-bugs
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- ``` struct S { union

[Bug target/96238] [i386] cpuid.h header needs include guards

2020-11-10 Thread roland at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96238 roland at gnu dot org changed: What|Removed |Added CC||roland at gnu dot org

[Bug c++/94342] GCC ignores attribute((section(...))) for static variables inside templates

2020-11-10 Thread roland at gnu dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94342 roland at gnu dot org changed: What|Removed |Added CC||roland at gnu dot org

[Bug target/94993] New: aarch64 incompatible with -mgeneral-regs-only

2020-05-08 Thread roland at gnu dot org
Component: target Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- This is a regression from 9.3.1. Using --target=aarch64-elf built from git commit 6fedf28c7921f125be75a9f688a7b845a1b5663b. aarch64-elf-g++ -mgeneral-regs

[Bug c++/85662] [8/9 Regression] "error: non-constant condition for static assertion" from __builtin_offsetof in C++

2018-05-30 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85662 roland at gnu dot org changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution

[Bug c++/85662] [8/9 Regression] "error: non-constant condition for static assertion" from __builtin_offsetof in C++

2018-05-16 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85662 --- Comment #6 from roland at gnu dot org --- Thanks for the fix. What's the status on backporting this to 8 and/or 7?

[Bug c++/85662] [8/9 Regression] "error: non-constant condition for static assertion" from __builtin_offsetof in C++

2018-05-05 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85662 --- Comment #4 from roland at gnu dot org --- That fix (applied to trunk) works for my test case and for the original real-world case I reduced it from. Will it be backported to 7 and 8? Thanks for the quick work as usual, Jakub!

[Bug c++/85662] New: regression since 6: "error: non-constant condition for static assertion" from __builtin_offsetof in C++

2018-05-04 Thread roland at gnu dot org
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org CC: msebor at gcc dot gnu.org Target Milestone: --- This code was accepted by GCC 6 but is rejec

[Bug target/80298] incompatible with -mno-sse

2017-04-04 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80298 --- Comment #4 from roland at gnu dot org --- I'd assumed it would be fixed just with more #pragma push_options, target("sse"), pop_options, sequences. It seems like a separate issue about automagically allowing things in always_in

[Bug target/80298] New: incompatible with -mno-sse

2017-04-03 Thread roland at gnu dot org
Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- For any x86_64 target, try: gcc -mno-sse -S -o - -xc <(echo '#include ') It fails with various errors about SSE being disabled. Many of the components of x86intrin.h make special effo

[Bug target/79619] New: store via pointer obtained from alternate address space offset 0 dropped

2017-02-19 Thread roland at gnu dot org
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org CC: rth at gcc dot gnu.org Target Milestone: --- Target: x86_64-elf Given this test code: void bug

[Bug target/79609] C address space qualifiers not available under -fno-asm, even for system headers and __extension__

2017-02-19 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79609 --- Comment #1 from roland at gnu dot org --- Note Clang uses __attribute__((address_space(N))) for this. That automagically handles the parsing issues in a well-known fashion, and gets C++ support for free to boot. Unfortunately they use per

[Bug c/79609] New: C address space qualifiers not available under -fno-asm, even for system headers and __extension__

2017-02-19 Thread roland at gnu dot org
: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org CC: rth at gcc dot gnu.org Target Milestone: --- It's impossible to use __seg_fs et al under -fno-asm, which

[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE

2016-09-16 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 --- Comment #3 from roland at gnu dot org --- https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00981.html

[Bug other/77609] __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE

2016-09-15 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77609 --- Comment #1 from roland at gnu dot org --- Created attachment 39626 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39626=edit trunk fix This is the fix that shows the behavior difference reported above.

[Bug other/77609] New: __attribute__((section(".note.foo"))) forces SHT_PROGBITS though the assembler would use SHT_NOTE

2016-09-15 Thread roland at gnu dot org
NCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target Milestone: --- When __attribute__((section("name"))) is used, GCC insists on setting the sec

[Bug other/63758] New: liblto_plugin.so has undefined reference to _environ on OSX

2014-11-05 Thread roland at gnu dot org
Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Host: x86_64-apple-darwin Build: x86_64-apple-darwin11.4.2 Failure mode: .../bin/../lib/gcc/.../4.9.2/../../../../.../bin/ld: .../bin

[Bug other/63758] liblto_plugin.so has undefined reference to _environ on OSX

2014-11-05 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63758 --- Comment #1 from roland at gnu dot org --- Created attachment 33903 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33903action=edit proposed patch This patch fixes it on OSX. I haven't verified it on a wide variety of configurations.

[Bug target/61622] internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1508

2014-07-01 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622 --- Comment #5 from roland at gnu dot org --- (In reply to baoshan from comment #4) This should be a duplication to Bug 57431. That report is for 4.9.x. The bug remains on 4.8.x.

[Bug target/61622] internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1508

2014-06-27 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622 --- Comment #3 from roland at gnu dot org --- Oops! Meant to paste that: gcc/cc1 -fpreprocessed ref_vld1_dup.i -quiet -dumpbase ref_vld1_dup.i -mfloat-abi=softfp -mfpu=neon -mtls-dialect=gnu -auxbase ref_vld1_dup -O1 -std=gnu99 -version -o

[Bug target/61622] New: internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1508

2014-06-26 Thread roland at gnu dot org
Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target: arm-linux-gnueabihf This is with gcc-4_8-branch tip (98985e7). It also happens with 4.8.3. It does not happen with 4.7

[Bug target/61622] internal compiler error: in simplify_const_unary_operation, at simplify-rtx.c:1508

2014-06-26 Thread roland at gnu dot org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61622 --- Comment #1 from roland at gnu dot org --- Created attachment 33013 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33013action=edit test case preprocessed source I had to gzip the file to make bugzilla accept it.

[Bug libstdc++/59392] crash on throw from unexpected exception handler with ARM EABI unwinder

2014-03-12 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59392 roland at gnu dot org changed: What|Removed |Added Status|NEW |RESOLVED Resolution

[Bug libstdc++/59392] crash on throw from unexpected exception handler with ARM EABI unwinder

2013-12-09 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59392 --- Comment #2 from roland at gnu dot org --- Fix posted: http://gcc.gnu.org/ml/gcc-patches/2013-12/msg00753.html

[Bug libstdc++/59392] New: crash on throw from unexpected exception handler with ARM EABI unwinder

2013-12-04 Thread roland at gnu dot org
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target: arm-linux-gnueabihf Created attachment 31382 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=31382action=edit test case I've

[Bug target/58486] New: insufficient CFI generated for call-saved VFP registers

2013-09-20 Thread roland at gnu dot org
Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Target: arm-linux-gnueabi I think this bug exists in trunk and in all past versions (seen in 4.6, at least), but I did the detailed testing on today's gcc-4_8

[Bug libstdc++/57740] New: C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: roland at gnu dot org Host: x86_64-linux-gnu Created attachment 30398 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=30398action=edit test case This bug goes back at least to 4.6, but I don't really

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #2 from roland at gnu dot org --- (In reply to Andrew Pinski from comment #1) I think it is bad form to use static linking with pthreads. Nonsense. There is code specifically to ensure it works. The additions for C++11 thread

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #4 from roland at gnu dot org --- weakrefs are right for the conditional cases. For the functions that underlie std::thread et al, it can never be meaningful to use those interfaces and fail to link with -lpthread. The Fedora hack

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #5 from roland at gnu dot org --- So my draft fix actually breaks the dynamic case. For the unconditional calls, weak is right in the shared library but strong is right in the static library. But unlike normal libraries, libstdc

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #7 from roland at gnu dot org --- (In reply to Jakub Jelinek from comment #6) Note also that libstdc++.a can be used together with libpthread.so or libstdc++.so with libpthread.a (g++ -static-libstdc++ etc.). If libstdc++.a had

[Bug libstdc++/57740] C++11 std::thread not usable with static linking

2013-06-27 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57740 --- Comment #9 from roland at gnu dot org --- (In reply to Andrew Pinski from comment #8) (In reply to roland from comment #7) -static-libstdc++ is important to avoid DSO dependencies specific to the GCC version, which varies across

[Bug bootstrap/54659] [4.8 Regression] Bootstrap with --disable-nls broken under Windows

2013-05-07 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54659 --- Comment #25 from roland at gnu dot org 2013-05-07 17:06:56 UTC --- I have been using a straightforward revert of r190487 to build on mingw with --disable-nls. It works.

[Bug tree-optimization/57147] New: [4.9 Regression]: setjmp call and if body wrongly elided (function runs off early end)

2013-05-02 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57147 Bug #: 57147 Summary: [4.9 Regression]: setjmp call and if body wrongly elided (function runs off early end) Classification: Unclassified Product: gcc Version: 4.9.0

[Bug tree-optimization/57147] [4.9 Regression]: setjmp call and if body wrongly elided (function runs off early end)

2013-05-02 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57147 roland at gnu dot org changed: What|Removed |Added CC||rguenther at suse dot de

[Bug bootstrap/54659] [4.8 Regression] Bootstrap with --disable-nls broken under Windows

2013-03-26 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54659 --- Comment #19 from roland at gnu dot org 2013-03-26 22:03:44 UTC --- r190487 is the breaking change. I tested reverting that (relative to 4.8 branch) and it solved the problem. Note I'm more concerned with having this fixed on the 4.8

[Bug bootstrap/54659] [4.8 Regression] Bootstrap with --disable-nls broken under Windows

2013-03-25 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54659 roland at gnu dot org changed: What|Removed |Added CC||roland at gnu dot org

[Bug c++/54055] New: spurious(?) invalid use of incomplete type warning in template definition

2012-07-20 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54055 Bug #: 54055 Summary: spurious(?) invalid use of incomplete type warning in template definition Classification: Unclassified Product: gcc Version: 4.8.0 Status:

[Bug c++/51886] New: __alignof__ on uninstantiated template type

2012-01-17 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51886 Bug #: 51886 Summary: __alignof__ on uninstantiated template type Classification: Unclassified Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal

[Bug c++/51886] __alignof__ on uninstantiated template type

2012-01-17 Thread roland at gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51886 --- Comment #1 from roland at gnu dot org 2012-01-17 18:59:18 UTC --- Created attachment 26357 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26357 C++ test case