[Bug fortran/45724] segmentation fault occurs when printing string if -malign-double option is used
--- Comment #4 from kamaraju at gmail dot com 2010-09-18 22:26 --- Ok. Thanks for the explanation. I appreciate it. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45724
[Bug fortran/45724] segmentation fault occurs when printing string if -malign-double option is used
--- Comment #3 from ubizjak at gmail dot com 2010-09-18 21:43 --- (In reply to comment #2) > I dont understand your point in copy pasting the manual on -malign-double. > > Are you saying that segmentation fault is an acceptable/expected behavior in > this case and this bug will not be fixed? -malign-double is an ABI changing option, it means that source, compiled with this option, violates the convention on how variables are passed and/or accessed in the memory. So, when you use -malign-double, you should link your program with libraries that are also compiled with -malign-double. This includes ALL libraries, including system libraries. This is not a bug. -- ubizjak at gmail dot com changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution||INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45724
[Bug fortran/45724] segmentation fault occurs when printing string if -malign-double option is used
--- Comment #2 from kamaraju at gmail dot com 2010-09-18 20:29 --- @Uros Bizjak I dont understand your point in copy pasting the manual on -malign-double. Are you saying that segmentation fault is an acceptable/expected behavior in this case and this bug will not be fixed? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45724
[Bug fortran/45724] segmentation fault occurs when printing string if -malign-double option is used
--- Comment #1 from ubizjak at gmail dot com 2010-09-18 19:47 --- `-malign-double' `-mno-align-double' Control whether GCC aligns `double', `long double', and `long long' variables on a two word boundary or a one word boundary. Aligning `double' variables on a two word boundary will produce code that runs somewhat faster on a `Pentium' at the expense of more memory. On x86-64, `-malign-double' is enabled by default. *Warning:* if you use the `-malign-double' switch, structures containing the above types will be aligned differently than the published application binary interface specifications for the 386 and will not be binary compatible with structures in code compiled without that switch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45724