aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorClaudiu Zissulescu <claziss@synopsys.com>2018-06-12 15:28:46 +0200
committerClaudiu Zissulescu <claziss@gcc.gnu.org>2018-06-12 15:28:46 +0200
commitd65485c58fdd9ab6ca2cb6bc200bb71632dbbd9c (patch)
tree42220041d72f645157627a73b96ebde291af427b /gcc/testsuite
parent5def02b7a456f6669c381cb1b60a68a953c9abfe (diff)
downloadgcc-d65485c58fdd9ab6ca2cb6bc200bb71632dbbd9c.zip
gcc-d65485c58fdd9ab6ca2cb6bc200bb71632dbbd9c.tar.gz
gcc-d65485c58fdd9ab6ca2cb6bc200bb71632dbbd9c.tar.bz2
[ARC] Update warning messges.
When we pass an mcpu to the compiler we have two types of (hardware configuration) flags that are set: 1. Architecture specific, for example code-density is always enabled for ARCHS architectures. These options are overwriting whatever the corresponding user options with the preset ones. 2. CPU specific, for example archs is using LL64 option by default. These options can be freely enabled or disabled. Because of the above complexity, we need to throw some errors for the user to know when he/she does something which goes against the above rules. Thus, I came up with the following set of rules: 1. Overwriting default architecture specific hardware option: it is ignored, a warning is thrown; 2. Overwriting default CPU specific hardware option: it is taken into account, a warning is thrown. gcc/ 2018-06-12 Claudiu Zissulescu <claziss@synopsys.com> * config/arc/arc-arch.h: Update ARC_OPTX macro. * config/arc/arc-options.def (ARC_OPTX): Introduce a new doc field. * config/arc/arc.c (arc_init): Update pic warning. (irq_range): Update irq range parsing warnings. (arc_override_options): Update various warning messages. (arc_handle_aux_attribute): Likewise. gcc/testsuite 2018-06-12 Claudiu Zissulescu <claziss@synopsys.com> * gcc.target/arc/builtin_simdarc.c: Update test. * gcc.target/arc/mulsi3_highpart-2.c: Likewise. * gcc.target/arc/tumaddsidi4.c: Likewise. From-SVN: r261495
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog6
-rw-r--r--gcc/testsuite/gcc.target/arc/builtin_simdarc.c2
-rw-r--r--gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c2
-rwxr-xr-xgcc/testsuite/gcc.target/arc/tumaddsidi4.c2
4 files changed, 9 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 56b6008..d5ce43d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-12 Claudiu Zissulescu <claziss@synopsys.com>
+
+ * gcc.target/arc/builtin_simdarc.c: Update test.
+ * gcc.target/arc/mulsi3_highpart-2.c: Likewise.
+ * gcc.target/arc/tumaddsidi4.c: Likewise.
+
2018-06-12 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/opt72a.ad[sb]: New test.
diff --git a/gcc/testsuite/gcc.target/arc/builtin_simdarc.c b/gcc/testsuite/gcc.target/arc/builtin_simdarc.c
index 0cfe2ad..5a7c859 100644
--- a/gcc/testsuite/gcc.target/arc/builtin_simdarc.c
+++ b/gcc/testsuite/gcc.target/arc/builtin_simdarc.c
@@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-skip-if "" { ! { clmcpu } } } */
-/* { dg-options "-mcpu=archs -O2 -Werror-implicit-function-declaration -mmpy-option=9" } */
+/* { dg-options "-mcpu=hs38 -O2 -Werror-implicit-function-declaration -mmpy-option=9" } */
#define STEST(name, rettype, op1type, op2type) \
rettype test_ ## name \
diff --git a/gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c b/gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c
index 6ec4bc5..4b54cbf 100644
--- a/gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c
+++ b/gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c
@@ -1,7 +1,7 @@
/* { dg-do run } */
/* { dg-skip-if "ARC700 always has mpy option on" { arc700 } } */
/* { dg-skip-if "ARC600 doesn't have mpy instruction" { arc6xx } } */
-/* { dg-options "-O2 --save-temps -mmpy-option=0" } */
+/* { dg-options "-O2 -mmpy-option=0 -w" } */
#include <stdlib.h>
diff --git a/gcc/testsuite/gcc.target/arc/tumaddsidi4.c b/gcc/testsuite/gcc.target/arc/tumaddsidi4.c
index 40d2b33..d5dc294 100755
--- a/gcc/testsuite/gcc.target/arc/tumaddsidi4.c
+++ b/gcc/testsuite/gcc.target/arc/tumaddsidi4.c
@@ -1,5 +1,5 @@
/* { dg-do compile } */
-/* { dg-options "-mcpu=archs -O1 -mmpy-option=plus_dmpy" } */
+/* { dg-options "-mcpu=archs -O1 -mmpy-option=plus_dmpy -w" } */
/* Check how we generate umaddsidi4 patterns. */
long a;