GithubHelp home page GithubHelp logo

Comments (6)

edubart avatar edubart commented on August 10, 2024

What is your GCC version?

from nelua-lang.

stefanos82 avatar stefanos82 commented on August 10, 2024

gcc version 12.2.0 (Debian 12.2.0-3)

Update: with Debian clang version 14.0.6-2 works as expected.

Is it a GCC bug?

from nelua-lang.

edubart avatar edubart commented on August 10, 2024

For GCC, seems like fallthrough comment must come right before the case, but there is a } between, I will provide a fix.

from nelua-lang.

edubart avatar edubart commented on August 10, 2024

Fixed in 91f23a2

from nelua-lang.

stefanos82 avatar stefanos82 commented on August 10, 2024

Nice! Now it works as expected.

By the way, I got these lto warning messages during compilation procedure with make optimized-nelua-lua:

make --no-print-directory CFLAGS="-march=native -O3 -flto -fno-plt -fno-stack-protector -fprofile-generate=pgo" clean-nelualua default
rm -f nelua-lua
gcc \
	-DMAXRECLEVEL=400 -DLUA_USE_RPMALLOC -DNDEBUG -DLUA_USE_LINUX  \
	-Isrc/lua  \
	-march=native -O3 -flto -fno-plt -fno-stack-protector -fprofile-generate=pgo  \
	src/hasher.c src/lfs.c src/luainit.c src/onelua.c src/sys.c src/lpeglabel/lpcap.c src/lpeglabel/lpcode.c src/lpeglabel/lpprint.c src/lpeglabel/lptree.c src/lpeglabel/lpvm.c src/srpmalloc/srpmalloc.c  \
	-o nelua-lua \
	-Wl,-E  -lm -ldl 
lto-wrapper: warning: using serial compilation of 13 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
./nelua -qb tests/all_test.nelua
make --no-print-directory CFLAGS="-march=native -O3 -flto -fno-plt -fno-stack-protector -fprofile-use=pgo" clean-nelualua default
rm -f nelua-lua
gcc \
	-DMAXRECLEVEL=400 -DLUA_USE_RPMALLOC -DNDEBUG -DLUA_USE_LINUX  \
	-Isrc/lua  \
	-march=native -O3 -flto -fno-plt -fno-stack-protector -fprofile-use=pgo  \
	src/hasher.c src/lfs.c src/luainit.c src/onelua.c src/sys.c src/lpeglabel/lpcap.c src/lpeglabel/lpcode.c src/lpeglabel/lpprint.c src/lpeglabel/lptree.c src/lpeglabel/lpvm.c src/srpmalloc/srpmalloc.c  \
	-o nelua-lua \
	-Wl,-E  -lm -ldl 
lto-wrapper: warning: using serial compilation of 6 LTRANS jobs
lto-wrapper: note: see the ‘-flto’ option documentation for more information
rm -rf pgo

from nelua-lang.

edubart avatar edubart commented on August 10, 2024

Thanks for also reporting that, recent GCC started to require parameters in -flto, I've pushed a fix in d0d3859

from nelua-lang.

Related Issues (20)

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.