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

Re: What version of GCC started supporting .arch_extension sec


On Wed, Jul 25, 2012 at 5:02 PM, William Roberts
<bill.c.roberts@gmail.com> wrote:
> Yes it is in the assembler I should have mentioned it, is their a
> separate mailing list for that?

binutils@sourceware.org.  See http://sourceware.org/binutils/ .

> I need a way to conditionally add ".arch_extension sec" based on some
> environment preprocessor flag.
>
> Currently I am currently doing something like this:
> #if __GNUC__ >= 4 && __GNUC_MINOR__ >= 6
>         .arch_extension sec
> #endif
>
> Which I know isn't completely what I want.

It's going to depend on the assembler version, which is logically
independent of the compiler version.  Unfortunately I don't know of a
way to test the assembler version, either in the compiler or in the
assembler.  If you were writing a GNU tool I would recommend testing
the assembler feature in your configure script.

Ian


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