This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults


The program available at this address:

http://users.erols.com/whitaker/wordsall.zip

compiles and executes correctly on native i686, but when cross-compiled for arm
the resulting "words" executable prints out some introductory text and a prompt,
but then segfaults as soon as any input is entered. The three helper programs
"makedict", "makestem", and "makeinfl" execute and generate their output files
correctly on arm, only the "words" program appears to be broken. It compiles
with no warnings even with -pedantic and -Wall options, so if there are any
errors in the code the compiler is not detecting them. I wouldn't expect bad Ada
code to just segfault, anyway, because Ada has bounds checking and lacks
pointers. I am trying to isolate the problem and produce a test case, but that
is difficult because I don't know Ada very well. I'd be happy to provide any
extra information that could be helpful.

-- 
           Summary: ada cross-compiler for arm generates bad code -
                    resulting executable segfaults
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cherylgpepper at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-unknown-linux-gnu


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]