[Bug debug/111080] [11/12/13/14 Regression] restrict qualifier causes extra debug info to happen

2023-08-20 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111080 --- Comment #2 from sagebar at web dot de --- @Andrew Pinski Of course: yes. I did make a mistake there, but only for this case: > int (*fun_t)(struct foo *); // Leak (even w/o restrict!) asm: ... .globl fu

[Bug debug/111080] New: restrict qualifier leaks debug info

2023-08-20 Thread sagebar at web dot de via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- The the following code example, debug information is retained for `struct foo` even though that structure doesn't end up used: Compile as `gcc -g -S -o - in.c | grep field_number

[Bug bootstrap/110607] Makefile.in builds broken build-tools when CXXFLAGS is defined

2023-07-09 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110607 --- Comment #2 from sagebar at web dot de --- @Andrew Pinski Sorry if this is a known bug. I simply checked the current gcc master (https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=Makefile.tpl;h=d0fe7e2fb778b3c3fa2cc8742e06cf1f78fdc5f2;hb=HEAD#l183

[Bug driver/110607] New: Makefile.in build broken build-tools when CXXFLAGS is defined

2023-07-09 Thread sagebar at web dot de via Gcc-bugs
Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- This part in the main makefile: > 177 # These variables must be set on the make command line for directories > 178 # built for the

[Bug ipa/105682] [12/13 Regression] Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function since r12-5177-g494bdadf28d0fb35

2022-09-05 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105682 --- Comment #8 from sagebar at web dot de --- (In reply to Jan Hubicka from comment #6) > I think the conlcusion here is correct. callee has pure attribute and that > means that it has no side effects except for reading global memo

[Bug tree-optimization/105684] Bogus `-Warray-bounds` in partially allocated struct

2022-05-23 Thread sagebar at web dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105684 --- Comment #3 from sagebar at web dot de --- >The issue is that 'result->data0.a' is (*result).data0.a, and so to GCC you are >accessing an object of type 'obj' for which there isn't enough allocated space. Technically true

[Bug c/105689] New: Bogus `-Wstringop-overflow=` after accessing field, then containing struct (wrong "region size")

2022-05-22 Thread sagebar at web dot de via Gcc-bugs
Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- The following code wrongly produces a warning `[-Wstringop-overflow=`: Compile (using `gcc -c -O

[Bug ipa/105685] New: Still Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))`

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de CC: marxin at gcc dot gnu.org Target Milestone: --- I would re-open https://gcc.gnu.org/bugzilla/show_bug.cgi?id

[Bug c/105684] New: Bogus `-Warray-bounds` in partially allocated struct

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Accessing the fields of a partially allocated struct results in `-Warray-bounds`, even when all accessed fields lie within the allocated portion of the struct (a fact

[Bug c/105682] New: Both `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` on same function

2022-05-21 Thread sagebar at web dot de via Gcc-bugs
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- The following example causes both a `-Wsuggest-attribute=pure` and `-Wsuggest-attribute=const` warning for the same function

[Bug c/105676] New: Bogus `-Wsuggest-attribute=pure` on function marked `__attribute__((const))`

2022-05-20 Thread sagebar at web dot de via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- When compiling with `-Wsuggest-attribute=pure`, gcc warns about missing `__attribute__((pure))` on functions declared

[Bug c++/96985] New: c++ `noexcept` is ignored for *known* functions

2020-09-08 Thread sagebar at web dot de
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- g++ has a list of *special* function names that it recognizes as builtins. This includes things like `memcpy` or `strlen`. The problem is that this list includes information

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #4 from sagebar at web dot de --- (In reply to sagebar from comment #3) > ..., _any_ attribute that > can be inherited via copy() can be made template-conditional in c++: Also note that I've tested if gcc (`-x c') allows mu

[Bug c++/96516] template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96516 --- Comment #3 from sagebar at web dot de --- No problem. Also: What you just said made me realize that once __attribute__((copy)) works correctly with templates, _any_ attribute that can be inherited via copy() can be made template-conditional

[Bug c++/96516] New: template + __attribute__((copy)) produce compiler errors

2020-08-07 Thread sagebar at web dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 49016 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49016=edit Same code as already seen in the bug description Us

[Bug debug/96417] New: c++ `using` causes massive debug-info bloat (debug-info is kept for types/symbols)

2020-08-02 Thread sagebar at web dot de
Severity: normal Priority: P3 Component: debug Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 48982 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48982=edit Compile me with and with

[Bug tree-optimization/94357] New: Inline assembly with memory operand is considered nothrow with `-fnon-call-exceptions`

2020-03-27 Thread sagebar at web dot de
Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 48130 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=48130=edit Is

[Bug target/93985] New: Sub-optimal assembly for %st(0) constant loading with SSE enabled (x86_64)

2020-03-01 Thread sagebar at web dot de
: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 47939 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47939=edit Inefficient code generation, simi

[Bug c/93087] New: Bogus `-Wsuggest-attribute=cold` on function already marked as `__attribute__((cold))`

2019-12-28 Thread sagebar at web dot de
Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 47555 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47555=edit Issue demonstration L

[Bug c++/92641] VLA type finalized at the beginging of the statement rather at the point of use

2019-11-23 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92641 --- Comment #2 from sagebar at web dot de --- (In reply to Andrew Pinski from comment #1) > The big question comes, where should the VLA type be finalized, at the use > or at the beginning of the statement. > > Statement expressions

[Bug middle-end/92641] New: Function called from dead branch

2019-11-23 Thread sagebar at web dot de
Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 47339 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47339=edit Listing of problematic code, and similar code that works correctly Given something l

[Bug c++/92438] [7/8/9/10 Regression] Function declaration parsed incorrectly with `-std=c++1z`

2019-11-11 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92438 --- Comment #2 from sagebar at web dot de --- The c++ standard may not cover it, however in the interest of compatibility with other compilers, g++ for cygwin actually defines the following predefined macros (among others): g++ -dM -E -x c

[Bug c++/92438] New: Function declaration parsed incorrectly with `-std=c++1z`

2019-11-10 Thread sagebar at web dot de
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 47204 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47204=edit Demonstration of incorrect parsing + several work-arou

[Bug libstdc++/91655] Use of `__in` and `__out` as argument names in c++ headers

2019-09-04 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91655 --- Comment #2 from sagebar at web dot de --- Of course. I understand, am sorry to have bothered you, and totally agree that those macros are extremely bad (but sadly are being used by programs that I'm trying to provide compatibility for). Have

[Bug libstdc++/91655] New: Use of `__in` and `__out` as argument names in c++ headers

2019-09-04 Thread sagebar at web dot de
Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- After building libstdc++ for a custom toolchain that tries to form a hybrid of both linux/gnu system headers, as well as headers normally only

[Bug tree-optimization/90994] New: Bogus Wmaybe-uninitialized with fnon-call-exceptions

2019-06-25 Thread sagebar at web dot de
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 46517 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46517=edit Minimal code that triggers the problem Using a branch-dependent ret

[Bug tree-optimization/90710] Bogus Wmaybe-uninitialized caused by __builtin_expect when compiled with -Og

2019-06-02 Thread sagebar at web dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90710 --- Comment #2 from sagebar at web dot de --- (In reply to Jeffrey A. Law from comment #1) > We focus most of our effort on avoiding false positives with -O2 > optimization levels. As you lower the optimization level (-Og) you will &g

[Bug tree-optimization/90710] New: Bogus Wmaybe-uninitialized caused by __builtin_expect when compiled with -Og

2019-06-02 Thread sagebar at web dot de
: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sagebar at web dot de Target Milestone: --- Created attachment 46442 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46442=edit Copy of the code alre