* 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
+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.
extern long ringo(long int);
int g,i;
+void
f()
{
__transaction_relaxed {
int i;
extern void virgin () __attribute__((transaction_pure));
+void
foo()
{
__transaction_atomic {
/* Test that the call to george() doesn't end up inside the transaction. */
+void george (void);
int trxn;
void set_remove(int * val)
int a,b, c, z;
-testing(){
+void testing(){
c=9;
}
-main() {
+int main() {
b = 9898;
__transaction_relaxed {
z = c;
int global;
int george;
-extern crap() __attribute__((transaction_unsafe));
+extern void crap() __attribute__((transaction_unsafe));
+void
foo()
{
__transaction_relaxed {
int global;
int george;
+void
foo()
{
__transaction_relaxed {
extern void bar(void) __attribute__((transaction_callable));
+void
foo()
{
__transaction_relaxed {
void orig(void);
void xyz(void) __attribute__((transaction_wrap (orig)));
-
+void
foo()
{
__transaction_relaxed {
/* { 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 {
extern int something(void) __attribute__((transaction_safe));
extern void *malloc (__SIZE_TYPE__) __attribute__((malloc,transaction_safe));
+extern void foo (int);
int f()
{
/* { 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]; };
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]; };
/* { 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()
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
+extern int readint (void);
int f()
{
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
+extern int readint (void);
int f()
{
struct large { int x[100]; };
struct large bark();
extern int test (void) __attribute__((transaction_safe));
+extern int readint (void);
struct large lacopy;
int f()
int global;
+void
foo(int local)
{
__transaction_atomic {
int global;
int george;
-extern crap() __attribute__((transaction_unsafe));
+extern void crap() __attribute__((transaction_unsafe));
+void
foo(){
__transaction_relaxed {
global++;
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)));