New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PATCH] Make Perl_abort_execution flagged as not returning #15886
Comments
From @petdanceCreated by @petdanceclang -Weverything points out that Perl_abort_execution can't return Perl Info
|
From @petdance0001-Make-Perl_abort_execution-flagged-as-not-returning.patchFrom f4fcce7f6bf72c6d6667277effd96240f1a53990 Mon Sep 17 00:00:00 2001
From: Andy Lester <andy@petdance.com>
Date: Tue, 21 Feb 2017 23:22:07 -0600
Subject: [PATCH] Make Perl_abort_execution flagged as not returning
---
embed.fnc | 2 +-
proto.h | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/embed.fnc b/embed.fnc
index 89986b4..25bf824 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -1881,7 +1881,7 @@ p |void |write_to_stderr|NN SV* msv
: Used in op.c
p |int |yyerror |NN const char *const s
p |void |yyquit
-p |void |abort_execution|NN const char * const msg|NN const char * const name
+pr |void |abort_execution|NN const char * const msg|NN const char * const name
p |int |yyerror_pv |NN const char *const s|U32 flags
p |int |yyerror_pvn |NULLOK const char *const s|STRLEN len|U32 flags
: Used in perly.y, and by Data::Alias
diff --git a/proto.h b/proto.h
index fea633f..bb7efa6 100644
--- a/proto.h
+++ b/proto.h
@@ -118,9 +118,11 @@ PERL_CALLCONV UV Perl__to_utf8_upper_flags(pTHX_ const U8 *p, const U8 *e, U8* u
#define PERL_ARGS_ASSERT__TO_UTF8_UPPER_FLAGS \
assert(p); assert(ustrp); assert(file)
PERL_CALLCONV void Perl__warn_problematic_locale(void);
-PERL_CALLCONV void Perl_abort_execution(pTHX_ const char * const msg, const char * const name);
+PERL_CALLCONV_NO_RET void Perl_abort_execution(pTHX_ const char * const msg, const char * const name)
+ __attribute__noreturn__;
#define PERL_ARGS_ASSERT_ABORT_EXECUTION \
assert(msg); assert(name)
+
PERL_CALLCONV LOGOP* Perl_alloc_LOGOP(pTHX_ I32 type, OP *first, OP *other);
PERL_CALLCONV PADOFFSET Perl_allocmy(pTHX_ const char *const name, const STRLEN len, const U32 flags);
#define PERL_ARGS_ASSERT_ALLOCMY \
--
1.8.3.1
|
The RT System itself - Status changed from 'new' to 'open' |
@tonycoz - Status changed from 'open' to 'pending release' |
From @khwilliamsonThank you for filing this report. You have helped make Perl better. With the release today of Perl 5.26.0, this and 210 other issues have been Perl 5.26.0 may be downloaded via: If you find that the problem persists, feel free to reopen this ticket. |
@khwilliamson - Status changed from 'pending release' to 'resolved' |
Migrated from rt.perl.org#130837 (status was 'resolved')
Searchable as RT130837$
The text was updated successfully, but these errors were encountered: