M68k Compilerbug auf acc7

Hier der Quellcode, der auf dem acc7-Cluster zum beschriebenen Bug führt:

/*
Dieses Programm namens 'm68k-bug.c' compiliert mit

  /opt/crosscompiler/m68k/bin/m68k-elf-g++ -c -msoft-float -malign-int -o m68k-bug.o m68k-bug.c

führt zu

------------------------------------------
m68k-bug.c: In function 'int main(int, char**)':
m68k-bug.c:27:19: internal compiler error: Segmentation fault
   y = 20 / (254.0 / x) + 0.5;
                   ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
------------------------------------------

Es liegt anscheinend an der Kombination der 
beiden Optionen -msoft-float und -malign-int.
*/

int main(int argc, char **argv)
{
  int x = 1;
  float y;

  y = 20 / (254.0 / x) + 0.5;

  return 0;
}

This topic: Frontend > WebHome > DevAccUmzugAcc7 > M68kCompilerBug
Topic revision: 02 Aug 2016, LudwigHechler
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback