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]

tzset claimed to be ANSI not POSIX in fix-header.c


gcc/fix-header.c incorrectly defines tzset() to be an ANSI symbol when in fact it is POSIX.1. I am developing on a system where a system header gets "fixed" to define tzset(), when tzset() doesn't in fact exist in this system. The attached patch, against GCC 3.3.2 fixes this (I have bootstrap problems with GCC 3.3.3 on target arm-elf). As well as the GCC 3.3 branch it should also be applied to the trunk.

2004-03-10 Jonathan Larmour <jifl@eCosCentric.com>

* fix-header.c: tzset() is POSIX not ANSI.

Thanks!

Jifl
--
eCosCentric    http://www.eCosCentric.com/    The eCos and RedBoot experts
>>>>> Visit us in booth 2527 at the Embedded Systems Conference 2004 <<<<<
March 30 - April 1, San Francisco http://www.esconline.com/electronicaUSA/
--["No sense being pessimistic, it wouldn't work anyway"]-- Opinions==mine
Index: fix-header.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/fix-header.c,v
retrieving revision 1.84
diff -u -5 -p -r1.84 fix-header.c
--- fix-header.c	12 Aug 2002 22:44:30 -0000	1.84
+++ fix-header.c	11 Mar 2004 05:42:35 -0000
@@ -337,11 +337,12 @@ WTERMSIG\0WNOHANG\0WNOTRACED\0" },
 
   { "termios.h", POSIX1_SYMBOL,
       "cfgetispeed\0cfgetospeed\0cfsetispeed\0cfsetospeed\0tcdrain\0tcflow\0tcflush\0tcgetattr\0tcsendbreak\0tcsetattr\0" },
 
   { "time.h", ANSI_SYMBOL,
-      "asctime\0clock\0ctime\0difftime\0gmtime\0localtime\0mktime\0strftime\0time\0tzset\0" },
+      "asctime\0clock\0ctime\0difftime\0gmtime\0localtime\0mktime\0strftime\0time\0" },
+  { CONTINUED, POSIX1_SYMBOL, "tzset\0" },
 
   { "unistd.h", POSIX1_SYMBOL,
       "_exit\0access\0alarm\0chdir\0chown\0close\0ctermid\0cuserid\0\
 dup\0dup2\0execl\0execle\0execlp\0execv\0execve\0execvp\0fork\0fpathconf\0\
 getcwd\0getegid\0geteuid\0getgid\0getlogin\0getpgrp\0getpid\0\

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