[Bug c/52547] New: Internal compiler Error in create_tmp_var in gimplify.c:465

2012-03-09 Thread iamrohitbanga at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52547

 Bug #: 52547
   Summary: Internal compiler Error in create_tmp_var in
gimplify.c:465
Classification: Unclassified
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: iamrohitba...@gmail.com


Created attachment 26868
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26868
Preprocessed Source

I get the following error when trying to compile a piece of software.
Commenting out the call to qsort in the original source file (the corresponding
line number in the attached preprocessed file is 7176) does not produce any
error.

gcc -std=gnu9x -fopenmp   -g -O2 -Iinclude -o main main.c src/stinger.c
src/stinger-utils.c src/timer.c src/xmalloc.c \
 -lm -lrt
src/stinger-utils.c: In function ‘stinger_to_sorted_csr’:
src/stinger-utils.c:450:13: internal compiler error: in create_tmp_var, at
gimplify.c:465
Please submit a full bug report,
with preprocessed source if appropriate.
See  for instructions.
Preprocessed source stored into /tmp/ccAzPZP8.out file, please attach this to
your bugreport.
make: *** [main] Error 1


[Bug c/52547] Internal compiler Error in create_tmp_var in gimplify.c:465

2012-03-09 Thread iamrohitbanga at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52547

--- Comment #1 from Rohit Banga  2012-03-09 
21:59:25 UTC ---
Removing -fopenmp resolves the problem. That piece of information should be
helpful in solving the bug.