This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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]

A way to remove an AS macro?


  Hello,

  Is there a way to end the recognition of a GAS macro,
 a kind of "#undef" but for GAS and not CPP?

  My problem is that I need to do once a dirty thing
 (no - just once - not kidding): I need a "lretw" at the
 end of a special function instead of "ret".

 So I want to do:
asm (" .macro ret \n lretw \n .endm ");

__attribute__ ((cdecl, regparm (0), section (".xdata"))) static unsigned
linux_set_params (unsigned totalmem,
		  struct loader_t bootloader_type,
		  struct linux_param *LnxParam,
		  struct LOADER_str *loader,
		  struct gpl_compliant_str *togpl,
		  struct desc_str *system_desc,
		  int proposed_row)
  {

... a very long function ...

  return val;
  }

asm (" .end_macro ret \n"); <<<< How can I do that? <<<<

  ....  Other standard functions with the standard "ret" assembly ....

  Is there a way to do so?

  Thanks,
  Etienne.


___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com


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