/* C optimization error with string.h on
 
ia64-unknown-linux-gnu
 
(also occurs on alphaev56-unknown-linux-gnu, but not on other
architectures that I have tried)
 
% gcc -v
Using built-in specs.
Target: ia64-unknown-linux-gnu
Configured with: /usr/local/gcc-4.0.0/src/gcc-4.0.0/configure
--enable-languages=c --prefix=/usr/local/gcc-4.0.0/ia64-Linux
Thread model: posix
gcc version 4.0.0
%
% gcc -O0 -c foo.c
%
% gcc -O1 -c foo.c
In file included from /usr/include/bits/string2.h:1211,
                 from /usr/include/string.h:375,
                 from foo.c:8:
/usr/include/stdlib.h:556: error: parse error before â token
/usr/include/stdlib.h:556: error: parse error before â token
%
 
Bug also occurs if use gcc-4.0-20050623 or gcc-4.1-20050625.
  
*/
 
extern void     *f_mem_malloc();
#define mem_malloc(n)           f_mem_malloc((unsigned long)(n))
#define malloc mem_malloc
 
#include <string.h>
 
int main()
{
  return(1);
}

-- 
           Summary: C optimization error with string.h
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kminola at eng dot umd dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: ia64-unknown-linux-gnu
  GCC host triplet: ia64-unknown-linux-gnu
GCC target triplet: ia64-unknown-linux-gnu


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

Reply via email to