Opened 11 years ago

Closed 10 years ago

#2322 closed defect (fixed)

Fix bootstrapping on GCC 4.8 / clang

Reported by: Martin Sjölund Owned by: Martin Sjölund
Priority: blocker Milestone: 1.9.3
Component: MetaModelica Version: trunk
Keywords: Cc:

Description

GCC 4.8 and clang perform some unsafe optimizations that make code generated for the bootstrapped compiler fail in mysterious ways.
We need to find and work around these.

Change History (6)

comment:1 by Martin Sjölund, 11 years ago

Owner: changed from somebody to Martin Sjölund
Status: newaccepted

comment:2 by Martin Sjölund, 11 years ago

Works with gcc-4.8:

  • -O1 -fno-tree-ch
  • -O2 -fno-tree-ch -fno-tree-vrp -fno-tree-pre

comment:3 by Martin Sjölund, 11 years ago

clang-3.2 works with -O2 without changes

comment:4 by Martin Sjölund, 11 years ago

gcc-4.6 works with straight -O2. gcc-4.7 needs same flags as 4.8.

comment:5 by Martin Sjölund, 11 years ago

-fno-stack-protector is a good idea for libgc if we want to use threads (it wants to modify the stack of other threads)

comment:6 by Martin Sjölund, 10 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.