Commit 83745c0d by Dominik Vogt Committed by Andreas Krebbel

Clean up tests where a later dg-do completely overrides another.

The attached patch cleans up some (mostly unnecessary) dg-do
directives in the gcc.dg and gcc.target test cases.

gcc/testsuite/ChangeLog:

2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>

	* gcc/testsuite/gcc.dg/cpp/mac-dir-2.c: Remove pointless duplicate
	dg-do.
	* gcc/testsuite/gcc.dg/pr27003.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/cswtch.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c: Likewise.
	* gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c: Likewise.
	* gcc.target/arc/mxy.c: Likewise.
	* gcc.target/arc/mswape.c: Likewise.
	* gcc.target/arc/mrtsc.c: Likewise.
	* gcc.target/arc/mcrc.c: Likewise.
	* gcc.target/arc/mdsp-packa.c: Likewise.
	* gcc.target/arc/mdvbf.c: Likewise.
	* gcc.target/arc/mlock.c: Likewise.
	* gcc.target/arc/mmac-24.c: Likewise.
	* gcc.dg/spec-options.c: Switch order of the two "dg-do run".

From-SVN: r235628
parent ae1c6198
2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
* gcc/testsuite/gcc.dg/cpp/mac-dir-2.c: Remove pointless duplicate
dg-do.
* gcc/testsuite/gcc.dg/pr27003.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/cswtch.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-2.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-4.c: Likewise.
* gcc/testsuite/gcc.dg/tree-ssa/predcom-5.c: Likewise.
* gcc.target/arc/mxy.c: Likewise.
* gcc.target/arc/mswape.c: Likewise.
* gcc.target/arc/mrtsc.c: Likewise.
* gcc.target/arc/mcrc.c: Likewise.
* gcc.target/arc/mdsp-packa.c: Likewise.
* gcc.target/arc/mdvbf.c: Likewise.
* gcc.target/arc/mlock.c: Likewise.
* gcc.target/arc/mmac-24.c: Likewise.
* gcc.dg/spec-options.c: Switch order of the two "dg-do run".
2016-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de> 2016-04-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
Matthijs Kooijman <matthijs@stdin.nl> Matthijs Kooijman <matthijs@stdin.nl>
Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
......
/* Copyright (C) 2002 Free Software Foundation, Inc. */ /* Copyright (C) 2002 Free Software Foundation, Inc. */
/* { dg-do preprocess } */
/* Source: Neil Booth, 26 Feb 2002. /* Source: Neil Booth, 26 Feb 2002.
Test that we allow directives in macro arguments. */ Test that we allow directives in macro arguments. */
......
/* { dg-do compile } */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-Os" } */ /* { dg-options "-Os" } */
......
/* Check that -mfoo is accepted if defined in a user spec /* Check that -mfoo is accepted if defined in a user spec
and that it is not passed on the command line. */ and that it is not passed on the command line. */
/* Must be processed in EXTRA_SPECS to run. */ /* Must be processed in EXTRA_SPECS to run. */
/* { dg-do run { target sh*-*-* } } */
/* { dg-do compile } */ /* { dg-do compile } */
/* { dg-do run { target sh*-*-* } } */
/* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */ /* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */
extern void abort(void); extern void abort(void);
......
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-switchconv" } */ /* { dg-options "-O2 -fdump-tree-switchconv" } */
/* { dg-do run } */ /* { dg-do run } */
......
/* { dg-do compile } */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */ /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
......
/* { dg-do compile } */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */ /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
......
/* { dg-do compile } */
/* { dg-do run } */ /* { dg-do run } */
/* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */ /* { dg-options "-O2 -funroll-loops --param max-unroll-times=8 -fpredictive-commoning -fdump-tree-pcom-details" } */
......
/* { dg-do compile } */
/* { dg-options "-mcrc" } */ /* { dg-options "-mcrc" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
/* { dg-do compile } */
/* { dg-options "-mlock" } */ /* { dg-options "-mlock" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
/* { dg-do compile } */
/* { dg-options "-mmac-24" } */ /* { dg-options "-mmac-24" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
/* { dg-do compile } */
/* { dg-options "-mrtsc" } */ /* { dg-options "-mrtsc" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
/* { dg-do compile } */
/* { dg-options "-mswape" } */ /* { dg-options "-mswape" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
/* { dg-do compile } */
/* { dg-options "-mxy" } */ /* { dg-options "-mxy" } */
/* { dg-do assemble } */ /* { dg-do assemble } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment