Commit c54d7dc9 by Olatunji Ruwase Committed by Diego Novillo

extend.texi (Symbol-Renaming Pragmas): redefine_extname is supported on all platforms.


2009-08-14  Olatunji Ruwase <tjruwase@google.com>

        * doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
        supported on all platforms.
        * target.h (struct gcc_target): Remove
        handle_pragma_redefine_extname.
        * c-cppbuiltin.c: Remove use of
        targetm.handle_pragma_redefine_extname.
        * c-pragma.c: Likewise.
        * target-def.h (TARGET_INITIALIZER): Remove
        TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
        * config/sol2.h: Remove use of
        TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.

2009-08-14  Olatunji Ruwase <tjruwase@google.com>

        * gcc.dg/pragma-re-1.c: Supported on all platforms.
        * gcc.dg/pragma-re-2.c: Likewise.
        * gcc.dg/pragma-re-3.c: Likewise.
        * gcc.dg/pragma-re-4.c: Likewise.
        * g++.dg/other/pragma-re-1.C: Likewise.
        * g++.dg/other/pragma-re-2.C: Likewise.

From-SVN: r150780
parent 37d1bbbc
2009-08-14 Olatunji Ruwase <tjruwase@google.com>
* doc/extend.texi (Symbol-Renaming Pragmas): redefine_extname is
supported on all platforms.
* target.h (struct gcc_target): Remove
handle_pragma_redefine_extname.
* c-cppbuiltin.c: Remove use of
targetm.handle_pragma_redefine_extname.
* c-pragma.c: Likewise.
* target-def.h (TARGET_INITIALIZER): Remove
TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
* config/sol2.h: Remove use of
TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME.
2009-08-14 Douglas B Rupp <rupp@gnat.com> 2009-08-14 Douglas B Rupp <rupp@gnat.com>
* config/ia64/fde-vms.c: New file. * config/ia64/fde-vms.c: New file.
...@@ -59,8 +73,8 @@ ...@@ -59,8 +73,8 @@
2009-08-14 Rafael Avila de Espindola <espindola@google.com> 2009-08-14 Rafael Avila de Espindola <espindola@google.com>
* final.c (add_debug_prefix_map): Don't use GC memory for * final.c (add_debug_prefix_map): Don't use GC memory for
old_prefix and new_prefix. old_prefix and new_prefix.
2009-08-14 Richard Guenther <rguenther@suse.de> 2009-08-14 Richard Guenther <rguenther@suse.de>
......
...@@ -782,8 +782,7 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -782,8 +782,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__NEXT_RUNTIME__"); cpp_define (pfile, "__NEXT_RUNTIME__");
/* Show the availability of some target pragmas. */ /* Show the availability of some target pragmas. */
if (flag_mudflap || targetm.handle_pragma_redefine_extname) cpp_define (pfile, "__PRAGMA_REDEFINE_EXTNAME");
cpp_define (pfile, "__PRAGMA_REDEFINE_EXTNAME");
if (targetm.handle_pragma_extern_prefix) if (targetm.handle_pragma_extern_prefix)
cpp_define (pfile, "__PRAGMA_EXTERN_PREFIX"); cpp_define (pfile, "__PRAGMA_EXTERN_PREFIX");
......
...@@ -561,14 +561,6 @@ handle_pragma_redefine_extname (cpp_reader * ARG_UNUSED (dummy)) ...@@ -561,14 +561,6 @@ handle_pragma_redefine_extname (cpp_reader * ARG_UNUSED (dummy))
if (t != CPP_EOF) if (t != CPP_EOF)
warning (OPT_Wpragmas, "junk at end of %<#pragma redefine_extname%>"); warning (OPT_Wpragmas, "junk at end of %<#pragma redefine_extname%>");
if (!flag_mudflap && !targetm.handle_pragma_redefine_extname)
{
if (warn_unknown_pragmas > in_system_header)
warning (OPT_Wunknown_pragmas,
"#pragma redefine_extname not supported on this target");
return;
}
decl = identifier_global_value (oldname); decl = identifier_global_value (oldname);
if (decl if (decl
&& (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl)) && (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl))
......
...@@ -72,8 +72,6 @@ along with GCC; see the file COPYING3. If not see ...@@ -72,8 +72,6 @@ along with GCC; see the file COPYING3. If not see
#define INTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "int") #define INTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "int")
#define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "unsigned int") #define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "unsigned int")
#define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 1
/* ??? Note: in order for -compat-bsd to work fully, /* ??? Note: in order for -compat-bsd to work fully,
we must somehow arrange to fixincludes /usr/ucbinclude we must somehow arrange to fixincludes /usr/ucbinclude
and put the result in $(libsubdir)/ucbinclude. */ and put the result in $(libsubdir)/ucbinclude. */
......
...@@ -12155,9 +12155,9 @@ adding a call to the @code{.init} section. ...@@ -12155,9 +12155,9 @@ adding a call to the @code{.init} section.
For compatibility with the Solaris and Tru64 UNIX system headers, GCC For compatibility with the Solaris and Tru64 UNIX system headers, GCC
supports two @code{#pragma} directives which change the name used in supports two @code{#pragma} directives which change the name used in
assembly for a given declaration. These pragmas are only available on assembly for a given declaration. @code{#pragma_extern_prefix} is only
platforms whose system headers need them. To get this effect on all available on platforms whose system headers need it. To get this effect
platforms supported by GCC, use the asm labels extension (@pxref{Asm on all platforms supported by GCC, use the asm labels extension (@pxref{Asm
Labels}). Labels}).
@table @code @table @code
...@@ -12166,8 +12166,7 @@ Labels}). ...@@ -12166,8 +12166,7 @@ Labels}).
This pragma gives the C function @var{oldname} the assembly symbol This pragma gives the C function @var{oldname} the assembly symbol
@var{newname}. The preprocessor macro @code{__PRAGMA_REDEFINE_EXTNAME} @var{newname}. The preprocessor macro @code{__PRAGMA_REDEFINE_EXTNAME}
will be defined if this pragma is available (currently only on will be defined if this pragma is available (currently on all platforms).
Solaris).
@item extern_prefix @var{string} @item extern_prefix @var{string}
@cindex pragma, extern_prefix @cindex pragma, extern_prefix
......
...@@ -632,10 +632,6 @@ ...@@ -632,10 +632,6 @@
#define TARGET_UNWIND_TABLES_DEFAULT false #define TARGET_UNWIND_TABLES_DEFAULT false
#endif #endif
#ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
#define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
#endif
#ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX #ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
#define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0 #define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
#endif #endif
...@@ -957,7 +953,6 @@ ...@@ -957,7 +953,6 @@
TARGET_TERMINATE_DW2_EH_FRAME_INFO, \ TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
TARGET_ASM_FILE_START_APP_OFF, \ TARGET_ASM_FILE_START_APP_OFF, \
TARGET_ASM_FILE_START_FILE_DIRECTIVE, \ TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \ TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
TARGET_RELAXED_ORDERING, \ TARGET_RELAXED_ORDERING, \
TARGET_ARM_EABI_UNWINDER \ TARGET_ARM_EABI_UNWINDER \
......
...@@ -1124,9 +1124,6 @@ struct gcc_target ...@@ -1124,9 +1124,6 @@ struct gcc_target
at the beginning of assembly output. */ at the beginning of assembly output. */
bool file_start_file_directive; bool file_start_file_directive;
/* True if #pragma redefine_extname is to be supported. */
bool handle_pragma_redefine_extname;
/* True if #pragma extern_prefix is to be supported. */ /* True if #pragma extern_prefix is to be supported. */
bool handle_pragma_extern_prefix; bool handle_pragma_extern_prefix;
......
2009-08-14 Olatunji Ruwase <tjruwase@google.com>
* gcc.dg/pragma-re-1.c: Supported on all platforms.
* gcc.dg/pragma-re-2.c: Likewise.
* gcc.dg/pragma-re-3.c: Likewise.
* gcc.dg/pragma-re-4.c: Likewise.
* g++.dg/other/pragma-re-1.C: Likewise.
* g++.dg/other/pragma-re-2.C: Likewise.
2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2009-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc.dg/torture/builtin-math-7.c: New. * gcc.dg/torture/builtin-math-7.c: New.
......
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "bar" } } */ /* { dg-final { scan-assembler "bar" } } */
/* { dg-final { scan-assembler-not "foo" } } */ /* { dg-final { scan-assembler-not "foo" } } */
/* { dg-final { scan-assembler "_Z3bazv" } } */ /* { dg-final { scan-assembler "_Z3bazv" } } */
......
/* PR c++/14962 */ /* PR c++/14962 */
/* Originator: <phil@fsel.com> */ /* Originator: <phil@fsel.com> */
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "new_name" } } */ /* { dg-final { scan-assembler "new_name" } } */
/* { dg-final { scan-assembler-not "old_name" } } */ /* { dg-final { scan-assembler-not "old_name" } } */
......
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "bar" } } */ /* { dg-final { scan-assembler "bar" } } */
/* { dg-final { scan-assembler-not "foo" } } */ /* { dg-final { scan-assembler-not "foo" } } */
......
/* { dg-do compile { target *-*-solaris* } } */
#pragma redefine_extname /* { dg-warning "malformed" } */ #pragma redefine_extname /* { dg-warning "malformed" } */
#pragma redefine_extname foo /* { dg-warning "malformed" } */ #pragma redefine_extname foo /* { dg-warning "malformed" } */
......
/* { dg-do link { target *-*-solaris* } } */
#pragma redefine_extname f1 f #pragma redefine_extname f1 f
#pragma redefine_extname g1 g #pragma redefine_extname g1 g
......
...@@ -2,7 +2,6 @@ ...@@ -2,7 +2,6 @@
/* Contributed by Carlos O'Donell on 2006-01-27 */ /* Contributed by Carlos O'Donell on 2006-01-27 */
/* Origin: Carlos O'Donell <carlos@codesourcery.com> */ /* Origin: Carlos O'Donell <carlos@codesourcery.com> */
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "_foo" } } */ /* { dg-final { scan-assembler "_foo" } } */
/* { dg-final { scan-assembler-not "_foo64" } } */ /* { dg-final { scan-assembler-not "_foo64" } } */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment