mirror of
https://github.com/pret/agbcc.git
synced 2026-09-26 13:32:46 -04:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| da598c1d91 | |||
| 84d56fc8eb | |||
| c3e29198cc | |||
| 522e2c647c | |||
| fb68c101fb | |||
| cd0ed128d6 | |||
| c9f7b9ae1b | |||
| 8a594d098c |
@@ -11,7 +11,7 @@ env:
|
|||||||
IS_DEPLOY: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
IS_DEPLOY: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build-linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
@@ -47,9 +47,24 @@ jobs:
|
|||||||
name: agbcc.tar.gz
|
name: agbcc.tar.gz
|
||||||
path: agbcc.tar.gz
|
path: agbcc.tar.gz
|
||||||
|
|
||||||
|
build-macos:
|
||||||
|
runs-on: macos-latest
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@main
|
||||||
|
|
||||||
|
- name: Install deps
|
||||||
|
run: |
|
||||||
|
brew install arm-none-eabi-binutils
|
||||||
|
brew install arm-none-eabi-gcc
|
||||||
|
|
||||||
|
- name: Compile
|
||||||
|
run: sh build.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build
|
needs: build-linux
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|||||||
@@ -12,10 +12,10 @@ fi
|
|||||||
if [ ! -z "$CC" ]; then CCOPT=CC=$CC; fi
|
if [ ! -z "$CC" ]; then CCOPT=CC=$CC; fi
|
||||||
if [ ! -z "$CXX" ]; then CXXOPT=CXX=$CXX; fi
|
if [ ! -z "$CXX" ]; then CXXOPT=CXX=$CXX; fi
|
||||||
make -C gcc clean
|
make -C gcc clean
|
||||||
make -C gcc old $CCOPT $CXXOPT
|
make -C gcc old -j1 $CCOPT $CXXOPT
|
||||||
mv gcc/old_agbcc .
|
mv gcc/old_agbcc .
|
||||||
make -C gcc clean
|
make -C gcc clean
|
||||||
make -C gcc $CCOPT $CXXOPT
|
make -C gcc -j1 $CCOPT $CXXOPT
|
||||||
mv gcc/agbcc .
|
mv gcc/agbcc .
|
||||||
# not sure if the ARM compiler is the old one or the new one (-DOLD_COMPILER)
|
# not sure if the ARM compiler is the old one or the new one (-DOLD_COMPILER)
|
||||||
rm -f gcc_arm/config.status gcc_arm/config.cache
|
rm -f gcc_arm/config.status gcc_arm/config.cache
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ VPATH = $(srcdir)
|
|||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
|
|
||||||
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration
|
BASE_CFLAGS = -g -std=gnu11 -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types
|
||||||
|
|
||||||
INCLUDES = -I. -I$(srcdir)
|
INCLUDES = -I. -I$(srcdir)
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -3133,7 +3133,7 @@ build_unary_op (code, xarg, noconvert)
|
|||||||
return fold (build1 (code, argtype, arg));
|
return fold (build1 (code, argtype, arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
error (errstring);
|
error ("%s", errstring);
|
||||||
return error_mark_node;
|
return error_mark_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-4
@@ -4042,8 +4042,6 @@ mtherr (name, code)
|
|||||||
char *name;
|
char *name;
|
||||||
int code;
|
int code;
|
||||||
{
|
{
|
||||||
char errstr[80];
|
|
||||||
|
|
||||||
/* The string passed by the calling program is supposed to be the
|
/* The string passed by the calling program is supposed to be the
|
||||||
name of the function in which the error occurred.
|
name of the function in which the error occurred.
|
||||||
The code argument selects which error message string will be printed. */
|
The code argument selects which error message string will be printed. */
|
||||||
@@ -4066,9 +4064,8 @@ mtherr (name, code)
|
|||||||
name = "modulus";
|
name = "modulus";
|
||||||
else if (strcmp (name, "esqrt") == 0)
|
else if (strcmp (name, "esqrt") == 0)
|
||||||
name = "square root";
|
name = "square root";
|
||||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
|
||||||
if (extra_warnings)
|
if (extra_warnings)
|
||||||
warning (errstr);
|
warning ("%s during real %s", ermsg[code], name);
|
||||||
/* Set global error message word */
|
/* Set global error message word */
|
||||||
merror = code + 1;
|
merror = code + 1;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1061,7 +1061,7 @@ fatal_io_error(char *name)
|
|||||||
void
|
void
|
||||||
fatal_insn(char *message, rtx insn)
|
fatal_insn(char *message, rtx insn)
|
||||||
{
|
{
|
||||||
error(message);
|
error("%s", message);
|
||||||
debug_rtx(insn);
|
debug_rtx(insn);
|
||||||
if (asm_out_file)
|
if (asm_out_file)
|
||||||
fflush(asm_out_file);
|
fflush(asm_out_file);
|
||||||
|
|||||||
+1
-1
@@ -64,7 +64,7 @@ ALLOCA_FINISH = true
|
|||||||
XCFLAGS =
|
XCFLAGS =
|
||||||
TCFLAGS =
|
TCFLAGS =
|
||||||
# CYGNUS LOCAL nowarnings/law
|
# CYGNUS LOCAL nowarnings/law
|
||||||
CFLAGS = -g -Werror-implicit-function-declaration
|
CFLAGS = -g -Werror-implicit-function-declaration -Wno-error=incompatible-pointer-types -std=gnu11
|
||||||
BOOT_CFLAGS = -O2 $(CFLAGS)
|
BOOT_CFLAGS = -O2 $(CFLAGS)
|
||||||
WARN_CFLAGS =
|
WARN_CFLAGS =
|
||||||
# END CYGNUS LOCAL
|
# END CYGNUS LOCAL
|
||||||
|
|||||||
+3
-3
@@ -1587,7 +1587,7 @@ check_format_info (info, params)
|
|||||||
++format_chars;
|
++format_chars;
|
||||||
if (params == 0)
|
if (params == 0)
|
||||||
{
|
{
|
||||||
warning (tfaff);
|
warning ("%s", tfaff);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (info->first_arg_num != 0)
|
if (info->first_arg_num != 0)
|
||||||
@@ -1630,7 +1630,7 @@ check_format_info (info, params)
|
|||||||
++format_chars;
|
++format_chars;
|
||||||
if (params == 0)
|
if (params == 0)
|
||||||
{
|
{
|
||||||
warning (tfaff);
|
warning ("%s", tfaff);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cur_param = TREE_VALUE (params);
|
cur_param = TREE_VALUE (params);
|
||||||
@@ -1825,7 +1825,7 @@ check_format_info (info, params)
|
|||||||
continue;
|
continue;
|
||||||
if (params == 0)
|
if (params == 0)
|
||||||
{
|
{
|
||||||
warning (tfaff);
|
warning ("%s", tfaff);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
cur_param = TREE_VALUE (params);
|
cur_param = TREE_VALUE (params);
|
||||||
|
|||||||
+1
-1
@@ -3147,7 +3147,7 @@ build_unary_op (code, xarg, noconvert)
|
|||||||
return fold (build1 (code, argtype, arg));
|
return fold (build1 (code, argtype, arg));
|
||||||
}
|
}
|
||||||
|
|
||||||
error (errstring);
|
error ("%s", errstring);
|
||||||
return error_mark_node;
|
return error_mark_node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -8676,7 +8676,7 @@ macroexpand (hp, op)
|
|||||||
else
|
else
|
||||||
parse_error = macarg (NULL_PTR, 0);
|
parse_error = macarg (NULL_PTR, 0);
|
||||||
if (parse_error) {
|
if (parse_error) {
|
||||||
error_with_line (line_for_error (start_line), parse_error);
|
error_with_line (line_for_error (start_line), "%s", parse_error);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1138,7 +1138,7 @@ cat > conftest.$ac_ext << EOF
|
|||||||
#line 1139 "configure"
|
#line 1139 "configure"
|
||||||
#include "confdefs.h"
|
#include "confdefs.h"
|
||||||
|
|
||||||
main(){return(0);}
|
int main(){return(0);}
|
||||||
EOF
|
EOF
|
||||||
if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
if { (eval echo configure:1144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
|
||||||
ac_cv_prog_cc_works=yes
|
ac_cv_prog_cc_works=yes
|
||||||
|
|||||||
+1
-4
@@ -5703,8 +5703,6 @@ mtherr (name, code)
|
|||||||
char *name;
|
char *name;
|
||||||
int code;
|
int code;
|
||||||
{
|
{
|
||||||
char errstr[80];
|
|
||||||
|
|
||||||
/* The string passed by the calling program is supposed to be the
|
/* The string passed by the calling program is supposed to be the
|
||||||
name of the function in which the error occurred.
|
name of the function in which the error occurred.
|
||||||
The code argument selects which error message string will be printed. */
|
The code argument selects which error message string will be printed. */
|
||||||
@@ -5727,9 +5725,8 @@ mtherr (name, code)
|
|||||||
name = "modulus";
|
name = "modulus";
|
||||||
else if (strcmp (name, "esqrt") == 0)
|
else if (strcmp (name, "esqrt") == 0)
|
||||||
name = "square root";
|
name = "square root";
|
||||||
sprintf (errstr, "%s during real %s", ermsg[code], name);
|
|
||||||
if (extra_warnings)
|
if (extra_warnings)
|
||||||
warning (errstr);
|
warning ("%s during real %s", ermsg[code], name);
|
||||||
/* Set global error message word */
|
/* Set global error message word */
|
||||||
merror = code + 1;
|
merror = code + 1;
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1393,7 +1393,7 @@ fatal_insn (message, insn)
|
|||||||
char *message;
|
char *message;
|
||||||
rtx insn;
|
rtx insn;
|
||||||
{
|
{
|
||||||
error (message);
|
error ("%s", message);
|
||||||
debug_rtx (insn);
|
debug_rtx (insn);
|
||||||
if (asm_out_file)
|
if (asm_out_file)
|
||||||
fflush (asm_out_file);
|
fflush (asm_out_file);
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ export AR := $(PREFIX)ar
|
|||||||
export AS := $(PREFIX)as
|
export AS := $(PREFIX)as
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SHELL := /bin/bash -o pipefail
|
SHELL := bash -o pipefail
|
||||||
|
|
||||||
ASFLAGS := -mcpu=arm7tdmi
|
ASFLAGS := -mcpu=arm7tdmi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user