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
This commit is contained in:
Olatunji Ruwase 2009-08-14 17:25:48 -04:00 committed by Diego Novillo
parent 37d1bbbc62
commit c54d7dc9ec
14 changed files with 30 additions and 33 deletions

View File

@ -1,3 +1,17 @@
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>
* config/ia64/fde-vms.c: New file.
@ -59,8 +73,8 @@
2009-08-14 Rafael Avila de Espindola <espindola@google.com>
* final.c (add_debug_prefix_map): Don't use GC memory for
old_prefix and new_prefix.
* final.c (add_debug_prefix_map): Don't use GC memory for
old_prefix and new_prefix.
2009-08-14 Richard Guenther <rguenther@suse.de>

View File

@ -782,8 +782,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__NEXT_RUNTIME__");
/* 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)
cpp_define (pfile, "__PRAGMA_EXTERN_PREFIX");

View File

@ -561,14 +561,6 @@ handle_pragma_redefine_extname (cpp_reader * ARG_UNUSED (dummy))
if (t != CPP_EOF)
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);
if (decl
&& (TREE_PUBLIC (decl) || DECL_EXTERNAL (decl))

View File

@ -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 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,
we must somehow arrange to fixincludes /usr/ucbinclude
and put the result in $(libsubdir)/ucbinclude. */

View File

@ -12155,9 +12155,9 @@ adding a call to the @code{.init} section.
For compatibility with the Solaris and Tru64 UNIX system headers, GCC
supports two @code{#pragma} directives which change the name used in
assembly for a given declaration. These pragmas are only available on
platforms whose system headers need them. To get this effect on all
platforms supported by GCC, use the asm labels extension (@pxref{Asm
assembly for a given declaration. @code{#pragma_extern_prefix} is only
available on platforms whose system headers need it. To get this effect
on all platforms supported by GCC, use the asm labels extension (@pxref{Asm
Labels}).
@table @code
@ -12166,8 +12166,7 @@ Labels}).
This pragma gives the C function @var{oldname} the assembly symbol
@var{newname}. The preprocessor macro @code{__PRAGMA_REDEFINE_EXTNAME}
will be defined if this pragma is available (currently only on
Solaris).
will be defined if this pragma is available (currently on all platforms).
@item extern_prefix @var{string}
@cindex pragma, extern_prefix

View File

@ -632,10 +632,6 @@
#define TARGET_UNWIND_TABLES_DEFAULT false
#endif
#ifndef TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME
#define TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME 0
#endif
#ifndef TARGET_HANDLE_PRAGMA_EXTERN_PREFIX
#define TARGET_HANDLE_PRAGMA_EXTERN_PREFIX 0
#endif
@ -957,7 +953,6 @@
TARGET_TERMINATE_DW2_EH_FRAME_INFO, \
TARGET_ASM_FILE_START_APP_OFF, \
TARGET_ASM_FILE_START_FILE_DIRECTIVE, \
TARGET_HANDLE_PRAGMA_REDEFINE_EXTNAME, \
TARGET_HANDLE_PRAGMA_EXTERN_PREFIX, \
TARGET_RELAXED_ORDERING, \
TARGET_ARM_EABI_UNWINDER \

View File

@ -1124,9 +1124,6 @@ struct gcc_target
at the beginning of assembly output. */
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. */
bool handle_pragma_extern_prefix;

View File

@ -1,3 +1,12 @@
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>
* gcc.dg/torture/builtin-math-7.c: New.

View File

@ -1,4 +1,3 @@
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "bar" } } */
/* { dg-final { scan-assembler-not "foo" } } */
/* { dg-final { scan-assembler "_Z3bazv" } } */

View File

@ -1,7 +1,6 @@
/* PR c++/14962 */
/* Originator: <phil@fsel.com> */
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "new_name" } } */
/* { dg-final { scan-assembler-not "old_name" } } */

View File

@ -1,4 +1,3 @@
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "bar" } } */
/* { dg-final { scan-assembler-not "foo" } } */

View File

@ -1,4 +1,3 @@
/* { dg-do compile { target *-*-solaris* } } */
#pragma redefine_extname /* { dg-warning "malformed" } */
#pragma redefine_extname foo /* { dg-warning "malformed" } */

View File

@ -1,4 +1,3 @@
/* { dg-do link { target *-*-solaris* } } */
#pragma redefine_extname f1 f
#pragma redefine_extname g1 g

View File

@ -2,7 +2,6 @@
/* Contributed by Carlos O'Donell on 2006-01-27 */
/* Origin: Carlos O'Donell <carlos@codesourcery.com> */
/* { dg-do compile { target *-*-solaris* } } */
/* { dg-final { scan-assembler "_foo" } } */
/* { dg-final { scan-assembler-not "_foo64" } } */