gcc-4.0.3, gcc-4.1.0 no output with out

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simple examples compiled with gcc-4.0.3 or gcc-4.1.0 not producing output. There is a piece of code:

 for (i = 0; i < v.size(); i++)
 {
	out << v[i].s << " :\t"
            << v[i].t * (double(1000000)/n)/CLOCKS_PER_SEC
            << " ms"
            << endl;

// printf("%s :\t %2.3f ms\n", v[i].s, v[i].t * (double(1000000)/n)/CLOCKS_PER_SEC);
 }

When execute, output looks like this:

$./d_1++ 100000
./d_1 100000

virtual px->f(1)             :   ms
ptr-to-fct p[1](ps,1)        :   ms
virtual x.f(1)               :   ms
ptr-to-fct p[1](&s,1)        :   ms
member px->g(1)              :   ms
global g(ps,1)               :   ms
member x.g(1)                :   ms
global g(&s,1)               :   ms
static X::h(1)               :   ms
global h(1)                  :   ms
inline px->k(1)              :   ms
macro K(ps,1)                :   ms
inline x.k(1)                :   ms
macro K(&s,1)                :   ms
base1 member pc->g(i)        :   ms
base2 member pc->gg(i)       :   ms
base1 virtual pa->f(i)       :   ms
base2 virtual pb->ff(i)      :   ms
base1 down-cast cast(pa,pc)   :  ms
base2 down-cast cast(pb,pc)   :  ms
base1 up-cast cast(pc,pa)     :  ms
base2 up-cast cast(pc,pb)     :  ms
base2 cross-cast cast(pb,pa)  :  ms
base1 down-cast2 cast(pa,pcc) :  ms
base2 down-cast  cast(pb,pcc) :  ms
base1 up-cast cast(pcc,pa)    :  ms
base2 up-cast2 cast(pcc,pb)   :  ms
base2 cross-cast2 cast(pa,pb) :  ms
base1 cross-cast2 cast(pb,pa) :  ms
vbase member pd->gg(i)       :   ms
vbase virtual pa->f(i)       :   ms
vbase down-cast cast(pa,pd)   :  ms
vbase up-cast cast(pd,pa)     :  ms
vbase typeid(pa)             :   ms
vbase typeid(pd)             :   ms
pmf virtual (pa->*pmf)(i)    :   ms
pmf (pa->*pmf)(i)            :   ms
call by_ref(pp)              :   ms
call by_val(pp)              :   ms
call ptr-to-fct oper(h,glob) :   ms
call fct-obj oper(fct,glob)  :   ms

Commented line with printf do produce output:

# ./d_1 100000
./d_1 100000

virtual px->f(1)             :  0.5 ms
ptr-to-fct p[1](ps,1)        :  0.5 ms
virtual x.f(1)               :  0.5 ms
ptr-to-fct p[1](&s,1)        :  0.5 ms
member px->g(1)              :  0.5 ms
global g(ps,1)               :  0.5 ms
member x.g(1)                :  0.6 ms
global g(&s,1)               :  0.5 ms
static X::h(1)               :  0.4 ms
global h(1)                  :  0.5 ms
inline px->k(1)              :  0.5 ms
macro K(ps,1)                :  0.2 ms
inline x.k(1)                :  0.5 ms
macro K(&s,1)                :  0.2 ms
base1 member pc->g(i)        :  0.5 ms
base2 member pc->gg(i)       :  0.5 ms
base1 virtual pa->f(i)       :  0.6 ms
base2 virtual pb->ff(i)      :  0.6 ms
base1 down-cast cast(pa,pc)   : 0.5 ms
base2 down-cast cast(pb,pc)   : 0.6 ms
base1 up-cast cast(pc,pa)     : 2.4 ms
base2 up-cast cast(pc,pb)     : 2.2 ms
base2 cross-cast cast(pb,pa)  : 4.7 ms
base1 down-cast2 cast(pa,pcc) : 0.5 ms
base2 down-cast  cast(pb,pcc) : 0.6 ms
base1 up-cast cast(pcc,pa)    : 2.4 ms
base2 up-cast2 cast(pcc,pb)   : 2.2 ms
base2 cross-cast2 cast(pa,pb) : 4.7 ms
base1 cross-cast2 cast(pb,pa) : 4.3 ms
vbase member pd->gg(i)       :  0.6 ms
vbase virtual pa->f(i)       :  0.9 ms
vbase down-cast cast(pa,pd)   : 0.7 ms
vbase up-cast cast(pd,pa)     : 4.4 ms
vbase typeid(pa)             :  0.8 ms
vbase typeid(pd)             :  0.8 ms
pmf virtual (pa->*pmf)(i)    :  1.2 ms
pmf (pa->*pmf)(i)            :  0.7 ms
call by_ref(pp)              :  0.5 ms
call by_val(pp)              :  0.5 ms
call ptr-to-fct oper(h,glob) :  0.8 ms
call fct-obj oper(fct,glob)  :  0.8 ms

When using gcc-3.4.2 everything is OK.


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux