Displaying 11 results from an estimated 11 matches for "varinit".
2013 Jan 31
2
[LLVMdev] Tablegen problem populating TSFlags
Jakob, I think this exactly what's happening. I debugged the
resolveReferences for the ADD down into the resolve of TSFlags. It
calls VarInit::getFieldInit for the "Val" field of "foo". The code is:
Init *VarInit::getFieldInit(Record &R, const RecordVal *RV,
const std::string &FieldName) const {
if (isa<RecordRecTy>(getType()))
if (const RecordVal *Val = R.getValue(VarN...
2009 Mar 24
2
[LLVMdev] Reducing .td redundancy
On Tuesday 24 March 2009 10:43, Chris Lattner wrote:
> On Mar 23, 2009, at 5:56 PM, David Greene wrote:
> > Is it legal to do something like a !strconcat on a non-string
> > entity? That
> > is, is there some operation that will let me do this (replace
> > SOME_CONCAT with
> > an appropriate operator):
>
> I don't get it, can you try a simpler example on
2013 Jan 31
0
[LLVMdev] Tablegen problem populating TSFlags
On Jan 31, 2013, at 9:27 AM, Sean Silva <silvas at purdue.edu> wrote:
> An extra call to resolveReferences after setting the value in the
> `let` does fix this, but I'm not sure that it is the right fix. The
> attached hackish patch seems to fix up a reduced version of the test
> case you gave here (I haven't run a full battery of tests on it, so it
> might cause
2020 Mar 28
0
[klibc:update-dash] dash: var: Set IFS to fixed value at start time
...sr/sbin:/usr/bin:/sbin:/bin";
-#ifdef IFS_BROKEN
-const char defifsvar[] = "IFS= \t\n";
-#else
-const char defifs[] = " \t\n";
-#endif
+char defifsvar[] = "IFS= \t\n";
MKINIT char defoptindvar[] = "OPTIND=1";
int lineno;
@@ -90,11 +86,7 @@ struct var varinit[] = {
#if ATTY
{ 0, VSTRFIXED|VTEXTFIXED|VUNSET, "ATTY\0", 0 },
#endif
-#ifdef IFS_BROKEN
{ 0, VSTRFIXED|VTEXTFIXED, defifsvar, 0 },
-#else
- { 0, VSTRFIXED|VTEXTFIXED|VUNSET, "IFS\0", 0 },
-#endif
{ 0, VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL\0", changemail },
{...
2012 Jul 02
0
[klibc:master] [SHELL] Allow building without LINEO support
...milian attems <max at stro.at>
---
usr/dash/var.c | 4 ++++
usr/dash/var.h | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/usr/dash/var.c b/usr/dash/var.c
index ecc8c90..027beff 100644
--- a/usr/dash/var.c
+++ b/usr/dash/var.c
@@ -101,7 +101,9 @@ struct var varinit[] = {
{ 0, VSTRFIXED|VTEXTFIXED, "PS2=> ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS4=+ ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "OPTIND=1", getoptsreset },
+#ifdef WITH_LINENO
{ 0, VSTRFIXED|VTEXTFIXED, linenovar, 0 },
+#endif
#ifndef SMALL
{ 0, VSTRFIXED|VTEXTF...
2013 Jan 31
2
[LLVMdev] Tablegen problem populating TSFlags
An extra call to resolveReferences after setting the value in the
`let` does fix this, but I'm not sure that it is the right fix. The
attached hackish patch seems to fix up a reduced version of the test
case you gave here (I haven't run a full battery of tests on it, so it
might cause other failures).
Jakob, any idea about what the "right" fix is here?
-- Sean Silva
2009 Apr 06
2
[LLVMdev] TableGen Enhancement Feasibility
...understand class name arguments like this as it
expects to resolve subclasses immediately. Being able to resolve subclasses
lazily would open up a whole lot of opportunity to reduce redundancy in .td
files.
My sense is to implement this we'd need something like a ClassInit (analogous
to a VarInit) and a call to resolve references at the right time. But I don't
know how deeply coded subclasses are in tblgen. Are things going to break
spectacularly if subclass information isn't available immediately?
Anyone have a sense of the amount of work to add a feature like this?...
2019 Jan 25
0
[klibc:update-dash] [VAR] Use setvareq to set OPTIND initially
...@@ const char defifsvar[] = "IFS= \t\n";
#else
const char defifs[] = " \t\n";
#endif
+MKINIT char defoptindvar[] = "OPTIND=1";
int lineno;
char linenovar[sizeof("LINENO=")+sizeof(int)*CHAR_BIT/3+1] = "LINENO=";
@@ -100,7 +101,7 @@ struct var varinit[] = {
{ 0, VSTRFIXED|VTEXTFIXED, "PS1=$ ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS2=> ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS4=+ ", 0 },
- { 0, VSTRFIXED|VTEXTFIXED, "OPTIND=1", getoptsreset },
+ { 0, VSTRFIXED|VTEXTFIXED, defoptindvar, getoptsreset...
2020 Mar 28
0
[klibc:update-dash] dash: [VAR] Use setvareq to set OPTIND initially
...@@ const char defifsvar[] = "IFS= \t\n";
#else
const char defifs[] = " \t\n";
#endif
+MKINIT char defoptindvar[] = "OPTIND=1";
int lineno;
char linenovar[sizeof("LINENO=")+sizeof(int)*CHAR_BIT/3+1] = "LINENO=";
@@ -100,7 +101,7 @@ struct var varinit[] = {
{ 0, VSTRFIXED|VTEXTFIXED, "PS1=$ ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS2=> ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS4=+ ", 0 },
- { 0, VSTRFIXED|VTEXTFIXED, "OPTIND=1", getoptsreset },
+ { 0, VSTRFIXED|VTEXTFIXED, defoptindvar, getoptsreset...
2009 Apr 07
0
[LLVMdev] TableGen Enhancement Feasibility
...e this as it
> expects to resolve subclasses immediately. Being able to resolve
> subclasses
> lazily would open up a whole lot of opportunity to reduce redundancy in .td
> files.
>
> My sense is to implement this we'd need something like a ClassInit
> (analogous
> to a VarInit) and a call to resolve references at the right time. But I
> don't
> know how deeply coded subclasses are in tblgen. Are things going to break
> spectacularly if subclass information isn't available immediately?
>
> Anyone have a sense of the amount of work to add a feature...
2011 Jun 14
0
klibc 1.5.23 release
...read(1)
[klibc] [BUILTIN] Fix backslash handling in read(1)
[klibc] [PARSER] Fix clobbering of checkkwd
Jilles Tjoelker (5):
[klibc] [EVAL] Force fork if any trap is set, not just on EXIT
[klibc] [EXPAND] Fix corruption of redirections with byte 0x81
[klibc] [VAR] Fix varinit ordering that broke fc
[klibc] [REDIR] Replace GPL noclobberopen code with the FreeBSD version
[klibc] [EXPAND] Do not split the result of tilde expansion
Jonathan Nieder (5):
[klibc] [BUILTIN] Use EXEXIT in place of EXEXEC
[klibc] [BUILTIN] Stop documenting EXSHELLPROC...