This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: UNITS_PER_WORD change wrong on MIPS


On Sat, May 03, 2036 at 01:07:12PM -0500, Richard Kenner wrote:
>     Do we need to change UNITS_PER_WORD to MIN_UNITS_PER_WORD in
>     libgcc2.h?
> 
> Yes, I just did.
> 
>     Are there are other places/things that needs changing?
> 
> I doubt it, because if there were, they would fail the same way.

I guess you need to define it though for architectures where UNITS_PER_WORD
is already constant (like is done in caller-save.c).
Ok to commit?

2000-03-27  Jakub Jelinek  <jakub@redhat.com>

	* libgcc2.h (MIN_UNITS_PER_WORD): Define to UNITS_PER_WORD
	if not defined.

--- gcc/libgcc2.h.jj	Mon Mar 27 13:23:56 2000
+++ gcc/libgcc2.h	Mon Mar 27 13:28:02 2000
@@ -74,6 +74,10 @@ extern short int __get_eh_table_version 
 #define LIBGCC2_LONG_DOUBLE_TYPE_SIZE LONG_DOUBLE_TYPE_SIZE
 #endif
 
+#ifndef MIN_UNITS_PER_WORD
+#define MIN_UNITS_PER_WORD UNITS_PER_WORD
+#endif
+
 /* In the first part of this file, we are interfacing to calls generated
    by the compiler itself.  These calls pass values into these routines
    which have very specific modes (rather than very specific types), and


Cheers,
    Jakub
___________________________________________________________________
Jakub Jelinek | jakub@redhat.com | http://sunsite.mff.cuni.cz/~jj
Linux version 2.3.99-pre2 on a sparc64 machine (1343.49 BogoMips)
___________________________________________________________________

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]