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]

Re: [PATCH] Allow -msoft-float -mlong-double-128 without a warning


>>>>> Mark Mitchell writes:

Mark> Why not an error?  And, why does it matter whether or not the long
Mark> double option was explicit?  What about something like:

	-msoft-float is overloaded with two meanings and two uses: 1) do
not use FPRs and 2) provide emulated floating point computations.

	The fpbit library does not support long double, which means that
building fp-bit.c with

TARGET_LIBGCC2_CFLAGS = -mlong-double-128

causes problems.  We have worked around that with a special GCC spec.

	Next, Glibc wants to build some source files that do not use
floating point with -msoft-float to avoid use of FPRs.  The files do need
to have -mlong-double-128 set properly to ensure that any ABI-based
structures have the correct size and alignment.

	The plan is to issue a warning if both options explicitly are
specified, implying that the user really is trying to use and combine the
conflicting options, as opposed to inheriting defaults.

David


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