Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
Config: gcc-9.3 did not fix BROKEN_GCC_OPT
Browse files Browse the repository at this point in the history
But it did fix a similar string optimizer bug over in LibreDWG.
So we can safely assume gcc-10 will be broken still
  • Loading branch information
rurban committed Mar 29, 2020
1 parent 64dc439 commit 73cbb17
Show file tree
Hide file tree
Showing 2 changed files with 1,391 additions and 1,310 deletions.
7 changes: 4 additions & 3 deletions ext/Config/Config_xs.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,11 @@ write a Config value. Use L<Mock::Config> from CPAN to do that.
#include "perl.h"
#include "XSUB.h"

/* Need to disable broken gcc-9.{0,1,2} -O1 */
/* Need to disable broken gcc-9.[0-3] -O1. Assume gcc-10 is also still broken */
/* Only gcc defines __GNUC_PATCHLEVEL__, clang and icc do define __GNUC__ */
#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) && (__GNUC__ == 9) && \
(__GNUC_MINOR__ < 3)
#if defined(__GNUC__) && defined(__GNUC_PATCHLEVEL__) && \
(((__GNUC__ == 9) && (__GNUC_MINOR__ <= 3) || \
(__GNUC__ > 9)))
# define BROKEN_GCC_OPT
#endif

Expand Down
Loading

0 comments on commit 73cbb17

Please sign in to comment.