Git Product home page Git Product logo

Comments (4)

mickael9 avatar mickael9 commented on August 23, 2024

Hi,

I don't think you can just enable -fstrict-aliasing and expect it to work. The option allows the compiler to assume that strict aliasing rules are respected in the code, which is certainly not the case.

Why would you need it anyway?

from ioq3.

Flowdalic avatar Flowdalic commented on August 23, 2024

Hi @mickael9, thanks for your reply. :)

Note that this is about explicitly disabling strict aliasing, not enabling it. Strict aliasing is enabled per default on GCC if -O2 is used. Since it appears that ioq3 requires strict aliasing to be disabled, it should explicitly do so in its build system to override the compiler's default.

from ioq3.

Flowdalic avatar Flowdalic commented on August 23, 2024

I just discovered that strict aliasing is already explicitly disabled

ioq3/Makefile

Line 321 in c988f76

BASE_CFLAGS = -Wall -fno-strict-aliasing -Wimplicit -Wstrict-prototypes \
. @holgersson32644 could it be that you ran into this on a system which had it explicitly re-enabled?

from ioq3.

holgersson32644 avatar holgersson32644 commented on August 23, 2024

@mickael9 @Flowdalic Indeed, my mistake! GCC enables it with -O2 and it's already masked in the Makefile — which we patch in Gentoo to allow using custom CFLAGS (and others). I'm not sure why it didn't hit me earlier though, but it's definetly not a new regression in ioq3.

from ioq3.

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.