Displaying 20 results from an estimated 40 matches for "__gnuc_minor__".
2011 Feb 20
1
[LLVMdev] Why __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__ are defined as 4, 2, 1 in clang?
clang isn't GNU C. So why does it define such values and why they are 4,2,1?
It also defines __GNUC_STDC_INLINE__=1 for some reason.
rev.126022
Yuri
2004 Aug 31
1
[LLVMdev] More configure problems
...---------------------------------------.
>| yyerrlab1 -- error raised explicitly by an action. |
>`----------------------------------------------------*/
>yyerrlab1:
>
> /* Suppress GCC warning that yyerrlab1 is unused when no action
> invokes YYERROR. */
>#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
> __attribute__ ((__unused__))
>#endif
>
> goto yyerrlab2; <== line 2043
>
>I'm using bison 1.875. But it worked the last time, so I don't know why
>it doesn't work now. Deleting the __attribute_...
2015 Dec 20
10
[Bug 93454] New: Can't build with LLVM/clang 3.7.0
https://bugs.freedesktop.org/show_bug.cgi?id=93454
Bug ID: 93454
Summary: Can't build with LLVM/clang 3.7.0
Product: Mesa
Version: 11.0
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
Assignee: nouveau at
2004 Aug 31
2
[LLVMdev] More configure problems
...enerated are:
/*----------------------------------------------------.
| yyerrlab1 -- error raised explicitly by an action. |
`----------------------------------------------------*/
yyerrlab1:
/* Suppress GCC warning that yyerrlab1 is unused when no action
invokes YYERROR. */
#if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
__attribute__ ((__unused__))
#endif
goto yyerrlab2; <== line 2043
I'm using bison 1.875. But it worked the last time, so I don't know why
it doesn't work now. Deleting the __attribute__ clause fixes it.
2013 Apr 19
2
Preprocessor error when trying to build integer-only
...1 to config.h, just on x86_64-linux) I got
this error
> ./include/private/bitmath.h:134:5: error: operator '&&' has no left
> operand
bitmath.h:134 is the following line
> #if && defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 &&
> __GNUC_MINOR__ >= 4))
I really wonder why anyone would have left it like this. Maybe something
went wrong? Removing the first && solved the problem and it compiled
nicely. This is current git (2de567f), all tests passed after this small
change.
2025 May 12
1
array-bound error with GCC 13/14
On 5/9/25 03:09, Stephen Wade wrote:
> The literanger package is no longer passing on CRAN
> (https://CRAN.R-project.org/package=literanger) due to array-bound
> warnings in GCC 13.3 and 14.2 (more details below).
>
> This _looks_ to me like one of either a) a compiler bug, b) a false
> positive, or c) (very unlikely) something in the standard library
> implementation.
>
2010 Mar 03
1
[LLVMdev] Problem with ALWAYS_INLINE
.../CodeGen/SelectionDAG/Debug/SelectionDAGISel.o] Error 1
I've not investigated any further as I'll probably switch to a newer GCC
quite soon anyway. As a work-around I've changed 4 to 5 in these lines
in include/llvm/Support/Compiler.h:
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#define ALWAYS_INLINE __attribute__((always_inline))
Perhaps this change should be committed.
--
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and...
2006 Jun 20
1
[patch] compiler.h fix use of likely/unlikely
...bc/compiler.h b/usr/include/klibc/compiler.h
index 893f8a9..b7d9b50 100644
--- a/usr/include/klibc/compiler.h
+++ b/usr/include/klibc/compiler.h
@@ -91,12 +91,12 @@ # define __mallocfunc
#endif
/* likely/unlikely */
-#if defined(__GNUC__) && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 95))
-# define __likely(x) __builtin_expect((x), 1)
-# define __unlikely(x) __builtin_expect((x), 0)
+#if defined(__GNUC__)
+# define likely(x) __builtin_expect((x), 1)
+# define unlikely(x) __builtin_expect((x), 0)
#else
-# define __likely(x) (x)
-# define __unlikely(x) (x)
+# define...
2000 Jun 26
1
Re: [vorbis] bug in glibc 2.1.2 and older
Hello,
I have solved this problem in the splay mp3 decoder with this:
In the header:
#if (__GNUC__ < 2 || ( __GNUC__ == 2 && __GNUC_MINOR__ < 91 ) )
#warning "inline code disabled! (buggy egcs version)"
#undef __NO_MATH_INLINES
#define __NO_MATH_INLINES 1
#endif
#include <math.h>
In the makefile:
CXXFLAGS=@CXXFLAGS@ -fno-strength-reduce
(Opt level is 2)
and in the excutable:
pow(6.0,3.0);
Then it did work.
r...
2004 Aug 31
0
[LLVMdev] More configure problems
...----------------------------------.
> | yyerrlab1 -- error raised explicitly by an action. |
> `----------------------------------------------------*/
> yyerrlab1:
>
> /* Suppress GCC warning that yyerrlab1 is unused when no action
> invokes YYERROR. */
> #if defined (__GNUC_MINOR__) && 2093 <= (__GNUC__ * 1000 + __GNUC_MINOR__)
> __attribute__ ((__unused__))
> #endif
>
> goto yyerrlab2; <== line 2043
>
> I'm using bison 1.875. But it worked the last time, so I don't know why
> it doesn't work now. Deleting the __attri...
2007 Apr 20
1
[LLVMdev] llvm-gcc make check
...bilityMacros.h 2007-04-20 18:38:11.000000000 -0500
---
/users/dag/projects/cascade/compiler/llvm-gcc/fixincludes/tests/base/AvailabilityMacros.h
2007-04-18 16:46:04.000000000 -0500
***************
*** 13,23 ****
#if defined(__GNUC__) && ((__GNUC__ >= 4) || (__GNUC__ == 3 &&
__GNUC_MINOR__ >= 1))
#endif /* DARWIN_GCC4_BREAKAGE_CHECK */
-
-
- #if defined( DARWIN_MACOSX_DEPLOYMENT_TARGET_CHECK )
- __private_extern__ int _dyld_func_lookup(
- const char *dyld_func_name,
- unsigned long *address);
-
- #endif /* DARWIN_MACOSX_DEPLOYMENT_TARGET_CHECK */
--- 13,15 ----
math.h
/user...
2004 Aug 31
0
[LLVMdev] More configure problems
On Mon, 30 Aug 2004 20:48:45 -0700
Jeff Cohen <jeffc at jolt-lang.org> wrote:
> When I ran configure after updating, I get various errors. First:
>
> % ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking build system type... i386-unknown-freebsd5.2.1
> checking host system
2013 Jan 08
1
[PATCH][firmware] efi: Fix build with gnu-efi >= 3.0s
...ll_wrapper().
+ *
+ * The reason we don't attempt to check the version of gnu-efi we're
+ * building against is because there's no harm in turning it on for
+ * older versions - it will just be ignored.
+ */
+#if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
+ #define GNU_EFI_USE_MS_ABI 1
+#endif
+
#include <efi.h>
#include <efilib.h>
#include <efistdarg.h>
diff --git a/efi/vesa.c b/efi/vesa.c
index 473d3a5..38f8213 100644
--- a/efi/vesa.c
+++ b/efi/vesa.c
@@ -33,9 +33,7 @@
#include <sys/fpu.h>
#include <sysli...
2019 Oct 29
2
[PATCH] fish: add option --blocksize for disks
...remote_control_listen = 1;
else if (STREQ (long_options[option_index].name, "remote")) {
diff --git a/generator/c.ml b/generator/c.ml
index 86f7d89..61aa50d 100644
--- a/generator/c.ml
+++ b/generator/c.ml
@@ -439,6 +439,8 @@ extern \"C\" {
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
#endif
+extern int blocksize;
+
/* Define GUESTFS_WARN_DEPRECATED=1 to warn about deprecated API functions. */
#define GUESTFS_DEPRECATED_NO_REPLACEMENT
#define GUESTFS_DEPRECATED_REPLACED_BY(s)
diff --git a/lib/launch-direct.c b/lib/launch-direct.c
index ee2dcb8....
2008 Mar 21
0
[LLVMdev] Just got bitten by accidentally using the wrong gcc
...le, what's the
> regular expression that tells you what the GCC version is:
> i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470)
> (Aspen 5470.3)
Rrright. -v isn't very helpful; I'd have thought it would.
Alternatives would be
gcc -dumpversion
or __GNUC__, __GNUC_MINOR__, and __GNUC_PATCHLEVEL__ from inside a C
program. (I just checked, __GNUC_PATCHLEVEL is documented to be
available since 3.0, -dumpversion since 3.0.4 or possibly earlier.)
> Per the rest of this thread, you can't even be sure that gcc 4.x.y on
> one linux distribution is compile the s...
2004 Aug 31
4
[LLVMdev] More configure problems
When I ran configure after updating, I get various errors. First:
% ../configure --enable-jit --with-llvmgccdir=/home/llvm/cfrontend/x86/llvm-gcc
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i386-unknown-freebsd5.2.1
checking host system type... i386-unknown-freebsd5.2.1
checking target system type... i386-unknown-freebsd5.2.1
test: Unknown: bad
2012 May 09
1
[PATCH 2/2] bitmath: Finish up optimizations
...+ 16 :
+ byte_to_unary_table[(word)] + 24;
+}
+
+static inline unsigned int FLAC__clz_uint32(FLAC__uint32 v)
+{
+/* Never used with input 0 */
+#if defined(__INTEL_COMPILER)
+ return _bit_scan_reverse(n) ^ 31U;
+#elif defined(__GNUC__) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
+/* This will translate either to (bsr ^ 31U), clz , ctlz, cntlz, lzcnt depending on
+ * -march= setting or to a software rutine in exotic machines. */
+ return __builtin_clz(v);
+#elif defined(_MSC_VER) && (_MSC_VER >= 1400)
+ FLAC__uint32 idx;
+ _BitScanReverse(&...
2009 Aug 10
2
daemon/ warnings
...ons(-)
diff --git a/daemon/daemon.h b/daemon/daemon.h
index 70a2351..a6bbb73 100644
--- a/daemon/daemon.h
+++ b/daemon/daemon.h
@@ -213,4 +213,14 @@ extern void reply (xdrproc_t xdrp, char *ret);
} \
while (0)
+#ifndef __attribute__
+# if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
+# define __attribute__(x) /* empty */
+# endif
+#endif
+
+#ifndef ATTRIBUTE_UNUSED
+# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
+#endif
+
#endif /* GUESTFSD_DAEMON_H */
--
1.6.4.174.gc193a
>From af4e98c3371f6008188fb3ef7136c1ebda008933 Mon Sep 17 00:00:00 2001
From: Jim M...
2008 Mar 21
3
[LLVMdev] Just got bitten by accidentally using the wrong gcc
I recommend you don't parse version strings. In fact I switch the
check to use AC_COMPILE precisely for the reason that gcc --version is
totally unreliable and vendor specific. For example, what's the
regular expression that tells you what the GCC version is:
i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5470)
(Aspen 5470.3)
Per the rest of this thread, you can't
2020 Mar 28
0
[klibc:update-dash] dash: system: Disable glibc warning on sigsetmask
...m.h
index c8424f75..f23e3863 100644
--- a/usr/dash/system.h
+++ b/usr/dash/system.h
@@ -36,8 +36,17 @@
static inline void sigclearmask(void)
{
-#ifdef HAVE_SIGSETMASK
+#if defined(HAVE_SIGSETMASK) && \
+ (!defined(__GLIBC__) || \
+ (defined(__GNUC__) && (__GNUC__ * 1000 + __GNUC_MINOR__) >= 4006))
+#ifdef __GLIBC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
sigsetmask(0);
+#ifdef __GLIBC__
+#pragma GCC diagnostic pop
+#endif
#else
sigset_t set;
sigemptyset(&set);