https://gcc.gnu.org/g:e1c02de3edf9d211a0afaed804e88bcdf9212348
commit r17-1132-ge1c02de3edf9d211a0afaed804e88bcdf9212348 Author: Dhruv Chawla <[email protected]> Date: Thu May 21 11:48:10 2026 +0000 gcc/config: Fix typos in various files Signed-off-by: Dhruv Chawla <[email protected]> gcc/ChangeLog: * config/darwin-c.cc (find_subframework_header): Fix typos. * config/darwin-driver.cc (darwin_find_version_from_kernel): Likewise. * config/darwin.cc (darwin_label_is_anonymous_local_objc_name): Likewise. (fprintf): Likewise. * config/sol2-stubs.cc: Likewise. * config/sol2.cc (solaris_elf_asm_comdat_section): Likewise. * config/sol2.h: Likewise. * config/vx-common.h: Likewise. * config/vxworks.h (vxworks_asm_out_destructor): Likewise. Diff: --- gcc/config/darwin-c.cc | 2 +- gcc/config/darwin-driver.cc | 2 +- gcc/config/darwin.cc | 10 +++++----- gcc/config/sol2-stubs.cc | 2 +- gcc/config/sol2.cc | 2 +- gcc/config/sol2.h | 4 ++-- gcc/config/vx-common.h | 2 +- gcc/config/vxworks.h | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) diff --git a/gcc/config/darwin-c.cc b/gcc/config/darwin-c.cc index e343ef5fb91f..b84bf9dd2cf9 100644 --- a/gcc/config/darwin-c.cc +++ b/gcc/config/darwin-c.cc @@ -546,7 +546,7 @@ find_subframework_header (cpp_reader *pfile, const char *header, cpp_dir **dirp) { /* Logically, the place where we found the subframework is the place where we found the Framework that contains the - subframework. This is useful for tracking wether or not + subframework. This is useful for tracking whether or not we are in a system header. */ *dirp = _cpp_get_file_dir (cpp_get_file (b)); return n; diff --git a/gcc/config/darwin-driver.cc b/gcc/config/darwin-driver.cc index 038b3b329d96..4235c6191084 100644 --- a/gcc/config/darwin-driver.cc +++ b/gcc/config/darwin-driver.cc @@ -197,7 +197,7 @@ darwin_find_version_from_kernel (void) When building cross or native cross compilers, default to the OSX version of the target (as provided by the most specific target header - included in tm.h). This may be overidden by setting the flag explicitly + included in tm.h). This may be overridden by setting the flag explicitly (or by the MACOSX_DEPLOYMENT_TARGET environment). */ static const char * diff --git a/gcc/config/darwin.cc b/gcc/config/darwin.cc index 6008ee7304e7..b83e96f20fc1 100644 --- a/gcc/config/darwin.cc +++ b/gcc/config/darwin.cc @@ -2080,7 +2080,7 @@ darwin_label_is_anonymous_local_objc_name (const char *name) This version uses three mach-o sections to encapsulate the (unlimited number of) lto sections. - __GNU_LTO, __lto_sections contains the concatented GNU LTO section data. + __GNU_LTO, __lto_sections contains the concatenated GNU LTO section data. __GNU_LTO, __section_names contains the GNU LTO section names. __GNU_LTO, __section_index contains an array of values that index these. @@ -2863,7 +2863,7 @@ fprintf (fp, "# adcom: %s (%lld,%d) ro %d cst %d stat %d com %d pub %d" be passed a decl that should be in coalesced space. */ if (one || weak) { - /* Weak or COMDAT objects are put in mergable sections. */ + /* Weak or COMDAT objects are put in mergeable sections. */ darwin_emit_weak_or_comdat (fp, decl, name, size, ld_uses_coal_sects, DECL_ALIGN (decl)); return; @@ -2885,7 +2885,7 @@ fprintf (fp, "# adcom: %s (%lld,%d) ro %d cst %d stat %d com %d pub %d" align = DECL_ALIGN (decl); l2align = floor_log2 (align / BITS_PER_UNIT); - /* Check we aren't asking for more aligment than the platform allows. */ + /* Check we aren't asking for more alignment than the platform allows. */ gcc_checking_assert (l2align <= L2_MAX_OFILE_ALIGNMENT); if (TREE_PUBLIC (decl) != 0) @@ -2900,7 +2900,7 @@ fprintf (fp, "# adcom: %s (%lld,%d) ro %d cst %d stat %d com %d pub %d" darwin_emit_local_bss (fp, decl, name, size, l2align); } -/* Output a chunk of BSS with alignment specfied. */ +/* Output a chunk of BSS with alignment specified. */ void darwin_asm_output_aligned_decl_local (FILE *fp, tree decl, const char *name, unsigned HOST_WIDE_INT size, @@ -2939,7 +2939,7 @@ fprintf (fp, "# adloc: %s (%lld,%d) ro %d cst %d stat %d one %d pub %d" be passed a decl that should be in coalesced space. */ if (one || weak) { - /* Weak or COMDAT objects are put in mergable sections. */ + /* Weak or COMDAT objects are put in mergeable sections. */ darwin_emit_weak_or_comdat (fp, decl, name, size, ld_uses_coal_sects, DECL_ALIGN (decl)); return; diff --git a/gcc/config/sol2-stubs.cc b/gcc/config/sol2-stubs.cc index 3bcf3b31c643..0f1075e55b91 100644 --- a/gcc/config/sol2-stubs.cc +++ b/gcc/config/sol2-stubs.cc @@ -23,7 +23,7 @@ along with GCC; see the file COPYING3. If not see #include "tm.h" #include "tree.h" -/* Stub implemenation of TARGET_CXX_DECL_MANGLING_CONTEXT for non-C++ +/* Stub implementation of TARGET_CXX_DECL_MANGLING_CONTEXT for non-C++ frontends. */ tree solaris_cxx_decl_mangling_context (const_tree decl ATTRIBUTE_UNUSED) diff --git a/gcc/config/sol2.cc b/gcc/config/sol2.cc index c958f1daa5e2..75d9c7061a71 100644 --- a/gcc/config/sol2.cc +++ b/gcc/config/sol2.cc @@ -234,7 +234,7 @@ solaris_elf_asm_comdat_section (const char *name, unsigned int flags, tree decl) /* Unlike GNU as, group signature symbols need to be defined explicitly for Sun as. With a few exceptions, this is already the case. To - identify the missing ones without changing the affected frontents, + identify the missing ones without changing the affected frontends, remember the signature symbols and emit those not marked TREE_SYMBOL_REFERENCED in solaris_file_end. */ if (!solaris_comdat_htab) diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h index ba260e5a14b4..aff67fca3232 100644 --- a/gcc/config/sol2.h +++ b/gcc/config/sol2.h @@ -178,7 +178,7 @@ along with GCC; see the file COPYING3. If not see compilers use values-Xc.o with either -Xc or (since Studio 12.6) -pedantic to select strictly conformant ISO C behaviour, otherwise values-Xa.o. Since -pedantic is a diagnostic option only in GCC, we - need to specifiy the -std=c* options and -std=iso9899:199409. We + need to specify the -std=c* options and -std=iso9899:199409. We traditionally include -ansi, which affects C and C++, and also -std=c++* for consistency. @@ -189,7 +189,7 @@ along with GCC; see the file COPYING3. If not see values-xpg6.o to get C99 semantics. Besides, most of the runtime libraries always require C99 semantics. - Since only one instance of _lib_version and __xpg[46] takes effekt (the + Since only one instance of _lib_version and __xpg[46] takes effect (the first in ld.so.1's search path), we only link the values-*.o files into executable programs. */ #undef STARTFILE_ARCH_SPEC diff --git a/gcc/config/vx-common.h b/gcc/config/vx-common.h index b4538fb349a7..24287ed9b68a 100644 --- a/gcc/config/vx-common.h +++ b/gcc/config/vx-common.h @@ -73,7 +73,7 @@ along with GCC; see the file COPYING3. If not see /* ---------------------- Debug and unwind info formats ------------------ */ -/* Dwarf2 unwind info is supported, unless overriden by a request for a target +/* Dwarf2 unwind info is supported, unless overridden by a request for a target specific format. Always #define DWARF2_UNWIND_INFO to prevent defaults.h from picking a possibly different value. diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index 88d5bd652e3c..ba8e7b033e9a 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -377,7 +377,7 @@ extern void vxworks_asm_out_destructor (rtx symbol, int priority); the base VxWorks environment doesn't come with a GNU toolchain. From VxWorks 7 on, the actual personality might vary for different instances - for a given architecture. The TOOL/TOOL_FAMILY definitions are infered at + for a given architecture. The TOOL/TOOL_FAMILY definitions are inferred at run-time from vxworks-predef.h, which allows accommodating such variations with a single toolchain. */
