2013-07-21 OndÅ
\99ej BÃlka <neleai@seznam.cz>
* c-c++-common/pr41779.c: Fix typos.
* gcc.c-torture/compile/
20031125-2.c: Likewise.
* gcc.c-torture/compile/
20040621-1.c: Likewise.
* gcc.c-torture/execute/
20020418-1.c: Likewise.
* gcc.dg/
20020108-1.c: Likewise.
* gcc.dg/atomic-generic-aux.c: Likewise.
* gcc.dg/builtin-complex-err-2.c: Likewise.
* gcc.dg/decl-1.c: Likewise.
* gcc.dg/di-sync-multithread.c: Likewise.
* gcc.dg/format/c90-printf-1.c: Likewise.
* gcc.dg/format/ms_c90-printf-1.c: Likewise.
* gcc.dg/long-long-compare-1.c: Likewise.
* gcc.dg/plugin/start_unit_plugin.c: Likewise.
* gcc.dg/pr17055-1.c: Likewise.
* gcc.dg/pr27095.c: Likewise.
* gcc.dg/torture/fp-int-convert.h: Likewise.
* gcc.dg/tree-prof/inliner-1.c: Likewise.
* gcc.dg/tree-ssa/
20030731-1.c: Likewise.
* gcc.dg/tree-ssa/forwprop-6.c: Likewise.
* gcc.dg/tree-ssa/ipa-cp-1.c: Likewise.
* gcc.dg/tree-ssa/loop-19.c: Likewise.
* gcc.dg/tree-ssa/loop-1.c: Likewise.
* gcc.dg/tree-ssa/pr21001.c: Likewise.
* gcc.dg/tree-ssa/pr42585.c: Likewise.
* gcc.dg/tree-ssa/ssa-dse-5.c: Likewise.
* gcc.dg/vect/vect-cond-5.c: Likewise.
* gcc.dg/weak/typeof-2.c: Likewise.
* gcc.target/aarch64/aapcs64/abitest-common.h: Likewise.
* gcc.target/arm/naked-1.c: Likewise.
* gcc.target/i386/pr9771-1.c: Likewise.
* gcc.target/sparc/sparc-constant-1.c: Likewise.
* gcc.target/sparc/struct-ret-check.c: Likewise.
* gcc.target/x86_64/abi/test_struct_returning.c: Likewise.
* gfortran.dg/c_ptr_tests_8_funcs.c: Likewise.
* objc-obj-c++-shared/objc-test-suite-next-encode-assist-impl.h: Likewise.
From-SVN: r201098
+2013-07-21 OndÅ\99ej BÃlka <neleai@seznam.cz>
+
+ * c-c++-common/pr41779.c: Fix typos.
+ * gcc.c-torture/compile/20031125-2.c: Likewise.
+ * gcc.c-torture/compile/20040621-1.c: Likewise.
+ * gcc.c-torture/execute/20020418-1.c: Likewise.
+ * gcc.dg/20020108-1.c: Likewise.
+ * gcc.dg/atomic-generic-aux.c: Likewise.
+ * gcc.dg/builtin-complex-err-2.c: Likewise.
+ * gcc.dg/decl-1.c: Likewise.
+ * gcc.dg/di-sync-multithread.c: Likewise.
+ * gcc.dg/format/c90-printf-1.c: Likewise.
+ * gcc.dg/format/ms_c90-printf-1.c: Likewise.
+ * gcc.dg/long-long-compare-1.c: Likewise.
+ * gcc.dg/plugin/start_unit_plugin.c: Likewise.
+ * gcc.dg/pr17055-1.c: Likewise.
+ * gcc.dg/pr27095.c: Likewise.
+ * gcc.dg/torture/fp-int-convert.h: Likewise.
+ * gcc.dg/tree-prof/inliner-1.c: Likewise.
+ * gcc.dg/tree-ssa/20030731-1.c: Likewise.
+ * gcc.dg/tree-ssa/forwprop-6.c: Likewise.
+ * gcc.dg/tree-ssa/ipa-cp-1.c: Likewise.
+ * gcc.dg/tree-ssa/loop-19.c: Likewise.
+ * gcc.dg/tree-ssa/loop-1.c: Likewise.
+ * gcc.dg/tree-ssa/pr21001.c: Likewise.
+ * gcc.dg/tree-ssa/pr42585.c: Likewise.
+ * gcc.dg/tree-ssa/ssa-dse-5.c: Likewise.
+ * gcc.dg/vect/vect-cond-5.c: Likewise.
+ * gcc.dg/weak/typeof-2.c: Likewise.
+ * gcc.target/aarch64/aapcs64/abitest-common.h: Likewise.
+ * gcc.target/arm/naked-1.c: Likewise.
+ * gcc.target/i386/pr9771-1.c: Likewise.
+ * gcc.target/sparc/sparc-constant-1.c: Likewise.
+ * gcc.target/sparc/struct-ret-check.c: Likewise.
+ * gcc.target/x86_64/abi/test_struct_returning.c: Likewise.
+ * gfortran.dg/c_ptr_tests_8_funcs.c: Likewise.
+ * objc-obj-c++-shared/objc-test-suite-next-encode-assist-impl.h: Likewise.
+
2013-07-21 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/56937
-/* PR41779: Wconversion cannot see throught real*integer promotions. */
+/* PR41779: Wconversion cannot see thought real*integer promotions. */
/* { dg-do compile } */
/* { dg-skip-if "doubles are floats" { "avr-*-*" } { "*" } { "" } } */
/* { dg-options "-std=c99 -Wconversion" { target c } } */
struct BlobSpan {
int right;
};
-/* This test makes sure we don't accidently cause a bad insertion to occur
+/* This test makes sure we don't accidentally cause a bad insertion to occur
by choosing the wrong variable name so that we end up with a use not
dominated by a def. */
void render_blob_line(struct BlobSpan blobdata) {
-/* This test woudl cause partial redundancies too complex for PRE
+/* This test would cause partial redundancies too complex for PRE
to insert using a single temporary due to them not being GIMPLE
expressions. */
int ssbgst (int c, int k)
-/* ifcvt accidently deletes a referenced label while generating
+/* ifcvt accidentally deletes a referenced label while generating
conditional traps on machines having such patterns */
struct foo { int a; };
/* This testcase failed on i686 because (const_int -1) was changed into
(const_int 0xffff) when storing it into SImode pseudo, but was not
converted back to (const_int -1) when returning from store_expr,
- eventhough target was (subreg:HI (reg/v:SI indx)). But (const_int 0xffff)
+ even though target was (subreg:HI (reg/v:SI indx)). But (const_int 0xffff)
is not valid general_operand in HImode. */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* Note that the external version of this routine has the boolean weak/strong
- parameter removed. This is required by teh external library. */
+ parameter removed. This is required by the external library. */
bool
__atomic_compare_exchange (size_t size, void *obj, void *expected,
void *desired, int model1, int model2)
-/* Test __builtin_complex errors. Verify it does nto allow quiet
+/* Test __builtin_complex errors. Verify it does not allow quiet
creation of complex types in C90. */
/* { dg-do compile } */
/* { dg-options "-std=c90 -pedantic-errors" } */
Source: Neil Booth, 12 Feb 2002.
In the declaration of proc, x must be parsed as a typedef name (C99
- 6.7.5.3 p11. Also see C89 DR #009, which was erroneously ommitted
+ 6.7.5.3 p11. Also see C89 DR #009, which was erroneously omitted
from C99, and resubmitted as DR #249: if in a parameter
declaration, an identifier can be read as a typedef name or a
paramter name, it is read as a typedef name). */
/* OK, lets try and do some stuff to the workspace - by the end
of the main loop our area should be the same as it is now - i.e. 0. */
- /* Push the arithmetic section upto 128 - one of the threads will
- case this to carry accross the 32bit boundary. */
+ /* Push the arithmetic section up to 128 - one of the threads will
+ case this to carry across the 32bit boundary. */
for (tmp2 = 0; tmp2 < 64; tmp2++)
{
/* Add 2 using the two different adds. */
*/
printf ("%s", p); /* { dg-warning "format" "bad argument types" } */
/* The historical behavior is to allow signed / unsigned types
- interchangably as arguments. For values representable in both types,
+ interchangeably as arguments. For values representable in both types,
such usage may be correct. For now preserve the behavior of GCC
in such cases.
*/
*/
printf ("%s", p); /* { dg-warning "format" "bad argument types" } */
/* The historical behavior is to allow signed / unsigned types
- interchangably as arguments. For values representable in both types,
+ interchangeably as arguments. For values representable in both types,
such usage may be correct. For now preserve the behavior of GCC
in such cases.
*/
/* Problem only noticed on SH for -mcbranchdi DImode comparison with constants.
- * Target dependant failure but test valid for alls. */
+ * Target dependent failure but test valid for alls. */
/* { dg-do run } */
/* { dg-options "-O0" } */
/* { dg-options "-O0 -mcbranchdi" { target sh4-*-* } } */
/* This plugin tests the correct operation of a PLUGIN_START_UNIT callback.
* By the time a PLUGIN_START_UNIT callback is invoked, the frontend
* initialization should have completed. At least the different *_type_nodes
- * should have been created. This plugin creates an artifical global
+ * should have been created. This plugin creates an artificial global
* interger variable.
*
*/
/* { dg-options "-O2 -ffast-math" } */
/* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */
-/* This test used to abort, beacuse we do an "integer" fold to zero, i.e.
+/* This test used to abort, because we do an "integer" fold to zero, i.e.
x - x = (T)0 where T is the type of x. Unfortunately, fold_convert
was unable to convert integer_zero_node to the appropriate vector type. */
/* { dg-options "-O2" } */
/* On MIPS, disable generating hints (R_MIPS_JALR) for PIC calls. In addition
- to the load from the GOT this also contains the name of the funtion so for
+ to the load from the GOT this also contains the name of the function so for
each call the function name would appear twice. */
/* { dg-options "-O2 -mno-relax-pic-calls" { target mips*-*-* } } */
and unsigned integer types I and U and the floating-point type F,
where P is the binary precision of the floating point type. We
test conversions of the values 0, 1, 0x7...f, 0x8...0, 0xf...f. We
- also test conversions of values half way inbetween two
+ also test conversions of values half way between two
representable values (rounding both ways), just above half way, and
just below half way. */
#define TEST_I_F(I, U, F, P) \
/* cold function should be inlined, while hot function should not.
Look for "cold_function () [tail call];" call statement not for the
- declaration or other apperances of the string in dump. */
+ declaration or other appearances of the string in dump. */
/* { dg-final-use { scan-tree-dump "cold_function ..;" "optimized"} } */
/* { dg-final-use { scan-tree-dump-not "hot_function ..;" "optimized"} } */
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
;
}
-/* All paths to the test "target != 0" occuring in the final IF statement
+/* All paths to the test "target != 0" occurring in the final IF statement
dereference target. Thus target can not have the value zero at that
point and the test should have been eliminated. */
/* ??? The dominator walker (A) doesn't merge this data at joins and
particular situation before doing this transformation we have to
assure that a is killed by a dominating store via type float for
it to be valid. Then we might as well handle the situation by
- value-numbering, removing the load alltogether.
+ value-numbering, removing the load altogether.
??? We now do this after CPP re-writes a into SSA form. */
/* { dg-final { scan-tree-dump-times "VIEW_CONVERT_EXPR" 1 "forwprop1" } } */
/* { dg-final { cleanup-tree-dump "forwprop1" } } */
{
very_long_function (1);
}
-/* One appereance for dump, one self recursive call and one call from main. */
+/* One appearance for dump, one self recursive call and one call from main. */
/* { dg-final { scan-tree-dump-times "very_long_function.constprop.0 \\(\\)" 3 "optimized"} } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized -static" { target *-*-darwin* } } */
/* On MIPS, disable generating hints (R_MIPS_JALR) for PIC calls. In addition
- to the load from the GOT this also contains the name of the funtion so for
+ to the load from the GOT this also contains the name of the function so for
each call the function name would appear twice. */
/* { dg-options "-O1 -ftree-loop-ivcanon -funroll-loops -fdump-tree-ivcanon-details -fdump-tree-cunroll-details -fdump-tree-optimized -mno-relax-pic-calls" { target mips*-*-* } } */
__attribute__ ((pure))
/* Check that the memory references are based on &a and &c, with appropriate
offsets. Ideally, we would want each of them to appear once in the output.
However, due to a bug in jump threading, we end up peeling one iteration from
- the loop, which creates an additional occurence. */
+ the loop, which creates an additional occurrence. */
/* { dg-final { scan-tree-dump-times "MEM.(base: &|symbol: )a," 2 "optimized" } } */
/* { dg-final { scan-tree-dump-times "MEM.(base: &|symbol: )c," 2 "optimized" } } */
VRP did not insert ASSERT_EXPRs when the variable tested in a
COND_EXPR is a single-use variable. By propagating the definition
of the single-use variable into the COND_EXPR, we can get useful
- range infomation out of the conditional. */
+ range information out of the conditional. */
/* { dg-do compile } */
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-vrp1-details" } */
/* The local aggregates . */
/* Whether the structs are totally scalarized or not depends on the
- MOVE_RATIO macro defintion in the back end. The scalarization will
+ MOVE_RATIO macro definition in the back end. The scalarization will
not take place when using small values for MOVE_RATIO. */
/* { dg-final { scan-tree-dump-times "struct _fat_ptr _ans" 0 "optimized" { target { ! "arm*-*-* powerpc*-*-* s390*-*-* sh*-*-*" } } } } */
/* { dg-final { scan-tree-dump-times "struct _fat_ptr _T2" 0 "optimized" { target { ! "arm*-*-* powerpc*-*-* s390*-*-* sh*-*-*" } } } } */
x = j;
}
-/* The assignment "i = 3" is partialy dead. Our DSE pass doesn't handle
+/* The assignment "i = 3" is partially dead. Our DSE pass doesn't handle
detection of partially dead assignments.
There's two outputs which would indicate that the optimization was
return 0;
}
-/* Double reduction with cond_expr is not supported, since eventhough the order
+/* Double reduction with cond_expr is not supported, since even though the order
of computation is the same, but vector results should be reduced to scalar
result, which can'be done for cond_expr. */
/* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" { xfail *-*-* } } } */
// { dg-final { scan-assembler "baz2" } }
// { dg-final { scan-assembler-not "baz2.*baz2.*baz2.*baz2.*baz2.*baz2" } }
// { dg-final { scan-assembler-not "foo3" } }
-// SH targets put the funtion address into a constant pool and / or register,
+// SH targets put the function address into a constant pool and / or register,
// so it does not appear repeated (as much as expected) in the assembler.
// { dg-final { global target_triplet } }
// { dg-final { if [string match sh-*-* $target_triplet ] {return} } }
#ifdef RUNTIME_ENDIANNESS_CHECK
#ifndef RUNTIME_ENDIANNESS_CHECK_FUNCTION_DEFINED
-/* This helper funtion defined to detect whether there is any incompatibility
+/* This helper function defined to detect whether there is any incompatibility
issue on endianness between compilation time and run-time environments.
TODO: review the implementation when the work of big-endian support in A64
GCC starts.
/* { dg-do compile } */
/* { dg-options "-O0" } */
/* Check that function arguments aren't assigned and copied to stack slots
- in naked functions. This ususally happens at -O0 (presumably for
+ in naked functions. This usually happens at -O0 (presumably for
better debugging), but is highly undesirable if we haven't created
a stack frame. */
void __attribute__((naked))
*adr = save;
}
-/* This must not be inlined becuase main() requires the frame pointer
+/* This must not be inlined because main() requires the frame pointer
for stack alignment. */
void test(void) __attribute__((noinline));
void test(void)
/* { dg-do compile } */
/* Verify that adding the constant 4096 is turned
- into substracting the constant -4096. */
+ into subtracting the constant -4096. */
int foo(int a)
{
/* If the caller does an unconditional adjustment it will skip
the mov, and then we can fail the test based on check's value
We pass a valid pointer to a save area in order to check if
- caller incorrectly wrote to the save area aswell. There may
+ caller incorrectly wrote to the save area as well. There may
be a case where the unimp check and skip is correct, but the
write to the save area still occurs. */
is given to the f_* functions, otherwise a conforming program
could notice the struct changing already before the function returns.
This temporary struct could be anywhere. For GCC it will be on
- stack, but noone is forbidding that it could be a static variable
+ stack, but no one is forbidding that it could be a static variable
if there's no threading or proper locking. Nobody in his right mind
will not use the stack for that. */
case MEM: assert (*(unsigned char*)struct_addr == 42 && rdi == rax); break;
-/* This file provides auxilliary functions for c_ptr_tests_8. */
+/* This file provides auxiliary functions for c_ptr_tests_8. */
#include <stdio.h>
#include <stdlib.h>