This is the mail archive of the gcc-bugs@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]

c++/5241: Fstream error using the -malign-double compiler flag



>Number:         5241
>Category:       c++
>Synopsis:       Fstream error using the -malign-double compiler flag
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 02 01:06:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Oddvard Myrnes
>Release:        2.93.5-52 (also occurs on 3.0)
>Organization:
>Environment:
Linux 2.4.4-4GB i686. Intel CPU. Suse version 7.2 distribution.
>Description:
When the I try to write to a fstream it crashes with a SEGMENTATION violation error when the -malign-double flag is used. Runs fine without. The compiler flags.

g++ -Wno-non-template-friend -W -ansi -mpentiumpro -malign-double -mpreferred-stack-boundary=8 -g -save-temps
>How-To-Repeat:
Just compile and run it without any parameters.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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