Skip to content

ARM: Segmentation fault when compiling tests/function-pointer.c #1

Description

@florommel

Compiling tests/function-pointer.c on ARM causes an internal compiler error (segmentation fault).
[GCC version: 6.3.1, arch: armv6l]

In directory tests:
$ gcc -o function-pointer.o -c function-pointer.c -fplugin=../gcc-plugin/multiverse.so -I../libmultiverse -Wextra -MT function-pointer.o -MMD -MP -MF .d/function-pointer.Td

found multiverse operand: config
guess!...found '1' multiverse variables (0 blacklisted)
generating function clone foo.multiverse.config_0
.. found multiverse variable in statement, replacing: config.0_1 = 0;
generating function clone foo.multiverse.config_1
.. found multiverse variable in statement, replacing: config.0_1 = 1;
Generated 2 specialized functions for foo
mv variant generation: skipping non-mv function 'main'

merge function bodies for: foo
foo.multiverse.config_0 NEQ; new equivalence class
foo.multiverse.config_1 NEQ; new equivalence class
found function equivalence class of size 1
found function equivalence class of size 1
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | multiverse
PLUGIN_ATTRIBUTES                | multiverse
PLUGIN_START_UNIT                | multiverse
function-pointer.c: In function 'main':
function-pointer.c:34:1: internal compiler error: Segmentation fault
 }
 ^
0x76a701e7 is_multiverse_fn
	/home/florian/multiverse/gcc-plugin/multiverse.cc:208
0x76a73187 mv_callsites_execute
	/home/florian/multiverse/gcc-plugin/multiverse.cc:856
0x76a73367 execute
	/home/florian/multiverse/gcc-plugin/gcc-generate-rtl-pass.h:126
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://github.com/archlinuxarm/PKGBUILDs/issues> for instructions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions