Skip to content

Commit

Permalink
Added some support for GCC 5+.
Browse files Browse the repository at this point in the history
  • Loading branch information
korli committed Jul 20, 2015
1 parent bdd4f6b commit 94887fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ else
get_build_tool_path STRIP_$targetArch ${crossToolsPrefix}strip

case `get_variable HAIKU_GCC_RAW_VERSION_$targetArch` in
4.*)
4.*|5.*|6.*)
get_build_tool_path ELFEDIT_$targetArch \
${crossToolsPrefix}elfedit
;;
Expand Down
2 changes: 1 addition & 1 deletion headers/os/BeBuild.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

#if __GNUC__ == 2
# define B_HAIKU_ABI B_HAIKU_ABI_GCC_2_HAIKU
#elif __GNUC__ == 4
#elif __GNUC__ == 4 || __GNUC__ == 5 || __GNUC__ == 6
# define B_HAIKU_ABI B_HAIKU_ABI_GCC_4
#else
# error Unsupported gcc version!
Expand Down
4 changes: 2 additions & 2 deletions headers/private/kernel/util/AutoLock.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,9 @@ typedef AutoLocker<spinlock, SpinLocking> SpinLocker;

class InterruptsSpinLocking {
public:
// NOTE: work-around for annoying GCC 4 "fState may be used uninitialized"
// NOTE: work-around for annoying GCC 4+ "fState may be used uninitialized"
// warning.
#if __GNUC__ == 4
#if __GNUC__ >= 4
InterruptsSpinLocking()
:
fState(0)
Expand Down

0 comments on commit 94887fe

Please sign in to comment.