like this:
extern int *___errno(void) __attribute__((__const__));
#define errno (*(___errno()))
- and OS X like this:
+ and macOS like this:
extern int * __error(void);
#define errno (*__error())
and similarly __errno for newlib.
fnext-runtime
ObjC ObjC++ LTO RejectNegative Var(flag_next_runtime)
-Generate code for NeXT (Apple Mac OS X) runtime environment.
+Generate code for NeXT (Apple macOS) runtime environment.
fnil-receivers
ObjC ObjC++ Var(flag_nil_receivers) Init(1)
#endif
-/* Define if your Mac OS X assembler supports -mllvm -x86-pad-for-align=false.
- */
+/* Define if your macOS assembler supports -mllvm -x86-pad-for-align=false. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN
#endif
-/* Define if your Mac OS X assembler supports the -mmacos-version-min option.
- */
+/* Define if your macOS assembler supports the -mmacos-version-min option. */
#ifndef USED_FOR_TARGET
#undef HAVE_AS_MMACOSX_VERSION_MIN_OPTION
#endif
return 0;
}
-/* Given an OS X version VERSION_STR, return it as a statically-allocated array
+/* Given an macOS version VERSION_STR, return it as a statically-allocated array
of three integers. If VERSION_STR is invalid, return NULL.
VERSION_STR must consist of one, two, or three tokens, each separated by
return version_array;
}
-/* Given VERSION -- a three-component OS X version represented as an array of
+/* Given VERSION -- a three-component macOS version represented as an array of
non-negative integers -- return a statically-allocated string suitable for
the legacy __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro. If VERSION
is invalid and cannot be coerced into a valid form, return NULL.
return result;
}
-/* Given VERSION -- a three-component OS X version represented as an array of
+/* Given VERSION -- a three-component macOS version represented as an array of
non-negative integers -- return a statically-allocated string suitable for
the modern __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro. If VERSION
is invalid, return NULL.
/* Return the value of darwin_macosx_version_min, suitably formatted for the
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ macro. Values representing
- OS X 10.9 and earlier are encoded using the legacy four-character format,
+ macOS 10.9 and earlier are encoded using the legacy four-character format,
while 10.10 and later use a modern six-character format. (For example,
"10.9" produces "1090", and "10.10.1" produces "101001".) If
darwin_macosx_version_min is invalid and cannot be coerced into a valid
}
}
- /* We will need to know the OS X version we're trying to build for here
+ /* We will need to know the macOS version we're trying to build for here
so that we can figure out the mechanism and source for the sysroot to
be used. */
if (!seen_version_min)
-/* Target definitions for Darwin (Mac OS X) systems.
+/* Target definitions for Darwin (macOS) systems.
Copyright (C) 1989-2023 Free Software Foundation, Inc.
Contributed by Apple Computer Inc.
#define CONFIG_DARWIN_H
/* The definitions in this file are common to all processor types
- running Darwin, which is the kernel for Mac OS X. Darwin is
+ running Darwin, which is the kernel for macOS. Darwin is
basically a BSD user layer laid over a Mach kernel, then evolved
for many years (at NeXT) in parallel with other Unix systems. So
while the runtime is a somewhat idiosyncratic Mach-based thing,
gcc_cv_as_mmacosx_version_min,
[-mmacosx-version-min=10.1], [.text],,
[AC_DEFINE(HAVE_AS_MMACOSX_VERSION_MIN_OPTION, 1,
- [Define if your Mac OS X assembler supports the -mmacos-version-min option.])])
+ [Define if your macOS assembler supports the -mmacos-version-min option.])])
;;
esac
gcc_cv_as_mllvm_x86_pad_for_align,
[-mllvm -x86-pad-for-align=false], [.text],,
[AC_DEFINE(HAVE_AS_MLLVM_X86_PAD_FOR_ALIGN, 1,
- [Define if your Mac OS X assembler supports -mllvm -x86-pad-for-align=false.])])
+ [Define if your macOS assembler supports -mllvm -x86-pad-for-align=false.])])
;;
esac
@item
Andreas Tobler for Darwin and Solaris testing and fixing, @code{Qt4}
-support for Darwin/OS X, @code{Graphics2D} support, @code{gtk+}
+support for Darwin / macOS, @code{Graphics2D} support, @code{gtk+}
updates.
@item
The following pragmas are available for all architectures running the
Darwin operating system. These are useful for compatibility with other
-Mac OS compilers.
+macOS compilers.
@table @code
@cindex pragma, mark
@end table
G++ implements the Borland model on targets where the linker supports it,
-including ELF targets (such as GNU/Linux), Mac OS X and Microsoft Windows.
+including ELF targets (such as GNU/Linux), macOS and Microsoft Windows.
Otherwise G++ implements neither automatic model.
You have the following options for dealing with template instantiations:
literal string specified with the syntax @code{@@"@dots{}"}. The default
class name is @code{NXConstantString} if the GNU runtime is being used, and
@code{NSConstantString} if the NeXT runtime is being used (see below). On
-Darwin (macOS, MacOS X) platforms, the @option{-fconstant-cfstrings} option, if
+Darwin / macOS platforms, the @option{-fconstant-cfstrings} option, if
also present, overrides the @option{-fconstant-string-class} setting and cause
@code{@@"@dots{}"} literals to be laid out as constant CoreFoundation strings.
Note that @option{-fconstant-cfstrings} is an alias for the target-specific
@opindex fnext-runtime
@item -fnext-runtime
Generate output compatible with the NeXT runtime. This is the default
-for NeXT-based systems, including Darwin and Mac OS X@. The macro
+for NeXT-based systems, including Darwin / macOS. The macro
@code{__NEXT_RUNTIME__} is predefined if (and only if) this option is
used.
Produce debugging information in DWARF format (if that is supported).
The value of @var{version} may be either 2, 3, 4 or 5; the default
version for most targets is 5 (with the exception of VxWorks, TPF and
-Darwin/Mac OS X, which default to version 2, and AIX, which defaults
+Darwin / macOS, which default to version 2, and AIX, which defaults
to version 4).
Note that with DWARF Version 2, some ports require and always
@opindex mdynamic-no-pic
@item -mdynamic-no-pic
-On Darwin and Mac OS X systems, compile code so that it is not
+On Darwin / macOS systems, compile code so that it is not
relocatable, but that its external references are relocatable. The
resulting code is suitable for applications, but not shared
libraries.
Where @var{name} is the plugin name and @var{ext} is the platform-specific
dynamic library extension. It should be @code{dll} on Windows/MinGW,
-@code{dylib} on Darwin/Mac OS X, and @code{so} on all other platforms.
+@code{dylib} on Darwin/macOS, and @code{so} on all other platforms.
The plugin arguments are parsed by GCC and passed to respective
plugins as key-value pairs. Multiple plugins can be invoked by
specifying multiple @option{-fplugin} arguments.
Set this macro to 1 to use the "NeXT" Objective-C message sending conventions
by default. This calling convention involves passing the object, the selector
and the method arguments all at once to the method-lookup library function.
-This is the usual setting when targeting Darwin/Mac OS X systems, which have
+This is the usual setting when targeting Darwin / macOS systems, which have
the NeXT runtime installed.
If the macro is set to 0, the "GNU" Objective-C message sending convention
Set this macro to 1 to use the "NeXT" Objective-C message sending conventions
by default. This calling convention involves passing the object, the selector
and the method arguments all at once to the method-lookup library function.
-This is the usual setting when targeting Darwin/Mac OS X systems, which have
+This is the usual setting when targeting Darwin / macOS systems, which have
the NeXT runtime installed.
If the macro is set to 0, the "GNU" Objective-C message sending convention
using e.g. the @code{ISO_C_BINDING} feature, one can call the
underlying system call to flush dirty data to stable storage, such as
@code{fsync} on POSIX, @code{_commit} on MingW, or @code{fcntl(fd,
-F_FULLSYNC, 0)} on Mac OS X. The following example shows how to call
+F_FULLSYNC, 0)} on macOS. The following example shows how to call
fsync:
@smallexample
ADD_ARG ("-fno-use-linker-plugin");
#if defined (DARWIN_X86) || defined (DARWIN_PPC)
- /* OS X's linker defaults to treating undefined symbols as errors.
+ /* macOS's linker defaults to treating undefined symbols as errors.
If the context has any imported functions or globals they will be
undefined until the .so is dynamically-linked into the process.
Ensure that the driver passes in "-undefined dynamic_lookup" to the
length = TREE_STRING_LENGTH (string) - 1;
/* The target may have different ideas on how to construct an ObjC string
- literal. On Darwin (Mac OS X), for example, we may wish to obtain a
+ literal. On Darwin / macOS, for example, we may wish to obtain a
constant CFString reference instead.
At present, this is only supported for the NeXT runtime. */
if (flag_next_runtime
#if defined(__MINGW32__)
static const char plugin_ext[] = ".dll";
#elif defined(__APPLE__)
- /* Mac OS has two types of libraries: dynamic libraries (.dylib) and
+ /* macOS has two types of libraries: dynamic libraries (.dylib) and
plugins (.bundle). Both can be used with dlopen()/dlsym() but the
former cannot be linked at build time (i.e., with the -lfoo linker
- option). A GCC plugin is therefore probably a Mac OS plugin but their
+ option). A GCC plugin is therefore probably a macOS plugin but their
use seems to be quite rare and the .bundle extension is more of a
recommendation rather than the rule. This raises the questions of how
well they are supported by tools (e.g., libtool). So to avoid