Giter VIP home page Giter VIP logo

sparse's People

Contributors

blueswirl avatar codyps avatar dlespiau avatar hanneseder-net avatar james-w avatar jgarzik avatar jmberg avatar joshtriplett avatar jpokorny avatar jtlayton avatar kdudka avatar legionus avatar lucvoo avatar masatake avatar mstefani avatar namhyung avatar neuschaefer avatar nicstange avatar oleg-nesterov avatar palmer-dabbelt avatar penberg avatar pugmajere avatar ramsay-jones avatar rddunlap avatar sparsecli avatar sravnborg avatar torvalds avatar ukleinek avatar xiw avatar xl0 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

sparse's Issues

VLA in parameter list?

In the context of git development (cf. https://lore.kernel.org/git/[email protected]), we saw that sparse (built from the tip, v0.6.4-66-g0196afe1) barfs with this declaration of regexec from glibc:

    extern int regexec (const regex_t *_Restrict_ __preg,
                        const char *_Restrict_ __String, size_t __nmatch,
                        regmatch_t __pmatch[_Restrict_arr_
                                            _REGEX_NELTS (__nmatch)],
                        int __eflags);

which (with macros that depend on compiler versions stripped) boils down to have either

    regmatch_t __pmatch[restrict __nmatch]

or

    regmatch_t __pmatch[__nmatch]

and gives

/usr/include/regex.h:682:41: error: undefined identifier '__nmatch'
/usr/include/regex.h:682:41: error: bad constant expression type

It seems that sparse can grok vla as a local variable (e.g. pre-process.c:expand() of sparse itself does have args[nargs] on stack, and make selfcheck does pass -Wno-vla), but does it understand vla as a parameter into a function? If it does not yet, any plans?

Or am I diagnosing the issue incorrectly and there is something else going on?

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.