gcc/testsuite/ChangeLog:
2020-04-15 Martin Liska <mliska@suse.cz>
* g++.dg/concepts/diagnostic1.C: Merge dg-options and
dg-additional-options if len <= 120 chars.
* g++.dg/cpp1y/new1.C: Likewise.
* g++.dg/cpp1y/new2.C: Likewise.
* g++.dg/debug/dwarf2/pr61433.C: Likewise.
* g++.dg/init/new18.C: Likewise.
* g++.dg/ipa/devirt-19.C: Likewise.
* g++.dg/ipa/devirt-52.C: Likewise.
* g++.dg/ipa/pr44372.C: Likewise.
* g++.dg/ipa/pr58371.C: Likewise.
* g++.dg/ipa/pr63587-2.C: Likewise.
* g++.dg/ipa/pr78211.C: Likewise.
* g++.dg/opt/dump1.C: Likewise.
* g++.dg/opt/pr44919.C: Likewise.
* g++.dg/opt/pr47615.C: Likewise.
* g++.dg/opt/pr82159-2.C: Likewise.
* g++.dg/other/pr52048.C: Likewise.
* g++.dg/pr57662.C: Likewise.
* g++.dg/pr59510.C: Likewise.
* g++.dg/pr67989.C: Likewise.
* g++.dg/pr81194.C: Likewise.
* g++.dg/template/canon-type-8.C: Likewise.
* g++.dg/template/crash107.C: Likewise.
* g++.dg/template/show-template-tree-3.C: Likewise.
* g++.dg/tm/cgraph_edge.C: Likewise.
* g++.dg/torture/
20141013.C: Likewise.
* g++.dg/torture/pr34641.C: Likewise.
* g++.dg/torture/pr34850.C: Likewise.
* g++.dg/torture/pr36745.C: Likewise.
* g++.dg/torture/pr40991.C: Likewise.
* g++.dg/torture/pr48271.C: Likewise.
* g++.dg/torture/pr53602.C: Likewise.
* g++.dg/torture/pr53752.C: Likewise.
* g++.dg/torture/pr54838.C: Likewise.
* g++.dg/torture/pr58252.C: Likewise.
* g++.dg/tree-ssa/pr22444.C: Likewise.
* g++.dg/tree-ssa/pr24351-3.C: Likewise.
* g++.dg/tree-ssa/pr27283.C: Likewise.
* g++.dg/tree-ssa/pr27291.C: Likewise.
* g++.dg/tree-ssa/pr27548.C: Likewise.
* g++.dg/tree-ssa/pr42337.C: Likewise.
* g++.dg/ubsan/pr65583.C: Likewise.
* g++.old-deja/g++.robertl/eb27.C: Likewise.
* gcc.dg/tree-ssa/dse-points-to.c: Likewise.
* gcc.target/arm/simd/vmmla_1.c: Likewise.
* gcc.target/i386/vect-pr67800.c: Likewise.
* gcc.target/mips/cfgcleanup-jalr2.c: Likewise.
* gcc.target/mips/cfgcleanup-jalr3.c: Likewise.
// PR c++/67159
// { dg-do compile { target c++17_only } }
-// { dg-options "-fconcepts" }
-// { dg-additional-options "-fconcepts-diagnostics-depth=2" }
+// { dg-options "-fconcepts -fconcepts-diagnostics-depth=2" }
template <class T, class U>
concept bool SameAs = __is_same_as(T, U);
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-cddce-details" } */
-// { dg-additional-options "-fdelete-null-pointer-checks" }
+/* { dg-options "-O2 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
#include <stdlib.h>
/* { dg-do compile } */
-/* { dg-options "-O2 -std=c++17 -fdump-tree-cddce-details" } */
-/* { dg-additional-options "-fdelete-null-pointer-checks" } */
+/* { dg-options "-O2 -std=c++17 -fdump-tree-cddce-details -fdelete-null-pointer-checks" } */
#include <cstdio>
#include <cstdlib>
// PR c++/61433
// { dg-do compile { target c++11 } }
-// { dg-options "-O -fcompare-debug -fno-inline -fno-ipa-pure-const -fipa-sra" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O -fcompare-debug -fno-inline -fno-ipa-pure-const -fipa-sra -Wno-return-type" }
template <class T>
struct A
// { dg-do compile }
-// { dg-options "-O2 -fstrict-aliasing" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -fstrict-aliasing -Wno-return-type" }
// This caused an ICE during placement new.
Previously we were failing by considering CLOBBER statement to be
a type change. */
/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-ipa-cp -fipa-cp-clone" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -fdump-ipa-cp -fipa-cp-clone -Wno-return-type" } */
struct A {
void operator==(const A &);
// PR middle-end/77259
// { dg-do compile { target c++11 } }
-// { dg-options "-O2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -Wno-return-type" }
template <typename, typename = int> class A;
template <typename, typename> struct A
/* { dg-do compile } */
-/* { dg-options "-O -fipa-cp -fipa-cp-clone" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O -fipa-cp -fipa-cp-clone -Wno-return-type" } */
template < typename > class S3;
/* { dg-do compile } */
-/* { dg-options "-O2" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -Wno-return-type" } */
typedef int size_t;
// PR ipa/63587
// { dg-do compile { target c++11 } }
-// { dg-options "-O2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -Wno-return-type" }
namespace boost {
class basic_cstring
// PR lto/78211
// { dg-do compile { target { lto && c++11 } } }
-// { dg-options "-fcompare-debug -fno-printf-return-value -flto -fno-use-linker-plugin -O3" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-fcompare-debug -fno-printf-return-value -flto -fno-use-linker-plugin -O3 -Wno-return-type" }
namespace std {
typedef __SIZE_TYPE__ size_t;
// PR c++/57102
-// { dg-options "-O2 -fno-inline -fdump-final-insns" }
+// { dg-options "-O2 -fno-inline -fdump-final-insns -Wno-return-type" }
// { dg-do compile { target c++11 } }
// { dg-final cleanup-final-insns-dump }
-// { dg-additional-options "-Wno-return-type" }
namespace std
{
// { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } }
-// { dg-options "-O3 -fselective-scheduling2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O3 -fselective-scheduling2 -Wno-return-type" }
namespace std {
// { dg-do compile }
-// { dg-options "-O -fstrict-aliasing -ftree-pre -fno-tree-fre -fno-tree-sra" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O -fstrict-aliasing -ftree-pre -fno-tree-fre -fno-tree-sra -Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
namespace std
// PR c++/82159
// { dg-do compile }
-// { dg-options "" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options " -Wno-return-type" }
template <typename T> struct D { T e; };
struct F : D<int[0]> {
// PR debug/52048
// { dg-do compile }
-// { dg-options "-fcompare-debug -fnon-call-exceptions -fno-tree-dominator-opts -O2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-fcompare-debug -fnon-call-exceptions -fno-tree-dominator-opts -O2 -Wno-return-type" }
template <typename T> struct A;
template <typename T>
/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
-/* { dg-options "-O2 -fselective-scheduling2 -fsel-sched-pipelining" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -fselective-scheduling2 -fsel-sched-pipelining -Wno-return-type" } */
extern "C" {
typedef struct _IO_FILE FILE;
// PR debug/59510
// { dg-do compile }
-// { dg-options "-O2 -g --param=large-stack-frame-growth=1" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -g --param=large-stack-frame-growth=1 -Wno-return-type" }
template <typename _Iterator>
struct _Iter_base
/* { dg-do compile } */
-/* { dg-options "-std=c++11 -O2" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-std=c++11 -O2 -Wno-return-type" } */
__extension__ typedef unsigned long long int uint64_t;
namespace std __attribute__ ((__visibility__ ("default")))
// { dg-do compile { target c++17 } }
-// { dg-options "-O2 -fno-exceptions" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -fno-exceptions -Wno-return-type" }
template <class a> struct b { typedef a *c; };
class e {};
// PR c++/45984
// We were getting different canonical types for matching types because
// TYPE_ALIGN wasn't propagated to all the variants fast enough.
-// { dg-options "" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
enum { chunk_size = 16 };
// PR c++/44625
// { dg-do compile }
-// { dg-options "" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-Wno-return-type" }
template<typename FP_> struct Vec { // { dg-message "note" "" { target c++17_down } }
Vec& operator^=(Vec& rhs) {
(again, with the "double" and "float" highlighted, though we can't test
for that in this case). */
-// { dg-options "-fdiagnostics-show-template-tree" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-fdiagnostics-show-template-tree -Wno-return-type" }
#include <map>
#include <vector>
// { dg-do compile }
-// { dg-options "-fgnu-tm -O3" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-fgnu-tm -O3 -Wno-return-type" }
template<typename _InputIterator, typename _Distance> inline void advance(_InputIterator& __i, _Distance __n)
{
-/* { dg-options "-fno-short-enums" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-fno-short-enums -Wno-return-type" } */
enum
{
_sch_isdigit = 0x0004,
// { dg-do compile }
// { dg-require-effective-target fpic }
// { dg-require-visibility "" }
-// { dg-options "-fPIC" }
-/* { dg-additional-options "-Wno-return-type" } */
+// { dg-options "-fPIC -Wno-return-type" }
typedef __SIZE_TYPE__ size_t;
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
-/* { dg-options "-ffat-lto-objects" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-ffat-lto-objects -Wno-return-type" } */
typedef unsigned char uint8_t;
typedef unsigned int uint32_t;
/* PR target/36745 */
/* { dg-do compile } */
-/* { dg-options "-O2 -fPIC" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -fPIC -Wno-return-type" } */
/* { dg-require-effective-target fpic } */
typedef __SIZE_TYPE__ size_t;
-/* { dg-options "-std=gnu++0x" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-std=gnu++0x -Wno-return-type" } */
typedef __SIZE_TYPE__ size_t;
namespace std __attribute__ ((__visibility__ ("default"))) {
// { dg-do compile }
-// { dg-options "-ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-ftree-vrp -fno-guess-branch-probability -fnon-call-exceptions -Wno-return-type" }
void *xalloc ();
void xfree (void *);
// { dg-do compile }
-// { dg-options "-std=c++11" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-std=c++11 -Wno-return-type" }
namespace std
{
// { dg-do compile }
-// { dg-options "-g" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-g -Wno-return-type" }
typedef unsigned int uint32_t;
typedef unsigned long int uint64_t;
// { dg-do compile }
-// { dg-options "-ftracer -fno-tree-dce -fno-tree-sra" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-ftracer -fno-tree-dce -fno-tree-sra -Wno-return-type" }
struct bidirectional_iterator_tag
{};
// { dg-do compile }
-// { dg-options "-fpermissive" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-fpermissive -Wno-return-type" }
typedef long unsigned int size_t;
typedef bool _CORBA_Boolean;
typedef unsigned int _CORBA_ULong;
// to the addressable vars list, because this may cause false aliasing
// with the subvars leading to the subvars not being renamed when they should
// { dg-do compile }
-// { dg-options "-O2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -Wno-return-type" }
__extension__ typedef __PTRDIFF_TYPE__ ptrdiff_t;
__extension__ typedef __SIZE_TYPE__ size_t;
namespace std
/* { dg-do compile } */
-/* { dg-options "-O2" } */
-// { dg-additional-options "-Wno-return-type" }
+/* { dg-options "-O2 -Wno-return-type" } */
namespace sigc {
template <class T_type> struct type_trait {
typedef T_type& pass;
/* { dg-do compile } */
-/* { dg-options "-O2" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -Wno-return-type" } */
namespace Gambit
{
/* { dg-do compile } */
-/* { dg-options "-O2" } */
-/* { dg-additional-options "-Wno-return-type" } */
+/* { dg-options "-O2 -Wno-return-type" } */
namespace std
{
// PR tree-optimization/27548
// { dg-do compile }
-// { dg-options "-O1" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O1 -Wno-return-type" }
namespace Gambit
{
// PR tree-optimize/42337
// { dg-do compile }
-// { dg-options "-O2" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-O2 -Wno-return-type" }
template<class _T1, class _T2> struct pair {
_T2 second;
// PR sanitizer/65583
// { dg-do compile }
-// { dg-options "-std=c++11 -fsanitize=undefined" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-std=c++11 -fsanitize=undefined -Wno-return-type" }
namespace std
{
// { dg-do assemble }
-// { dg-options "-Wno-deprecated" }
-// { dg-additional-options "-Wno-return-type" }
+// { dg-options "-Wno-deprecated -Wno-return-type" }
/* bug.cc */
/* simple program to demonstrate the bug with named return values in gcc
*/
/* { dg-do compile } */
-/* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre -fno-tree-vrp" } */
-/* { dg-additional-options "-fdump-tree-dse1-details" } */
+/* { dg-options "-O2 -fno-tree-ccp -fno-tree-forwprop -fno-tree-fre -fno-tree-vrp -fdump-tree-dse1-details" } */
int
f ()
/* { dg-do assemble } */
/* { dg-require-effective-target arm_v8_2a_i8mm_ok } */
-/* { dg-options "-save-temps -O2" } */
-/* { dg-additional-options "-march=armv8.2-a+i8mm" } */
+/* { dg-options "-save-temps -O2 -march=armv8.2-a+i8mm" } */
#include "arm_neon.h"
/* { dg-do compile } */
-/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
-/* { dg-additional-options "-msse4.2" } */
+/* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -msse4.2" } */
#define ubyte unsigned char
#define byte char
/* { dg-do compile } */
-/* { dg-options "-mabicalls -fpic -mno-mips16 -mno-micromips" } */
-/* { dg-additional-options "-fno-inline -fipa-ra -mcompact-branches=never" } */
+/* { dg-options "-mabicalls -fpic -mno-mips16 -mno-micromips -fno-inline -fipa-ra -mcompact-branches=never" } */
/* { dg-skip-if "needs codesize optimization" { *-*-* } { "-O0" "-O1" "-O2" "-O3" } { "" } } */
static int foo (void* p) { __asm__ (""::"r"(p):"$t0"); return 0; }
/* { dg-do compile } */
-/* { dg-options "-mabicalls -fpic -mno-mips16 -mno-micromips" } */
-/* { dg-additional-options "-fno-inline -fipa-ra -mcompact-branches=never" } */
+/* { dg-options "-mabicalls -fpic -mno-mips16 -mno-micromips -fno-inline -fipa-ra -mcompact-branches=never" } */
/* { dg-skip-if "needs codesize optimization" { *-*-* } { "-O0" "-O1" "-O2" "-O3" } { "" } } */
static int foo (void* p) { return 0; }