public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35873] New: problem with gfortran -malign-double
@ 2008-04-08 16:45 hjj at ifk dot sdu dot dk
2008-04-08 16:48 ` [Bug fortran/35873] " hjj at ifk dot sdu dot dk
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: hjj at ifk dot sdu dot dk @ 2008-04-08 16:45 UTC (permalink / raw)
To: gcc-bugs
--> discovered error with gcc 4.2.1
--> fetched newest gcc binary (4.4.0): error persists
--> my system: openSuse 10.3 Linux i686 (Pentium 4)
--> gcc -malign-double test.f; a.out # ERROR: Segmentation violation
--> gcc test.f; a.out # OK
--> test.f:
program test
character*20 wrkmem
call getenv("WRKMEM",wrkmem)
write (0,*) wrkmem
read (wrkmem, '(I20)', err=10) lmwrkmem
write (0,*) lmwrkmem
stop
10 continue
write (0,*) 'err'
end
--
Summary: problem with gfortran -malign-double
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: hjj at ifk dot sdu dot dk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/35873] problem with gfortran -malign-double
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
@ 2008-04-08 16:48 ` hjj at ifk dot sdu dot dk
2008-04-08 16:52 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: hjj at ifk dot sdu dot dk @ 2008-04-08 16:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from hjj at ifk dot sdu dot dk 2008-04-08 16:47 -------
(In reply to comment #0)
> --> gfortran -malign-double test.f; a.out # ERROR: Segmentation violation
> --> gfortran test.f; a.out # OK
Fix of typo (gcc instead of gfortran)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/35873] problem with gfortran -malign-double
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
2008-04-08 16:48 ` [Bug fortran/35873] " hjj at ifk dot sdu dot dk
@ 2008-04-08 16:52 ` pinskia at gcc dot gnu dot org
2008-04-08 18:51 ` hjj at ifk dot sdu dot dk
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-08 16:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2008-04-08 16:51 -------
This is not a bug, -malign-double changes the ABI.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/35873] problem with gfortran -malign-double
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
2008-04-08 16:48 ` [Bug fortran/35873] " hjj at ifk dot sdu dot dk
2008-04-08 16:52 ` pinskia at gcc dot gnu dot org
@ 2008-04-08 18:51 ` hjj at ifk dot sdu dot dk
2008-04-08 18:55 ` pinskia at gcc dot gnu dot org
2008-04-09 0:36 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: hjj at ifk dot sdu dot dk @ 2008-04-08 18:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from hjj at ifk dot sdu dot dk 2008-04-08 18:50 -------
I don't understand how you can call it not a bug when a flag (no matter that it
changes the ABI) makes valid fortran code not work ????
It did work under earlier versions of gfotran.
--
hjj at ifk dot sdu dot dk changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/35873] problem with gfortran -malign-double
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
` (2 preceding siblings ...)
2008-04-08 18:51 ` hjj at ifk dot sdu dot dk
@ 2008-04-08 18:55 ` pinskia at gcc dot gnu dot org
2008-04-09 0:36 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-04-08 18:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2008-04-08 18:54 -------
(In reply to comment #3)
> I don't understand how you can call it not a bug when a flag (no matter that it
> changes the ABI) makes valid fortran code not work ????
You have to compile all of libgfortran with -malign-double and all of libc with
it too.
Please read the documentation more closely since it explicitly says it breaks
compatibility.
See PR 29562, PR 30594, PR 31696 also.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/35873] problem with gfortran -malign-double
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
` (3 preceding siblings ...)
2008-04-08 18:55 ` pinskia at gcc dot gnu dot org
@ 2008-04-09 0:36 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2008-04-09 0:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2008-04-09 00:35 -------
If you can separate the I/O functions you need into a separate file and use
-malign-double only for those portions that do computations, you can make this
work. I can not know from where I sit how important -malign-double is to your
application.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35873
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-04-09 0:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-08 16:45 [Bug fortran/35873] New: problem with gfortran -malign-double hjj at ifk dot sdu dot dk
2008-04-08 16:48 ` [Bug fortran/35873] " hjj at ifk dot sdu dot dk
2008-04-08 16:52 ` pinskia at gcc dot gnu dot org
2008-04-08 18:51 ` hjj at ifk dot sdu dot dk
2008-04-08 18:55 ` pinskia at gcc dot gnu dot org
2008-04-09 0:36 ` jvdelisle at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).