Bug 8450 - egcs won't compile string.h with -O4
egcs won't compile string.h with -O4
Product: Red Hat Linux
Classification: Retired
Component: egcs (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2000-01-13 13:59 EST by Paul Springer
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-01-13 17:27:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Paul Springer 2000-01-13 13:59:14 EST
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:

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

strcpy( a, b );
Comment 1 Jim Kingdon 2000-01-13 17:27:59 EST
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.