[Bug c/110654] inconsistent error message in presence of unexpected encoded characters

2023-07-14 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110654 --- Comment #2 from Ulrich Drepper --- (In reply to Andrew Pinski from comment #1) > So this is due to differences in the languages themselves rather than due to > C vs C++ front-end ... This is certainly true for the validation. But the

[Bug c++/110655] New: incorrect position of indicator in error message

2023-07-13 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take this source and run it through a trunk version or earlier of the C++ frontend. #include int main() { puts(“hello world”); return 0; } This is the same

[Bug c/110654] New: inconsistent error message in presence of unexpected encoded characters

2023-07-13 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take this code which in a similar form was taken from a text document where the smart quote handling used the U201c

[Bug tree-optimization/109045] New: assume attribute and std::optional do not mix

2023-03-06 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- The assume attribute is meant to help expressing more complex assumptions which involve function calls. Given that interfaces should use std::optional

[Bug tree-optimization/107972] New: backward propagation of finite property not performed

2022-12-05 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Here is another example where with the help of the FP ranger capabilities the compiler should generate better code than it does today (trunk

[Bug debug/107414] dwarf 5 C macro support

2022-10-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107414 --- Comment #4 from Ulrich Drepper --- Actually, Jakub was right. This is a gdb issue. The gdb maintainers pointed me to the trunk version and this indeed works with this simple code sequence. There might have been a bug as in 107012 but

[Bug debug/107414] dwarf 5 C macro support

2022-10-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107414 --- Comment #2 from Ulrich Drepper --- OK, I submitted: https://sourceware.org/bugzilla/show_bug.cgi?id=29725 Let's see what they say.

[Bug debug/107414] New: dwarf 5 C macro support

2022-10-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take this code: union node { struct { int a; } l; } x; #define memory l.a int main() { return x.memory; } When compiled with -gdwarf-4 -g3 and run in gdb, it is possible

[Bug tree-optimization/107043] range information not used in popcount

2022-09-27 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107043 --- Comment #2 from Ulrich Drepper --- My original example and Andrew's g0 are handled by Aldy's patches 2022-09-26 Aldy Hernandez PR tree-optimization/107009 * range-op.cc (operator_bitwise_and::op1_range): Optimize 0 = x

[Bug tree-optimization/107043] New: range information not used in popcount

2022-09-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This code could be compiled to a simple return of the value 1 but it isn't because the range information for n does not survive long enough. int g(int n) { n

[Bug tree-optimization/107009] New: massive unnecessary code blowup in vectorizer

2022-09-22 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Given an annotated saxpy function: #include void saxpy(size_t n, float* __restrict res, float a, const float* __restrict x, const float* __restrict y

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-05 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 --- Comment #9 from Ulrich Drepper --- Created attachment 53419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53419=edit diff -y of current and proposed output To compare the results more easily.

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-05 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 Ulrich Drepper changed: What|Removed |Added Attachment #53410|0 |1 is obsolete|

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 --- Comment #6 from Ulrich Drepper --- Created attachment 53410 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53410=edit consistent pretty printing of contains How about this patch? I used the attached test case. With the current code

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 --- Comment #5 from Ulrich Drepper --- Or should the std::pair output even be p1 = std::pair = {[0] = 0, [1] = 0} ??

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 --- Comment #4 from Ulrich Drepper --- Ugh, this one is a pasto: v1 = std::vector of length 0, capacity 0 = { } instead of v1 = std::vector of length 0, capacity 0

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 --- Comment #3 from Ulrich Drepper --- Actually, I think for the std::pair definition I'd like to see p1 = {[0] = 0, [1] = 0} instead of p1 = {first = 0, second = 0} Again, more uniform and I'd say it should be encouraged to use std::get

[Bug libstdc++/65230] pretty-print inconsistent output for similar objects

2022-08-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65230 Ulrich Drepper changed: What|Removed |Added CC||drepper.fsp+rhbz at gmail dot com

[Bug c++/105626] -Wformat should accept u8"" strings

2022-07-05 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105626 --- Comment #6 from Ulrich Drepper --- (In reply to Marek Polacek from comment #5) > Fixed for GCC 13. I could probably backport to GCC 12, if desirable. Thanks. And I certainly would appreciate a backport since this is an annoying warning

[Bug c++/105626] -Wformat should accept u8"" strings

2022-07-04 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105626 --- Comment #2 from Ulrich Drepper --- Could something like this be added, it seems to have few chances if any to disrupt any meaningful diagnostic while handling this specific case.

[Bug c++/105626] New: -Wformat should accept u8"" strings

2022-05-17 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
mponent: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- The discussion about this topic on gcc@ (https://gcc.gnu.org/pipermail/gcc/2022-May/238673.html) ended with the conclusion that gcc should not disregard the cast in

[Bug target/104781] [12 regression] SEGV in _Unwind_GetGR during i386 Ada bootstrap

2022-03-15 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104781 Ulrich Drepper changed: What|Removed |Added CC||drepper.fsp+rhbz at gmail dot com

[Bug middle-end/104486] New: if constexpr versus -Wtype-limits

2022-02-10 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- One use of 'if constexpr' is to handle different type sizes. This is a simple example: #include using some_type = int; some_type f(); bool foo() { if constexpr

[Bug tree-optimization/103857] implement ternary without jump (and comparison)

2021-12-29 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103857 --- Comment #2 from Ulrich Drepper --- (In reply to Jakub Jelinek from comment #1) > I don't think that's equivalent. You're right, I tried to generalize the code and failed. I my actual case this was a single variable the compiler saw the

[Bug tree-optimization/103857] New: implement ternary without jump (and comparison)

2021-12-29 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This test case is derived from actual code and I expect it to be not uncommon in general. Maybe not exactly in this form but perhaps the matcher can

[Bug c++/103749] Misleading error message on template/non-template conflict

2021-12-16 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103749 --- Comment #4 from Ulrich Drepper --- (In reply to Marek Polacek from comment #3) > Hopefully that's a bit better. This indeed looks as good as one can hope for. Thanks.

[Bug c++/103749] New: Misleading error message on template/non-template conflict

2021-12-16 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This problem isn't new in the trunk version, it exists in all versions I tested. This is the code in question

[Bug c++/98864] New: Warning for unnecessary final keyword

2021-01-28 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compile the following code: struct foo { virtual void f(); }; struct bar final : foo { void f() final override; }; It is correct and should compile but the function bar::f

[Bug target/98737] Atomic operation on x86 no optimized to use flags

2021-01-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98737 --- Comment #8 from Ulrich Drepper --- (In reply to Jakub Jelinek from comment #7) > The sub fix won't be the same as would add, perhaps xor/or/and can be > handled by the same peephole2, but even for that I'm not sure. Just a proposal, but I

[Bug target/98737] Atomic operation on x86 no optimized to use flags

2021-01-26 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98737 --- Comment #6 from Ulrich Drepper --- (In reply to Jakub Jelinek from comment #5) > Created attachment 50058 [details] > gcc11-pr98737.patch > > Untested fix. This only handles sub? The same applies to add, or, and, xor. Maybe nand? Can

[Bug target/98737] New: Atomic operation on x86 no optimized to use flags

2021-01-18 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
: target Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Consider the following code: long a; _Bool f(long b) { return __atomic_sub_fetch(, b, __ATOMIC_RELEASE) == 0; } _Bool g(long b) { return (a -= b) == 0

[Bug target/97397] Unnecessary mov instruction

2020-10-13 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97397 Ulrich Drepper changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug target/97397] New: Unnecessary mov instruction

2020-10-13 Thread drepper.fsp+rhbz at gmail dot com via Gcc-bugs
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This simple code const char s[][3] = { "aa", "bb", "cc", "dd", "ee" }; unsigned f(unsigned x) { return s[x][1]; } translate

[Bug tree-optimization/92867] Use ERF_RETURNS_ARG in more places

2019-12-09 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92867 Ulrich Drepper changed: What|Removed |Added CC||drepper.fsp+rhbz at gmail dot com

[Bug rtl-optimization/92549] New: Use x86 xchg instruction more

2019-11-17 Thread drepper.fsp+rhbz at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take this code __attribute__((noinline)) int f(int a, int b) { return b - a + 5; } int foo(int a, int b) { return 1 + f(b, a); } int main() { return foo(39, 3

[Bug tree-optimization/91789] New: Value ranges determined from comparisons not used transitively

2019-09-16 Thread drepper.fsp+rhbz at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take the following code: int foo(int a, int b) { if (b < a) __builtin_unreachable(); if (a < 0) ret

[Bug target/90094] New: better handling of x == LONG_MIN on x86-64

2019-04-15 Thread drepper.fsp+rhbz at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compile the following on x86-64: unsigned f(long a) { return a == LONG_MIN; } The result for -O3 is: f: movabs $0x8000,%rax cmp%rax,%rdi

[Bug c++/89923] New: printf format check and char8_t

2019-04-02 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- With the introduction of char8_t there is a new error case in the printf format checks: #include int main() { auto s = u8"hello world"; #pragma GCC diagnostic error

[Bug tree-optimization/88972] New: popcnt of limited 128-bit number with unnecessary zeroing

2019-01-22 Thread drepper.fsp+rhbz at gmail dot com
Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compile the following code on x86-64 with -Ofast -march=haswell: int f(__uint128_t m) { if (m < 64000) ret

[Bug libstdc++/88738] treat shared_ptr and unique_ptr more like plain old pointers

2019-01-12 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88738 --- Comment #6 from Ulrich Drepper --- (In reply to Martin Sebor from comment #5) > If it did we could have GCC apply it implicitly to > all such functions or operators defined in namespace std, and provide a new > attribute to disable it in the

[Bug libstdc++/88738] treat shared_ptr and unique_ptr more like plain old pointers

2019-01-12 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88738 --- Comment #3 from Ulrich Drepper --- Created attachment 45416 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45416=edit Add nodiscard support As Martin suggested, we could indeed use existing attributes in library code to warn about

[Bug c++/88738] treat shared_ptr and unique_ptr more like plain old pointers

2019-01-07 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88738 --- Comment #1 from Ulrich Drepper --- BTW, this also applies to the "unused variable" warning as in the code below but clang doesn't warn about that either. #include using type = std::shared_ptr; type g; int f(int a) { auto p = g;

[Bug c++/88738] New: treat shared_ptr and unique_ptr more like plain old pointers

2019-01-07 Thread drepper.fsp+rhbz at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- The implementations are obviously more complicated but the warning handling the current implementation allows is less than optimal

[Bug c++/88736] New: nullptr_t available without namespace qualification

2019-01-07 Thread drepper.fsp+rhbz at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- I don't think the following should work and clang indeed complains. gcc 8.2.1 and current trunk both accept it without warning, even with -pedantic. #include int

[Bug driver/88708] New: help-dummy.o file left behind

2019-01-05 Thread drepper.fsp+rhbz at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- When using gcc -c -Q -O --help=optimizers the driver leaves behind the help-dummy.o file. This happens with gcc trunk and all prior versions I was able to test.

[Bug tree-optimization/88676] New: missed opportunity is integer conditional

2019-01-03 Thread drepper.fsp+rhbz at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take the following code: int f(unsigned b) { int r; if (b >= 2) __builtin_unreachable(); switch (b) { case 0: r = 1; break; case 1:

[Bug rtl-optimization/87664] New: invariant in loop after optimization

2018-10-20 Thread drepper.fsp+rhbz at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compile the following code with the current trunk or gcc 8.2.1: #include #include int rs(int s) { std::array ar; std::iota(ar.begin(), ar.end(), s); return

[Bug c++/85159] New: if constexpr error about goto

2018-04-02 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This is actually something I deliberate used if constexpr for to avoid warnings but gcc creates a new kind of error. Take this silly code: template int foo(int a, int b

[Bug c++/84695] New: Missed opportunity to issue warning about override

2018-03-03 Thread drepper.fsp+rhbz at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Stroustrup in [1] §20.3.4 writes the compilers should issue warnings about inconsistent use of explicit override controls. struct foo { virtual int one(int

[Bug c++/84360] New: unnecessary aka in error message

2018-02-13 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- This applies to gcc 7.3.1 as well, I tested the current 8 top of the tree as well. Compile with g++: #include using T = std::tuple<int,int,int>; T g() { return std::make_tuple

[Bug c++/82373] New: syntax error in error message

2017-09-30 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compiling the invalid code at the bottom produces the following message: y.cc: In function ‘auto bar::foo(int))(int)’: y.cc:7:12: error: inconsistent deduction for auto return type

[Bug middle-end/81376] New: unnecessary cast before comparison

2017-07-10 Thread drepper.fsp+rhbz at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take the following code: typedef double c_t; typedef int a_t; int f(a_t a1, a_t a2) { return (c_t) a1 < (c_t) a2; } With IEEE 754 double we have a 52 bits mantissa wh

[Bug rtl-optimization/80917] New: missed bit information propagation

2017-05-30 Thread drepper.fsp+rhbz at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Take the following code: int f(unsigned a) { if ((a & 2) == 0) return 0; a += 4; return (a & 2) != 0; } The addition clearly cannot affect th

[Bug tree-optimization/80758] New: isnan/isfinite/isinf value propagation

2017-05-15 Thread drepper.fsp+rhbz at gmail dot com
-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Consider the following code: #define isnan(x) __builtin_isnan(x) #define isfinite(x) __builtin_isfinite(x) int f(double a, double b) { if (!isfinite

[Bug c++/80577] Avoid using adj in member function pointers

2017-05-08 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80577 --- Comment #3 from drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> --- (In reply to drepper.fsp+r...@gmail.com from comment #2) > final isn't necessary in this case. An object is used and the type is known

[Bug c++/80577] Avoid using adj in member function pointers

2017-05-08 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80577 --- Comment #2 from drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> --- final isn't necessary in this case. An object is used and the type is known.

[Bug c++/80660] Member function pointer optimization affected by incompatible virtual function

2017-05-08 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80660 --- Comment #2 from drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> --- final shouldn't be needed in this case. It's an object that is used, the type is known.

[Bug c++/80660] New: Member function pointer optimization affected by incompatible virtual function

2017-05-07 Thread drepper.fsp+rhbz at gmail dot com
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Consider the following code: struct foo final { int a = 0; int b = 0; void set_a(int p) { a = p; } void set_b

[Bug c++/80577] New: Avoid using adj in member function pointers

2017-04-30 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Consider the following code: struct foo final { int a = 0, b = 0; int get1() const { return a; } int get2() const { return a + b; } }; foo f; int (foo::*mfp)() const

[Bug c++/80575] New: unnecessary virtual function table support in member function call

2017-04-30 Thread drepper.fsp+rhbz at gmail dot com
Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Created attachment 41288 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41288=edit example for ineffectiveness of fi

[Bug c++/78923] New: bad error message about missing template argument

2016-12-24 Thread drepper.fsp+rhbz at gmail dot com
: c++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Here is another case where the error message emitted by gcc (albeit, 6.2.1, I don't have a more recent version handy

[Bug tree-optimization/77877] New: missed optimization in switch of modulus value

2016-10-05 Thread drepper.fsp+rhbz at gmail dot com
: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Compile this code with a recent trunk gcc: ~~ int zero; int one; int two

[Bug libstdc++/77760] New: get_time needs to set tm_wday amd tm_yday

2016-09-27 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- Created attachment 39701 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=39701=edit Test case to show get_time vs strptime Currently the get_time function s

[Bug c/77577] New: missing warnings about too few array elements

2016-09-13 Thread drepper.fsp+rhbz at gmail dot com
: c Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- With a declaration of 'f' as in the following code the function implementation can assume that at least the given number of elements are available in the array

[Bug driver/77475] New: unnecessary or misleading context in reporting command line problems

2016-09-04 Thread drepper.fsp+rhbz at gmail dot com
Priority: P3 Component: driver Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- When specifying a wrong command line option gcc reports the error as being on the first line of the file and also prints

[Bug c++/60994] gcc does not recognize hidden/shadowed enumeration as valid nested-name-specifier

2016-08-31 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60994 drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> changed: What|Removed |Added

[Bug tree-optimization/73285] New: perhaps avoid duplication?

2016-08-10 Thread drepper.fsp+rhbz at gmail dot com
Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- For some architectures functions with different interfaces generate identical code. For instance, on x86-64 (not the old x86 ABI): double f1(int a, double b) { return a + b

[Bug c++/71912] flexible array in union

2016-07-18 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71912 --- Comment #2 from drepper.fsp+rhbz at gmail dot com <drepper.fsp+rhbz at gmail dot com> --- If it is accepted that this code should work (as I also expect) then this bug should also be marked as a regression to 5.x. 6.1 at least is bro

[Bug c++/71912] New: flexible array in union

2016-07-17 Thread drepper.fsp+rhbz at gmail dot com
: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Target Milestone: --- I haven't researched in detail what the accepted wisdom about this code is but at the very least it is completely unnecessary to reject it, as the code shows. Code like this is actually from

[Bug jit/64206] fake.so is unlinked too early for some users

2015-04-13 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64206 drepper.fsp+rhbz at gmail dot com drepper.fsp+rhbz at gmail dot com changed: What|Removed |Added Status|REOPENED

[Bug jit/64206] fake.so is unlinked too early for some users

2015-04-13 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64206 --- Comment #9 from drepper.fsp+rhbz at gmail dot com drepper.fsp+rhbz at gmail dot com --- Created attachment 35307 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=35307action=edit Little hello world Probably copied from the documentation

[Bug jit/64206] fake.so is unlinked too early for some users

2015-04-13 Thread drepper.fsp+rhbz at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64206 drepper.fsp+rhbz at gmail dot com drepper.fsp+rhbz at gmail dot com changed: What|Removed |Added Status|RESOLVED

[Bug c++/65011] New: misleading error message for target attribute

2015-02-10 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com The target attribute named default is handled special and this causes a problem in error reporting. If I have code like this: __attribute__((target(sse2,avx2))) void foo(double *__restrict r

[Bug jit/64206] New: fake.so is unlinked too early for some users

2014-12-05 Thread drepper.fsp+rhbz at gmail dot com
Assignee: dmalcolm at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Some users of the DSO created by the JIT (probably mostly debuggers) might have a hard time getting to the file before it gets unlinked. For some gdb versions, for instance, this is fatal. Try gdb

[Bug tree-optimization/62220] New: missed optimization wrt module for loop variable

2014-08-21 Thread drepper.fsp+rhbz at gmail dot com
Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com Created attachment 33376 -- https://gcc.gnu.org/bugzilla/attachment.cgi?id=33376action=edit program to measure difference of the original and proposed optimized code I've

[Bug c++/61719] New: misleading error message

2014-07-05 Thread drepper.fsp+rhbz at gmail dot com
: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com This happens with older versions as well and the problem is worse in more complicated situations. This is the boiled-down version. Take this source: struct c { c(int a) : aa(a {} int aa; }; c v(1

[Bug c++/59565] ICE on valid code in DWARF generation

2014-01-29 Thread drepper.fsp+rhbz at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59565 Ulrich Drepper drepper.fsp+rhbz at gmail dot com changed: What|Removed |Added CC||jason

[Bug c++/59565] New: ICE on valid code in DWARF generation

2013-12-19 Thread drepper.fsp+rhbz at gmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: drepper.fsp+rhbz at gmail dot com I see an ICE with both 4.8.2 and the trunk version on the following code when compiled like this: g++ -std=gnu++1y -c bug.cc -g The backtrace is seen below. The code is simple

[Bug target/54087] __atomic_fetch_add does not use xadd instruction

2013-11-19 Thread drepper.fsp+rhbz at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54087 Ulrich Drepper drepper.fsp+rhbz at gmail dot com changed: What|Removed |Added CC