From: David Edelsohn Date: Mon, 16 Feb 2015 23:03:33 +0000 (+0000) Subject: re PR target/65058 (AIX: missing extern decorations "[DS]" for functions and "[UA... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=242789de094e500155f6596d659b9f414b801f0e;p=gcc.git 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 --- 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; +