From 242789de094e500155f6596d659b9f414b801f0e Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 16 Feb 2015 23:03:33 +0000 Subject: [PATCH] re PR target/65058 (AIX: missing extern decorations "[DS]" for functions and "[UA]" for variables) PR target/65058 * gcc.target/powerpc/pr65058.c: New test. From-SVN: r220744 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/pr65058.c | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 gcc/testsuite/gcc.target/powerpc/pr65058.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 06ed820e235..ee133fa2bc0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-02-16 David Edelsohn + + PR target/65058 + * gcc.target/powerpc/pr65058.c: New test. + 2015-02-16 Jeff Law PR tree-optimization/64823 diff --git a/gcc/testsuite/gcc.target/powerpc/pr65058.c b/gcc/testsuite/gcc.target/powerpc/pr65058.c new file mode 100644 index 00000000000..a6613ac1769 --- /dev/null +++ b/gcc/testsuite/gcc.target/powerpc/pr65058.c @@ -0,0 +1,10 @@ +/* { dg-do compile { target { powerpc*-*-aix* } } } */ +/* { dg-final { scan-assembler "externfunc\\\[DS\\\]" } } */ +/* { dg-final { scan-assembler "externvar\\\[UA\\\]" } } */ + +extern int externvar; +extern void externfunc(void); + +int *localvar = &externvar; +void (*localfunc)(void) = externfunc; + -- 2.30.2