Skip to content

Instantly share code, notes, and snippets.

@unxmaal
Created August 4, 2019 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unxmaal/2cd14036fc19491e612931c020fc91c8 to your computer and use it in GitHub Desktop.
Save unxmaal/2cd14036fc19491e612931c020fc91c8 to your computer and use it in GitHub Desktop.
my gcc8.2.0 vs octodad's
diff -r /opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/internal/math_core.h ./opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/internal/math_core.h
200c200
< extern int fpclassify(double);
---
> //extern int fpclassify(double);
210c210
< inline int fpclassify(double x) { return _fpclassify(x); };
---
> //inline int fpclassify(double x) { return _fpclassify(x); };
216c216
< extern int isfinite(double);
---
> //extern int isfinite(double);
226c226
< inline int isfinite(double x) { return _isfinite(x); };
---
> //inline int isfinite(double x) { return _isfinite(x); };
264c264
< extern int isnormal(double);
---
> //extern int isnormal(double);
274c274
< inline int isnormal(double x) { return _isnormal(x); };
---
> //inline int isnormal(double x) { return _isnormal(x); };
280c280
< extern int signbit(double);
---
> //extern int signbit(double);
290c290
< inline int signbit(double x) { return _signbit(x); };
---
> //inline int signbit(double x) { return _signbit(x); };
diff -r /opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/limits.h ./opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/limits.h
1c1,37
< /* Copyright (C) 1991-2018 Free Software Foundation, Inc.
---
> /* Copyright (C) 1992, 1994, 1997, 1998 Free Software Foundation, Inc.
>
> This file is part of GCC.
>
> GCC is free software; you can redistribute it and/or modify it under
> the terms of the GNU General Public License as published by the Free
> Software Foundation; either version 3, or (at your option) any later
> version.
>
> GCC is distributed in the hope that it will be useful, but WITHOUT ANY
> WARRANTY; without even the implied warranty of MERCHANTABILITY or
> FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
> for more details.
>
> Under Section 7 of GPL version 3, you are granted additional
> permissions described in the GCC Runtime Library Exception, version
> 3.1, as published by the Free Software Foundation.
>
> You should have received a copy of the GNU General Public License and
> a copy of the GCC Runtime Library Exception along with this program;
> see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
> <http://www.gnu.org/licenses/>. */
>
> /* This administrivia gets added to the beginning of limits.h
> if the system has its own version of limits.h. */
>
> /* We use _GCC_LIMITS_H_ because we want this not to match
> any macros that the system's limits.h uses for its own purposes. */
> #ifndef _GCC_LIMITS_H_ /* Terminated in limity.h. */
> #define _GCC_LIMITS_H_
>
> #ifndef _LIBC_LIMITS_H_
> /* Use "..." so that we find syslimits.h only in this same directory. */
> #include "syslimits.h"
> #endif
> /* Copyright (C) 1991, 1992, 1993, 1996, 1997, 1998, 1999, 2000, 2001,
> 2002 Free Software Foundation, Inc.
126,149c162,169
< #ifdef __STDC_WANT_IEC_60559_BFP_EXT__
< /* TS 18661-1 widths of integer types. */
< # undef CHAR_WIDTH
< # define CHAR_WIDTH __SCHAR_WIDTH__
< # undef SCHAR_WIDTH
< # define SCHAR_WIDTH __SCHAR_WIDTH__
< # undef UCHAR_WIDTH
< # define UCHAR_WIDTH __SCHAR_WIDTH__
< # undef SHRT_WIDTH
< # define SHRT_WIDTH __SHRT_WIDTH__
< # undef USHRT_WIDTH
< # define USHRT_WIDTH __SHRT_WIDTH__
< # undef INT_WIDTH
< # define INT_WIDTH __INT_WIDTH__
< # undef UINT_WIDTH
< # define UINT_WIDTH __INT_WIDTH__
< # undef LONG_WIDTH
< # define LONG_WIDTH __LONG_WIDTH__
< # undef ULONG_WIDTH
< # define ULONG_WIDTH __LONG_WIDTH__
< # undef LLONG_WIDTH
< # define LLONG_WIDTH __LONG_LONG_WIDTH__
< # undef ULLONG_WIDTH
< # define ULLONG_WIDTH __LONG_LONG_WIDTH__
---
> #endif /* _LIMITS_H___ */
> /* This administrivia gets added to the end of limits.h
> if the system has its own version of limits.h. */
>
> #else /* not _GCC_LIMITS_H_ */
>
> #ifdef _GCC_NEXT_LIMITS_H
> #include_next <limits.h> /* recurse down to the real one */
152c172
< #endif /* _LIMITS_H___ */
---
> #endif /* not _GCC_LIMITS_H_ */
diff -r /opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/sys/immu.h ./opt/local/gcc-8.2.0/lib/gcc/mips-sgi-irix6.5/8.2.0/include-fixed/sys/immu.h
31a32,34
> #define IP30 1
> #define R10000 1
>
338c341
< #ifdef IP30
---
> #ifdef IP30||IP35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment