Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ali.baharev at gmail dot com
#include
struct A { };
int main() {
A a;
std::cout << a;
}
-
g++ 4.8.1, 64 bit w
++
Assignee: unassigned at gcc dot gnu.org
Reporter: ali.baharev at gmail dot com
struct X {
X& operator=(const X&) = delete;
X& operator=(X&& ) = default;
};
void f(bool t) {
X a, b;
*(t ? &a : &b) = X();
(t ? a : b) = X();
}
-
The line:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58714
--- Comment #2 from Ali Baharev ---
OK, sorry for the dupe.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58717
Ali Baharev changed:
What|Removed |Added
CC||ali.baharev at gmail dot com
--- Comment
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58713
--- Comment #2 from Ali Baharev ---
>> Why do the 32 and 64 bit versions behave differently?
>
> They don't. I think maybe you forgot to use -std=c++11 in the first case?
Yes, that's what happened. Sorry, my mistake.
Assignee: unassigned at gcc dot gnu.org
Reporter: ali.baharev at gmail dot com
The for loop in work() is the hotspot:
const int LOOP_BOUND = 2;
__attribute__((noinline))
static int add(const int& x, const int& y) {
return x + y;
}
__attribute__((noinline))
static
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58863
--- Comment #2 from Ali Baharev ---
Please check with objdump. It's not what I get in the executable.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58863
--- Comment #4 from Ali Baharev ---
My mistake, sorry.
So, you are saying that the default alignment is 8 byte for loops?
The funny thing is, this code runs 15% faster, if any of the followings are
passed:
-Os
-O2 -fno-align-loops -fno-align
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58863
--- Comment #5 from Ali Baharev ---
OK, then 8 byte default alignment for loops is the default. If you think it is
not a bug, then let's close this. Sorry for the false alarm.
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: ali.baharev at gmail dot com
Code:
#include
#include
using namespace std;
void writeSomething(initializer_list args) {
for (auto f : args )
f
++
Assignee: unassigned at gcc dot gnu.org
Reporter: ali.baharev at gmail dot com
Created attachment 32144
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=32144&action=edit
source file needed to reproduce the bug report
After reading the documentation, I would expect a warning th
11 matches
Mail list logo