Skip to content

Commit

Permalink
Merge pull request gcc-mirror#10 from fjtrujy/ee-v14.1.0
Browse files Browse the repository at this point in the history
Using POSIX atomic implementation
  • Loading branch information
fjtrujy authored Jun 2, 2024
2 parents 7502fbf + eaecdc2 commit 916c16f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions libatomic/configure
Original file line number Diff line number Diff line change
Expand Up @@ -1268,6 +1268,13 @@ build=$build_alias
host=$host_alias
target=$target_alias

# PS2 SPECIFIC CODE
# Skipping some Tests for PS2 platform because ps2sdk libraries aren't ready yet.
skipTests=0
if [ "$target" == "mips64r5900el-ps2-elf" ]; then
skipTests=1
fi

# FIXME: To remove some day.
if test "x$host_alias" != x; then
if test "x$build_alias" = x; then
Expand Down Expand Up @@ -3824,7 +3831,7 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
else
ac_file=''
fi
if test -z "$ac_file"; then :
if [test -z "$ac_file"] && [ "$skipTests" -eq "0" ]; then :
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
$as_echo "$as_me: failed program was:" >&5
Expand Down Expand Up @@ -3872,7 +3879,7 @@ for ac_file in conftest.exe conftest conftest.*; do
* ) break;;
esac
done
else
elif "$skipTests" -eq "0"; then :
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Expand Down Expand Up @@ -15025,7 +15032,7 @@ pthread_t t; pthread_create(&t,NULL,g,NULL);
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :

else
elif "$skipTests" -eq "0"; then :
as_fn_error $? "Pthreads are required to build libatomic" "$LINENO" 5
fi
rm -f core conftest.err conftest.$ac_objext \
Expand Down
2 changes: 1 addition & 1 deletion libatomic/configure.tgt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ case "${target}" in
tmake_file="t-aix"
;;

*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu \
*-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-ps2-elf* \
| *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly* \
| *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11* \
| *-*-darwin* | *-*-aix* | *-*-cygwin*)
Expand Down

0 comments on commit 916c16f

Please sign in to comment.