[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

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

2009-03-09 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=17420action=view) -fpack-struct -O3 with iostream .ii file g++ -v -save-temps -fpack-struct -O3 io.cpp this is the generated io.ii

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

2009-03-09 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=17421action=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-09 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=17422action=view) io.cpp, an offending source file problem is it #includes iostream if -fpack-struct is used. that is all that is

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

2009-03-09 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=17423action=view) source that #includes istream and fails just as miserably with -fpack-struct C:\prj\test\iostreamdosg++ -v

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

2009-03-09 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=17424action=view) source that #includes fstream which also fails miserably with -fpack-struct new attachment: source for f.cpp

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

2009-03-09 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=17425action=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-09 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=17426action=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-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

[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 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