public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/22267] New: C optimization error with string.h
@ 2005-07-01 12:43 kminola at eng dot umd dot edu
2005-07-01 12:58 ` [Bug c/22267] " schwab at suse dot de
0 siblings, 1 reply; 2+ messages in thread
From: kminola at eng dot umd dot edu @ 2005-07-01 12:43 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1493 bytes --]
/* 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c/22267] C optimization error with string.h
2005-07-01 12:43 [Bug c/22267] New: C optimization error with string.h kminola at eng dot umd dot edu
@ 2005-07-01 12:58 ` schwab at suse dot de
0 siblings, 0 replies; 2+ messages in thread
From: schwab at suse dot de @ 2005-07-01 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From schwab at suse dot de 2005-07-01 12:58 -------
This has nothing to do with gcc. This is invalid C.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22267
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-07-01 12:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-01 12:43 [Bug c/22267] New: C optimization error with string.h kminola at eng dot umd dot edu
2005-07-01 12:58 ` [Bug c/22267] " schwab at suse dot de
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).