Opened 6 years ago

Closed 3 years ago

#5139 closed defect (invalid)

Use -faligned-new in recent compiler versions

Reported by: Itms Owned by:
Priority: Should Have Milestone:
Component: Build & Packages Keywords:
Cc: Patch:

Description

New GCC versions (>= 7.1 if I'm not mistaken) now detect that some data structures should be over-aligned (notably the new ModIo object) and output this kind of message:

note: uses ‘void* operator new(std::size_t)’, which does not have an alignment parameter
note: use ‘-faligned-new’ to enable C++17 over-aligned new support

From the commits I see here and there on the web it looks like this flag can (should?) also be used for clang >= 4.

Change History (1)

comment:1 by wraitii, 3 years ago

Milestone: Alpha 24
Resolution: invalid
Status: newclosed

No longer necessary with C++17

Note: See TracTickets for help on using tickets.