public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/44003]  New: gcc 4.5.0 stddef.h clobbers __size_t with #define, breaks VMS (code already avoids similar on FreeBSD)‏
@ 2010-05-06  8:12 jay dot krell at cornell dot edu
  2010-05-10 23:01 ` [Bug c/44003] " jay dot krell at cornell dot edu
  0 siblings, 1 reply; 2+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-05-06  8:12 UTC (permalink / raw)
  To: gcc-bugs

gcc 4.5.0 stddef.h clobbers __size_t with #define, breaks VMS (code already
avoids similar on FreeBSD)‏

VMS decc$types.h:

    typedef unsigned int __size_t;

but with GCC 4.5.0 this preprocesses as:

    typedef unsigned int ;

and there are ensuing errors e.g. when compiling gcc/libiberty/regex.c

probably because of:

/usr/local/lib/gcc/alpha-dec-vms/4_5_0/include/stddef.h (it does get included)
#if defined (__FreeBSD__) && (__FreeBSD__>= 5)
/* __size_t is a typedef on FreeBSD 5!, must not trash it. */
#else
#define __size_t
#endif

presumably should be more like:

#if (defined (__FreeBSD__) && (__FreeBSD__>= 5)) || defined(__vms)
/* __size_t is a typedef on FreeBSD 5 and VMS, must not trash it! */
#else
#define __size_t
#endif


 - Jay


-- 
           Summary: gcc 4.5.0 stddef.h clobbers __size_t with #define,
                    breaks VMS (code already avoids similar on
                    FreeBSD)‏
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jay dot krell at cornell dot edu
 GCC build triplet: any
  GCC host triplet: any
GCC target triplet: alpha-dec-vms


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44003


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c/44003] gcc 4.5.0 stddef.h clobbers __size_t with #define, breaks VMS (code already avoids similar on FreeBSD)‏
  2010-05-06  8:12 [Bug c/44003] New: gcc 4.5.0 stddef.h clobbers __size_t with #define, breaks VMS (code already avoids similar on FreeBSD)‏ jay dot krell at cornell dot edu
@ 2010-05-10 23:01 ` jay dot krell at cornell dot edu
  0 siblings, 0 replies; 2+ messages in thread
From: jay dot krell at cornell dot edu @ 2010-05-10 23:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from jay dot krell at cornell dot edu  2010-05-10 23:01 -------
ps:
#if (defined (__FreeBSD__) && (__FreeBSD__>= 5)) || defined(__vms)

can probably just be:

#if __FreeBSD__>= 5 || defined(__vms)

or:

#if __FreeBSD__ | __vms
assuming the #define can also be be ommited on FreeBSD < 5, or that FreeBSD < 5
isn't supported, and depending on undefined to evaluate to 0.


 - Jay


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44003


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-05-10 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-06  8:12 [Bug c/44003] New: gcc 4.5.0 stddef.h clobbers __size_t with #define, breaks VMS (code already avoids similar on FreeBSD)&#8207; jay dot krell at cornell dot edu
2010-05-10 23:01 ` [Bug c/44003] " jay dot krell at cornell dot edu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).