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

[PATCH] Cleanup MIPS NetBSD CPP built-ins


It needs a lot more work, mostly because of icky warts in how CPP
is handled in general in the MIPS code.  But incremental improvement
is good :-)

Committed to trunk.

        * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
        (CPP_PREDEFINES): Make sure this is undefined.
        (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
        since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
        or -U__MIPSEB__ before defining one or the other.  Instead, 
        use %(subtarget_endian_default) if neither -EB nor -EL are
        specified.  
        (SUBTARGET_EXTRA_SPECS): Define.
        (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
        %(netbsd_cpp_spec).

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

Attachment: mips-patch
Description: Text document


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