diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 01:07:18 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-18 01:07:18 +0000 |
commit | 27559c4e528ec67d18aac8c81bbb5438f16d3346 (patch) | |
tree | f359cc24690133850cf3bf16ec1173672b262e12 /gcc/testsuite/gcc.dg/pragma-init-fini-2.c | |
parent | ca67a72b7d65501c47d175b455ca194a9110cd62 (diff) | |
download | gcc-27559c4e528ec67d18aac8c81bbb5438f16d3346.tar.gz |
libcpp:
2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
Mark Mitchell <mark@codesourcery.com>
* configure.ac (i[34567]86-*-solaris2.1[0-9]*): Set
need_64bit_hwint=yes.
* configure: Regenerate.
gcc:
2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
Mark Mitchell <mark@codesourcery.com>
* config/i386/sol2-10.h, config/i386/t-sol2-10: New files.
* config/i386/i386.c (i386_solaris_elf_named_section): New
function.
* config.gcc (i[34567]86-*-solaris2*): Handle Solaris 2.10.
* config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Handle
64-bit.
(ASM_QUAD): Don't undefine for biarch targets.
* config/i386/t-sol2: Introduce multilib support.
gcc/testsuite:
2004-11-18 Daniel Jacobowitz <dan@codesourcery.com>
Mark Mitchell <mark@codesourcery.com>
* testsuite/gcc.dg/pragma-init-fini-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg/pragma-init-fini-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pragma-init-fini-2.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pragma-init-fini-2.c b/gcc/testsuite/gcc.dg/pragma-init-fini-2.c new file mode 100644 index 00000000000..91bc622a20c --- /dev/null +++ b/gcc/testsuite/gcc.dg/pragma-init-fini-2.c @@ -0,0 +1,15 @@ +/* Tests for #pragma init and #pragma fini. */ + +/* { dg-do link { target *-*-solaris2.* } } */ +/* { dg-options "-fpic" } */ + +#include <stdio.h> + +#pragma fini (f) + +void f() { + fprintf (stderr, "f\n"); +} + +int main () { +} |