Skip to content

Commit 977ada0

Browse files
andressbarajasQuzarDC
authored andcommitted
Drop GCC 4 compatibility workarounds
KOS no longer supports building with GCC 4, so the __GNUC__ <= 4 / == 4 conditionals are dead code.
1 parent db177c3 commit 977ada0

2 files changed

Lines changed: 1 addition & 12 deletions

File tree

examples/dreamcast/basic/threading/compiler_tls/compiler_tls.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,8 @@
2424
#include <stdbool.h>
2525
#include <stdlib.h>
2626

27-
#if (__GNUC__ <= 4)
28-
/* GCC4 only supports using TLS with the __thread identifier,
29-
even when passed the -std=c99 flag */
30-
#define thread_local __thread
31-
#else
32-
/* Newer versions of GCC use C11's _Thread_local to specify TLS */
27+
/* Use C11's _Thread_local to specify TLS */
3328
#define thread_local _Thread_local
34-
#endif
3529

3630
typedef struct {
3731
uint8_t inner[3];

kernel/arch/dreamcast/kernel/init.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,6 @@
3535
#include "initall_hdrs.h"
3636

3737
/* ctor/dtor stuff from libgcc. */
38-
#if __GNUC__ == 4
39-
#define _init init
40-
#define _fini fini
41-
#endif
42-
4338
extern void _init(void);
4439
extern void _fini(void);
4540
extern void __verify_newlib_patch(void);

0 commit comments

Comments
 (0)