From 8ae6d18314d91e168c770717879f3caef8249768 Mon Sep 17 00:00:00 2001 From: law Date: Wed, 27 Mar 2002 03:56:23 +0000 Subject: [PATCH] * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__. * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__ or __rtems_ is defined. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@51430 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 7 +++++++ gcc/config/pa/lib2funcs.asm | 7 ++++++- gcc/config/pa/pa-pro-end.h | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 946f695..6608a84 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2002-03-26 Vladimir Makarov + + * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__. + + * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__ + or __rtems_ is defined. + 2002-03-26 Richard Henderson * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note diff --git a/gcc/config/pa/lib2funcs.asm b/gcc/config/pa/lib2funcs.asm index bf632d5..abd69d5 100644 --- a/gcc/config/pa/lib2funcs.asm +++ b/gcc/config/pa/lib2funcs.asm @@ -28,6 +28,7 @@ ; the Free Software Foundation, 59 Temple Place - Suite 330, ; Boston, MA 02111-1307, USA. +#if !defined(__pro__) && !defined(__rtems__) .SPACE $PRIVATE$ .SUBSPA $DATA$,QUAD=1,ALIGN=8,ACCESS=31 .SUBSPA $BSS$,QUAD=1,ALIGN=8,ACCESS=31,ZERO,SORT=82 @@ -35,10 +36,14 @@ .SUBSPA $LIT$,QUAD=0,ALIGN=8,ACCESS=44 .SUBSPA $CODE$,QUAD=0,ALIGN=8,ACCESS=44,CODE_ONLY .SUBSPA $MILLICODE$,QUAD=0,ALIGN=8,ACCESS=44,SORT=8 - +#endif .IMPORT $$dyncall,MILLICODE +#if !defined(__pro__) && !defined(__rtems__) .SPACE $TEXT$ .SUBSPA $CODE$ +#else + .text +#endif ; Simply call with the address of the desired import stub in %r22 and ; arguments in the normal place (%r26-%r23 and stack slots). diff --git a/gcc/config/pa/pa-pro-end.h b/gcc/config/pa/pa-pro-end.h index 4e154b0..90b7ef5 100644 --- a/gcc/config/pa/pa-pro-end.h +++ b/gcc/config/pa/pa-pro-end.h @@ -30,7 +30,7 @@ Boston, MA 02111-1307, USA. */ #define LIB_SPEC "%{!p:%{!pg:-lc}}%{p: -L/lib/libp/ -lc}%{pg: -L/lib/libp/ -lc}" #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dhppa -DPWB -Acpu=hppa -Amachine=hppa" +#define CPP_PREDEFINES "-Dhppa -DPWB -Acpu=hppa -D__pro__ -Amachine=hppa" /* hpux8 and later have C++ compatible include files, so do not pretend they are `extern "C"'. */ -- 2.7.4