re PR target/59927 (ICE sorry, unimplemented: ms_abi attribute requires -maccumulate-outgoing-args or subtarget optimization implying it)

PR target/59927
	Revert
	2013-12-15  Uros Bizjak  <ubizjak@gmail.com>

	PR testsuite/58630
	* gcc.target/i386/pr43662.c (dg-options):
	Add -maccumulate-outgoing-args.
	* gcc.target/i386/pr43869.c (dg-options): Ditto.
	* gcc.target/i386/pr57003.c (dg-options): Ditto.
	* gcc.target/i386/avx-vzeroupper-16.c (dg-options):
	Remove -mtune=generic and add -maccumulate-outgoing-args instead.
	* gcc.target/i386/avx-vzeroupper-17.c (dg-options): Ditto.
	* gcc.target/i386/avx-vzeroupper-18.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-1.c (dg-options):
	Add -maccumulate-outgoing-args.
	* gcc.target/x86_64/abi/callabi/func-2a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-2b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect-2a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/func-indirect-2b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/leaf-1.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/leaf-2.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/pr38891.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-1.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-2.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-3.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-4a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-4b.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-5a.c (dg-options): Ditto.
	* gcc.target/x86_64/abi/callabi/vaarg-5b.c (dg-options): Ditto.

From-SVN: r207697
This commit is contained in:
Uros Bizjak 2014-02-11 19:59:24 +01:00 committed by Uros Bizjak
parent 6521b2e96c
commit fe89bba406
23 changed files with 54 additions and 22 deletions

View File

@ -1,3 +1,36 @@
2014-02-11 Uros Bizjak <ubizjak@gmail.com>
PR target/59927
Revert
2013-12-15 Uros Bizjak <ubizjak@gmail.com>
PR testsuite/58630
* gcc.target/i386/pr43662.c (dg-options):
Add -maccumulate-outgoing-args.
* gcc.target/i386/pr43869.c (dg-options): Ditto.
* gcc.target/i386/pr57003.c (dg-options): Ditto.
* gcc.target/i386/avx-vzeroupper-16.c (dg-options):
Remove -mtune=generic and add -maccumulate-outgoing-args instead.
* gcc.target/i386/avx-vzeroupper-17.c (dg-options): Ditto.
* gcc.target/i386/avx-vzeroupper-18.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-1.c (dg-options):
Add -maccumulate-outgoing-args.
* gcc.target/x86_64/abi/callabi/func-2a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-2b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect-2a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/func-indirect-2b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/leaf-1.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/leaf-2.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/pr38891.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-1.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-2.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-3.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-4a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-4b.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-5a.c (dg-options): Ditto.
* gcc.target/x86_64/abi/callabi/vaarg-5b.c (dg-options): Ditto.
2014-02-11 Richard Sandiford <rdsandiford@googlemail.com>
* gcc.dg/vect/pr56787.c: Mark as xfail for vect_no_align.

View File

@ -1,5 +1,5 @@
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O2 -mavx -mabi=ms -maccumulate-outgoing-args -dp" } */
/* { dg-options "-O2 -mavx -mabi=ms -dp" } */
typedef float __m256 __attribute__ ((__vector_size__ (32), __may_alias__));

View File

@ -1,5 +1,5 @@
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O2 -mavx -mabi=ms -maccumulate-outgoing-args -dp" } */
/* { dg-options "-O2 -mavx -mabi=ms -dp" } */
typedef float __m256 __attribute__ ((__vector_size__ (32), __may_alias__));

View File

@ -1,5 +1,5 @@
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O0 -mavx -mabi=ms -maccumulate-outgoing-args -dp" } */
/* { dg-options "-O0 -mavx -mabi=ms -dp" } */
typedef float __m256 __attribute__ ((__vector_size__ (32), __may_alias__));

View File

@ -1,5 +1,5 @@
/* { dg-do compile { target lp64 } } */
/* { dg-options "-O2 -maccumulate-outgoing-args" } */
/* { dg-options "-O2" } */
void __attribute__ ((ms_abi)) foo (void)
{

View File

@ -1,5 +1,4 @@
/* { dg-do compile { target lp64 } } */
/* { dg-options "-maccumulate-outgoing-args" } */
int __attribute__((__noinline__))
bugged(float f1, float f2, float f3, float f4,

View File

@ -1,6 +1,6 @@
/* PR rtl-optimization/57003 */
/* { dg-do run } */
/* { dg-options "-O2 -maccumulate-outgoing-args" } */
/* { dg-options "-O2" } */
#define N 2001
unsigned short *b, *c, *d;

View File

@ -2,7 +2,7 @@
*/
/* Origin: Kai Tietz <kai.tietz@onevision.com> */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -ffast-math -maccumulate-outgoing-args" } */
/* { dg-options "-std=gnu99 -ffast-math" } */
#include "callabi.h"
extern void abort (void);

View File

@ -1,6 +1,6 @@
/* Test for cross x86_64<->w64 abi standard calls. */
/* { dg-do run } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
/* { dg-additional-sources "func-2b.c" } */
extern void __attribute__ ((sysv_abi)) abort (void);

View File

@ -1,5 +1,5 @@
/* Test for cross x86_64<->w64 abi standard calls. */
/* { dg-options "-mabi=ms -std=gnu99 -ffast-math -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
long double func_cross (long double a, double b, float c, long d, int e,
char f)

View File

@ -1,6 +1,6 @@
/* Test for cross x86_64<->w64 abi standard calls via variable. */
/* { dg-do run } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
/* { dg-additional-sources "func-indirect-2b.c" } */
extern void __attribute__ ((sysv_abi)) abort (void);

View File

@ -1,5 +1,5 @@
/* Test for cross x86_64<->w64 abi standard calls via variable. */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -ffast-math -fno-builtin" } */
typedef int (*func)(void *, char *, char *, short, long long);

View File

@ -2,7 +2,7 @@
*/
/* Origin: Kai Tietz <kai.tietz@onevision.com> */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -ffast-math -maccumulate-outgoing-args" } */
/* { dg-options "-std=gnu99 -ffast-math" } */
#include "callabi.h"
extern void abort (void);

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mabi=sysv -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=sysv" } */
__attribute__ ((ms_abi))
int foo (void)

View File

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-O2 -mabi=sysv -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=sysv" } */
extern int glb1, gbl2, gbl3;

View File

@ -1,7 +1,7 @@
/* Test for cross x86_64<->w64 abi standard calls.
*/
/* { dg-do compile } */
/* { dg-options "-mno-sse -maccumulate-outgoing-args" } */
/* { dg-options "-mno-sse" } */
#include "callabi.h"
long double

View File

@ -2,7 +2,7 @@
*/
/* Origin: Kai Tietz <kai.tietz@onevision.com> */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -maccumulate-outgoing-args" } */
/* { dg-options "-std=gnu99" } */
#include "callabi.h"
extern __SIZE_TYPE__ strlen (const char *);

View File

@ -2,7 +2,7 @@
*/
/* Origin: Kai Tietz <kai.tietz@onevision.com> */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -maccumulate-outgoing-args" } */
/* { dg-options "-std=gnu99" } */
#include "callabi.h"
extern void abort (void);

View File

@ -2,7 +2,7 @@
*/
/* Origin: Kai Tietz <kai.tietz@onevision.com> */
/* { dg-do run } */
/* { dg-options "-std=gnu99 -maccumulate-outgoing-args" } */
/* { dg-options "-std=gnu99" } */
#include "callabi.h"
extern void abort (void);

View File

@ -1,6 +1,6 @@
/* Test for cross x86_64<->w64 abi va_list calls. */
/* { dg-do run } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
/* { dg-additional-sources "vaarg-4b.c" } */
extern __SIZE_TYPE__ __attribute__ ((sysv_abi)) strlen (const char *);

View File

@ -1,5 +1,5 @@
/* Test for cross x86_64<->w64 abi va_list calls. */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
#include <stdarg.h>

View File

@ -1,6 +1,6 @@
/* Test for cross x86_64<->w64 abi va_list calls. */
/* { dg-do run } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
/* { dg-additional-sources "vaarg-5b.c" } */
extern void __attribute__ ((sysv_abi)) abort (void);

View File

@ -1,5 +1,5 @@
/* Test for cross x86_64<->w64 abi va_list calls. */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin -maccumulate-outgoing-args" } */
/* { dg-options "-O2 -mabi=ms -std=gnu99 -fno-builtin" } */
#include <stdarg.h>