This is the mail archive of the gcc-bugs@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]

Why is there a `0' flag used with `%I' in asm_fprintf ?


Many uses of asm_fprintf in m68k.c and a few in m68hc11.c use the `0'
flag in conjunction with `%I' when calling asm_fprintf.  Reading
through the function body of asm_fprintf in final.c, it appears that
the zero is consumed, but has no effect.  I.e. `%0I' just spits out
IMMEDIATE_PREFIX unmodified as would plain `%I'.

So it seems harmless except for the fact that someone reading the code
in m68k.c might think the `0' flag is supposed to do something.
Should all instances of `%0I' be changed to `%I', or have I missed
something?

		Thanks,
		--Kaveh
--
Kaveh R. Ghazi			ghazi@caip.rutgers.edu


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