public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/21384] New: internal compiler error: Bus error
@ 2005-05-04 17:54 gbosilca at utk dot edu
  2005-05-04 18:00 ` [Bug fortran/21384] " pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: gbosilca at utk dot edu @ 2005-05-04 17:54 UTC (permalink / raw)
  To: gcc-bugs

Unaligned COMMON blocks generate bus erros. One of the most basic test used by
configure to test the alignement of the Fortran types fail to compile. Even
worst it generate a bus error on an Apple computer.

      program falign
      external ALIGN
      LOGICAL  w,x,y,z
      CHARACTER a,b,c
      common /foo/a,w,b,x,y,c,z
      call ALIGN(w,x,y,z)
      end


gfortran has been compiled from snapshot download today (4 May 2005) from the
gcc website. I compile it on a dual G5 machine using the flags "-mcpu=G5 -maltivec".

-- 
           Summary: internal compiler error: Bus error
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gbosilca at utk dot edu
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin8.0.0
  GCC host triplet: powerpc-apple-darwin8.0.0
GCC target triplet: powerpc-apple-darwin8.0.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21384


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/21384] internal compiler error: Bus error
  2005-05-04 17:54 [Bug fortran/21384] New: internal compiler error: Bus error gbosilca at utk dot edu
@ 2005-05-04 18:00 ` pinskia at gcc dot gnu dot org
  2005-05-04 19:24 ` gbosilca at utk dot edu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-04 18:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-04 18:00 -------
I thought this was fixed.
on i686-pc-linux-gnu we get the following warnings:
 In file t.f:7

      common /foo/a,w,b,x,y,c,z                                         
                 1
Warning: Padding of 3 bytes required before 'x' in COMMON 'foo' at (1)
 In file t.f:7

      common /foo/a,w,b,x,y,c,z                                         
                 1
Warning: Padding of 3 bytes required before 'z' in COMMON 'foo' at (1)
 In file t.f:7

      common /foo/a,w,b,x,y,c,z                                         
                 1
Warning: COMMON 'foo' at (1) requires 3 bytes of padding at start

Guess I have to check on my Mac OS X box when I get back to my dorm room.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|critical                    |normal
           Keywords|                            |ice-on-valid-code


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21384


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/21384] internal compiler error: Bus error
  2005-05-04 17:54 [Bug fortran/21384] New: internal compiler error: Bus error gbosilca at utk dot edu
  2005-05-04 18:00 ` [Bug fortran/21384] " pinskia at gcc dot gnu dot org
@ 2005-05-04 19:24 ` gbosilca at utk dot edu
  2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
  2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: gbosilca at utk dot edu @ 2005-05-04 19:24 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gbosilca at utk dot edu  2005-05-04 19:24 -------
I get the latest version from CVS. And the bug seems to be fixed on this version.

fortran compiler version:

applebasket:/tmp root# gfortran --version
GNU Fortran 95 (GCC 4.1.0 20050504 (experimental))
Copyright (C) 2005 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

Result of the code:

 In file check_size.F:5

      common /foo/a,w,b,x,y,c,z
                 1
Warning: Padding of 3 bytes required before 'x' in COMMON 'foo' at (1)
 In file check_size.F:5

      common /foo/a,w,b,x,y,c,z
                 1
Warning: Padding of 3 bytes required before 'z' in COMMON 'foo' at (1)
 In file check_size.F:5

      common /foo/a,w,b,x,y,c,z
                 1
Warning: COMMON 'foo' at (1) requires 3 bytes of padding at start

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21384


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/21384] internal compiler error: Bus error
  2005-05-04 17:54 [Bug fortran/21384] New: internal compiler error: Bus error gbosilca at utk dot edu
  2005-05-04 18:00 ` [Bug fortran/21384] " pinskia at gcc dot gnu dot org
  2005-05-04 19:24 ` gbosilca at utk dot edu
@ 2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
  2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-04 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-04 19:31 -------
Close it as a dup of bug 20059.

*** This bug has been marked as a duplicate of 20059 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21384


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug fortran/21384] internal compiler error: Bus error
  2005-05-04 17:54 [Bug fortran/21384] New: internal compiler error: Bus error gbosilca at utk dot edu
                   ` (2 preceding siblings ...)
  2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
@ 2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-04 19:31 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-05-04 19:30 -------
Lets reopen it and ...

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|FIXED                       |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21384


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-04 19:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-04 17:54 [Bug fortran/21384] New: internal compiler error: Bus error gbosilca at utk dot edu
2005-05-04 18:00 ` [Bug fortran/21384] " pinskia at gcc dot gnu dot org
2005-05-04 19:24 ` gbosilca at utk dot edu
2005-05-04 19:31 ` pinskia at gcc dot gnu dot org
2005-05-04 19:31 ` pinskia 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).