This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with Label Constant


Hi,

I just starts understanding the RTL format. I have a
problem with "Label Constant" ex.(LC0)

When i give the following c program as input to gcc
with the command 'gcc -dr test.c'.
----------------------------------------------------
main(){
        int x,y;
        float m,n,a,b;

        x=y=9;
        if(x==y){
                x=6;
                m=x;
        }
        else{
                y=3;
                n=y;
        }
        a=b=6.5;
        if(x<56);
        if(x>56);
        m=n=6.5;
}
---------------------------------------------------
This is the RTL output
;; Function main
-
-
-
(insn 45 42 47 (set (reg:SF 45)
        (mem/u/f:SF (symbol_ref/u:SI ("*.LC0")) 0)) -1
(nil)(nil))
-
-
-
-
(insn 60 57 62 (set (reg:SF 46)
        (mem/u/f:SF (symbol_ref/u:SI ("*.LC0")) 0)) -1
(nil)(nil))

-
-----------------------------------------------------
So in this output what is the meaning of ("*.LC0") and
why the same thing is repeated at both places.

So reply the solution or give some URL which gives the
detail.

Thanks in advance.

Nitin Jain


-



=====
-------------------------------------------------------------------
Nitin Jain,                       
H-8 ,Room No: 24
I.I.T.Bombay, Powai, Mumbai.
Mail-id: nitin-mbm@yahoo.com 
         nitinj@cse.iitb.ac.in
-------------------------------------------------------------------

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]