Commit 091b2ce0 by Marek Polacek Committed by Marek Polacek

20091013.c: Fix defaulting to int.

	* gcc.dg/tm/20091013.c: Fix defaulting to int.
	* gcc.dg/tm/20091221.c: Likewise.
	* gcc.dg/tm/debug-1.c: Likewise.
	* gcc.dg/tm/irrevocable-1.c: Likewise.
	* gcc.dg/tm/irrevocable-2.c: Likewise.
	* gcc.dg/tm/irrevocable-3.c: Likewise.
	* gcc.dg/tm/irrevocable-4.c: Likewise.
	* gcc.dg/tm/memopt-1.c: Likewise.
	* gcc.dg/tm/pr52173-1.c: Likewise.
	* gcc.dg/tm/props-1.c: Likewise.
	* gcc.dg/tm/props-2.c: Likewise.
	* gcc.dg/tm/props-3.c: Likewise.
	* gcc.dg/tm/20100125.c: Fix implicit declarations.
	* gcc.dg/tm/memopt-11.c: Likewise.
	* gcc.dg/tm/memopt-12.c: Likewise.
	* gcc.dg/tm/memopt-16.c: Likewise.
	* gcc.dg/tm/memopt-3.c: Likewise.
	* gcc.dg/tm/memopt-4.c: Likewise.
	* gcc.dg/tm/memopt-5.c: Likewise.
	* gcc.dg/tm/memopt-6.c: Likewise.
	* gcc.dg/tm/wrap-4.c: Likewise.

From-SVN: r215815
parent d90d7671
2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.dg/tm/20091013.c: Fix defaulting to int.
* gcc.dg/tm/20091221.c: Likewise.
* gcc.dg/tm/debug-1.c: Likewise.
* gcc.dg/tm/irrevocable-1.c: Likewise.
* gcc.dg/tm/irrevocable-2.c: Likewise.
* gcc.dg/tm/irrevocable-3.c: Likewise.
* gcc.dg/tm/irrevocable-4.c: Likewise.
* gcc.dg/tm/memopt-1.c: Likewise.
* gcc.dg/tm/pr52173-1.c: Likewise.
* gcc.dg/tm/props-1.c: Likewise.
* gcc.dg/tm/props-2.c: Likewise.
* gcc.dg/tm/props-3.c: Likewise.
* gcc.dg/tm/20100125.c: Fix implicit declarations.
* gcc.dg/tm/memopt-11.c: Likewise.
* gcc.dg/tm/memopt-12.c: Likewise.
* gcc.dg/tm/memopt-16.c: Likewise.
* gcc.dg/tm/memopt-3.c: Likewise.
* gcc.dg/tm/memopt-4.c: Likewise.
* gcc.dg/tm/memopt-5.c: Likewise.
* gcc.dg/tm/memopt-6.c: Likewise.
* gcc.dg/tm/wrap-4.c: Likewise.
2014-10-02 Marek Polacek <polacek@redhat.com>
* gcc.dg/vect/pr24049.c: Fix implicit declarations.
* gcc.dg/vect/pr37730.c: Likewise.
* gcc.dg/vect/pr52870.c: Likewise.
......
......@@ -4,6 +4,7 @@
extern long ringo(long int);
int g,i;
void
f()
{
__transaction_relaxed {
......
......@@ -4,6 +4,7 @@
int i;
extern void virgin () __attribute__((transaction_pure));
void
foo()
{
__transaction_atomic {
......
......@@ -3,6 +3,7 @@
/* Test that the call to george() doesn't end up inside the transaction. */
void george (void);
int trxn;
void set_remove(int * val)
......
......@@ -5,11 +5,11 @@
int a,b, c, z;
testing(){
void testing(){
c=9;
}
main() {
int main() {
b = 9898;
__transaction_relaxed {
z = c;
......
......@@ -4,8 +4,9 @@
int global;
int george;
extern crap() __attribute__((transaction_unsafe));
extern void crap() __attribute__((transaction_unsafe));
void
foo()
{
__transaction_relaxed {
......
......@@ -7,6 +7,7 @@
int global;
int george;
void
foo()
{
__transaction_relaxed {
......
......@@ -3,6 +3,7 @@
extern void bar(void) __attribute__((transaction_callable));
void
foo()
{
__transaction_relaxed {
......
......@@ -4,7 +4,7 @@
void orig(void);
void xyz(void) __attribute__((transaction_wrap (orig)));
void
foo()
{
__transaction_relaxed {
......
......@@ -2,10 +2,11 @@
/* { dg-options "-fgnu-tm -O -fdump-tree-tmmemopt" } */
long g, xxx, yyy;
extern george() __attribute__((transaction_safe));
extern ringo(long int) __attribute__((transaction_safe));
extern void george() __attribute__((transaction_safe));
extern void ringo(long int) __attribute__((transaction_safe));
int i;
void
f()
{
__transaction_relaxed {
......
......@@ -3,6 +3,7 @@
extern int something(void) __attribute__((transaction_safe));
extern void *malloc (__SIZE_TYPE__) __attribute__((malloc,transaction_safe));
extern void foo (int);
int f()
{
......
......@@ -2,6 +2,7 @@
/* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
extern int test(void) __attribute__((transaction_safe));
extern int something (void);
extern void *malloc (__SIZE_TYPE__) __attribute__((malloc,transaction_safe));
struct large { int foo[500]; };
......
......@@ -4,6 +4,7 @@
it to be converted into a COND_EXPR. */
extern int test(void) __attribute__((transaction_safe));
extern int something(void);
extern void *malloc (__SIZE_TYPE__) __attribute__((malloc,transaction_safe));
struct large { int foo[500]; };
......
......@@ -2,6 +2,7 @@
/* { dg-options "-fgnu-tm -O -fdump-tree-tmmark" } */
struct large { int x[100]; };
extern int readint (void);
extern int test(void) __attribute__((transaction_safe));
int f()
......
......@@ -6,6 +6,7 @@
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
extern int readint (void);
int f()
{
......
......@@ -6,6 +6,7 @@
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
extern int readint (void);
int f()
{
......
......@@ -4,6 +4,7 @@
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
extern int readint (void);
struct large lacopy;
int f()
......
......@@ -11,6 +11,7 @@ void func()
}
}
int
main()
{
int i;
......
......@@ -3,6 +3,7 @@
int global;
void
foo(int local)
{
__transaction_atomic {
......
......@@ -6,8 +6,9 @@
int global;
int george;
extern crap() __attribute__((transaction_unsafe));
extern void crap() __attribute__((transaction_unsafe));
void
foo(){
__transaction_relaxed {
global++;
......
......@@ -5,6 +5,7 @@
void (*indirect)(void);
void
foo(){
__transaction_relaxed {
(*indirect)();
......
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-optimized -O2" } */
void bark (void);
void candycane (void);
static void candy() { candycane(); }
static void tootsie_roll () __attribute__((transaction_wrap (candy)));
......
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