diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1998-07-07 17:31:03 -0600 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-07-07 17:31:03 -0600 |
commit | c8d9f9657b8753615745cbaf8f647eb30d4414ef (patch) | |
tree | 021d7374dc10ece4d413f78fa4aafe9caa07674d /gcc | |
parent | 43e26b301df596877b4b87cdde12e139a196b4fb (diff) | |
download | gcc-c8d9f9657b8753615745cbaf8f647eb30d4414ef.zip gcc-c8d9f9657b8753615745cbaf8f647eb30d4414ef.tar.gz gcc-c8d9f9657b8753615745cbaf8f647eb30d4414ef.tar.bz2 |
cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate definitions from last two patches.
* i386/cygwin32.h (ASM_DECLARE_FUNCTION_NAME): Merge duplicate
definitions from last two patches.
From-SVN: r21001
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/cygwin32.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/gcc/config/i386/cygwin32.h b/gcc/config/i386/cygwin32.h index f76cd53..38c1c2e 100644 --- a/gcc/config/i386/cygwin32.h +++ b/gcc/config/i386/cygwin32.h @@ -253,20 +253,6 @@ do { \ fprintf (STREAM, "%s%s", USER_LABEL_PREFIX, \ I386_PE_STRIP_ENCODING (NAME)) \ -/* Output a function definition label. */ -#undef ASM_DECLARE_FUNCTION_NAME -#define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL) \ -do { \ - if (i386_pe_dllexport_name_p (NAME)) \ - { \ - drectve_section (); \ - fprintf ((STREAM), "\t.ascii \" -export:%s\"\n", \ - I386_PE_STRIP_ENCODING (NAME)); \ - function_section (DECL); \ - } \ - ASM_OUTPUT_LABEL ((STREAM), (NAME)); \ -} while (0) - /* Output a common block. */ #undef ASM_OUTPUT_COMMON #define ASM_OUTPUT_COMMON(STREAM, NAME, SIZE, ROUNDED) \ @@ -359,9 +345,17 @@ do { \ /* Write the extra assembler code needed to declare a function properly. If we are generating SDB debugging information, this will happen automatically, so we only need to handle other cases. */ +#undef ASM_DECLARE_FUNCTION_NAME #define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \ do \ { \ + if (i386_pe_dllexport_name_p (NAME)) \ + { \ + drectve_section (); \ + fprintf ((FILE), "\t.ascii \" -export:%s\"\n", \ + I386_PE_STRIP_ENCODING (NAME)); \ + function_section (DECL); \ + } \ if (write_symbols != SDB_DEBUG) \ i386_pe_declare_function_type (FILE, NAME, TREE_PUBLIC (DECL)); \ ASM_OUTPUT_LABEL (FILE, NAME); \ |