This discussion is archived
1 Reply Latest reply: Jan 26, 2012 2:37 PM by Steve_Clamage RSS

planned support for gcc __attribute__ regparm?

Frustrated_with_the_Display_Name Newbie
Currently Being Moderated
I'm trying to find out if there are any plans to add support for the gcc "regparm" attribute to the Studio toolchain. I know that many other gcc-isms, including quite a few __attribute__ statements, have been added in recent releases. I think that easing compatibility with gcc and (especially) g++ is a worthy goal and I'm very happy with the efforts so far.

The reason I'm asking about regparm is that it's critical to building libffi , the foreign function interface. libffi is now a dependency for a slew of projects, notably glib >= 2.30 and gobject-introspection for older glib releases. Python and several of its modules also have dependencies on libffi. As it stands right now, it's no longer possible to build glib with Studio, at least if you're building in x86_64 mode.

It would potentially be possible to make libffi work without regparm, but it would require a deep understanding of mixing C and assembly. Barring support for regparm, have any of the Oracle-internal assembly experts looked at the assembly that would be needed to build libffi without __attribute__((regparm)) support?

Thanks much,

Tim

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points