++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
bool many_eq_max_13(unsigned int val) {
[[assume(val < 32)]];
return val == 1 || val == 4 || val == 7 || val == 9 ||
val == 10 || val == 13;
}
b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120841
--- Comment #2 from rockeet ---
(In reply to Andrew Pinski from comment #1)
> Gcc is already better than llvm by figuring out the return of memcpy is the
> first argument.
>
> I am not sure if the one extra move is going hurt here either.
Yes,
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
void foo(char* buf, const char* src, size_t n) {
memcpy(buf, src, n);
memcpy(buf + n, &n, sizeof(n));
}
Both gcc and g++ produces(h
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120833
--- Comment #1 from rockeet ---
FYI: https://godbolt.org/z/svE61Ghzv
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
struct S1 {
const char* data;
long size;
};
struct S2 {
const char* data;
long size;
};
__attribute__((noinline))
struct S1 get_s1(const char* s, long n) {
struct S1 x
++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
#include
struct A { int a = 0; };
struct B : A {};
A fa() {
B b;
return std::move(b); // 1. should not warn
}
B fb() {
B b;
return std::move(b
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120255
--- Comment #1 from rockeet ---
clang compiled the code successfully.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
template parameter name should hide member name.
```
struct A {
struct B {};
struct C {
template void foo1(B
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
std::function should not check func ptr on each call, an optimization should
be:
define a 'default throw' function which just throws a std::bad_function
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80878
rockeet changed:
What|Removed |Added
CC||rockeet at gmail dot com
--- Comment #19 from
ormal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
// code:
#include
template
struct A {
template
struct X {
void foo(U* p) { printf("p->a = %d\n", p->a);
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
rockeet changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
rockeet changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
rockeet changed:
What|Removed |Added
CC||rockeet at gmail dot com
--- Comment #9 from
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
rockeet changed:
What|Removed |Added
Status|RESOLVED|REOPENED
Resolution|INVALID
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
--- Comment #3 from rockeet ---
@Martin Liška Yes, my use case is:
__m128i key128 = { key }; // key is an unsigned char
int idx = _mm_cmpestri(key128, 1,
*(const __m128i*)(data), // don't require memory align
len,
_SIDD_UBYTE_OPS|_SI
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81389
--- Comment #2 from rockeet ---
I had also tested intel compiler with -O0 serveral years ago, it was OK.
++
Assignee: unassigned at gcc dot gnu.org
Reporter: rockeet at gmail dot com
Target Milestone: ---
With option -O0, intrinsic _mm_cmpestri generate a mmload and a _mm_cmpestri,
in which mmload raise a CPU hardware exception.
The reason is: mmload require memory align to 16, but _mm_cmpestri
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
--- Comment #2 from rockeet 2013-05-03 10:35:53 UTC
---
In this case, C++ shouldn't create a temporal object and bound the const ref to
it. The C++ standard (C++11) says:
5.2.1
Subscripting
[expr.sub]
1
A postfix expression followed by an expre
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57155
Bug #: 57155
Summary: casting to const reference error
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: major
Priorit
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53505
Bug #: 53505
Summary: bitfield with bool type generated broken object code
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: critical
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23885
--- Comment #10 from rockeet 2011-12-13 09:38:45 UTC
---
Sorry, missed output of g++ 4.6.0:
Begin Output
void f(A)
void f(B)
void f(B)
void f(T) [with T = int]
void f(T) [with T = int*]
End Output
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23885
rockeet changed:
What|Removed |Added
CC||rockeet at gmail dot com
--- Comment #9 from
23 matches
Mail list logo