https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81142

            Bug ID: 81142
           Summary: Segmentation fault when using static __thread
                    variables
           Product: gcc
           Version: 4.9.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: tomas_paukrt at conel dot cz
  Target Milestone: ---

Created attachment 41591
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41591&action=edit
C source file

If the attached C source file is cross-compiled using GCC 4.9.4 for AM335x CPU
(BeagleBone) then segmentation fault occurs.

Command line to compile: gcc -O2 -fPIC -march=armv7-a -mtune=cortex-a8
-mfloat-abi=softfp -mfpu=vfpv3 -mtls-dialect=gnu crash.c

The array size in the first function is key to causing an error.

Reply via email to