the address of the char array also.
Older version of gcc : v2.94
New Version : v4.0.1
Is the compiler doing a right thing or is it a bug??
--
Thanks,
Inder
optimizations specified by -O2 + Function
Inlining, loop unrolling and register renaming
-Os :enables all -O2 optimizations that do not typically increase
code size and also performs further optimizations designed to reduce
code size
Any help is greatly appreciated.
--
Thanks,
Inder
, %sp ; why save 104 bytes
callfoo, 0
mov0, %i0
jmp %i7+8
restore
.size main, .-main
.ident "GCC: (GNU) 4.0.1
--
Any help will be appreciated.
Thanks,
Inder
the reason for this behaviour.
i am using gcc 4.0.1.
- testcase.cc
class tempttt{
int a;
int b;
public:
tempttt()
{ a=10; b=100;}
};
static tempttt t;
int main()
{
return 0;
}
-
-
Thanks,
Inder
any errors.
Is this a bug in gcc 4.0.1
Any help will be appreciated.
Thanks
Inder.
--- test.cc
---
#include
typedef struct
{
int length;
int a;
int b;
}CYANBUFFER;
typedef struct
{
int a;
Hi Richard
Well i know that this is a list for development of gcc.
Let me be more precise about my question -
I am using gcc 3.4.3 (sparc-elf) to compile my codebase which uses such kind of
assignments but the compiler gives no warnings what so ever.
but the more recent version given below gives t
c-min-heapsize=131072
--
Thanks,
Inder