CVS commit: src/external/gpl3/gcc/dist/libiberty

2023-07-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul 30 06:24:25 UTC 2023

Modified Files:
src/external/gpl3/gcc/dist/libiberty: make-temp-file.c

Log Message:
fix merge botch.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gcc/dist/libiberty/make-temp-file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libiberty/make-temp-file.c
diff -u src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.8 src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.9
--- src/external/gpl3/gcc/dist/libiberty/make-temp-file.c:1.8	Sun Jul 30 05:51:39 2023
+++ src/external/gpl3/gcc/dist/libiberty/make-temp-file.c	Sun Jul 30 06:24:25 2023
@@ -143,7 +143,7 @@ choose_tmpdir (void)
 
   /* Try /tmp, then /var/tmp.  */
   base = try_dir (tmp, base);
-  base = try_dir (usrtmp, base);
+  base = try_dir (vartmp, base);
   
   /* If all else fails, use the current directory!  */
   if (base == 0)



CVS commit: src/external/gpl3/gcc/dist/libiberty

2023-07-29 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Jul 30 06:24:25 UTC 2023

Modified Files:
src/external/gpl3/gcc/dist/libiberty: make-temp-file.c

Log Message:
fix merge botch.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gcc/dist/libiberty/make-temp-file.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2022-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 08:30:04 UTC 2022

Modified Files:
src/external/gpl3/gcc/dist/libiberty: floatformat.c

Log Message:
pass lint on vax (avoid zerodivide)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/libiberty/floatformat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libiberty/floatformat.c
diff -u src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9 src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.10
--- src/external/gpl3/gcc/dist/libiberty/floatformat.c:1.9	Sat Apr 10 20:02:20 2021
+++ src/external/gpl3/gcc/dist/libiberty/floatformat.c	Sat Aug 27 04:30:04 2022
@@ -53,9 +53,14 @@ Foundation, Inc., 51 Franklin Street - F
 #ifdef DBL_QNAN
 #define NAN DBL_QNAN
 #else
+#ifdef __lint__
+static double zero = 0.0;
+#define NAN (0.0 / zero)
+#else
 #define NAN (0.0 / 0.0)
 #endif
 #endif
+#endif
 
 static int mant_bits_set (const struct floatformat *, const unsigned char *);
 static unsigned long get_field (const unsigned char *,



CVS commit: src/external/gpl3/gcc/dist/libiberty

2022-08-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 27 08:30:04 UTC 2022

Modified Files:
src/external/gpl3/gcc/dist/libiberty: floatformat.c

Log Message:
pass lint on vax (avoid zerodivide)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gcc/dist/libiberty/floatformat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2021-12-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Dec 15 13:29:14 UTC 2021

Modified Files:
src/external/gpl3/gcc/dist/libiberty: cp-demangle.c

Log Message:
fix lint


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.12 -r1.2 \
src/external/gpl3/gcc/dist/libiberty/cp-demangle.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libiberty/cp-demangle.c
diff -u src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.1.1.12 src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.2
--- src/external/gpl3/gcc/dist/libiberty/cp-demangle.c:1.1.1.12	Sat Apr 10 18:10:14 2021
+++ src/external/gpl3/gcc/dist/libiberty/cp-demangle.c	Wed Dec 15 08:29:14 2021
@@ -119,7 +119,7 @@
 # include 
 #else
 # ifndef alloca
-#  ifdef __GNUC__
+#  if defined(__GNUC__) || defined(__lint__)
 #   define alloca __builtin_alloca
 #  else
 extern char *alloca ();



CVS commit: src/external/gpl3/gcc/dist/libiberty

2021-12-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Dec 15 13:29:14 UTC 2021

Modified Files:
src/external/gpl3/gcc/dist/libiberty: cp-demangle.c

Log Message:
fix lint


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.12 -r1.2 \
src/external/gpl3/gcc/dist/libiberty/cp-demangle.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:31:38 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libiberty: sha1.c

Log Message:
mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/gpl3/gcc/dist/libiberty

2019-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Thu Oct 24 03:31:38 UTC 2019

Modified Files:
src/external/gpl3/gcc/dist/libiberty: sha1.c

Log Message:
mknative tries to build this file with c++ and c++ does not like types
inside offsetof() (a language limitation).


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gcc/dist/libiberty/sha1.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gcc/dist/libiberty/sha1.c
diff -u src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4 src/external/gpl3/gcc/dist/libiberty/sha1.c:1.5
--- src/external/gpl3/gcc/dist/libiberty/sha1.c:1.4	Tue Oct  1 06:38:22 2019
+++ src/external/gpl3/gcc/dist/libiberty/sha1.c	Wed Oct 23 23:31:38 2019
@@ -229,7 +229,7 @@ sha1_process_bytes (const void *buffer, 
   if (len >= 64)
 {
 #if !_STRING_ARCH_unaligned
-# ifdef __clang__
+# if defined(__clang__) || defined(__GNUC__)
 # define alignof(type) __alignof__(type)
 # else
 # define alignof(type) offsetof (struct { char c; type x; }, x)



Re: CVS commit: src/external/gpl3/gcc/dist/libiberty

2018-07-15 Thread Christos Zoulas
In article <20180715143153.gb28...@britannica.bec.de>,
Joerg Sonnenberger   wrote:
>On Sat, Jul 14, 2018 at 07:41:43PM -0400, Christos Zoulas wrote:
>> Module Name: src
>> Committed By:christos
>> Date:Sat Jul 14 23:41:43 UTC 2018
>> 
>> Modified Files:
>>  src/external/gpl3/gcc/dist/libiberty: alloca.c
>> 
>> Log Message:
>> clang does not like auto in c++
>
>This is not about Clang at all. auto has a quite different meaning with
>C++11 and that's even the default for newer GCC...

Yes, I totally understand that, but this is about "compiling c
files with c++" and the mode that clang chooses is different that
gcc's {how it interprets things, and what it warns and errors about)
is different. Removing the auto from the c file is harmless and makes
it compile under c++ with clang.

christos



Re: CVS commit: src/external/gpl3/gcc/dist/libiberty

2018-07-15 Thread Joerg Sonnenberger
On Sat, Jul 14, 2018 at 07:41:43PM -0400, Christos Zoulas wrote:
> Module Name:  src
> Committed By: christos
> Date: Sat Jul 14 23:41:43 UTC 2018
> 
> Modified Files:
>   src/external/gpl3/gcc/dist/libiberty: alloca.c
> 
> Log Message:
> clang does not like auto in c++

This is not about Clang at all. auto has a quite different meaning with
C++11 and that's even the default for newer GCC...

Joerg