]> git.ipfire.org Git - thirdparty/gcc.git/commit
[ARC] Update warning messges.
authorClaudiu Zissulescu <claziss@synopsys.com>
Tue, 12 Jun 2018 13:28:46 +0000 (15:28 +0200)
committerClaudiu Zissulescu <claziss@gcc.gnu.org>
Tue, 12 Jun 2018 13:28:46 +0000 (15:28 +0200)
commitd65485c58fdd9ab6ca2cb6bc200bb71632dbbd9c
tree42220041d72f645157627a73b96ebde291af427b
parent5def02b7a456f6669c381cb1b60a68a953c9abfe
[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
gcc/ChangeLog
gcc/config/arc/arc-arch.h
gcc/config/arc/arc-options.def
gcc/config/arc/arc.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arc/builtin_simdarc.c
gcc/testsuite/gcc.target/arc/mulsi3_highpart-2.c
gcc/testsuite/gcc.target/arc/tumaddsidi4.c