summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dragan <bulk88@hotmail.com>2013-05-09 14:03:59 +0100
committerDavid Mitchell <davem@iabyn.com>2013-05-09 14:03:59 +0100
commit3231f5793f6a3d7ee78eb1d68feb05c064b33315 (patch)
treee86ce8f2fb68dd2edffc4e39edf9a204a4d31884
parent299ef33b5b1be54a2b467cd78c9139096e32314a (diff)
downloadperl-3231f5793f6a3d7ee78eb1d68feb05c064b33315.tar.gz
fix threaded NO_TAINT_SUPPORT build errors
NO_TAINT_SUPPORT incorrectly called Perl_croak without aTHX_. To fix this, change Perl_croak to Perl_croak_nocontext, since it is slightly more efficient in instruction size than Perl_croak.
-rw-r--r--perl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/perl.c b/perl.c
index 80b3bdd55f..0f8d4f7405 100644
--- a/perl.c
+++ b/perl.c
@@ -1883,7 +1883,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#if SILENT_NO_TAINT_SUPPORT
/* silently ignore */
#elif NO_TAINT_SUPPORT
- Perl_croak("This perl was compiled without taint support. "
+ Perl_croak_nocontext("This perl was compiled without taint support. "
"Cowardly refusing to run with -t or -T flags");
#else
CHECK_MALLOC_TOO_LATE_FOR('t');
@@ -1898,7 +1898,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#if SILENT_NO_TAINT_SUPPORT
/* silently ignore */
#elif NO_TAINT_SUPPORT
- Perl_croak("This perl was compiled without taint support. "
+ Perl_croak_nocontext("This perl was compiled without taint support. "
"Cowardly refusing to run with -t or -T flags");
#else
CHECK_MALLOC_TOO_LATE_FOR('T');
@@ -2015,7 +2015,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#if SILENT_NO_TAINT_SUPPORT
/* silently ignore */
#elif NO_TAINT_SUPPORT
- Perl_croak("This perl was compiled without taint support. "
+ Perl_croak_nocontext("This perl was compiled without taint support. "
"Cowardly refusing to run with -t or -T flags");
#else
CHECK_MALLOC_TOO_LATE_FOR('T');
@@ -2054,7 +2054,7 @@ S_parse_body(pTHX_ char **env, XSINIT_t xsinit)
#if SILENT_NO_TAINT_SUPPORT
/* silently ignore */
#elif NO_TAINT_SUPPORT
- Perl_croak("This perl was compiled without taint support. "
+ Perl_croak_nocontext("This perl was compiled without taint support. "
"Cowardly refusing to run with -t or -T flags");
#else
if( !TAINTING_get) {
@@ -3383,7 +3383,7 @@ Perl_moreswitches(pTHX_ const char *s)
#if SILENT_NO_TAINT_SUPPORT
/* silently ignore */
#elif NO_TAINT_SUPPORT
- Perl_croak("This perl was compiled without taint support. "
+ Perl_croak_nocontext("This perl was compiled without taint support. "
"Cowardly refusing to run with -t or -T flags");
#else
if (!TAINTING_get)