Open64 (mfef90, whirl2f, and IR tools)  TAG: version-openad; SVN changeset: 916
s_dcl_pu.c
Go to the documentation of this file.
00001 /*
00002 
00003   Copyright (C) 2000, 2001 Silicon Graphics, Inc.  All Rights Reserved.
00004 
00005   This program is free software; you can redistribute it and/or modify it
00006   under the terms of version 2 of the GNU General Public License as
00007   published by the Free Software Foundation.
00008 
00009   This program is distributed in the hope that it would be useful, but
00010   WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
00012 
00013   Further, this software is distributed without any warranty that it is
00014   free of the rightful claim of any third person regarding infringement 
00015   or the like.  Any license provided herein, whether implied or 
00016   otherwise, applies only to this software file.  Patent licenses, if 
00017   any, provided herein do not apply to combinations of this program with 
00018   other software, or any other product whatsoever.  
00019 
00020   You should have received a copy of the GNU General Public License along
00021   with this program; if not, write the Free Software Foundation, Inc., 59
00022   Temple Place - Suite 330, Boston MA 02111-1307, USA.
00023 
00024   Contact information:  Silicon Graphics, Inc., 1600 Amphitheatre Pky,
00025   Mountain View, CA 94043, or:
00026 
00027   http://www.sgi.com
00028 
00029   For further information regarding this notice, see:
00030 
00031   http://oss.sgi.com/projects/GenInfo/NoticeExplan
00032 
00033 */
00034 
00035 
00036 
00037 static char USMID[] = "\n@(#)5.0_pl/sources/s_dcl_pu.c  5.2     06/16/99 10:02:23\n";
00038 
00039 
00040 # include "defines.h"           /* Machine dependent ifdefs */
00041 
00042 # include "host.m"              /* Host machine dependent macros.*/
00043 # include "host.h"              /* Host machine dependent header.*/
00044 # include "target.m"            /* Target machine dependent macros.*/
00045 # include "target.h"            /* Target machine dependent header.*/
00046 
00047 # include "globals.m"
00048 # include "tokens.m"
00049 # include "sytb.m"
00050 # include "s_globals.m"
00051 # include "debug.m"
00052 
00053 # include "globals.h"
00054 # include "tokens.h"
00055 # include "sytb.h"
00056 # include "s_globals.h"
00057 
00058 
00059 /*****************************************************************\
00060 |* Function prototypes of static functions declared in this file *|
00061 \*****************************************************************/
00062 
00063 
00064 
00065 /******************************************************************************\
00066 |*                                                                            *|
00067 |* Description:                                                               *|
00068 |*      BNF     - BLOCK DATA [block-data-name]                                *|
00069 |*                                                                            *|
00070 |* Input parameters:                                                          *|
00071 |*      NONE                                                                  *|
00072 |*                                                                            *|
00073 |* Output parameters:                                                         *|
00074 |*      NONE                                                                  *|
00075 |*                                                                            *|
00076 |* Returns:                                                                   *|
00077 |*      NONE                                                                  *|
00078 |*                                                                            *|
00079 \******************************************************************************/
00080 
00081 void blockdata_stmt_semantics (void)
00082 
00083 {
00084    TRACE (Func_Entry, "blockdata_stmt_semantics", NULL);
00085 
00086    TRACE (Func_Exit, "blockdata_stmt_semantics", NULL);
00087 
00088    return;
00089 
00090 }  /* blockdata_stmt_semantics */
00091 
00092 
00093 /******************************************************************************\
00094 |*                                                                            *|
00095 |* Description:                                                               *|
00096 |*                                                                            *|
00097 |*      BNF     - ENTRY entry-name [([dummy-arg-list])[RESULT (result-name)]] *|
00098 |*              - dummy-arg     =>      dummy-arg-name or *                   *|
00099 |*                                                                            *|
00100 |* Input parameters:                                                          *|
00101 |*      NONE                                                                  *|
00102 |*                                                                            *|
00103 |* Output parameters:                                                         *|
00104 |*      NONE                                                                  *|
00105 |*                                                                            *|
00106 |* Returns:                                                                   *|
00107 |*      NONE                                                                  *|
00108 |*                                                                            *|
00109 \******************************************************************************/
00110 
00111 void entry_stmt_semantics (void)
00112 
00113 {
00114    TRACE (Func_Entry, "entry_stmt_semantics", NULL);
00115 
00116    if (cdir_switches.parallel_region) {
00117       /* a entry stmt is illegal within a parallel region */
00118       PRINTMSG(stmt_start_line, 549, Error, stmt_start_col, "ENTRY");
00119    }
00120 
00121    ATP_ALIGN(IR_IDX_L(SH_IR_IDX(curr_stmt_sh_idx)))     = cdir_switches.align;
00122    cdir_switches.align                                  = FALSE;
00123 
00124    TRACE (Func_Exit, "entry_stmt_semantics", NULL);
00125 
00126    return;
00127 
00128 }  /* entry_stmt_semantics */
00129 
00130 
00131 /******************************************************************************\
00132 |*                                                                            *|
00133 |* Description:                                                               *|
00134 |*      BNF     - [ prefix ] FUNCTION function-name                           *|
00135 |*                                   ( [ dummy-arg-name-list ] )              *|
00136 |*                                   [ RESULT ( result-name ) ]               *|
00137 |*                                                                            *|
00138 |*      prefix  -    type-spec [ RECURSIVE ]                                  *|
00139 |*                or RECURSIVE [ type-spec ]                                  *|
00140 |* Input parameters:                                                          *|
00141 |*      NONE                                                                  *|
00142 |*                                                                            *|
00143 |* Output parameters:                                                         *|
00144 |*      NONE                                                                  *|
00145 |*                                                                            *|
00146 |* Returns:                                                                   *|
00147 |*      NONE                                                                  *|
00148 |*                                                                            *|
00149 \******************************************************************************/
00150 
00151 void function_stmt_semantics (void)
00152 
00153 {
00154    TRACE (Func_Entry, "function_stmt_semantics", NULL);
00155 
00156    TRACE (Func_Exit, "function_stmt_semantics", NULL);
00157 
00158    return;
00159 
00160 }  /* function_stmt_semantics */
00161 
00162 
00163 /******************************************************************************\
00164 |*                                                                            *|
00165 |* Description:                                                               *|
00166 |*      BNF     -  MODULE module-name                                         *|
00167 |*              or MODULE PROCEDURE procedure-name-list                       *|
00168 |*                                                                            *|
00169 |* Input parameters:                                                          *|
00170 |*      NONE                                                                  *|
00171 |*                                                                            *|
00172 |* Output parameters:                                                         *|
00173 |*      NONE                                                                  *|
00174 |*                                                                            *|
00175 |* Returns:                                                                   *|
00176 |*      TRUE if this is a MODULE or MODULE PROCECURE statement, else FALSE.   *|
00177 |*                                                                            *|
00178 \******************************************************************************/
00179 
00180 void module_stmt_semantics (void)
00181 
00182 {
00183    TRACE (Func_Entry, "module_stmt_semantics", NULL);
00184 
00185 
00186    TRACE (Func_Exit, "module_stmt_semantics", NULL);
00187 
00188    return;
00189 
00190 }  /* module_stmt_semantics */
00191 
00192 
00193 /******************************************************************************\
00194 |*                                                                            *|
00195 |* Description:                                                               *|
00196 |*      This function handles the following syntax:                           *|
00197 |*         program-stmt         => PROGRAM program-name [(string of chars)]   *|
00198 |*                                                                            *|
00199 |* Input parameters:                                                          *|
00200 |*      NONE                                                                  *|
00201 |*                                                                            *|
00202 |* Output parameters:                                                         *|
00203 |*      NONE                                                                  *|
00204 |*                                                                            *|
00205 |* Returns:                                                                   *|
00206 |*      NONE                                                                  *|
00207 |*                                                                            *|
00208 \******************************************************************************/
00209 
00210 void program_stmt_semantics (void)
00211 
00212 {
00213    TRACE (Func_Entry, "program_stmt_semantics", NULL);
00214 
00215    TRACE (Func_Exit, "program_stmt_semantics", NULL);
00216 
00217    return;
00218 
00219 }  /* program_stmt_semantics */
00220 
00221 
00222 /******************************************************************************\
00223 |*                                                                            *|
00224 |* Description:                                                               *|
00225 |*      subroutine-stmt         => [ RECURSIVE ] SUBROUTINE subroutine-name   *|
00226 |*                                                 [ ( [ dummy-arg-list ] ) ] *|
00227 |*      dummy-arg               => dummy-arg-name                             *|
00228 |*                                 or *                                       *|
00229 |*                                                                            *|
00230 |* Input parameters:                                                          *|
00231 |*      NONE                                                                  *|
00232 |*                                                                            *|
00233 |* Output parameters:                                                         *|
00234 |*      NONE                                                                  *|
00235 |*                                                                            *|
00236 |* Returns:                                                                   *|
00237 |*      NONE                                                                  *|
00238 |*                                                                            *|
00239 \******************************************************************************/
00240 
00241 void subroutine_stmt_semantics (void)
00242 
00243 {
00244 
00245    TRACE (Func_Entry, "subroutine_stmt_semantics", NULL);
00246 
00247    TRACE (Func_Exit, "subroutine_stmt_semantics", NULL);
00248    
00249    return;
00250 
00251 }  /* subroutine_stmt_semantics */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines