URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Show entire file |
Details |
Blame |
View Log
Rev 280 |
Rev 378 |
Line 839... |
Line 839... |
|
|
/* Mark register number I as global. */
|
/* Mark register number I as global. */
|
void
|
void
|
globalize_reg (int i)
|
globalize_reg (int i)
|
{
|
{
|
|
#ifdef STACK_REGS
|
|
if (IN_RANGE (i, FIRST_STACK_REG, LAST_STACK_REG))
|
|
{
|
|
error ("stack register used for global register variable");
|
|
return;
|
|
}
|
|
#endif
|
|
|
if (fixed_regs[i] == 0 && no_global_reg_vars)
|
if (fixed_regs[i] == 0 && no_global_reg_vars)
|
error ("global register variable follows a function definition");
|
error ("global register variable follows a function definition");
|
|
|
if (global_regs[i])
|
if (global_regs[i])
|
{
|
{
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.