https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80635
Milian Wolff changed:
What|Removed |Added
CC||mail at milianw dot de
--- Comment #69
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103131
--- Comment #1 from Milian Wolff ---
correction: gcc version 10 and below used to complain
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
Starting with GCC 11, we don't see any warnings about extra semicolons anymore:
```
struct foo{};;
```
Compile:
```
g++ -Wall -Wpedantic -Wextra test.cpp -o test.o
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984
Milian Wolff changed:
What|Removed |Added
Resolution|--- |FIXED
Status|WAITING
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102984
--- Comment #2 from Milian Wolff ---
Similarly:
std::vector locks(10); // works
std::vector locks(10, spinlock()); // doesn't work
This report here was motivated by stumbling over this report over at
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100878
Milian Wolff changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Known to fail|
: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org
Assignee: dmalcolm at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
Hey there,
in a large code base I'm working on I stumbled over code in one area that
basically did the below, but in a more elaborate manner. It would have been
quite helpful to get a warning when
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99386
--- Comment #4 from Milian Wolff ---
Ah, but LTO only helps with the variant that contains a single type. The
variant with two types remains very slow:
variant with single type:
```
Performance counter stats for './variant 1' (5 runs):
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99386
--- Comment #3 from Milian Wolff ---
Ah, seems like `-O2 -flto` fixes the issue for me, but how come clang can pull
this off without LTO?
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99386
--- Comment #2 from Milian Wolff ---
in both cases libstdc++ is being used:
```
gcc:
linux-vdso.so.1 (0x7ffdc9f93000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f1449b2d000)
libm.so.6 => /usr/lib/libm.so.6
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
I've come across some code in an application I'm working on that makes use of
std::variant. The overhead imposed by std::variant compared to a raw type is
extremely high
!= (0)" (0x0, 0x0)
Product: gcc
Version: 10.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: do
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97229
--- Comment #2 from Milian Wolff ---
As I said, >99% of the samples point to this backtrace:
```
__sanitizer_ptr_cmp
__asanCheckForInvalidPointerPair
__asanCheckForInvalidPointerPair
__asan::IsInvalidPointerPair
: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #9 from Milian Wolff ---
> And I'm not sure that the original behavior which for
> this particular case would simply say sin() was called from foo()
This would indeed be the best, but that didn't happen originally when `foo`
itself
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #7 from Milian Wolff ---
to me, that backtrace looks quite nice and usable - a huge improvement, thanks!
what you are saying is that if the same file would be calling sin/cos somewhere
else, only one of those inline locations would
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #5 from Milian Wolff ---
> Note the line number program should have picked up a location from the
surrounding code, at least the surrounding function, so the ?? in the
backtraces look like a consumer (perf) issue to me.
All major
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #2 from Milian Wolff ---
the binary exceeds the 1mb size threshold, but I hope it's easy enough to
reproduce directly from the source code
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91929
--- Comment #1 from Milian Wolff ---
Created attachment 46972
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46972=edit
code to reproduce the issue
Priority: P3
Component: debug
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
Hey there,
take the attached C++ code sample and compile it with `g++ -O2 -g -static` to
produce the attached binary. Sampling
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88475
Milian Wolff changed:
What|Removed |Added
CC||mail at milianw dot de
--- Comment #4
: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at
gcc dot gnu.org
Target Milestone: ---
```
Direct leak of 8 byte(s
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85802
--- Comment #2 from Milian Wolff ---
Oh, awesome - it actually detected a bug :) It should have been "char buf", not
"char* buf".
Thanks for opening my eyes here, I stared at this for a while and couldn't spot
the issue. The fact that it wasn't
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
$ cat test.c
#include
int main()
{
const size_t MAX_SIZE = 1024;
char* buf[MAX_SIZE];
memset(buf, 0, MAX_SIZE);
return 0;
}
$ gcc
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71463
--- Comment #16 from Milian Wolff ---
So how can I silence the warning then for the case I pasted in the first
comment:
~~~+
#include
template struct foo {};
foo emit_unexpected_warning;
int main() { return
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71463
--- Comment #8 from Milian Wolff ---
As an interested bystander, may I ask: If the attribute is part of the type,
shouldn't it then be transferred via decltype() and then also used in the
template to trigger the warning there? To me, the example
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71463
--- Comment #2 from Milian Wolff ---
Indeed, there is a difference between malloc in the two levels:
-O0:
extern void *malloc (size_t __size) throw () __attribute__ ((__malloc__)) ;
-O1:
extern void
ty: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mail at milianw dot de
Target Milestone: ---
I've seen this error with gcc (GCC) 6.1.1 20160501 and code like this:
~~
#include
template struct foo {};
foo<declt
31 matches
Mail list logo