From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffrey A Law To: Joel Sherrill Cc: egcs@cygnus.com Subject: Re: REGISTER_PREFIX in egcs 1.0.2 Date: Sun, 03 May 1998 22:02:00 -0000 Message-id: <23594.894252199@hurl.cygnus.com> References: X-SW-Source: 1998-05/msg00070.html In message < Pine.BSF.3.96.980502104403.8122D-100000@vespucci.advicom.net >you write: > The RTEMS source code uses the same trick as newlib to write portable > assembly language across object formats. We try to use the macros > __REGISTER_PREFIX__ and __USER_LABEL_PREFIX__ which are sometimes provided > by gcc. This works great on the m68k and a handful of other CPU families. > But it is not supported by all. > > This would be easy to add to all the configurations if one had the right > knowledge. How would be the safest way to go about adding these to make > sure they are correct? I'm not 100% sure I understand what you're asking for. Are you asking for all the ports to actually use REGISTER_PREFIX and friends? This would be a lot of work, and I doubt it's worth the effort since few ports need this facility. Or are you asking that REGISTER_PREFIX and friends always be available for use by assembly code fed through gcc/cpp? It looks like we try to always make them available (defaulting their value to "" if the target doesn't provide a definition). jeff