[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-04-03 Thread jmichae3 at yahoo dot com
--- Comment #11 from jmichae3 at yahoo dot com 2009-04-03 09:02 --- I get perfect code with the borland compiler packing switch with C++ code. it would be nice if gcc could do the same in C++. I don't necessarily have to have -O3, but I need to be able to pack structs somehow so I don't

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-09 Thread jmichae3 at yahoo dot com
--- Comment #10 from jmichae3 at yahoo dot com 2009-03-09 20:12 --- I didn't read that in the documentation. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39404

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-09 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2009-03-09 15:37 --- This flag isn't supposed to be used with libstdc++. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added -

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-09 Thread dannysmith at users dot sourceforge dot net
--- Comment #8 from dannysmith at users dot sourceforge dot net 2009-03-09 07:52 --- >From gcc.info: *Warning:* the `-fpack-struct' switch causes GCC to generate code that is not binary compatible with code generated without that switch. Additionally, it makes the code s

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #7 from jmichae3 at yahoo dot com 2009-03-09 06:59 --- Created an attachment (id=17426) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17426&action=view) i.ii for istream problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39404

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #6 from jmichae3 at yahoo dot com 2009-03-09 06:57 --- Created an attachment (id=17425) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17425&action=view) f.ii for fstream problem -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39404

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #5 from jmichae3 at yahoo dot com 2009-03-09 06:55 --- Created an attachment (id=17424) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17424&action=view) source that #includes fstream which also fails miserably with -fpack-struct new attachment: source for f.cpp C:\prj

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #4 from jmichae3 at yahoo dot com 2009-03-09 06:50 --- Created an attachment (id=17423) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17423&action=view) source that #includes istream and fails just as miserably with -fpack-struct C:\prj\test\iostreamdos>g++ -v -save-te

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #3 from jmichae3 at yahoo dot com 2009-03-09 06:45 --- Created an attachment (id=17422) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17422&action=view) io.cpp, an offending source file problem is it #includes if -fpack-struct is used. that is all that is necessary.

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #2 from jmichae3 at yahoo dot com 2009-03-09 06:41 --- Created an attachment (id=17421) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17421&action=view) -fpack-struct with iostream .ii file g++ -v -save-temps -fpack-struct io.cpp both attachments ( .ii files) are from

[Bug c++/39404] -fpack-struct causes iostream to error, -O3 makes problem worse

2009-03-08 Thread jmichae3 at yahoo dot com
--- Comment #1 from jmichae3 at yahoo dot com 2009-03-09 06:32 --- Created an attachment (id=17420) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17420&action=view) -fpack-struct -O3 with iostream .ii file g++ -v -save-temps -fpack-struct -O3 io.cpp this is the generated io.ii fil