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

--- Comment #7 from Denis Excoffier <g...@denis-excoffier.org> ---
(In reply to Francois-Xavier Coudert from comment #6)
There is no lldb here, and also no direct 'bt' available. I used gdb with a
break point:

% cd /tmp/lcl/tmp/gcc/obj
%
% grep -n 'gcc_assert (sizeof reg_names == sizeof initial_reg_names)'
../gcc-4.9.2/gcc/reginfo.c
178:  fprintf(stderr, "%s:%u %u %u\n", __FILE__, __LINE__, sizeof reg_names,
sizeof initial_reg_names); gcc_assert (sizeof reg_names == sizeof
initial_reg_names);
%
% cat test.c
/* nothing */
%
% /usr/bin/cc --version
powerpc-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5493)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

%
% ./gcc/cc1 test.c
/tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/reginfo.c:178 596 468
cc1: internal compiler error: in init_reg_sets, at reginfo.c:178
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
%
% /usr/bin/gdb ./gcc/cc1
GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:15:14 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "powerpc-apple-darwin"...Reading symbols for shared
libraries ...... done

(gdb) break reginfo.c:178
Breakpoint 1 at 0xa4df88: file /tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/reginfo.c, line
178.
(gdb) run test.c
Starting program: /Users/denis/darlcl/tmp/gcc/obj/gcc/cc1 test.c
Reading symbols for shared libraries +++++. done

Breakpoint 1, init_reg_sets () at /tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/reginfo.c:178
178      fprintf(stderr, "%s:%u %u %u\n", __FILE__, __LINE__, sizeof reg_names,
sizeof initial_reg_names); gcc_assert (sizeof reg_names == sizeof
initial_reg_names);
(gdb) bt
#0  init_reg_sets () at /tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/reginfo.c:178
#1  0x00b5a074 in general_init (argv0=0xbffff70c
"/Users/denis/darlcl/tmp/gcc/obj/gcc/cc1") at
/tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/toplev.c:1169
#2  0x00b5bda0 in toplev_main (argc=2, argv=0xbffff644) at
/tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/toplev.c:1961
#3  0x010265fc in main (argc=2, argv=0xbffff644) at
/tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/main.c:36
Current language:  auto; currently c++
(gdb) cont
Continuing.
/tmp/lcl/tmp/gcc/gcc-4.9.2/gcc/reginfo.c:178 596 468
cc1: internal compiler error: in init_reg_sets, at reginfo.c:178
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Program exited with code 04.
(gdb) quit
%


Hope this helps,

Denis Excoffier.

Reply via email to