Comments (4)
@Blazefrost I am surprised it only warns there. Do you have any idea how to avoid that warning?
from selfie.
GCC seems to apply an optimization, as indicated by the .constprop
function suffix. I don't know whether an older GCC version already performed this optimization, but I assume the GCC team either improved the optimizer or the analyzer, or both.
The function string_copy
is called five times:
Line 5599 in cfb6619
Line 5637 in cfb6619
Line 5719 in cfb6619
Line 7258 in cfb6619
Line 7263 in cfb6619
So the function is only called with "main"
and "_bump"
strings which seems to match with the error messages (char[5]
and char[6]
, including the string terminator), and indeed, the function referenced by the warning messages,load_character
, casts and dereferences these strings as uint64_t
, even though the memory the pointer points to is smaller than an uint64_t
.
An easy workaround for now would be to just disable the warning using -Wno-array-bounds
from selfie.
@Blazefrost I just committed a fix: 6c31681...fb7c254 Could you please check if that avoids the warnings?
from selfie.
Yes, commit fb7c254
fixed the warnings for me. 👍
from selfie.
Related Issues (20)
- 10) Virtual Memory - Introductory Assignments
- 11) Virtualization - Introductory Assignments
- Compiler warnings with GCC 10.2.0 HOT 3
- Docker Build on Mac
- Clean up gcc/clang toolchain in Dockerselfie image to support 32-bit and 64-bit x86 and RISC-V HOT 10
- `self-assembler` assignment results in timeout HOT 7
- ELF file integrity
- Grader: Replace `threads` task `shared-heap` with thread-safe task HOT 4
- Suggestion: -Werror when self-grading HOT 7
- `characters of assembly` count in disassembler output is incorrect in `printf` branch HOT 10
- Grader not terminating on plain selfie HOT 4
- Order in list of assignments out of sync HOT 1
- Inconsistent handling of unexpected symbol syntax errors HOT 4
- Residual files in selfie root directory in the selfie docker image after machine build HOT 1
- Multiplatform AMD64/ARM64 Support HOT 2
- "palloc out of physical memory" problem with changed "make os" HOT 7
- modeler returns "maximum code size exceeded" or "4712 expected between -4096 and 4095" if code size is increased HOT 7
- 32-bit + mipster + self-self-self [+ gc] is failing HOT 1
- Naming the programming language C* causes some confusion HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from selfie.