search for: __noreturn__

Displaying 20 results from an estimated 33 matches for "__noreturn__".

Did you mean: __noreturn
2011 Sep 16
3
[LLVMdev] help with an error message using clang ?
...from: # define __cleanup_fct_attribute __attribute__ ((__regparm__ (1))) ^ ~ In file included from TEST.C:65: /usr/include/pthread.h:718:6: error: 'regparm' is not valid on this platform __cleanup_fct_attribute __attribute__ ((__noreturn__)) ^~~~~~~~~~~~~~~~~~~~~~~ What causes the errors and how can I fix it? Thanks a lot and have a nice weekend! Best, Christine -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110916/ed23fc74/attachment....
2006 Nov 21
1
rsync v2.6.9: small patch fixing NORETURN failures
...int create_directory_path(char *fname); --- rsync-2.6.9/rsync.h.orig 2006-10-24 05:31:30.000000000 +0200 +++ rsync-2.6.9/rsync.h 2006-11-21 21:32:09.000000000 +0100 @@ -667,7 +667,16 @@ #endif #define UNUSED(x) x __attribute__((__unused__)) +#if __GNUC__ > 2 #define NORETURN __attribute__((__noreturn__)) +#define NORETURN2 /**/ +#elif __GNUC__ == 2 /* (ThMO) */ +#define NORETURN /**/ +#define NORETURN2 __attribute__((__noreturn__)) +#else +#define NORETURN /**/ +#define NORETURN2 /**/ +#endif #include "proto.h"
2005 Feb 18
3
[LLVMdev] LLVM built on VS C++ 2005
GCC is smart enough to realize it doesn't return. That's because the declaration of abort() is decorated with __attribute__((__noreturn__)). So is GCC smarter than VC++? As it turns out, in VC++ the declaration of abort() is decorated with __declspec(noreturn). Whidbey is not stricter than 2003, it is merely buggier. VC++ has always complained about functions failing to return a value; this is not new in Whidbey. What is new...
2005 Nov 25
0
[LLVMdev] Re: setjmp/longjmp interoperable between llvm and gcc?
...port sigsetjmp; use plain setjmp instead */ #undef sigsetjmp #define sigjmp_buf jmp_buf #define sigsetjmp(x,y) setjmp(x) #define siglongjmp longjmp typedef struct ZZ_SIGJMP_BUF { void (*zz_siglongjmp)(struct ZZ_SIGJMP_BUF *self, int value) __attribute__((__noreturn__)); sigjmp_buf jmpbuf; } ZZ_SIGJMP_BUF; static void zz_siglongjmp(struct ZZ_SIGJMP_BUF *self, int value) __attribute__((__noreturn__)) __attribute__((__always_inline__)); void zz_siglongjmp(struct ZZ_SIGJMP_BUF *self, int value) { siglongjmp(self->jmpbuf, value); } #de...
2011 Sep 16
0
[LLVMdev] help with an error message using clang ?
...anup_fct_attribute __attribute__ ((__regparm__ (1))) >                                                  ^            ~ > In file included from TEST.C:65: > /usr/include/pthread.h:718:6: error: 'regparm' is not valid on this platform >      __cleanup_fct_attribute __attribute__ ((__noreturn__)) >      ^~~~~~~~~~~~~~~~~~~~~~~ > > What causes the errors and how can I fix it? You're using headers from your x86 machine to compile code for Sparc (and possibly a different OS?); that doesn't work in general. You'll need to somehow use headers from your target Sparc machi...
2009 Aug 31
1
two small patches to appease clang/llvm static analysis
...@ -41,7 +41,7 @@ extern void guestfs_close (guestfs_h *g); extern const char *guestfs_last_error (guestfs_h *g); typedef void (*guestfs_error_handler_cb) (guestfs_h *g, void *data, const char *msg); -typedef void (*guestfs_abort_cb) (void); +typedef void (*guestfs_abort_cb) (void) __attribute__((__noreturn__)); extern void guestfs_set_error_handler (guestfs_h *g, guestfs_error_handler_cb cb, void *data); extern guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g, void **data_rtn); -- 1.6.4.2.384.g5fc62
2019 Jan 25
0
[klibc:update-dash] parser: use pgetc_eatbnl() in more places
...arser.c +++ b/usr/dash/parser.c @@ -106,6 +106,7 @@ STATIC void parseheredoc(void); STATIC int peektoken(void); STATIC int readtoken(void); STATIC int xxreadtoken(void); +STATIC int pgetc_eatbnl(); STATIC int readtoken1(int, char const *, char *, int); STATIC void synexpect(int) __attribute__((__noreturn__)); STATIC void synerror(const char *) __attribute__((__noreturn__)); @@ -656,8 +657,10 @@ parseheredoc(void) if (needprompt) { setprompt(2); } - readtoken1(pgetc(), here->here->type == NHERE? SQSYNTAX : DQSYNTAX, - here->eofmark, here->striptabs); + if (here->here-&gt...
2020 Mar 28
0
[klibc:update-dash] dash: parser: use pgetc_eatbnl() in more places
...arser.c +++ b/usr/dash/parser.c @@ -106,6 +106,7 @@ STATIC void parseheredoc(void); STATIC int peektoken(void); STATIC int readtoken(void); STATIC int xxreadtoken(void); +STATIC int pgetc_eatbnl(); STATIC int readtoken1(int, char const *, char *, int); STATIC void synexpect(int) __attribute__((__noreturn__)); STATIC void synerror(const char *) __attribute__((__noreturn__)); @@ -656,8 +657,10 @@ parseheredoc(void) if (needprompt) { setprompt(2); } - readtoken1(pgetc(), here->here->type == NHERE? SQSYNTAX : DQSYNTAX, - here->eofmark, here->striptabs); + if (here->here-&gt...
2005 Feb 18
0
[LLVMdev] LLVM built on VS C++ 2005
> GCC is smart enough to realize it doesn't return. That's because the > declaration of abort() is decorated with __attribute__((__noreturn__)). > > So is GCC smarter than VC++? As it turns out, in VC++ the declaration of > abort() is decorated with __declspec(noreturn). > > Whidbey is not stricter than 2003, it is merely buggier. VC++ has always > complained about functions failing to return a value; this is not ne...
2004 Oct 18
0
Error building ash: trap.c:398: error: conflicting types for 'onsig'
...21.021269720 +0000 +++ ash/trap.h 2004-10-19 00:04:37.218807320 +0000 @@ -40,7 +40,7 @@ void clear_traps(int); long setsignal(int, int); void ignoresig(int, int); -void onsig(int); +__cdecl void onsig(int); void dotrap(void); void setinteractive(int); void exitshell(int) __attribute__((__noreturn__)); Daniel Thaler
2005 Feb 17
0
[LLVMdev] LLVM built on VS C++ 2005
Aaron Gray wrote:- > Hi, > > I have built yesterdays CVS download of LLVM on Whidbey (Microsoft Visual Studio 2005). > > LLVM built with trivial mods due to VS strictness compared to GCC. Basically there are missing return statement/values where Abort() is called, I replaced these with dummy constructors to get them to compile. Sounds like GCC is smart enough to realise it
2011 Sep 17
1
[LLVMdev] help with an error message using clang ?
...ibute__ ((__regparm__ (1))) > > ^ ~ > > In file included from TEST.C:65: > > /usr/include/pthread.h:718:6: error: 'regparm' is not valid on this > platform > > __cleanup_fct_attribute __attribute__ ((__noreturn__)) > > ^~~~~~~~~~~~~~~~~~~~~~~ > > > > What causes the errors and how can I fix it? > > You're using headers from your x86 machine to compile code for Sparc > (and possibly a different OS?); that doesn't work in general. You'll > need to somehow use he...
2002 Jan 23
4
[Bug 75] Error compiling in ssh-agent.c
http://bugzilla.mindrot.org/show_bug.cgi?id=75 ------- Additional Comments From djm at mindrot.org 2002-01-23 17:16 ------- AFAIK atexit() should only take one arg. It looks like configure might not be finding your libc atexit() and is using the compat macro in defines.h. What does configure report when it looks for atexit()? Ben, the compat macro looks wrong too. It is currently defined
2005 Feb 17
5
[LLVMdev] LLVM built on VS C++ 2005
Hi, I have built yesterdays CVS download of LLVM on Whidbey (Microsoft Visual Studio 2005). LLVM built with trivial mods due to VS strictness compared to GCC. Basically there are missing return statement/values where Abort() is called, I replaced these with dummy constructors to get them to compile. I do not have 2003. 2005 is much stricter than 2003 and there are quite alot of warnings on
2020 Mar 28
0
[klibc:update-dash] dash: exec: Do not allocate stack string in padvance
...lock(); } if (verbose) { outfmt( diff --git a/usr/dash/exec.h b/usr/dash/exec.h index 9ccb305f..e241b742 100644 --- a/usr/dash/exec.h +++ b/usr/dash/exec.h @@ -62,7 +62,7 @@ extern const char *pathopt; /* set by padvance */ void shellexec(char **, const char *, int) __attribute__((__noreturn__)); -char *padvance(const char **, const char *); +int padvance(const char **, const char *); int hashcmd(int, char **); void find_command(char *, struct cmdentry *, int, const char *); struct builtincmd *find_builtin(const char *); diff --git a/usr/dash/mail.c b/usr/dash/mail.c index 02e07f77..7...
2018 Jun 08
4
vanilla build of 7.7p1 release on linux/4.17 fails with gcc8 @ "/usr/bin/ld: unrecognized option '-Wl,-z,retpolineplt'"
On 8 June 2018 at 10:52, PGNet Dev <pgnet.dev at gmail.com> wrote: [...] > So, there's a problem for OpenSSH build with spec'ing LD=/usr/bin/ld ? in this particular case, apparently yes. not generally, though. [...] > What's *intended* re: openssh? Support for LD=ld or only =gcc, or undef'd ? Well the intent is you should be able to set CC and LD to whatever you
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add vfork support
..._SETMASK, &mask, oldmask); +} + /* * Human-readable signal name */ diff --git a/usr/dash/trap.h b/usr/dash/trap.h index a095b0e1..bbff1842 100644 --- a/usr/dash/trap.h +++ b/usr/dash/trap.h @@ -50,6 +50,7 @@ void dotrap(void); void setinteractive(int); void exitshell(void) __attribute__((__noreturn__)); int decode_signal(const char *, int); +void sigblockall(sigset_t *oldmask); const char *signal_name(int); static inline int have_traps(void)
2020 Mar 28
0
[klibc:update-dash] dash: exec: Stricter pathopt parsing
...->next; ckfree(cmdp); } else { diff --git a/usr/dash/exec.h b/usr/dash/exec.h index e241b742..f394f3f7 100644 --- a/usr/dash/exec.h +++ b/usr/dash/exec.h @@ -62,7 +62,7 @@ extern const char *pathopt; /* set by padvance */ void shellexec(char **, const char *, int) __attribute__((__noreturn__)); -int padvance(const char **, const char *); +int padvance_magic(const char **path, const char *name, int magic); int hashcmd(int, char **); void find_command(char *, struct cmdentry *, int, const char *); struct builtincmd *find_builtin(const char *); @@ -75,3 +75,8 @@ void defun(union node *...
2020 Mar 28
0
[klibc:update-dash] dash: eval: Add assignment built-in support again
.../* regular built-ins and functions only */ extern const char *pathopt; /* set by padvance */ diff --git a/usr/dash/parser.c b/usr/dash/parser.c index 3de977c1..c4e63781 100644 --- a/usr/dash/parser.c +++ b/usr/dash/parser.c @@ -125,8 +125,7 @@ STATIC void synerror(const char *) __attribute__((__noreturn__)); STATIC void setprompt(int); -static inline int -isassignment(const char *p) +int isassignment(const char *p) { const char *q = endofname(p); if (p == q) diff --git a/usr/dash/parser.h b/usr/dash/parser.h index 2875cce6..524ac1c7 100644 --- a/usr/dash/parser.h +++ b/usr/dash/parser.h @@...
2019 Jan 25
0
[klibc:update-dash] eval: Return status in eval functions
..., 67 deletions(-) diff --git a/usr/dash/eval.c b/usr/dash/eval.c index ef6ec0ef..6ba64b12 100644 --- a/usr/dash/eval.c +++ b/usr/dash/eval.c @@ -81,16 +81,16 @@ int savestatus = -1; /* exit status of last command outside traps */ STATIC #endif void evaltreenr(union node *, int) __attribute__ ((__noreturn__)); -STATIC void evalloop(union node *, int); -STATIC void evalfor(union node *, int); -STATIC void evalcase(union node *, int); -STATIC void evalsubshell(union node *, int); +STATIC int evalloop(union node *, int); +STATIC int evalfor(union node *, int); +STATIC int evalcase(union node *, int); +ST...