Bug 8450 - egcs won't compile string.h with -O4
Summary: egcs won't compile string.h with -O4
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: egcs
Version: 6.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-01-13 18:59 UTC by Paul Springer
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-01-13 22:27:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Paul Springer 2000-01-13 18:59:14 UTC
When "#include <string.h>" is inside main(), egcs reports errors if the -O4
flag is set.  Example:  cc -O4 -c stringbug.c reports errors, where
stringbug.c is the following:

main()
{
#include <string.h>
char    *a = "hello";
char    b[100];

strcpy( a, b );
}

Comment 1 Jim Kingdon 2000-01-13 22:27:59 UTC
I can reproduce this with 6.1.  However, I'm not sure I have much
of a reaction beyond "well, include string.h from outside a function".
You could see if you get a better reception on the GCC mailing lists
at http://gcc.gnu.org/


Note You need to log in before you can comment on or make changes to this bug.