diff options
120 files changed, 310 insertions, 164 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35f8865..a3b18ae 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,56 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * cgraph.c: Spelling fixes - behaviour -> behavior and + neighbour -> neighbor. + * target.def: Likewise. + * sel-sched.c: Likewise. + * config/mips/mips.c: Likewise. + * config/arc/arc.md: Likewise. + * config/arm/cortex-a57.md: Likewise. + * config/arm/arm.c: Likewise. + * config/arm/neon.md: Likewise. + * config/arm/arm-c.c: Likewise. + * config/vms/vms-c.c: Likewise. + * config/s390/s390.c: Likewise. + * config/i386/znver1.md: Likewise. + * config/i386/i386.c: Likewise. + * config/ia64/hpux-unix2003.h: Likewise. + * config/msp430/msp430.md: Likewise. + * config/rx/rx.c: Likewise. + * config/rx/rx.md: Likewise. + * config/aarch64/aarch64-simd.md: Likewise. + * config/aarch64/aarch64.c: Likewise. + * config/nvptx/nvptx.c: Likewise. + * config/bfin/bfin.c: Likewise. + * config/cris/cris.opt: Likewise. + * config/rs6000/rs6000.c: Likewise. + * target.h: Likewise. + * spellcheck.c: Likewise. + * ira-build.c: Likewise. + * tree-inline.c: Likewise. + * builtins.c: Likewise. + * lra-constraints.c: Likewise. + * explow.c: Likewise. + * hwint.h: Likewise. + * targhooks.c: Likewise. + * tree-vect-data-refs.c: Likewise. + * expr.c: Likewise. + * doc/tm.texi: Likewise. + * doc/extend.texi: Likewise. + * doc/install.texi: Likewise. + * doc/md.texi: Likewise. + * tree-ssa-tail-merge.c: Likewise. + * sched-int.h: Likewise. + * match.pd: Likewise. + * sched-ebb.c: Likewise. + * target.def (omit_struct_return_reg): Likewise. + * gimple-ssa-isolate-paths.c: Likewise. + (find_implicit_erroneous_behaviour): Renamed to... + (find_implicit_erroneous_behavior): ... this. + (find_explicit_erroneous_behaviour): Renamed to... + (find_explicit_erroneous_behavior): ... this. + (gimple_ssa_isolate_erroneous_paths): Adjust caller. + 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org> PR rtl-optimization/64682 diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index 38486f1..ec6a8c4 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,19 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * prj-tree.ads: Spelling fixes - behaviour -> behavior and + neighbour -> neighbor. + * prep.adb: Likewise. + * prj.ads: Likewise. + * prepcomp.adb: Likewise. + * g-socket.ads: Likewise. + * s-imgrea.adb: Likewise. + * a-calend.adb: Likewise. + * exp_disp.adb: Likewise. + * doc/gnat_ugn/gnat_utility_programs.rst: Likewise. + * g-socket.adb: Likewise. + * sem_ch12.adb: Likewise. + * terminals.c: Likewise. + 2016-02-08 Bernd Schmidt <bschmidt@redhat.com> * gcc-interface/misc.c (gnat_init): Remove second argument in call to diff --git a/gcc/ada/a-calend.adb b/gcc/ada/a-calend.adb index 7c582ad..9fcc299 100644 --- a/gcc/ada/a-calend.adb +++ b/gcc/ada/a-calend.adb @@ -63,7 +63,7 @@ package body Ada.Calendar is -- procedure Split (9 or 10 parameters) -+ -- end Ada.Calendar.Formatting - -- The behaviour of the interfacing routines is controlled via various + -- The behavior of the interfacing routines is controlled via various -- flags. All new Ada 2005 types from children of Ada.Calendar are -- emulated by a similar type. For instance, type Day_Number is replaced -- by Integer in various routines. One ramification of this model is that diff --git a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst index 2a92500..2ee90d3 100644 --- a/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst +++ b/gcc/ada/doc/gnat_ugn/gnat_utility_programs.rst @@ -4527,7 +4527,7 @@ Alternatively, you may run the script using the following command line: ``--additional-tests`` switch. * ``Skeletons_Default`` - is used to specify the default behaviour of test skeletons, otherwise + is used to specify the default behavior of test skeletons, otherwise specified by ``--skeleton-default`` option. The value of this attribute should be either ``pass`` or ``fail``. diff --git a/gcc/ada/exp_disp.adb b/gcc/ada/exp_disp.adb index 7abc0b5..578f000 100644 --- a/gcc/ada/exp_disp.adb +++ b/gcc/ada/exp_disp.adb @@ -2668,7 +2668,7 @@ package body Exp_Disp is -- F := not Cancelled (Bnn); -- where F is the success flag. The status of Cancelled is negated - -- in order to match the behaviour of the version for task types. + -- in order to match the behavior of the version for task types. Append_To (Stmts, Make_Assignment_Statement (Loc, diff --git a/gcc/ada/g-socket.adb b/gcc/ada/g-socket.adb index 3a10c9c..5943008 100644 --- a/gcc/ada/g-socket.adb +++ b/gcc/ada/g-socket.adb @@ -481,7 +481,7 @@ package body GNAT.Sockets is return; -- On other platforms, fd_set is an FD_SETSIZE bitmap: check - -- that Fd is within range (otherwise behaviour is undefined). + -- that Fd is within range (otherwise behavior is undefined). elsif Fd < 0 or else Fd >= SOSC.FD_SETSIZE then raise Constraint_Error diff --git a/gcc/ada/g-socket.ads b/gcc/ada/g-socket.ads index 517dd4f..ff293de 100644 --- a/gcc/ada/g-socket.ads +++ b/gcc/ada/g-socket.ads @@ -1066,10 +1066,10 @@ package GNAT.Sockets is -- blocks until an event occurs. On some platforms, the select(2) system -- can block the full process (not just the calling thread). -- - -- Check_Selector provides the very same behaviour. The only difference is + -- Check_Selector provides the very same behavior. The only difference is -- that it does not watch for exception events. Note that on some platforms -- it is kept process blocking on purpose. The timeout parameter allows the - -- user to have the behaviour he wants. Abort_Selector allows the safe + -- user to have the behavior he wants. Abort_Selector allows the safe -- abort of a blocked Check_Selector call. A special socket is opened by -- Create_Selector and included in each call to Check_Selector. -- diff --git a/gcc/ada/prep.adb b/gcc/ada/prep.adb index bb215c3..d5672ba 100644 --- a/gcc/ada/prep.adb +++ b/gcc/ada/prep.adb @@ -120,9 +120,9 @@ package body Prep is String_False : String_Id; -- "false", as a string_id - --------------- - -- Behaviour -- - --------------- + -------------- + -- Behavior -- + -------------- -- Accesses to procedure specified by procedure Initialize diff --git a/gcc/ada/prepcomp.adb b/gcc/ada/prepcomp.adb index 737ebf2..549d7f8 100644 --- a/gcc/ada/prepcomp.adb +++ b/gcc/ada/prepcomp.adb @@ -661,7 +661,7 @@ package body Prepcomp is Scn.Scanner.Initialize_Scanner (Deffile); Prep.Parse_Def_File; - -- Reset the behaviour of the scanner to the default + -- Reset the behavior of the scanner to the default Scn.Scanner.Set_End_Of_Line_As_Token (False); diff --git a/gcc/ada/prj-tree.ads b/gcc/ada/prj-tree.ads index e012d37..a36e9f9 100644 --- a/gcc/ada/prj-tree.ads +++ b/gcc/ada/prj-tree.ads @@ -260,7 +260,7 @@ package Prj.Tree is -- For each function the condition of validity is specified. If an access -- function is called with invalid arguments, then exception -- Assertion_Error is raised if assertions are enabled, otherwise the - -- behaviour is not defined and may result in a crash. + -- behavior is not defined and may result in a crash. function Name_Of (Node : Project_Node_Id; @@ -733,7 +733,7 @@ package Prj.Tree is -- Foe each Set_* procedure the condition of validity is specified. If an -- access function is called with invalid arguments, then exception -- Assertion_Error is raised if assertions are enabled, otherwise the - -- behaviour is not defined and may result in a crash. + -- behavior is not defined and may result in a crash. -- These are very low-level, and manipulate the tree itself directly. You -- should look at the Create_* procedure instead if you want to use higher diff --git a/gcc/ada/prj.ads b/gcc/ada/prj.ads index 4af4f3c..2b20f6a 100644 --- a/gcc/ada/prj.ads +++ b/gcc/ada/prj.ads @@ -1828,7 +1828,7 @@ package Prj is -- Severity of some situations, such as: no Ada sources in a project where -- Ada is one of the language. -- - -- When the situation occurs, the behaviour depends on the setting: + -- When the situation occurs, the behavior depends on the setting: -- -- - Silent: no action -- - Warning: issue a warning, does not cause the tool to fail diff --git a/gcc/ada/s-imgrea.adb b/gcc/ada/s-imgrea.adb index 827b5f5..3847c54 100644 --- a/gcc/ada/s-imgrea.adb +++ b/gcc/ada/s-imgrea.adb @@ -482,7 +482,7 @@ package body System.Img_Real is -- an invalid bit pattern resulting from erroneous execution -- (caused by using uninitialized variables for example). - -- No matter what, we'll at least get reasonable behaviour, + -- No matter what, we'll at least get reasonable behavior, -- converting to infinity or some other value, or causing an -- exception to be raised is fine. diff --git a/gcc/ada/sem_ch12.adb b/gcc/ada/sem_ch12.adb index aa19cd5..8fdd700 100644 --- a/gcc/ada/sem_ch12.adb +++ b/gcc/ada/sem_ch12.adb @@ -7969,7 +7969,7 @@ package body Sem_Ch12 is end if; -- At this point either both nodes came from source or we approximated - -- their source locations through neighbouring source statements. + -- their source locations through neighboring source statements. T1 := Top_Level_Location (Sloc (P1)); T2 := Top_Level_Location (Sloc (P2)); diff --git a/gcc/ada/terminals.c b/gcc/ada/terminals.c index 69fe358..d72eb09 100644 --- a/gcc/ada/terminals.c +++ b/gcc/ada/terminals.c @@ -170,7 +170,7 @@ static int Vw32_start_process_inherit_error_mode = 1; /* Control whether spawnve quotes arguments as necessary to ensure correct parsing by child process. Because not all uses of spawnve - are careful about constructing argv arrays, we make this behaviour + are careful about constructing argv arrays, we make this behavior conditional (off by default, since a similar operation is already done in g-expect.adb by calling Normalize_Argument). */ static int Vw32_quote_process_args = 0; diff --git a/gcc/builtins.c b/gcc/builtins.c index eec4a58..058ecc3 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -8908,7 +8908,7 @@ fold_builtin_next_arg (tree exp, bool va_start_p) { warning_at (current_location, OPT_Wvarargs, - "undefined behaviour when second parameter of " + "undefined behavior when second parameter of " "%<va_start%> is declared with %<register%> storage"); } diff --git a/gcc/cgraph.c b/gcc/cgraph.c index 5331f7f..7727313 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -2220,7 +2220,7 @@ cgraph_node::get_availability (void) avail = AVAIL_AVAILABLE; /* Inline functions are safe to be analyzed even if their symbol can be overwritten at runtime. It is not meaningful to enforce any sane - behaviour on replacing inline function by different body. */ + behavior on replacing inline function by different body. */ else if (DECL_DECLARED_INLINE_P (decl)) avail = AVAIL_AVAILABLE; @@ -2784,7 +2784,7 @@ cgraph_edge::verify_corresponds_to_fndecl (tree decl) node = node->ultimate_alias_target (); /* Optimizers can redirect unreachable calls or calls triggering undefined - behaviour to builtin_unreachable. */ + behavior to builtin_unreachable. */ if (DECL_BUILT_IN_CLASS (callee->decl) == BUILT_IN_NORMAL && DECL_FUNCTION_CODE (callee->decl) == BUILT_IN_UNREACHABLE) return false; diff --git a/gcc/config/aarch64/aarch64-simd.md b/gcc/config/aarch64/aarch64-simd.md index e1f5682..3047841 100644 --- a/gcc/config/aarch64/aarch64-simd.md +++ b/gcc/config/aarch64/aarch64-simd.md @@ -1785,7 +1785,7 @@ ;; the lower architectural lanes of the vector, for these patterns we want ;; to always treat "hi" as referring to the higher architectural lanes. ;; Consequently, while the patterns below look inconsistent with our -;; other big-endian patterns their behaviour is as required. +;; other big-endian patterns their behavior is as required. (define_expand "vec_unpacks_lo_<mode>" [(match_operand:<VWIDE> 0 "register_operand" "") diff --git a/gcc/config/aarch64/aarch64.c b/gcc/config/aarch64/aarch64.c index a2d880d..8326a4c 100644 --- a/gcc/config/aarch64/aarch64.c +++ b/gcc/config/aarch64/aarch64.c @@ -8632,14 +8632,14 @@ enum aarch64_attr_opt_type /* All the information needed to handle a target attribute. NAME is the name of the attribute. - ATTR_TYPE specifies the type of behaviour of the attribute as described + ATTR_TYPE specifies the type of behavior of the attribute as described in the definition of enum aarch64_attr_opt_type. ALLOW_NEG is true if the attribute supports a "no-" form. HANDLER is the function that takes the attribute string and whether it is a pragma or attribute and handles the option. It is needed only when the ATTR_TYPE is aarch64_attr_custom. OPT_NUM is the enum specifying the option that the attribute modifies. - This is needed for attributes that mirror the behaviour of a command-line + This is needed for attributes that mirror the behavior of a command-line option, that is it has ATTR_TYPE aarch64_attr_mask, aarch64_attr_bool or aarch64_attr_enum. */ diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index 602cf0b..6a8ec83 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -4721,7 +4721,7 @@ ;; Comment in final.c (insn_current_reference_address) says ;; forward branch addresses are calculated from the next insn after branch ;; and for backward branches, it is calculated from the branch insn start. - ;; The shortening logic here is tuned to accomodate this behaviour + ;; The shortening logic here is tuned to accomodate this behavior ;; ??? This should be grokked by the ccfsm machinery. (define_insn "cbranchsi4_scratch" [(set (pc) diff --git a/gcc/config/arm/arm-c.c b/gcc/config/arm/arm-c.c index 2f1035b..982a606 100644 --- a/gcc/config/arm/arm-c.c +++ b/gcc/config/arm/arm-c.c @@ -164,7 +164,7 @@ arm_cpu_builtins (struct cpp_reader* pfile) if (arm_arch_iwmmxt2) builtin_define ("__IWMMXT2__"); /* ARMv6KZ was originally identified as the misspelled __ARM_ARCH_6ZK__. To - preserve the existing behaviour, the misspelled feature macro must still be + preserve the existing behavior, the misspelled feature macro must still be defined. */ if (arm_arch6kz) builtin_define ("__ARM_ARCH_6ZK__"); diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 82becef..6b73771 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -28899,7 +28899,7 @@ arm_emit_coreregs_64bit_shift (enum rtx_code code, rtx out, rtx in, shift-by-register would give. This helps reduce execution differences between optimization levels, but it won't stop other parts of the compiler doing different things. This is "undefined - behaviour, in any case. */ + behavior, in any case. */ if (INTVAL (amount) <= 0) emit_insn (gen_movdi (out, in)); else if (INTVAL (amount) >= 64) diff --git a/gcc/config/arm/cortex-a57.md b/gcc/config/arm/cortex-a57.md index 758d382..ca6cfc0 100644 --- a/gcc/config/arm/cortex-a57.md +++ b/gcc/config/arm/cortex-a57.md @@ -324,7 +324,7 @@ "ca57_mx") ;; All multiplies -;; TODO: AArch32 and AArch64 have different behaviour +;; TODO: AArch32 and AArch64 have different behavior (define_insn_reservation "cortex_a57_mult32" 3 (and (eq_attr "tune" "cortexa57") (ior (eq_attr "mul32" "yes") diff --git a/gcc/config/arm/neon.md b/gcc/config/arm/neon.md index f495d40..879c07c 100644 --- a/gcc/config/arm/neon.md +++ b/gcc/config/arm/neon.md @@ -1836,7 +1836,7 @@ ; particular, denormal values are flushed to zero. This means that GCC cannot ; use those instructions for autovectorization, etc. unless ; -funsafe-math-optimizations is in effect (in which case flush-to-zero -; behaviour is permissible). Intrinsic operations (provided by the arm_neon.h +; behavior is permissible). Intrinsic operations (provided by the arm_neon.h ; header) must work in either case: if -funsafe-math-optimizations is given, ; intrinsics expand to "canonical" RTL where possible, otherwise intrinsics ; expand to unspecs (which may potentially limit the extent to which they might diff --git a/gcc/config/bfin/bfin.c b/gcc/config/bfin/bfin.c index 120cd79..75ddcf0 100644 --- a/gcc/config/bfin/bfin.c +++ b/gcc/config/bfin/bfin.c @@ -4092,7 +4092,7 @@ reorder_var_tracking_notes (void) } /* On some silicon revisions, functions shorter than a certain number of cycles - can cause unpredictable behaviour. Work around this by adding NOPs as + can cause unpredictable behavior. Work around this by adding NOPs as needed. */ static void workaround_rts_anomaly (void) diff --git a/gcc/config/cris/cris.opt b/gcc/config/cris/cris.opt index 918c824..1b663eb 100644 --- a/gcc/config/cris/cris.opt +++ b/gcc/config/cris/cris.opt @@ -21,7 +21,7 @@ ; TARGET_MUL_BUG: Whether or not to work around multiplication ; instruction hardware bug when generating code for models where ; it may be present. From the trouble report for Etrax 100 LX: -; "A multiply operation may cause incorrect cache behaviour +; "A multiply operation may cause incorrect cache behavior ; under some specific circumstances. The problem can occur if ; the instruction following the multiply instruction causes a ; cache miss, and multiply operand 1 (source operand) bits diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 1215ae4..a1c87ab 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -19705,7 +19705,7 @@ distance_non_agu_define_in_bb (unsigned int regno1, unsigned int regno2, /* Search backward for non-agu definition of register number REGNO1 or register number REGNO2 in INSN's basic block until 1. Pass LEA_SEARCH_THRESHOLD instructions, or - 2. Reach neighbour BBs boundary, or + 2. Reach neighbor BBs boundary, or 3. Reach agu definition. Returns the distance between the non-agu definition point and INSN. If no definition point, returns -1. */ diff --git a/gcc/config/i386/znver1.md b/gcc/config/i386/znver1.md index b7fcf6c..6e23188 100644 --- a/gcc/config/i386/znver1.md +++ b/gcc/config/i386/znver1.md @@ -40,7 +40,7 @@ ;; Direct instructions can be issued to any of the four decoders. (define_reservation "znver1-direct" "znver1-decode0|znver1-decode1|znver1-decode2|znver1-decode3") -;; Fix me: Need to revisit this later to simulate fast path double behaviour. +;; Fix me: Need to revisit this later to simulate fast path double behavior. (define_reservation "znver1-double" "znver1-direct") diff --git a/gcc/config/ia64/hpux-unix2003.h b/gcc/config/ia64/hpux-unix2003.h index 36418be..0997723 100644 --- a/gcc/config/ia64/hpux-unix2003.h +++ b/gcc/config/ia64/hpux-unix2003.h @@ -1,6 +1,6 @@ /* For HP-UX 11.31 and greater, use unix2003.o instead of unix98.o to - get correct C99 snprintf behaviour with buffer overflow. */ + get correct C99 snprintf behavior with buffer overflow. */ #undef STARTFILE_SPEC #define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s} \ diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 697abc2..5af3d1e 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -13519,7 +13519,7 @@ mips_process_sync_loop (rtx_insn *insn, rtx *operands) /* When using branch likely (-mfix-r10000), the delay slot instruction will be annulled on false. The normal delay slot instructions calculate the overall result of the atomic operation and must not - be annulled. To ensure this behaviour unconditionally use a NOP + be annulled. To ensure this behavior unconditionally use a NOP in the delay slot for the branch likely case. */ if (TARGET_CB_MAYBE) @@ -19121,7 +19121,7 @@ void mips_function_profiler (FILE *file) } /* Implement TARGET_SHIFT_TRUNCATION_MASK. We want to keep the default - behaviour of TARGET_SHIFT_TRUNCATION_MASK for non-vector modes even + behavior of TARGET_SHIFT_TRUNCATION_MASK for non-vector modes even when TARGET_LOONGSON_VECTORS is true. */ static unsigned HOST_WIDE_INT diff --git a/gcc/config/msp430/msp430.md b/gcc/config/msp430/msp430.md index bcf5dac..4df4970 100644 --- a/gcc/config/msp430/msp430.md +++ b/gcc/config/msp430/msp430.md @@ -738,7 +738,7 @@ ;; ;; Note - we ignore shift counts of less than one or more than 15. ;; This is permitted by the ISO C99 standard as such shifts result -;; in "undefined" behaviour. [6.5.7 (3)] +;; in "undefined" behavior. [6.5.7 (3)] ;; signed A << C diff --git a/gcc/config/nvptx/nvptx.c b/gcc/config/nvptx/nvptx.c index 78614f8..a955c04 100644 --- a/gcc/config/nvptx/nvptx.c +++ b/gcc/config/nvptx/nvptx.c @@ -600,7 +600,7 @@ write_arg_mode (std::stringstream &s, int for_reg, int argno, is true, if this is a prototyped function, rather than an old-style C declaration. Returns the next argument number to use. - The promotion behaviour here must match the regular GCC function + The promotion behavior here must match the regular GCC function parameter marshalling machinery. */ static int @@ -652,7 +652,7 @@ write_return_mode (std::stringstream &s, bool for_proto, machine_mode mode) /* Process a function return TYPE to emit a PTX return as a prototype or function prologue declaration. Returns true if return is via an - additional pointer parameter. The promotion behaviour here must + additional pointer parameter. The promotion behavior here must match the regular GCC function return mashalling. */ static bool @@ -1620,7 +1620,7 @@ nvptx_assemble_decl_begin (FILE *file, const char *name, const char *section, elt_size &= -elt_size; /* Extract LSB set. */ init_frag.size = elt_size; - /* Avoid undefined shift behaviour by using '2'. */ + /* Avoid undefined shift behavior by using '2'. */ init_frag.mask = ((unsigned HOST_WIDE_INT)2 << (elt_size * BITS_PER_UNIT - 1)) - 1; init_frag.val = 0; diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index c7e0634..eed50f4 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -26060,7 +26060,7 @@ rs6000_emit_prologue (void) because code emitted by gcc for a (non-pointer) function call doesn't save and restore R2. Instead, R2 is managed out-of-line by a linker generated plt call stub when the function resides in - a shared library. This behaviour is costly to describe in DWARF, + a shared library. This behavior is costly to describe in DWARF, both in terms of the size of DWARF info and the time taken in the unwinder to interpret it. R2 changes, apart from the calls_eh_return case earlier in this function, are handled by diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index 4cf840c..88cf18c 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -2884,7 +2884,7 @@ rx_file_start (void) static bool rx_is_ms_bitfield_layout (const_tree record_type ATTRIBUTE_UNUSED) { - /* The packed attribute overrides the MS behaviour. */ + /* The packed attribute overrides the MS behavior. */ return ! TYPE_PACKED (record_type); } diff --git a/gcc/config/rx/rx.md b/gcc/config/rx/rx.md index 5b79e6a..787c37b 100644 --- a/gcc/config/rx/rx.md +++ b/gcc/config/rx/rx.md @@ -408,7 +408,7 @@ ;; Note - the following set of patterns do not use the "memory_operand" ;; predicate or an "m" constraint because we do not allow symbol_refs ;; or label_refs as legitimate memory addresses. This matches the -;; behaviour of most of the RX instructions. Only the call/branch +;; behavior of most of the RX instructions. Only the call/branch ;; instructions are allowed to refer to symbols/labels directly. ;; The call operands are in QImode because that is the value of ;; FUNCTION_MODE diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 299d9a8..9facd96 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -13603,7 +13603,7 @@ s390_sched_init (FILE *file ATTRIBUTE_UNUSED, The loop is analyzed for memory accesses by calling check_dpu for each rtx of the loop. Depending on the loop_depth and the amount of memory accesses a new number <=nunroll is returned to improve the - behaviour of the hardware prefetch unit. */ + behavior of the hardware prefetch unit. */ static unsigned s390_loop_unroll_adjust (unsigned nunroll, struct loop *loop) { diff --git a/gcc/config/vms/vms-c.c b/gcc/config/vms/vms-c.c index f2f5199..392b2db 100644 --- a/gcc/config/vms/vms-c.c +++ b/gcc/config/vms/vms-c.c @@ -151,7 +151,7 @@ vms_pragma_nomember_alignment (cpp_reader *pfile ATTRIBUTE_UNUSED) 1) extern int name; 2) int name; 3) int name = 5; - See below for the behaviour as implemented by the native compiler. + See below for the behavior as implemented by the native compiler. */ enum extern_model_kind diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1b4ebd3..9e03f18 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,12 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * error.c: Spelling fixes - behaviour -> behavior and + neighbour -> neighbor. + * decl.c: Likewise. + * typeck.c (cp_build_binary_op): Fix up behavior spelling in + diagnostics. + * init.c (build_delete): Likewise. + 2016-02-11 Jakub Jelinek <jakub@redhat.com> PR c/69768 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 09bd512..30eef5c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -15036,7 +15036,7 @@ cxx_maybe_build_cleanup (tree decl, tsubst_flags_t complain) /* build_delete sets the location of the destructor call to the current location, even though the destructor is going to be called later, at the end of the current scope. This can lead to - a "jumpy" behaviour for users of debuggers when they step around + a "jumpy" behavior for users of debuggers when they step around the end of the block. So let's unset the location of the destructor call instead. */ protected_set_expr_location (cleanup, UNKNOWN_LOCATION); diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 3f9cf4a..aa5fd41 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -2844,7 +2844,7 @@ decl_as_dwarf_string (tree decl, int flags) { const char *name; /* Curiously, reinit_cxx_pp doesn't reset the flags field, so setting the flag - here will be adequate to get the desired behaviour. */ + here will be adequate to get the desired behavior. */ cxx_pp->flags |= pp_c_flag_gnu_v3; name = decl_as_string (decl, flags); /* Subsequent calls to the pretty printer shouldn't use this style. */ @@ -2876,7 +2876,7 @@ lang_decl_dwarf_name (tree decl, int v, bool translate) { const char *name; /* Curiously, reinit_cxx_pp doesn't reset the flags field, so setting the flag - here will be adequate to get the desired behaviour. */ + here will be adequate to get the desired behavior. */ cxx_pp->flags |= pp_c_flag_gnu_v3; name = lang_decl_name (decl, v, translate); /* Subsequent calls to the pretty printer shouldn't use this style. */ diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 338f85e..f6ceb7f 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -4390,12 +4390,12 @@ build_delete (tree otype, tree addr, special_function_kind auto_delete, warning (OPT_Wdelete_non_virtual_dtor, "deleting object of abstract class type %qT" " which has non-virtual destructor" - " will cause undefined behaviour", type); + " will cause undefined behavior", type); else warning (OPT_Wdelete_non_virtual_dtor, "deleting object of polymorphic class type %qT" " which has non-virtual destructor" - " might cause undefined behaviour", type); + " might cause undefined behavior", type); } } } diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c index 3a247d8..1ffb135 100644 --- a/gcc/cp/typeck.c +++ b/gcc/cp/typeck.c @@ -4492,7 +4492,7 @@ cp_build_binary_op (location_t location, || (TREE_CODE (orig_op1) == STRING_CST && !integer_zerop (cp_fully_fold (op0))))) warning (OPT_Waddress, "comparison with string literal results " - "in unspecified behaviour"); + "in unspecified behavior"); build_type = boolean_type_node; if ((code0 == INTEGER_TYPE || code0 == REAL_TYPE @@ -4793,7 +4793,8 @@ cp_build_binary_op (location_t location, || TREE_CODE (orig_op1) == STRING_CST) { if (complain & tf_warning) - warning (OPT_Waddress, "comparison with string literal results in unspecified behaviour"); + warning (OPT_Waddress, "comparison with string literal results " + "in unspecified behavior"); } if (code0 == VECTOR_TYPE && code1 == VECTOR_TYPE) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 0da5a16..78017fe 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -4336,7 +4336,7 @@ interrupt controller (EIC) mode is in use, this can be explicitly set using Priority Level (IPL) is copied to the current IPL which has the effect of only enabling higher priority interrupts. To use vectored interrupt mode use the argument @code{vector=[sw0|sw1|hw0|hw1|hw2|hw3|hw4|hw5]}, this will change -the behaviour of the non-masked interrupt support and GCC will arrange to mask +the behavior of the non-masked interrupt support and GCC will arrange to mask all interrupts from sw0 up to and including the specified interrupt vector. You can use the following attributes to modify the behavior diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index 3df7974..4155370 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1549,7 +1549,7 @@ see ``RS/6000 and PowerPC Options'' in the main manual. @option{--with-aix-soname} is currently supported by @samp{libgcc_s} only, so this option is still experimental and not for normal use yet. -Default is the traditional behaviour @option{--with-aix-soname=@samp{aix}}. +Default is the traditional behavior @option{--with-aix-soname=@samp{aix}}. @item --enable-languages=@var{lang1},@var{lang2},@dots{} Specify that only a particular subset of compilers and diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 864824f..f9ecfce 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -9426,7 +9426,7 @@ nondeterministic treatment means trying all alternatives, some of them may be rejected by reservations in the subsequent insns. @item -@dfn{collapse-ndfa} modifies the behaviour of the generator when +@dfn{collapse-ndfa} modifies the behavior of the generator when producing an automaton. An additional state transition to collapse a nondeterministic @acronym{NDFA} state to a deterministic @acronym{DFA} state is generated. It can be triggered by passing @code{const0_rtx} to diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index faf8bcb..8b3bccd 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -4422,7 +4422,7 @@ saving and restoring an arbitrary return value. Normally, when a function returns a structure by memory, the address is passed as an invisible pointer argument, but the compiler also arranges to return the address from the function like it would a normal -pointer return value. Define this to true if that behaviour is +pointer return value. Define this to true if that behavior is undesirable on your target. @end deftypevr diff --git a/gcc/explow.c b/gcc/explow.c index 496e02a..cd7c568 100644 --- a/gcc/explow.c +++ b/gcc/explow.c @@ -875,7 +875,7 @@ promote_ssa_mode (const_tree name, int *punsignedp) -/* Controls the behaviour of {anti_,}adjust_stack. */ +/* Controls the behavior of {anti_,}adjust_stack. */ static bool suppress_reg_args_size; /* A helper for adjust_stack and anti_adjust_stack. */ @@ -8238,7 +8238,7 @@ expand_expr_real_2 (sepops ops, rtx target, machine_mode tmode, else { /* For disjoint address spaces, converting anything but a null - pointer invokes undefined behaviour. We truncate or extend the + pointer invokes undefined behavior. We truncate or extend the value as if we'd converted via integers, which handles 0 as required, and all others as the programmer likely expects. */ #ifndef POINTERS_EXTEND_UNSIGNED diff --git a/gcc/gimple-ssa-isolate-paths.c b/gcc/gimple-ssa-isolate-paths.c index 92a36b6..bee3f9a 100644 --- a/gcc/gimple-ssa-isolate-paths.c +++ b/gcc/gimple-ssa-isolate-paths.c @@ -114,9 +114,9 @@ insert_trap (gimple_stmt_iterator *si_p, tree op) *si_p = gsi_for_stmt (stmt); } -/* BB when reached via incoming edge E will exhibit undefined behaviour +/* BB when reached via incoming edge E will exhibit undefined behavior at STMT. Isolate and optimize the path which exhibits undefined - behaviour. + behavior. Isolation is simple. Duplicate BB and redirect E to BB'. @@ -156,14 +156,14 @@ isolate_path (basic_block bb, basic_block duplicate, /* There may be more than one statement in DUPLICATE which exhibits - undefined behaviour. Ultimately we want the first such statement in + undefined behavior. Ultimately we want the first such statement in DUPLCIATE so that we're able to delete as much code as possible. - So each time we discover undefined behaviour in DUPLICATE, search for - the statement which triggers undefined behaviour. If found, then + So each time we discover undefined behavior in DUPLICATE, search for + the statement which triggers undefined behavior. If found, then transform the statement into a trap and delete everything after the statement. If not found, then this particular instance was subsumed by - an earlier instance of undefined behaviour and there's nothing to do. + an earlier instance of undefined behavior and there's nothing to do. This is made more complicated by the fact that we have STMT, which is in BB rather than in DUPLICATE. So we set up two iterators, one for each @@ -215,7 +215,7 @@ isolate_path (basic_block bb, basic_block duplicate, When found isolate and optimize the path associated with the PHI argument feeding the erroneous statement. */ static void -find_implicit_erroneous_behaviour (void) +find_implicit_erroneous_behavior (void) { basic_block bb; @@ -353,12 +353,12 @@ find_implicit_erroneous_behaviour (void) } } -/* Look for statements which exhibit erroneous behaviour. For example +/* Look for statements which exhibit erroneous behavior. For example a NULL pointer dereference. - When found, optimize the block containing the erroneous behaviour. */ + When found, optimize the block containing the erroneous behavior. */ static void -find_explicit_erroneous_behaviour (void) +find_explicit_erroneous_behavior (void) { basic_block bb; @@ -485,11 +485,11 @@ gimple_ssa_isolate_erroneous_paths (void) initialize_original_copy_tables (); /* Search all the blocks for edges which, if traversed, will - result in undefined behaviour. */ + result in undefined behavior. */ cfg_altered = false; /* First handle cases where traversal of a particular edge - triggers undefined behaviour. These cases require creating + triggers undefined behavior. These cases require creating duplicate blocks and thus new SSA_NAMEs. We want that process complete prior to the phase where we start @@ -501,8 +501,8 @@ gimple_ssa_isolate_erroneous_paths (void) back to the manager but we could still have dangling references to the released SSA_NAME in unreachable blocks. that any released names not have dangling references in the IL. */ - find_implicit_erroneous_behaviour (); - find_explicit_erroneous_behaviour (); + find_implicit_erroneous_behavior (); + find_explicit_erroneous_behavior (); free_original_copy_tables (); diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index c0a6dda..6c6ed9d 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,9 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * gofrontend/lex.cc: Spelling fixes - behaviour -> behavior and + neighbour -> neighbor. + * gccgo.texi: Likewise. + 2016-01-27 Ian Lance Taylor <iant@google.com> * go-lang.c (go_langhook_init_options_struct): Default to diff --git a/gcc/go/gccgo.texi b/gcc/go/gccgo.texi index 0c58a1e..88eb46a 100644 --- a/gcc/go/gccgo.texi +++ b/gcc/go/gccgo.texi @@ -284,7 +284,7 @@ package object files together into a single shared library or archive. At link time you must explicitly tell @command{gccgo} which files to link together into the executable, as is usual with @command{gcc}. -This is different from the behaviour of other Go compilers. +This is different from the behavior of other Go compilers. @node C Interoperability @chapter C Interoperability diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc index 30167e5..34a0811 100644 --- a/gcc/go/gofrontend/lex.cc +++ b/gcc/go/gofrontend/lex.cc @@ -881,7 +881,7 @@ Lex::gather_identifier() && (cc < '0' || cc > '9')) { // Check for an invalid character here, as we get better - // error behaviour if we swallow them as part of the + // error behavior if we swallow them as part of the // identifier we are building. if ((cc >= ' ' && cc < 0x7f) || cc == '\t' @@ -922,7 +922,7 @@ Lex::gather_identifier() { // There is no valid place for a non-ASCII character // other than an identifier, so we get better error - // handling behaviour if we swallow this character after + // handling behavior if we swallow this character after // giving an error. if (!issued_error) error_at(this->location(), diff --git a/gcc/hwint.h b/gcc/hwint.h index fea0bb5..14740cc 100644 --- a/gcc/hwint.h +++ b/gcc/hwint.h @@ -251,7 +251,7 @@ sext_hwi (HOST_WIDE_INT src, unsigned int prec) from unsigned to signed preserves bit pattern, and right shift of a signed value propagates the sign bit. We have to convert from signed to unsigned and back, because when left - shifting signed values, any overflow is undefined behaviour. */ + shifting signed values, any overflow is undefined behavior. */ gcc_checking_assert (prec < HOST_BITS_PER_WIDE_INT); int shift = HOST_BITS_PER_WIDE_INT - prec; return ((HOST_WIDE_INT) ((unsigned HOST_WIDE_INT) src << shift)) >> shift; diff --git a/gcc/ira-build.c b/gcc/ira-build.c index 6c6ef94..37aa185 100644 --- a/gcc/ira-build.c +++ b/gcc/ira-build.c @@ -1672,7 +1672,7 @@ finish_cost_vectors (void) minimizes the number of chain elements per allocno live range. If the blocks would be visited in a different order, we would still compute a correct post-ordering but it would be less likely that two nodes - connected by an edge in the CFG are neighbours in the topsort. */ + connected by an edge in the CFG are neighbors in the topsort. */ static vec<ira_loop_tree_node_t> ira_loop_tree_body_rev_postorder (ira_loop_tree_node_t loop_node ATTRIBUTE_UNUSED, diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 751ec3e..17b58bd 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2140,7 +2140,7 @@ process_alt_operands (int only_alternative) reject++; } } - /* We simulate the behaviour of old reload here. + /* We simulate the behavior of old reload here. Although scratches need hard registers and it might result in spilling other pseudos, no reload insns are generated for the scratches. So it @@ -3027,7 +3027,7 @@ process_address_1 (int nop, bool check_only_p, if (insn != NULL_RTX) { /* Do nothing if we cannot generate right insns. - This is analogous to reload pass behaviour. */ + This is analogous to reload pass behavior. */ delete_insns_since (last); end_sequence (); return false; diff --git a/gcc/match.pd b/gcc/match.pd index 298e835..ebd2eed 100644 --- a/gcc/match.pd +++ b/gcc/match.pd @@ -2969,7 +2969,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) /* If we have a narrowing conversion of an arithmetic operation where both operands are widening conversions from the same type as the outer narrowing conversion. Then convert the innermost operands to a suitable - unsigned type (to avoid introducing undefined behaviour), perform the + unsigned type (to avoid introducing undefined behavior), perform the operation and convert the result to the desired type. */ (for op (plus minus) (simplify @@ -2999,7 +2999,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) /* This is another case of narrowing, specifically when there's an outer BIT_AND_EXPR which masks off bits outside the type of the innermost operands. Like the previous case we have to convert the operands - to unsigned types to avoid introducing undefined behaviour for the + to unsigned types to avoid introducing undefined behavior for the arithmetic operation. */ (for op (minus plus) (simplify diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index b6ce01f..c940f20 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * objc-act.c: Spelling fixes - behaviour -> behavior and + neighbour -> neighbor. + * objc-map.h: Likewise. + 2016-01-04 Jakub Jelinek <jakub@redhat.com> Update copyright years. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 304a8ee..8109507 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -5168,7 +5168,7 @@ receiver_is_class_object (tree receiver, int self, int super) (due to the code below) and so will know that +alloc is called on the 'NSObject' class, and can perform the corresponding checks. - Programmers can disable this behaviour by casting the results of + Programmers can disable this behavior by casting the results of objc_getClass() to 'Class' (this may seem weird because objc_getClass() is already declared to return 'Class', but the compiler treats it as a special function). This may be useful if @@ -5880,7 +5880,7 @@ lookup_method (tree mchain, tree method) OBJC_LOOKUP_NO_SUPER is clear, and no suitable class method could be found in INTERFACE or any of its superclasses, look for an _instance_ method of the same name in the root class as a last - resort. This behaviour can be turned off by using + resort. This behavior can be turned off by using OBJC_LOOKUP_NO_INSTANCE_METHODS_OF_ROOT_CLASS. If a suitable method cannot be found, return NULL_TREE. */ diff --git a/gcc/objc/objc-map.h b/gcc/objc/objc-map.h index 9cc9f3a..aa88b55 100644 --- a/gcc/objc/objc-map.h +++ b/gcc/objc/objc-map.h @@ -283,7 +283,7 @@ objc_map_iterator_move_to_next (objc_map_t map, objc_map_iterator_t *i) /* Return the current key. You can only call it after you have called objc_map_iterator_move_to_next() at least once (to move to the first element), and only if the last call returned - OBJC_MAP_SUCCESS. The behaviour is otherwise undefined, probably a + OBJC_MAP_SUCCESS. The behavior is otherwise undefined, probably a segmentation fault. */ static inline tree @@ -296,7 +296,7 @@ objc_map_iterator_current_key (objc_map_t map, objc_map_iterator_t i) /* Return the current value. You can only call it after you have called objc_map_iterator_move_to_next() at least once (to move to the first element), and only if the last call returned - OBJC_MAP_SUCCESS. The behaviour is otherwise undefined, probably a + OBJC_MAP_SUCCESS. The behavior is otherwise undefined, probably a segmentation fault. */ static inline tree diff --git a/gcc/sched-ebb.c b/gcc/sched-ebb.c index b966e79..89dd823 100644 --- a/gcc/sched-ebb.c +++ b/gcc/sched-ebb.c @@ -464,7 +464,7 @@ add_deps_for_risky_insns (rtx_insn *head, rtx_insn *tail) /* Schedule a single extended basic block, defined by the boundaries HEAD and TAIL. - We change our expectations about scheduler behaviour depending on + We change our expectations about scheduler behavior depending on whether MODULO_SCHEDULING is true. If it is, we expect that the caller has already called set_modulo_params and created delay pairs as appropriate. If the modulo schedule failed, we return diff --git a/gcc/sched-int.h b/gcc/sched-int.h index 378c3aa..2a45703 100644 --- a/gcc/sched-int.h +++ b/gcc/sched-int.h @@ -100,7 +100,7 @@ extern int get_rgn_sched_max_insns_priority (void); extern void sel_add_to_insn_priority (rtx, int); /* True if during selective scheduling we need to emulate some of haifa - scheduler behaviour. */ + scheduler behavior. */ extern int sched_emulate_haifa_p; /* Mapping from INSN_UID to INSN_LUID. In the end all other per insn data diff --git a/gcc/sel-sched.c b/gcc/sel-sched.c index c798935..bd32ab5 100644 --- a/gcc/sel-sched.c +++ b/gcc/sel-sched.c @@ -396,7 +396,7 @@ typedef struct fur_static_params *fur_static_params_p; typedef struct cmpd_local_params *cmpd_local_params_p; typedef struct moveop_static_params *moveop_static_params_p; -/* Set of hooks and parameters that determine behaviour specific to +/* Set of hooks and parameters that determine behavior specific to move_op or find_used_regs functions. */ struct code_motion_path_driver_info_def { @@ -6450,7 +6450,7 @@ code_motion_path_driver (insn_t insn, av_set_t orig_ops, ilist_t path, { /* We have already found an original operation on this branch, do not go any further and just return TRUE here. If we don't stop here, - function can have exponential behaviour even on the small code + function can have exponential behavior even on the small code with many different paths (e.g. with data speculation and recovery blocks). */ if (sched_verbose >= 6) diff --git a/gcc/spellcheck.c b/gcc/spellcheck.c index e641a56..bf74015 100644 --- a/gcc/spellcheck.c +++ b/gcc/spellcheck.c @@ -80,7 +80,7 @@ levenshtein_distance (const char *s, int len_s, by inserting i characters. */ v1[0] = i + 1; - /* Build the rest of the row by considering neighbours to + /* Build the rest of the row by considering neighbors to the north, west and northwest. */ for (int j = 0; j < len_s; j++) { diff --git a/gcc/target.def b/gcc/target.def index f139ef9..5c8e4e1 100644 --- a/gcc/target.def +++ b/gcc/target.def @@ -4100,7 +4100,7 @@ DEFHOOKPOD "Normally, when a function returns a structure by memory, the address\n\ is passed as an invisible pointer argument, but the compiler also\n\ arranges to return the address from the function like it would a normal\n\ -pointer return value. Define this to true if that behaviour is\n\ +pointer return value. Define this to true if that behavior is\n\ undesirable on your target.", bool, false) diff --git a/gcc/target.h b/gcc/target.h index 35734b1..43022bd 100644 --- a/gcc/target.h +++ b/gcc/target.h @@ -101,7 +101,7 @@ extern int elf_record_gcc_switches (print_switch_type type, const char *); extern bool target_default_pointer_address_modes_p (void); /* For hooks which use the MOVE_RATIO macro, this gives the legacy default - behaviour. */ + behavior. */ extern unsigned int get_move_ratio (bool); struct stdarg_info; diff --git a/gcc/targhooks.c b/gcc/targhooks.c index fa6a43d..74af91a 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1446,7 +1446,7 @@ default_register_move_cost (machine_mode mode ATTRIBUTE_UNUSED, } /* For hooks which use the MOVE_RATIO macro, this gives the legacy default - behaviour. SPEED_P is true if we are compiling for speed. */ + behavior. SPEED_P is true if we are compiling for speed. */ unsigned int get_move_ratio (bool speed_p ATTRIBUTE_UNUSED) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index baf28f5..8d05fea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,58 @@ +2016-02-12 Jakub Jelinek <jakub@redhat.com> + + * objc.dg/gnu-api-2-method.m: Spelling fixes - behaviour -> behavior + and neighbour -> neighbor. + * objc.dg/attributes/method-nonnull-1.m: Likewise. + * objc.dg/gnu-api-2-class-meta.m: Likewise. + * c-c++-common/Wvarargs.c: Likewise. + * c-c++-common/goacc/host_data-5.c: Likewise. + * obj-c++.dg/gnu-api-2-class-meta.mm: Likewise. + * obj-c++.dg/attributes/method-nonnull-1.mm: Likewise. + * obj-c++.dg/gnu-api-2-method.mm: Likewise. + * gcc.target/aarch64/pr60697.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vqshl.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vrshl.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vqrshl.c: Likewise. + * gcc.target/aarch64/advsimd-intrinsics/vldX.c: Likewise. + * gcc.target/aarch64/aapcs64/ice_2.c: Likewise. + * gcc.target/aarch64/aapcs64/test_23.c: Likewise. + * gcc.target/aarch64/vrnd_f64_1.c: Likewise. + * g++.dg/warn/Wconversion-real-integer-3.C: Likewise. + * g++.dg/lookup/koenig5.C: Likewise. + * g++.dg/ext/no-asm-2.C: Likewise. + * gfortran.dg/bounds_check_array_ctor_3.f90: Likewise. + * gfortran.dg/bounds_check_array_ctor_7.f90: Likewise. + * gfortran.dg/used_types_16.f90: Likewise. + * gfortran.dg/assumed_rank_bounds_1.f90: Likewise. + * gfortran.dg/bounds_check_array_ctor_1.f90: Likewise. + * gfortran.dg/assumed_rank_bounds_2.f90: Likewise. + * gfortran.dg/bounds_check_array_ctor_4.f90: Likewise. + * gfortran.dg/abstract_type_6.f03: Likewise. + * gfortran.dg/bounds_check_array_ctor_5.f90: Likewise. + * gfortran.dg/used_types_15.f90: Likewise. + * gfortran.dg/bounds_check_array_ctor_8.f90: Likewise. + * gfortran.dg/exit_3.f08: Likewise. + * gfortran.dg/open_status_2.f90: Likewise. + * gfortran.dg/derived_pointer_recursion_2.f90: Likewise. + * gfortran.dg/intrinsic_std_1.f90: Likewise. + * gfortran.dg/associate_1.f03: Likewise. + * gfortran.dg/bounds_check_array_ctor_2.f90: Likewise. + * gfortran.dg/intrinsic_std_6.f90: Likewise. + * gfortran.dg/bounds_check_array_ctor_6.f90: Likewise. + * gcc.dg/builtin-object-size-1.c: Likewise. + * gcc.dg/noreturn-6.c: Likewise. + * gcc.dg/builtin-stringop-chk-1.c: Likewise. + * gcc.dg/globalalias.c: Likewise. + * gcc.dg/builtins-config.h: Likewise. + * gcc.dg/pr30457.c: Likewise. + * gcc.c-torture/compile/volatile-1.c: Likewise. + * gcc.c-torture/execute/20101011-1.c: Likewise. + * c-c++-common/Waddress-1.c: Likewise. + 2016-02-11 Jakub Jelinek <jakub@redhat.com> PR c/69768 diff --git a/gcc/testsuite/c-c++-common/Waddress-1.c b/gcc/testsuite/c-c++-common/Waddress-1.c index a5d128f..8df5d2f 100644 --- a/gcc/testsuite/c-c++-common/Waddress-1.c +++ b/gcc/testsuite/c-c++-common/Waddress-1.c @@ -7,9 +7,9 @@ static int e; int foo () { - return "foo1" != (void *) 0 /* { dg-bogus "comparison with string literal results in unspecified behaviou?r" } */ - && "foo2" != (const char *) ((void *) 0) /* { dg-bogus "comparison with string literal results in unspecified behaviou?r" } */ - && "foo3" != (const char *) ((void *) (10 - 10)) /* { dg-bogus "comparison with string literal results in unspecified behaviou?r" } */ - && "foo4" != (const char *) ((void *) (&e - &e)) /* { dg-warning "comparison with string literal results in unspecified behaviou?r" "" { target c } } */ - && "foo5" != "foo6"; /* { dg-warning "comparison with string literal results in unspecified behaviou?r" } */ + return "foo1" != (void *) 0 /* { dg-bogus "comparison with string literal results in unspecified behavior" } */ + && "foo2" != (const char *) ((void *) 0) /* { dg-bogus "comparison with string literal results in unspecified behavior" } */ + && "foo3" != (const char *) ((void *) (10 - 10)) /* { dg-bogus "comparison with string literal results in unspecified behavior" } */ + && "foo4" != (const char *) ((void *) (&e - &e)) /* { dg-warning "comparison with string literal results in unspecified behavior" "" { target c } } */ + && "foo5" != "foo6"; /* { dg-warning "comparison with string literal results in unspecified behavior" } */ } diff --git a/gcc/testsuite/c-c++-common/Wvarargs.c b/gcc/testsuite/c-c++-common/Wvarargs.c index 408f427..0f90cb3 100644 --- a/gcc/testsuite/c-c++-common/Wvarargs.c +++ b/gcc/testsuite/c-c++-common/Wvarargs.c @@ -49,6 +49,6 @@ foo3 (int a, register int b, ...) { va_list vp; /* 'b' is declared with register storage, so warn. */ - va_start (vp, b); /* { dg-warning "undefined behaviour" } */ + va_start (vp, b); /* { dg-warning "undefined behavior" } */ va_end (vp); } diff --git a/gcc/testsuite/c-c++-common/goacc/host_data-5.c b/gcc/testsuite/c-c++-common/goacc/host_data-5.c index f372fbd..a4206c8 100644 --- a/gcc/testsuite/c-c++-common/goacc/host_data-5.c +++ b/gcc/testsuite/c-c++-common/goacc/host_data-5.c @@ -11,7 +11,7 @@ int main (int argc, char* argv[]) int *xp; #pragma acc host_data use_device (x) { - /* This use of the present clause is undefined behaviour for OpenACC. */ + /* This use of the present clause is undefined behavior for OpenACC. */ #pragma acc parallel present (x) copyout (xp) /* { dg-error "variable 'x' declared in enclosing 'host_data' region" } */ { xp = x; diff --git a/gcc/testsuite/g++.dg/ext/no-asm-2.C b/gcc/testsuite/g++.dg/ext/no-asm-2.C index fa614d8..2befc26 100644 --- a/gcc/testsuite/g++.dg/ext/no-asm-2.C +++ b/gcc/testsuite/g++.dg/ext/no-asm-2.C @@ -4,7 +4,7 @@ // Verify that the keyword asm and the GNU extension typeof are not // recognized as keywords when using -fno-asm. Having -fno-asm affect // a standard C++ keyword seems strange, but that is existing -// behaviour. If that behaviour changes, this test should change. +// behavior. If that behavior changes, this test should change. int asm; // { dg-bogus "before .asm." } int typeof; // { dg-bogus "before .typeof." } diff --git a/gcc/testsuite/g++.dg/lookup/koenig5.C b/gcc/testsuite/g++.dg/lookup/koenig5.C index c44543b..15fb6cc 100644 --- a/gcc/testsuite/g++.dg/lookup/koenig5.C +++ b/gcc/testsuite/g++.dg/lookup/koenig5.C @@ -1,6 +1,6 @@ // Koenig lookup is not defined as intended in the std. DR 218 gives // an indication of what is meant. This test case encapsulates the -// current conservative behaviour +// current conservative behavior // Copyright (C) 2006 Free Software Foundation, Inc. // Contributed by Nathan Sidwell 27 Aug 2006 <nathan@codesourcery.com> diff --git a/gcc/testsuite/g++.dg/warn/Wconversion-real-integer-3.C b/gcc/testsuite/g++.dg/warn/Wconversion-real-integer-3.C index a4df010..775c88c 100644 --- a/gcc/testsuite/g++.dg/warn/Wconversion-real-integer-3.C +++ b/gcc/testsuite/g++.dg/warn/Wconversion-real-integer-3.C @@ -12,7 +12,7 @@ void h (void) // a macro that expands to the built-in __INT_MAX__. Furthermore, // INT_MAX is defined inside a system header. // - // The behaviour we want is that the diagnostic should point to + // The behavior we want is that the diagnostic should point to // the locus that inside the source code here, at the relevant // line below, even with -ftrack-macro-expansion. We don't want // it to point to the any locus that is inside the system header. diff --git a/gcc/testsuite/gcc.c-torture/compile/volatile-1.c b/gcc/testsuite/gcc.c-torture/compile/volatile-1.c index cb81274..2017309 100644 --- a/gcc/testsuite/gcc.c-torture/compile/volatile-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/volatile-1.c @@ -1,6 +1,6 @@ /* The problem here was that the statements that loaded from exception.reason where not being - marked as having volatile behaviour which + marked as having volatile behavior which caused load PRE on the tree level to go into an infinite loop. */ diff --git a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c index 639d12d..e7157c5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20101011-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20101011-1.c @@ -45,7 +45,7 @@ # define DO_TEST 0 #elif defined (__epiphany__) /* Epiphany does not have hardware division, and the software implementation - has truly undefined behaviour for division by 0. */ + has truly undefined behavior for division by 0. */ # define DO_TEST 0 #elif defined (__m68k__) && !defined(__linux__) /* Attempting to trap division-by-zero in this way isn't likely to work on @@ -68,9 +68,9 @@ # define DO_TEST 0 # else # include <signal.h> - /* ARM division-by-zero behaviour is to call a helper function, which + /* ARM division-by-zero behavior is to call a helper function, which can do several different things, depending on requirements. Emulate - the behaviour of other targets here by raising SIGFPE. */ + the behavior of other targets here by raising SIGFPE. */ int __attribute__((used)) __aeabi_idiv0 (int return_value) { diff --git a/gcc/testsuite/gcc.dg/builtin-object-size-1.c b/gcc/testsuite/gcc.dg/builtin-object-size-1.c index 264ef75..8cdae49 100644 --- a/gcc/testsuite/gcc.dg/builtin-object-size-1.c +++ b/gcc/testsuite/gcc.dg/builtin-object-size-1.c @@ -361,7 +361,7 @@ test5 (size_t x) /* My understanding of ISO C99 6.5.6 is that a conforming program will not end up with p equal to &buf[0] through &buf[7], i.e. calling this function with say - UINTPTR_MAX / 4 results in undefined behaviour. + UINTPTR_MAX / 4 results in undefined behavior. If that's true, then the maximum number of remaining bytes from p until end of the object is 56, otherwise it would be 64 (or conservative (size_t) -1 == unknown). */ diff --git a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c index bb727da..6e71aee 100644 --- a/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c +++ b/gcc/testsuite/gcc.dg/builtin-stringop-chk-1.c @@ -70,7 +70,7 @@ test (int arg, ...) memset (p, 'd', 0); q = strcpy (p, ""); /* { dg-warning "will always overflow" "strcpy" } */ - /* This invokes undefined behaviour, since we are past the end of buf1. */ + /* This invokes undefined behavior, since we are past the end of buf1. */ p = p + 10; memset (p, 'd', 1); /* { dg-warning "will always overflow" "memset" } */ diff --git a/gcc/testsuite/gcc.dg/builtins-config.h b/gcc/testsuite/gcc.dg/builtins-config.h index 8d5a10d..f00e91a 100644 --- a/gcc/testsuite/gcc.dg/builtins-config.h +++ b/gcc/testsuite/gcc.dg/builtins-config.h @@ -26,7 +26,7 @@ && ! defined (__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)) /* MacOS versions before 10.3 don't have many C99 functions. But, if you're including this file, you probably want to test the - newer behaviour, so: */ + newer behavior, so: */ #error forgot to set -mmacosx-version-min. #elif (defined(__APPLE__) && defined(__ppc__) \ && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1030) @@ -47,7 +47,7 @@ #if defined(_NEWLIB_VERSION) || defined(__UCLIBC__) #elif defined(__sun) && __STDC_VERSION__ - 0 < 199901L /* If you're including this file, you probably want to test the newer - behaviour, so ensure the right flags were used for each test: */ + behavior, so ensure the right flags were used for each test: */ #error forgot to set -std=c99. #elif defined(__sun) && ! defined (_STDC_C99) /* Solaris up to 9 doesn't have the entire C99 runtime. diff --git a/gcc/testsuite/gcc.dg/globalalias.c b/gcc/testsuite/gcc.dg/globalalias.c index fc6c7aa..69cd4ab 100644 --- a/gcc/testsuite/gcc.dg/globalalias.c +++ b/gcc/testsuite/gcc.dg/globalalias.c @@ -1,7 +1,7 @@ /* This test checks that local aliases behave sanely. This is necessary for code correctness of aliases introduced by ipa-visibility pass. - This test expose weird behaviour of AIX's .set pseudo-op where the global symbol is created, + This test expose weird behavior of AIX's .set pseudo-op where the global symbol is created, but all uses of the alias are syntactically replaced by uses of the target. This means that both counters are increased to 2. */ diff --git a/gcc/testsuite/gcc.dg/noreturn-6.c b/gcc/testsuite/gcc.dg/noreturn-6.c index eb1fd24..b4badd4 100644 --- a/gcc/testsuite/gcc.dg/noreturn-6.c +++ b/gcc/testsuite/gcc.dg/noreturn-6.c @@ -1,4 +1,4 @@ /* { dg-do compile } */ -/* Check for volatile behaviour. */ +/* Check for volatile behavior. */ extern int xxx (void); volatile extern int xxx (void); /* { dg-error "not compatible" } */ diff --git a/gcc/testsuite/gcc.dg/pr30457.c b/gcc/testsuite/gcc.dg/pr30457.c index d72f47c..6a49d7c 100644 --- a/gcc/testsuite/gcc.dg/pr30457.c +++ b/gcc/testsuite/gcc.dg/pr30457.c @@ -14,7 +14,7 @@ void foo(register short paramN, ...) { va_list ap; - va_start(ap, paramN); /* { dg-warning "undefined behaviour when second parameter of 'va_start' is declared with 'register' storage" } */ + va_start(ap, paramN); /* { dg-warning "undefined behavior when second parameter of 'va_start' is declared with 'register' storage" } */ /* Undefined by C99 7.15.1.1p2: */ (void) va_arg(ap, char); /* { dg-warning "'char' is promoted to 'int' when passed through '...'" "promoted" } */ diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/ice_2.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/ice_2.c index 8d34f27..be5b702 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/ice_2.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/ice_2.c @@ -1,6 +1,6 @@ /* Test AAPCS layout - Larger than machine-supported vector size. The behaviour is unspecified by + Larger than machine-supported vector size. The behavior is unspecified by the AAPCS64 document; the implementation opts for pass by reference. */ /* { dg-do compile { target aarch64*-*-* } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_23.c b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_23.c index 6993884..fd45cc5 100644 --- a/gcc/testsuite/gcc.target/aarch64/aapcs64/test_23.c +++ b/gcc/testsuite/gcc.target/aarch64/aapcs64/test_23.c @@ -1,6 +1,6 @@ /* Test AAPCS64 layout. - Larger than machine-supported vector size. The behaviour is unspecified by + Larger than machine-supported vector size. The behavior is unspecified by the AAPCS64 document; the implementation opts for pass by reference. */ /* { dg-do run { target aarch64*-*-* } } */ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c index 1e02dc3..e1e8562 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX.c @@ -406,7 +406,7 @@ void exec_vldX (void) /* We need to use a temporary result buffer (result_bis), because the one used for other tests is not large enough. A subset of the result data is moved from result_bis to result, and it is this - subset which is used to check the actual behaviour. The next + subset which is used to check the actual behavior. The next macro enables to move another chunk of data from result_bis to result. */ #define TEST_VLDX(Q, T1, T2, W, N, X) \ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c index e4cde46..b44a987 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_dup.c @@ -178,7 +178,7 @@ void exec_vldX_dup (void) /* We need to use a temporary result buffer (result_bis), because the one used for other tests is not large enough. A subset of the result data is moved from result_bis to result, and it is this - subset which is used to check the actual behaviour. The next + subset which is used to check the actual behavior. The next macro enables to move another chunk of data from result_bis to result. */ #define TEST_VLDX_DUP(Q, T1, T2, W, N, X) \ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c index 33b0eaf..cda76ab 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vldX_lane.c @@ -327,7 +327,7 @@ void exec_vldX_lane (void) /* We need to use a temporary result buffer (result_bis), because the one used for other tests is not large enough. A subset of the result data is moved from result_bis to result, and it is this - subset which is used to check the actual behaviour. The next + subset which is used to check the actual behavior. The next macro enables to move another chunk of data from result_bis to result. */ /* We also use another extra input buffer (buffer_src), which we diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqrshl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqrshl.c index 3f0cb37..0e194fa 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqrshl.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqrshl.c @@ -557,7 +557,7 @@ FNNAME (INSN) /* Choose init value arbitrarily, will be used as shift amount */ /* Use values equal to or one-less-than the type width to check - behaviour on limits. */ + behavior on limits. */ VDUP(vector_shift, , int, s, 8, 8, 7); VDUP(vector_shift, , int, s, 16, 4, 15); VDUP(vector_shift, , int, s, 32, 2, 31); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl.c index a1cccc2..5999b12 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vqshl.c @@ -429,7 +429,7 @@ FNNAME (INSN) /* Choose init value arbitrarily, will be used as shift amount */ /* Use values equal or one-less-than the type width to check - behaviour on limits. */ + behavior on limits. */ /* 64-bits vectors first. */ /* Shift 8-bits lanes by 7... */ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrshl.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrshl.c index d970fbd..1efa211 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrshl.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vrshl.c @@ -314,7 +314,7 @@ void exec_vrshl (void) /* Choose init value arbitrarily, will be used as shift amount. */ /* Use values equal to one-less-than the type width to check - behaviour on limits. */ + behavior on limits. */ VDUP(vector_shift, , int, s, 8, 8, 7); VDUP(vector_shift, , int, s, 16, 4, 15); VDUP(vector_shift, , int, s, 32, 2, 31); diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc index ad0b4ff..b55a205 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vshuffle.inc @@ -11,7 +11,7 @@ void FNNAME (INSN_NAME) (void) /* We need to use a temporary result buffer (result_bis), because the one used for other tests is not large enough. A subset of the result data is moved from result_bis to result, and it is this - subset which is used to check the actual behaviour. The next + subset which is used to check the actual behavior. The next macro enables to move another chunk of data from result_bis to result. */ #define TEST_VSHUFFLE(INSN, Q, T1, T2, W, N) \ diff --git a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c index 680e5bd..b923b64 100644 --- a/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c +++ b/gcc/testsuite/gcc.target/aarch64/advsimd-intrinsics/vstX_lane.c @@ -268,7 +268,7 @@ void exec_vstX_lane (void) /* We need to use a temporary result buffer (result_bis), because the one used for other tests is not large enough. A subset of the result data is moved from result_bis to result, and it is this - subset which is used to check the actual behaviour. The next + subset which is used to check the actual behavior. The next macro enables to move another chunk of data from result_bis to result. */ /* We also use another extra input buffer (buffer_src), which we diff --git a/gcc/testsuite/gcc.target/aarch64/pr60697.c b/gcc/testsuite/gcc.target/aarch64/pr60697.c index 57ccecb..1b5857c 100644 --- a/gcc/testsuite/gcc.target/aarch64/pr60697.c +++ b/gcc/testsuite/gcc.target/aarch64/pr60697.c @@ -618,7 +618,7 @@ static int ns5_core(FILE *log,t_commrec *cr,t_forcerec *fr,int cg_index[], } } } -int search_neighbours(FILE *log,t_forcerec *fr, +int search_neighbors(FILE *log,t_forcerec *fr, rvec x[],matrix box, t_topology *top,t_groups *grps, t_commrec *cr,t_nsborder *nsb, diff --git a/gcc/testsuite/gcc.target/aarch64/vrnd_f64_1.c b/gcc/testsuite/gcc.target/aarch64/vrnd_f64_1.c index 5bc34e2..d1cff7b 100644 --- a/gcc/testsuite/gcc.target/aarch64/vrnd_f64_1.c +++ b/gcc/testsuite/gcc.target/aarch64/vrnd_f64_1.c @@ -87,7 +87,7 @@ main (int argc, char **argv) }; /* Set floating point control register - to have predictable vrndx and vrndi behaviour. */ + to have predictable vrndx and vrndi behavior. */ set_rounding_mode (FPROUNDING_ZERO); run_round_tests (tests, expectations); diff --git a/gcc/testsuite/gfortran.dg/abstract_type_6.f03 b/gcc/testsuite/gfortran.dg/abstract_type_6.f03 index 5eefcb8..9dd0a37 100644 --- a/gcc/testsuite/gfortran.dg/abstract_type_6.f03 +++ b/gcc/testsuite/gfortran.dg/abstract_type_6.f03 @@ -11,16 +11,16 @@ module m TYPE, ABSTRACT :: top CONTAINS PROCEDURE(xxx), DEFERRED :: proc_a ! { dg-error "must be explicit" } - ! some useful default behaviour + ! some useful default behavior PROCEDURE :: proc_c => top_c ! { dg-error "must be a module procedure" } END TYPE top -! Concrete middle class with useful behaviour +! Concrete middle class with useful behavior TYPE, EXTENDS(top) :: middle CONTAINS ! do nothing, empty proc just to make middle concrete PROCEDURE :: proc_a => dummy_middle_a ! { dg-error "must be a module procedure" } - ! some useful default behaviour + ! some useful default behavior PROCEDURE :: proc_b => middle_b ! { dg-error "must be a module procedure" } END TYPE middle @@ -32,9 +32,9 @@ CONTAINS ! useful proc to satisfy deferred procedure in top. Because we've ! extended middle we wouldn't get told off if we forgot this. PROCEDURE :: proc_a => bottom_a ! { dg-error "must be a module procedure" } - ! calls middle%proc_b and then provides extra behaviour + ! calls middle%proc_b and then provides extra behavior PROCEDURE :: proc_b => bottom_b - ! calls top_c and then provides extra behaviour + ! calls top_c and then provides extra behavior PROCEDURE :: proc_c => bottom_c END TYPE bottom contains diff --git a/gcc/testsuite/gfortran.dg/associate_1.f03 b/gcc/testsuite/gfortran.dg/associate_1.f03 index 61fa1ac..bb32399 100644 --- a/gcc/testsuite/gfortran.dg/associate_1.f03 +++ b/gcc/testsuite/gfortran.dg/associate_1.f03 @@ -51,7 +51,7 @@ PROGRAM main END ASSOCIATE END ASSOCIATE myname ! Matching end-label. - ! Correct behaviour when shadowing already existing names. + ! Correct behavior when shadowing already existing names. ASSOCIATE (a => 1 * b, b => 1 * a, x => 1, y => 2) IF (ABS (a - 3.0) > 1.0e-3 .OR. ABS (b + 2.0) > 1.0e-3) CALL abort () ASSOCIATE (x => 1 * y, y => 1 * x) diff --git a/gcc/testsuite/gfortran.dg/assumed_rank_bounds_1.f90 b/gcc/testsuite/gfortran.dg/assumed_rank_bounds_1.f90 index 11d15f6..fbca707 100644 --- a/gcc/testsuite/gfortran.dg/assumed_rank_bounds_1.f90 +++ b/gcc/testsuite/gfortran.dg/assumed_rank_bounds_1.f90 @@ -1,6 +1,6 @@ ! { dg-do run } ! -! Test the behaviour of lbound, ubound of shape with assumed rank arguments +! Test the behavior of lbound, ubound of shape with assumed rank arguments ! in an array context (without DIM argument). ! diff --git a/gcc/testsuite/gfortran.dg/assumed_rank_bounds_2.f90 b/gcc/testsuite/gfortran.dg/assumed_rank_bounds_2.f90 index b9c8e56..91752e5 100644 --- a/gcc/testsuite/gfortran.dg/assumed_rank_bounds_2.f90 +++ b/gcc/testsuite/gfortran.dg/assumed_rank_bounds_2.f90 @@ -1,6 +1,6 @@ ! { dg-do run } ! -! Test the behaviour of lbound, ubound of shape with assumed rank arguments +! Test the behavior of lbound, ubound of shape with assumed rank arguments ! in an array context (without DIM argument). ! diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_1.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_1.f90 index 45b21d2..78a65b4 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_1.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_1.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("this is long") contains diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_2.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_2.f90 index e0cbf10..832ecdd 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_2.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_2.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("this is long") contains diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_3.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_3.f90 index 5e566ba..878a64b 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_3.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_3.f90 @@ -1,7 +1,7 @@ ! { dg-do compile } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. ! This should not need any -fbounds-check and is enabled all the time. character(len=128) :: arr(2) = (/ "abc", "foobar" /) ! { dg-error "Different CHARACTER lengths" } diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_4.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_4.f90 index 1d3bac8..e51b578 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_4.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_4.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("short", "this is long") contains diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_5.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_5.f90 index ad7f1b0..2d9a35a 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_5.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_5.f90 @@ -1,7 +1,7 @@ ! { dg-do compile } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. ! No need for -fbounds-check, enabled unconditionally. character(len=5) :: s = "hello" diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_6.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_6.f90 index c6f89e0..5d788a9 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_6.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_6.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("short", "also5") contains diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_7.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_7.f90 index 2a13be2..ab1d5d1 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_7.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_7.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("short") contains diff --git a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_8.f90 b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_8.f90 index 0d4ad0c..0b24795 100644 --- a/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_8.f90 +++ b/gcc/testsuite/gfortran.dg/bounds_check_array_ctor_8.f90 @@ -3,7 +3,7 @@ ! { dg-shouldfail "foo" } ! ! PR 36112 -! Check correct bounds-checking behaviour for character-array-constructors. +! Check correct bounds-checking behavior for character-array-constructors. call test ("short") contains diff --git a/gcc/testsuite/gfortran.dg/derived_pointer_recursion_2.f90 b/gcc/testsuite/gfortran.dg/derived_pointer_recursion_2.f90 index 675be1b..75f72d5 100644 --- a/gcc/testsuite/gfortran.dg/derived_pointer_recursion_2.f90 +++ b/gcc/testsuite/gfortran.dg/derived_pointer_recursion_2.f90 @@ -12,7 +12,7 @@ TYPE :: atom_list END TYPE TYPE :: atom_private - TYPE(atom_list) :: neighbours + TYPE(atom_list) :: neighbors LOGICAL :: initialized = .true. END TYPE diff --git a/gcc/testsuite/gfortran.dg/exit_3.f08 b/gcc/testsuite/gfortran.dg/exit_3.f08 index 732497b..301b017 100644 --- a/gcc/testsuite/gfortran.dg/exit_3.f08 +++ b/gcc/testsuite/gfortran.dg/exit_3.f08 @@ -2,7 +2,7 @@ ! { dg-options "-std=f2008 -fall-intrinsics" } ! PR fortran/44602 -! Check for correct behaviour of EXIT / CYCLE combined with non-loop +! Check for correct behavior of EXIT / CYCLE combined with non-loop ! constructs at run-time. ! Contributed by Daniel Kraft, d@domob.eu. diff --git a/gcc/testsuite/gfortran.dg/intrinsic_std_1.f90 b/gcc/testsuite/gfortran.dg/intrinsic_std_1.f90 index ac8649b..0b8d8ab 100644 --- a/gcc/testsuite/gfortran.dg/intrinsic_std_1.f90 +++ b/gcc/testsuite/gfortran.dg/intrinsic_std_1.f90 @@ -6,7 +6,7 @@ ! ! PR fortran/33141 -! Check for the expected behaviour when an intrinsic function/subroutine is +! Check for the expected behavior when an intrinsic function/subroutine is ! called that is not available in the defined standard or that is a GNU ! extension: ! There should be a warning emitted on the call, and the reference should be diff --git a/gcc/testsuite/gfortran.dg/intrinsic_std_6.f90 b/gcc/testsuite/gfortran.dg/intrinsic_std_6.f90 index 24e3566..c4a7c37 100644 --- a/gcc/testsuite/gfortran.dg/intrinsic_std_6.f90 +++ b/gcc/testsuite/gfortran.dg/intrinsic_std_6.f90 @@ -6,7 +6,7 @@ ! ! PR fortran/33141 -! Check for the expected behaviour when an intrinsic function/subroutine is +! Check for the expected behavior when an intrinsic function/subroutine is ! called that is not available in the defined standard or that is a GNU ! extension: ! There should be a warning emitted on the call, and the reference should be diff --git a/gcc/testsuite/gfortran.dg/open_status_2.f90 b/gcc/testsuite/gfortran.dg/open_status_2.f90 index ce0e71b..c7e14c0 100644 --- a/gcc/testsuite/gfortran.dg/open_status_2.f90 +++ b/gcc/testsuite/gfortran.dg/open_status_2.f90 @@ -2,7 +2,7 @@ ! PR 24945 ! Test reopening file without status specifier or with ! status='unknown'. The standard says that these two must behave -! identically, but the actual behaviour is processor dependent. +! identically, but the actual behavior is processor dependent. program open_status_2 open(10, file="f", form='unformatted', status='unknown') open(10, file="f", form='unformatted', status='unknown') diff --git a/gcc/testsuite/gfortran.dg/used_types_15.f90 b/gcc/testsuite/gfortran.dg/used_types_15.f90 index 885ecb1..d5b56cd 100644 --- a/gcc/testsuite/gfortran.dg/used_types_15.f90 +++ b/gcc/testsuite/gfortran.dg/used_types_15.f90 @@ -10,7 +10,7 @@ TYPE :: dummy_atom_list END TYPE TYPE :: dummy_atom - TYPE(dummy_atom_list) :: neighbours + TYPE(dummy_atom_list) :: neighbors END TYPE TYPE :: dummy_atom_model diff --git a/gcc/testsuite/gfortran.dg/used_types_16.f90 b/gcc/testsuite/gfortran.dg/used_types_16.f90 index f5c3108..7a298ad 100644 --- a/gcc/testsuite/gfortran.dg/used_types_16.f90 +++ b/gcc/testsuite/gfortran.dg/used_types_16.f90 @@ -16,7 +16,7 @@ TYPE :: dummy_atom END TYPE
TYPE :: dummy_atom_private
- TYPE(dummy_atom_list) :: neighbours
+ TYPE(dummy_atom_list) :: neighbors
END TYPE
END MODULE
diff --git a/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm b/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm index c554894..58b8f36 100644 --- a/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm +++ b/gcc/testsuite/obj-c++.dg/attributes/method-nonnull-1.mm @@ -18,7 +18,7 @@ + (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); - (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); -/* Test the behaviour with invalid code. */ +/* Test the behavior with invalid code. */ + (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ - (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ diff --git a/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm b/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm index e7c5fc2..7806d6f 100644 --- a/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm +++ b/gcc/testsuite/obj-c++.dg/gnu-api-2-class-meta.mm @@ -11,9 +11,9 @@ Functions that manipulate instances, instance variables, properties and protocols at the moment must take a normal class as argument; calling them with a meta class as argument is of no particular use - and generally produces a behaviour that is undocumented and/or + and generally produces a behavior that is undocumented and/or undefined (and this is true with all runtimes). As in the future - this behaviour may be defined or documented (for example, if class + this behavior may be defined or documented (for example, if class variables are implemented as instance variables of meta classes) we avoid testing it for compatibility with future runtimes. */ diff --git a/gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm b/gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm index 4029ce7..97bf84b 100644 --- a/gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm +++ b/gcc/testsuite/obj-c++.dg/gnu-api-2-method.mm @@ -90,14 +90,14 @@ int main () /* Swap the methods. */ method_exchangeImplementations (method_a, method_b); - /* Check that behaviour has changed. */ + /* Check that behavior has changed. */ if ([object variable] != nil || [object constant] != object) abort (); /* Swap the methods again. */ method_exchangeImplementations (method_a, method_b); - /* Check that behaviour is back to normal. */ + /* Check that behavior is back to normal. */ if ([object variable] != object || [object constant] != nil) abort (); } @@ -213,7 +213,7 @@ int main () if (method_setImplementation (method_a, original_imp_b) != original_imp_a) abort (); - /* Check that behaviour has changed. */ + /* Check that behavior has changed. */ if ([object variable] != nil || [object constant] != nil) abort (); @@ -221,7 +221,7 @@ int main () if (method_setImplementation (method_a, original_imp_a) != original_imp_b) abort (); - /* Check that behaviour is back to normal. */ + /* Check that behavior is back to normal. */ if ([object variable] != object || [object constant] != nil) abort (); } diff --git a/gcc/testsuite/objc.dg/attributes/method-nonnull-1.m b/gcc/testsuite/objc.dg/attributes/method-nonnull-1.m index 4900324..b60d5a6 100644 --- a/gcc/testsuite/objc.dg/attributes/method-nonnull-1.m +++ b/gcc/testsuite/objc.dg/attributes/method-nonnull-1.m @@ -18,7 +18,7 @@ + (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); - (void) insertObject: (id)object atIndex: (size_t)index andObject: (id)anotherObject atIndex: (size_t)anotherIndex __attribute__ ((nonnull (1, 3))); -/* Test the behaviour with invalid code. */ +/* Test the behavior with invalid code. */ + (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ - (void) removeObject: (id)object __attribute__ ((nonnull (0))); /* { dg-error "out-of-range" } */ diff --git a/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m b/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m index ea187b6..07e0ba2 100644 --- a/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m +++ b/gcc/testsuite/objc.dg/gnu-api-2-class-meta.m @@ -11,9 +11,9 @@ Functions that manipulate instances, instance variables, properties and protocols at the moment must take a normal class as argument; calling them with a meta class as argument is of no particular use - and generally produces a behaviour that is undocumented and/or + and generally produces a behavior that is undocumented and/or undefined (and this is true with all runtimes). As in the future - this behaviour may be defined or documented (for example, if class + this behavior may be defined or documented (for example, if class variables are implemented as instance variables of meta classes) we avoid testing it for compatibility with future runtimes. */ diff --git a/gcc/testsuite/objc.dg/gnu-api-2-method.m b/gcc/testsuite/objc.dg/gnu-api-2-method.m index fc447b6..0c4fe4f 100644 --- a/gcc/testsuite/objc.dg/gnu-api-2-method.m +++ b/gcc/testsuite/objc.dg/gnu-api-2-method.m @@ -90,14 +90,14 @@ int main(int argc, void **args) /* Swap the methods. */ method_exchangeImplementations (method_a, method_b); - /* Check that behaviour has changed. */ + /* Check that behavior has changed. */ if ([object variable] != nil || [object constant] != object) abort (); /* Swap the methods again. */ method_exchangeImplementations (method_a, method_b); - /* Check that behaviour is back to normal. */ + /* Check that behavior is back to normal. */ if ([object variable] != object || [object constant] != nil) abort (); } @@ -213,7 +213,7 @@ int main(int argc, void **args) if (method_setImplementation (method_a, original_imp_b) != original_imp_a) abort (); - /* Check that behaviour has changed. */ + /* Check that behavior has changed. */ if ([object variable] != nil || [object constant] != nil) abort (); @@ -221,7 +221,7 @@ int main(int argc, void **args) if (method_setImplementation (method_a, original_imp_a) != original_imp_b) abort (); - /* Check that behaviour is back to normal. */ + /* Check that behavior is back to normal. */ if ([object variable] != object || [object constant] != nil) abort (); } diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 106e07a..073c1c7 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4430,7 +4430,7 @@ expand_call_inline (basic_block bb, gimple *stmt, copy_body_data *id) if (lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) /* For extern inline functions that get redefined we always - silently ignored always_inline flag. Better behaviour would + silently ignored always_inline flag. Better behavior would be to be able to keep both bodies and use extern inline body for inlining, but we can't do that because frontends overwrite the body. */ diff --git a/gcc/tree-ssa-tail-merge.c b/gcc/tree-ssa-tail-merge.c index 20f8466..5d32790 100644 --- a/gcc/tree-ssa-tail-merge.c +++ b/gcc/tree-ssa-tail-merge.c @@ -1407,7 +1407,7 @@ find_clusters_1 (same_succ *same_succ) if (BB_CLUSTER (bb1) != NULL && BB_CLUSTER (bb1) == BB_CLUSTER (bb2)) continue; - /* Limit quadratic behaviour. */ + /* Limit quadratic behavior. */ nr_comparisons++; if (nr_comparisons > max_comparisons) break; diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 5d83028..765f6f7 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -3030,7 +3030,7 @@ vect_prune_runtime_alias_test_list (loop_vec_info loop_vinfo) comp_alias_ddrs.qsort (comp_dr_with_seg_len_pair); /* Third, we scan the sorted dr pairs and check if we can combine - alias checks of two neighbouring dr pairs. */ + alias checks of two neighboring dr pairs. */ for (size_t i = 1; i < comp_alias_ddrs.length (); ++i) { /* Deal with two ddrs (dr_a1, dr_b1) and (dr_a2, dr_b2). */ |