From c9e3887989960034fd89d176f72d7e14d5bc3d79 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 6 Nov 2002 19:36:20 +0000 Subject: Adds support for fastcall symbols as used on Microsoft Windows platforms (i386) --- gas/ChangeLog | 5 +++++ gas/config/te-pe.h | 2 +- gas/testsuite/ChangeLog | 6 ++++++ gas/testsuite/gas/all/fastcall.s | 1 + gas/testsuite/gas/all/gas.exp | 2 ++ 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 gas/testsuite/gas/all/fastcall.s (limited to 'gas') diff --git a/gas/ChangeLog b/gas/ChangeLog index 85da823..22113ae 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2002-11-07 Eric Kohl + + * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character + of a label. + 2002-11-05 H.J. Lu * config/tc-mips.c (support_64bit_objects): Check *l before it diff --git a/gas/config/te-pe.h b/gas/config/te-pe.h index 1c1f0b2..b3e0764 100644 --- a/gas/config/te-pe.h +++ b/gas/config/te-pe.h @@ -1,5 +1,5 @@ #define TE_PE -#define LEX_AT 1 /* can have @'s inside labels */ +#define LEX_AT (LEX_BEGIN_NAME | LEX_NAME) /* Can have @'s inside labels. */ /* The PE format supports long section names. */ #define COFF_LONG_SECTION_NAMES diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index 9868851..4a6771b 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2002-11-07 Casper S. Hornstrup + + * gas/all/gas.exp: Run fastcall label handling test. + * gas/all/fastcall.s: New file for testing handling of fastcall + labels. + 2002-11-01 H.J. Lu * gas/i386/i386.exp: Add "sub". diff --git a/gas/testsuite/gas/all/fastcall.s b/gas/testsuite/gas/all/fastcall.s new file mode 100644 index 0000000..de771cd --- /dev/null +++ b/gas/testsuite/gas/all/fastcall.s @@ -0,0 +1 @@ +@fastcall_label@0: diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index a959151..ef58c78 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -164,3 +164,5 @@ case $target_triplet in { run_dump_test incbin } } + +gas_test "fastcall.s" "" "" "fastcall labels" -- cgit v1.1