This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Adjust HANDLE_SYSV_PRAGMA definition for VxWorks


Zack Weinberg wrote:
> I'd rather it wasn't defined twice.

How about the alternative below ?

Tested by rebuilding cc1 and checking that the warnings are not there + that
#pragma pack(1) still has the intended effect on a simple case.

*** gcc/config/vxworks.h.ori	Fri Aug  6 11:53:18 2004
--- gcc/config/vxworks.h	Sat Aug  7 09:03:09 2004
*************** Boston, MA 02111-1307, USA.  */
*** 42,49 ****
  #undef NO_DOLLAR_IN_LABEL
  #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
--- 42,49 ----
  #undef NO_DOLLAR_IN_LABEL
  #define NO_DOT_IN_LABEL
  
! /* We want #pragma pack(n) enabled and expect to inherit the proper
!    definition of HANDLE_SYSV_PRAGMA from elfos.h for that purpose.  */
  
  /* No underscore is prepended to any C symbol name.  */
  #undef USER_LABEL_PREFIX


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]