arit.c: Use __builtin_labs, not abs.
* config/cris/arit.c: Use __builtin_labs, not abs. * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define. * config/cris/cris.c (cris_target_asm_function_epilogue): Move misplaced sprintf and fprintf argument. From-SVN: r46234
This commit is contained in:
parent
71a9457763
commit
44a4ca5e4f
|
@ -1,3 +1,12 @@
|
||||||
|
2001-10-12 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* config/cris/arit.c: Use __builtin_labs, not abs.
|
||||||
|
|
||||||
|
* config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
|
||||||
|
|
||||||
|
* config/cris/cris.c (cris_target_asm_function_epilogue): Move
|
||||||
|
misplaced sprintf and fprintf argument.
|
||||||
|
|
||||||
2001-10-12 Zack Weinberg <zack@codesourcery.com>
|
2001-10-12 Zack Weinberg <zack@codesourcery.com>
|
||||||
|
|
||||||
* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
|
* ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
|
||||||
|
|
|
@ -223,7 +223,7 @@ __Div (long a, long b)
|
||||||
which is still 32 bits. */
|
which is still 32 bits. */
|
||||||
|
|
||||||
sign = a ^ b;
|
sign = a ^ b;
|
||||||
result = __Udiv (abs (a), abs (b));
|
result = __Udiv (__builtin_labs (a), __builtin_labs (b));
|
||||||
|
|
||||||
return (sign < 0) ? -result : result;
|
return (sign < 0) ? -result : result;
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,7 @@ __Mod (long a, long b)
|
||||||
{
|
{
|
||||||
long result;
|
long result;
|
||||||
|
|
||||||
result = __Umod (abs (a), abs (b));
|
result = __Umod (__builtin_labs (a), __builtin_labs (b));
|
||||||
|
|
||||||
return (a < 0) ? -result : result;
|
return (a < 0) ? -result : result;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1058,7 +1058,7 @@ cris_target_asm_function_epilogue (file, size)
|
||||||
/* Flush previous non-movem:ed registers. */
|
/* Flush previous non-movem:ed registers. */
|
||||||
if (*save_last && file)
|
if (*save_last && file)
|
||||||
fprintf (file, save_last);
|
fprintf (file, save_last);
|
||||||
sprintf (save_last, "\tPop $%s\n");
|
sprintf (save_last, "\tPop $%s\n", reg_names[regno]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (last_movem_reg != -1)
|
if (last_movem_reg != -1)
|
||||||
|
@ -1140,7 +1140,7 @@ cris_target_asm_function_epilogue (file, size)
|
||||||
{
|
{
|
||||||
/* The installed EH-return address is in *this* frame, so we
|
/* The installed EH-return address is in *this* frame, so we
|
||||||
need to pop it before we return. */
|
need to pop it before we return. */
|
||||||
fprintf (file, "\tpop $srp\n", reg_names[CRIS_STACKADJ_REG]);
|
fprintf (file, "\tpop $srp\n");
|
||||||
fprintf (file, "\tret\n");
|
fprintf (file, "\tret\n");
|
||||||
fprintf (file, "\tadd.d $%s,$sp\n", reg_names[CRIS_STACKADJ_REG]);
|
fprintf (file, "\tadd.d $%s,$sp\n", reg_names[CRIS_STACKADJ_REG]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1714,31 +1714,7 @@ struct cum_args {int regs;};
|
||||||
/* (no definitions) */
|
/* (no definitions) */
|
||||||
|
|
||||||
/* Node: Macros for Initialization */
|
/* Node: Macros for Initialization */
|
||||||
|
/* (no definitions) */
|
||||||
/* We don't want to use "strip" for anything linked with "-melinux"
|
|
||||||
"-shlib", seen by the linker as "-Ur -d -Bdynamic" in combination. */
|
|
||||||
#define SET_STRIPPABLE_EXECUTABLE(DS, ARGC, ARGV) \
|
|
||||||
do \
|
|
||||||
{ \
|
|
||||||
int i; \
|
|
||||||
int flags = 0; \
|
|
||||||
for (i = (ARGC) - 1; i > 0; i--) \
|
|
||||||
{ \
|
|
||||||
if (strcmp ((ARGV)[i], "-Ur") == 0) \
|
|
||||||
flags |= 1; \
|
|
||||||
else if (strcmp ((ARGV)[i], "-d") == 0) \
|
|
||||||
flags |= 2; \
|
|
||||||
else if (strcmp ((ARGV)[i], "-Bdynamic") == 0) \
|
|
||||||
flags |= 4; \
|
|
||||||
\
|
|
||||||
if (flags == 7) \
|
|
||||||
break; \
|
|
||||||
} \
|
|
||||||
\
|
|
||||||
(DS) = (flags != 7); \
|
|
||||||
} \
|
|
||||||
while (0)
|
|
||||||
|
|
||||||
|
|
||||||
/* Node: Instruction Output */
|
/* Node: Instruction Output */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue