[PATCH] Adjust HANDLE_SYSV_PRAGMA definition for VxWorks

Olivier Hainque hainque@act-europe.fr
Fri Aug 6 10:41:00 GMT 2004


Hello,

The doc reads:

    HANDLE_SYSV_PRAGMA
    Define this macro (to a value of 1) if you want the System V style...

config/elfos.h reads:

    #define HANDLE_SYSV_PRAGMA 1

and config/vxworks.h currently reads:

    #define HANDLE_SYSV_PRAGMA

so, building e.g. a powerpc-wrs-vxworks cross from a sparc-solaris host, we
get loads of:

    ../../src/gcc/config/vxworks.h:46:1:
    warning: "HANDLE_SYSV_PRAGMA" redefined
    [...]
    ../../src/gcc/config/elfos.h:63:1:
    warning: this is the location of the previous definition

The patch below fixes that by adjusting the definition in vxworks.h to
match what the doc suggests and what every other target does.

Tested by rebuilding cc1 and checking that the warning has disappeared.

Thanks in advance;

Olivier

*** gcc/config/vxworks.h.ori	2004-08-06 11:53:18.000000000 +0200
--- gcc/config/vxworks.h	2004-08-06 12:08:34.000000000 +0200
*************** Boston, MA 02111-1307, USA.  */
*** 43,49 ****
  #define NO_DOT_IN_LABEL
  
  /* enable #pragma pack(n) */
! #define HANDLE_SYSV_PRAGMA
  
  /* No underscore is prepended to any C symbol name.  */
  #undef USER_LABEL_PREFIX
--- 43,49 ----
  #define NO_DOT_IN_LABEL
  
  /* enable #pragma pack(n) */
! #define HANDLE_SYSV_PRAGMA 1
  
  /* No underscore is prepended to any C symbol name.  */
  #undef USER_LABEL_PREFIX




More information about the Gcc-patches mailing list