[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #61106] compiling newest source fails with "-O3" optim
From: |
Florian La Roche |
Subject: |
[lwip-devel] [bug #61106] compiling newest source fails with "-O3" optims |
Date: |
Thu, 2 Sep 2021 08:20:39 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.159 Safari/537.36 |
URL:
<https://savannah.nongnu.org/bugs/?61106>
Summary: compiling newest source fails with "-O3" optims
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: flaroche
Submitted on: Thu 02 Sep 2021 12:20:36 PM UTC
Category: apps
Severity: 3 - Normal
Item Group: Compiler Warning
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
Compiling the newest source with "-O3" optims (versus "-Og")
with gcc 10.2.1 (from Debian testing) fails with the following
lines:
cd
/home/flaroche/data/leightweightip/lwip/build/contrib/ports/unix/example_app
&& /usr/bin/cc -I/home/flaroche/data/leightweightip/lwip/src/include
-I/home/flaroche/data/leightweightip/lwip/contrib
-I/home/flaroche/data/leightweightip/lwip/contrib/ports/unix/port/include
-I/home/flaroche/data/leightweightip/lwip/contrib/examples/example_app -g -O3
-Wall -pedantic -Wparentheses -Wsequence-point -Wswitch-default -Wextra
-Wundef -Wshadow -Wpointer-arith -Wcast-qual -Wwrite-strings
-Wold-style-definition -Wcast-align -Wmissing-prototypes -Wnested-externs
-Wunreachable-code -Wuninitialized -Waggregate-return
-Wlogical-not-parentheses -Wredundant-decls -Wc++-compat -Wlogical-op
-Wtrampolines -Wc90-c99-compat -o
CMakeFiles/makefsdata.dir/__/__/__/__/src/apps/http/makefsdata/makefsdata.c.o
-c
/home/flaroche/data/leightweightip/lwip/src/apps/http/makefsdata/makefsdata.c
In file included from
/home/flaroche/data/leightweightip/lwip/src/apps/http/makefsdata/makefsdata.c:20:
In function ‘tinydir_readfile’,
inlined from ‘tinydir_open_sorted.constprop’ at
/home/flaroche/data/leightweightip/lwip/src/apps/http/makefsdata/tinydir.h:377:7:
/home/flaroche/data/leightweightip/lwip/src/apps/http/makefsdata/tinydir.h:81:25:
warning: ‘strcat’ accessing 4097 or more bytes at offsets
[-4611686018427387904, 4611686018427387903] and [-4611686018427383808,
4611686018427391999] may overlap 1 byte at offset [-4611686018427383808,
9223372036854775807] [-Wrestrict]
81 | #define _tinydir_strcat strcat
| ^
/home/flaroche/data/leightweightip/lwip/src/apps/http/makefsdata/tinydir.h:536:2:
note: in expansion of macro ‘_tinydir_strcat’
536 | _tinydir_strcat(file->path, file->name);
| ^~~~~~~~~~~~~~~
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Thu 02 Sep 2021 12:20:36 PM UTC Name: lwip.patch Size: 1013B By:
flaroche
How to swith to -O3 optims
<http://savannah.nongnu.org/bugs/download.php?file_id=51862>
_______________________________________________________
Reply to this item at:
<https://savannah.nongnu.org/bugs/?61106>
_______________________________________________
Message sent via Savannah
https://savannah.nongnu.org/
- [lwip-devel] [bug #61106] compiling newest source fails with "-O3" optims,
Florian La Roche <=