~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/3c/3cd5c44ae5d555f7e46343fd7863311e066bfd6e.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Fix some gcc and g++ testcases to pass with hardening defaults
 
2
 
 
3
--- a/src/gcc/testsuite/g++.dg/asan/asan_test.C
 
4
+++ b/src/gcc/testsuite/g++.dg/asan/asan_test.C
 
5
@@ -2,7 +2,7 @@
 
6
 // { dg-skip-if "" { *-*-* } { "*" } { "-O2" } }
 
7
 // { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
 
8
 // { dg-additional-sources "asan_globals_test-wrapper.cc" }
 
9
-// { dg-options "-fsanitize=address -fno-builtin -Wall -Wno-format -Werror -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DASAN_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" }
 
10
+// { dg-options "-fsanitize=address -fno-builtin -Wall -Wno-format -Wno-unused-result -Werror -g -DASAN_UAR=0 -DASAN_HAS_EXCEPTIONS=1 -DASAN_HAS_BLACKLIST=0 -DASAN_USE_DEJAGNU_GTEST=1 -lasan -lpthread -ldl" }
 
11
 // { dg-additional-options "-DASAN_NEEDS_SEGV=1" { target { ! arm*-*-* } } }
 
12
 // { dg-additional-options "-DASAN_LOW_MEMORY=1 -DASAN_NEEDS_SEGV=0" { target arm*-*-* } }
 
13
 // { dg-additional-options "-DASAN_AVOID_EXPENSIVE_TESTS=1" { target { ! run_expensive_tests } } }
 
14
--- a/src/gcc/testsuite/g++.dg/asan/interception-malloc-test-1.C
 
15
+++ b/src/gcc/testsuite/g++.dg/asan/interception-malloc-test-1.C
 
16
@@ -1,7 +1,7 @@
 
17
 // ASan interceptor can be accessed with __interceptor_ prefix.
 
18
 
 
19
 // { dg-do run { target *-*-linux* } }
 
20
-// { dg-options "-fno-builtin-free" }
 
21
+// { dg-options "-fno-builtin-free -Wno-unused-result" }
 
22
 // { dg-additional-options "-D__NO_INLINE__" { target { *-*-linux-gnu } } }
 
23
 // { dg-shouldfail "asan" }
 
24
 
 
25
--- a/src/gcc/testsuite/gcc.c-torture/execute/memset-1.c
 
26
+++ b/src/gcc/testsuite/gcc.c-torture/execute/memset-1.c
 
27
@@ -1,3 +1,5 @@
 
28
+/* { dg-prune-output ".*warning: memset used with constant zero length parameter.*" } */
 
29
+
 
30
 /* Copyright (C) 2002  Free Software Foundation.
 
31
 
 
32
    Test memset with various combinations of pointer alignments and lengths to
 
33
--- a/src/gcc/testsuite/c-c++-common/asan/strncpy-overflow-1.c
 
34
+++ b/src/gcc/testsuite/c-c++-common/asan/strncpy-overflow-1.c
 
35
@@ -1,5 +1,5 @@
 
36
 /* { dg-do run } */
 
37
-/* { dg-options "-fno-builtin-malloc -fno-builtin-strncpy" } */
 
38
+/* { dg-options "-fno-builtin-malloc -fno-builtin-strncpy -U_FORTIFY_SOURCE" } */
 
39
 /* { dg-shouldfail "asan" } */
 
40
 
 
41
 #include <string.h>
 
42
--- a/src/gcc/testsuite/gcc.dg/superblock.c
 
43
+++ b/src/gcc/testsuite/gcc.dg/superblock.c
 
44
@@ -1,5 +1,5 @@
 
45
 /* { dg-do compile } */
 
46
-/* { dg-options "-O2 -fno-asynchronous-unwind-tables -fsched2-use-superblocks -fdump-rtl-sched2 -fdump-rtl-bbro" } */
 
47
+/* { dg-options "-O2 -fno-asynchronous-unwind-tables -fsched2-use-superblocks -fdump-rtl-sched2 -fdump-rtl-bbro -fno-stack-protector" } */
 
48
 
 
49
 typedef int aligned __attribute__ ((aligned (64)));
 
50
 extern void abort (void);
 
51
--- a/src/gcc/testsuite/gcc.dg/stack-usage-1.c
 
52
+++ b/src/gcc/testsuite/gcc.dg/stack-usage-1.c
 
53
@@ -1,5 +1,5 @@
 
54
 /* { dg-do compile } */
 
55
-/* { dg-options "-fstack-usage" } */
 
56
+/* { dg-options "-fstack-usage -fno-stack-protector" } */
 
57
 
 
58
 /* This is aimed at testing basic support for -fstack-usage in the back-ends.
 
59
    See the SPARC back-end for example (grep flag_stack_usage_info in sparc.c).