public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault
@ 2015-07-13 9:52 sebastian.huber@embedded-brains.de
2015-07-14 13:11 ` [Bug libgcc/66854] " sebastian.huber@embedded-brains.de
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: sebastian.huber@embedded-brains.de @ 2015-07-13 9:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
Bug ID: 66854
Summary: libgcc2.c:1846:9: internal compiler error:
Segmentation fault
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libgcc
Assignee: unassigned at gcc dot gnu.org
Reporter: sebastian.huber@embedded-brains.de
Target Milestone: ---
make[4]: Entering directory
`/scratch/git-build/b-gcc-git-powerpc-rtems4.11/powerpc-rtems4.11/m403/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
/scratch/git-build/b-gcc-git-powerpc-rtems4.11/./gcc/xgcc
-B/scratch/git-build/b-gcc-git-powerpc-rtems4.11/./gcc/ -nostdinc
-B/scratch/git-build/b-gcc-git-powerpc-rtems4.11/powerpc-rtems4.11/newlib/
-isystem
/scratch/git-build/b-gcc-git-powerpc-rtems4.11/powerpc-rtems4.11/newlib/targ-include
-isystem /home/EB/sebastian_h/archive/gcc-git/newlib/libc/include
-B/opt/rtems-4.11/powerpc-rtems4.11/bin/
-B/opt/rtems-4.11/powerpc-rtems4.11/lib/ -isystem
/opt/rtems-4.11/powerpc-rtems4.11/include -isystem
/opt/rtems-4.11/powerpc-rtems4.11/sys-include -g -O2 -mcpu=403 -O2
-I/home/EB/sebastian_h/archive/gcc-git/libgcc/../newlib/libc/sys/rtems/include
-g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector -Dinhibit_libc -I. -I. -I../../.././gcc
-I/home/EB/sebastian_h/archive/gcc-git/libgcc
-I/home/EB/sebastian_h/archive/gcc-git/libgcc/.
-I/home/EB/sebastian_h/archive/gcc-git/libgcc/../gcc
-I/home/EB/sebastian_h/archive/gcc-git/libgcc/../include -DHAVE_CC_TLS -o
_powisf2.o -MT _powisf2.o -MD -MP -MF _powisf2.dep -DL_powisf2 -c
/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c -fvisibility=hidden
-DHIDE_EXPORTS
/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c: In function '__powisf2':
/home/EB/sebastian_h/archive/gcc-git/libgcc/libgcc2.c:1846:9: internal compiler
error: Segmentation fault
x = x * x;
^
0xa5ea6f crash_signal
/home/EB/sebastian_h/archive/gcc-git/gcc/toplev.c:352
0xd63016 tree_class_check
/home/EB/sebastian_h/archive/gcc-git/gcc/tree.h:3236
0xd63016 rs6000_pass_by_reference
/home/EB/sebastian_h/archive/gcc-git/gcc/config/rs6000/rs6000.c:10836
0x56bb84 pass_by_reference(rs6000_args*, machine_mode, tree_node*, bool)
/home/EB/sebastian_h/archive/gcc-git/gcc/calls.c:878
0x56d1cf emit_library_call_value_1
/home/EB/sebastian_h/archive/gcc-git/gcc/calls.c:4033
0x573ff1 emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, int, ...)
/home/EB/sebastian_h/archive/gcc-git/gcc/calls.c:4631
0x984cd7 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*,
int, optab_methods)
/home/EB/sebastian_h/archive/gcc-git/gcc/optabs.c:2133
0x670f1e expand_mult(machine_mode, rtx_def*, rtx_def*, rtx_def*, int)
/home/EB/sebastian_h/archive/gcc-git/gcc/expmed.c:3266
0x6902b6 expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier)
/home/EB/sebastian_h/archive/gcc-git/gcc/expr.c:8598
0x582482 expand_gimple_stmt_1
/home/EB/sebastian_h/archive/gcc-git/gcc/cfgexpand.c:3340
0x582482 expand_gimple_stmt
/home/EB/sebastian_h/archive/gcc-git/gcc/cfgexpand.c:3400
0x5847ad expand_gimple_basic_block
/home/EB/sebastian_h/archive/gcc-git/gcc/cfgexpand.c:5412
0x589d0e execute
/home/EB/sebastian_h/archive/gcc-git/gcc/cfgexpand.c:6023
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[4]: *** [_powisf2.o] Error 1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/66854] libgcc2.c:1846:9: internal compiler error: Segmentation fault
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
@ 2015-07-14 13:11 ` sebastian.huber@embedded-brains.de
2015-07-14 15:39 ` meissner at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: sebastian.huber@embedded-brains.de @ 2015-07-14 13:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
Sebastian Huber <sebastian.huber@embedded-brains.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |meissner at linux dot vnet.ibm.com
--- Comment #1 from Sebastian Huber <sebastian.huber@embedded-brains.de> ---
8b2f7251e4502efddba091ba4468e385ac435b52 is the first bad commit
commit 8b2f7251e4502efddba091ba4468e385ac435b52
Author: meissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Date: Thu Jul 9 18:55:01 2015 +0000
2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
* config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
Use machine mode, not enum machine_mode in the prototype.
* config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
classify 128-bit floating point support.
(FLOAT128_IBM_P): Likewise.
(FLOAT128_VECTOR_P): Likewise.
(FLOAT128_2REG_P): Likewise.
(SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
(SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
(HARD_REGNO_CALLER_SAVE_MODE): Likewise.
(HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
* config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
tests against TFmode/TDmode, since those modes do not use VSX
addresses.
(rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
support.
(rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
tests against TFmode, etc.
(invalid_e500_subreg): Add tests against IFmode/KFmode.
(reg_offset_addressing_ok_p): Likewise.
(rs6000_legitimate_offset_address_p): Likewise.
(rs6000_legitimize_address): Likewise.
(rs6000_legitimize_reload_address): Likewise.
(rs6000_legitimate_address_p): Clean up tests against TFmode and
TDmode to use the new helper macros, which will include IFmode and
KFmode.
(rs6000_emit_move): Likewise.
(rs6000_darwin64_record_arg_recurse): Likewise.
(print_operand): Likewise.
(rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
that uses a single vector register as a vector and not as a
floating point register in terms of the calling sequence.
(rs6000_discover_homogeneous_aggregate): Likewise.
(rs6000_return_in_memory): Likewise.
(init_cumulative_args): Likewise.
(rs6000_function_arg_boundary): Likewise.
(rs6000_function_arg_advance_1): Likewise.
(rs6000_function_arg): Likewise.
(rs6000_pass_by_reference): Likewise.
(rs6000_gimplify_va_arg): Likewise.
(rs6000_secondary_reload_memory): Use machine_mode not enum
machine mode.
(rs6000_split_multireg_move): Use new helper macros.
(spe_func_has_64bit_regs_p): Likewise.
(rs6000_output_function_epilogue): Add IFmode/KFmode support.
(output_toc): Use new helper macros.
(rs6000_register_move_cost): Likewise.
(rs6000_function_value): Add IEEE 128-bit floating point calling
sequence support.
(rs6000_libcall_value): Likewise.
(rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
floating point support.
(rs6000_vector_mode_supported_p): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225631
138bc75d-0d04-0410-961f-82ee72b054a4
:040000 040000 20fc90df33f1389e7c30b7b9e2499cb9045f0eca
8dffd9d0aa758f63d522a76fc4edea6a610bc9fc M gcc
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/66854] libgcc2.c:1846:9: internal compiler error: Segmentation fault
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
2015-07-14 13:11 ` [Bug libgcc/66854] " sebastian.huber@embedded-brains.de
@ 2015-07-14 15:39 ` meissner at gcc dot gnu.org
2015-07-14 21:20 ` meissner at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-07-14 15:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
Michael Meissner <meissner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |meissner at gcc dot gnu.org
--- Comment #2 from Michael Meissner <meissner at gcc dot gnu.org> ---
What options did you use to configure the compiler with?
Are the RTEMS include files and libraries available on the internet so that I
can try to build a cross compiler to debug the problem?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/66854] libgcc2.c:1846:9: internal compiler error: Segmentation fault
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
2015-07-14 13:11 ` [Bug libgcc/66854] " sebastian.huber@embedded-brains.de
2015-07-14 15:39 ` meissner at gcc dot gnu.org
@ 2015-07-14 21:20 ` meissner at gcc dot gnu.org
2015-07-15 17:16 ` meissner at gcc dot gnu.org
2015-07-15 17:17 ` meissner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-07-14 21:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
--- Comment #3 from Michael Meissner <meissner at gcc dot gnu.org> ---
Created attachment 35978
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35978&action=edit
Proposed patch to fix the problem
I believe this patch fixes the problem. I was able to build libgcc with this
patch installed. I could not complete a full RTEMS build (I suspect I am
missing some parts of the software).
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/66854] libgcc2.c:1846:9: internal compiler error: Segmentation fault
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
` (2 preceding siblings ...)
2015-07-14 21:20 ` meissner at gcc dot gnu.org
@ 2015-07-15 17:16 ` meissner at gcc dot gnu.org
2015-07-15 17:17 ` meissner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-07-15 17:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Wed Jul 15 17:15:37 2015
New Revision: 225843
URL: https://gcc.gnu.org/viewcvs?rev=225843&root=gcc&view=rev
Log:
2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/66854
* config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
null before IEEE 128-bit floating point support patch.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/config/rs6000/rs6000.c
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug libgcc/66854] libgcc2.c:1846:9: internal compiler error: Segmentation fault
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
` (3 preceding siblings ...)
2015-07-15 17:16 ` meissner at gcc dot gnu.org
@ 2015-07-15 17:17 ` meissner at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-07-15 17:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66854
Michael Meissner <meissner at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
Assignee|unassigned at gcc dot gnu.org |meissner at gcc dot gnu.org
--- Comment #6 from Michael Meissner <meissner at gcc dot gnu.org> ---
Fixed in subversion id 225843.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-15 17:17 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-13 9:52 [Bug libgcc/66854] New: libgcc2.c:1846:9: internal compiler error: Segmentation fault sebastian.huber@embedded-brains.de
2015-07-14 13:11 ` [Bug libgcc/66854] " sebastian.huber@embedded-brains.de
2015-07-14 15:39 ` meissner at gcc dot gnu.org
2015-07-14 21:20 ` meissner at gcc dot gnu.org
2015-07-15 17:16 ` meissner at gcc dot gnu.org
2015-07-15 17:17 ` meissner at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).