-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Richard Kenner wrote on 05/04/06 08:19: > * Introduce the notion of GIMPLE statements and GIMPLE > expressions. Each has attributes that the other does not need. A > statement will have location information and no type, while an > expression will have type and no location information. > > Expressions need locations too for proper debugging information.
Yes, but when we map into GIMPLE, a multi-line, multi-expression statement will be converted into many GIMPLE statements, each one will carry the location info from the original statement adjusted with the line number of each expression (I'm hoping this can be carried from the FE into GIMPLE somewhat easily?). My thinking with this was that GIMPLE expressions don't need the location info because it will always be associated with the containing statement. Expressions in GIMPLE are always the RHS of an assignment, so we store the location to the assignment, not the expression. Or is this not feasible? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iD8DBQFEWiA9UTa2oAUaiwQRAk0cAJ4uXc9sYs59BzA8f6rjER3N3fDK+ACfa1tT cpnS0js1hj1nlvb+3thxV90= =2n9c -----END PGP SIGNATURE-----