This is the mail archive of the gcc@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: PATCH: Explicitly pass --64 to assembler on AMD64 targets


Mark Mitchell <mark@codesourcery.com> writes:

> I would be in favor of making the mode always explicit, as you suggest
> -- but I would prefer that we not embed the assumption that the
> default mode is 64-bit mode in x86-64.h so that we can continue to use
> that file for 32-bit default compilers.  (Perhaps it could go in
> biarch64.h, which assumes 64-bit mode to be the default already?)  Or,
> at least, make it easy for a 32-bit default to override x86-64.h.

Or, if GAS can be told which mode it should be in via directives in
its input (.code32/.code64?), then we could add something like

 fputs (TARGET_64BIT ? "\t.code64\n" : "\t.code32", 
        asm_out_file);

to x86_file_start, and kill the spec hackery altogether.

zw


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