Skip to content

Commit 45ab2d0

Browse files
Remove the #pragma for -ffunctions-sections
Recent GCC have begun complaining about it. The buildsystem should do this, not a header. compilersupport_p.h:175:11: warning: bad option '-ffunction-sections' to pragma 'optimize' [-Wpragmas] Signed-off-by: Thiago Macieira <[email protected]>
1 parent 70f58e8 commit 45ab2d0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/compilersupport_p.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,6 @@
170170
# define unreachable() do {} while (0)
171171
#endif
172172

173-
#if defined(__GNUC__) && !defined(__INTEL_COMPILER) && !defined(__clang__) && \
174-
(__GNUC__ * 100 + __GNUC_MINOR__ >= 404)
175-
# pragma GCC optimize("-ffunction-sections")
176-
#endif
177-
178173
static inline bool add_check_overflow(size_t v1, size_t v2, size_t *r)
179174
{
180175
#if ((defined(__GNUC__) && (__GNUC__ >= 5)) && !defined(__INTEL_COMPILER)) || __has_builtin(__builtin_add_overflow)

0 commit comments

Comments
 (0)