public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
@ 2012-02-01  7:54 doko at gcc dot gnu.org
  2012-02-01 13:43 ` [Bug target/52079] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2012-02-01  7:54 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

             Bug #: 52079
           Summary: ICE in aggregate_value_p while building libgo on
                    arm-linux-gnueabihf
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: doko@gcc.gnu.org


20120131 trunk, configured with
--with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb 
--build=arm-linux-gnueabihf --host=arm-linux-gnueabihf
--target=arm-linux-gnueabihf

(gdb) run
Starting program:
/scratch/packages/gcc/snap/gcc-snapshot-20120131/build/gcc/go1
../../../src/libgo/go/strconv/atob.go ../../../src/libgo/go/strconv/atof.go
../../../src/libgo/go/strconv/atoi.go ../../../src/libgo/go/strconv/decimal.go
../../../src/libgo/go/strconv/extfloat.go ../../../src/libgo/go/strconv/ftoa.go
../../../src/libgo/go/strconv/itoa.go ../../../src/libgo/go/strconv/quote.go
-quiet -dumpbase atob.go -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16
-mthumb -mtls-dialect=gnu -auxbase-strip strconv/.libs/strconv.o -g -O2
-version -fgo-prefix=libgo_strconv -fPIC -I .
-L/scratch/packages/gcc/snap/gcc-snapshot-20120131/build/./gcc
-L/lib/arm-linux-gnueabihf -L/usr/lib/arm-linux-gnueabihf -o /tmp/ccILwoBv.s
GNU Go (Ubuntu/Linaro 20120131-0ubuntu1) version 4.7.0 20120131 (experimental)
[trunk revision 183758] (arm-linux-gnueabihf)
        compiled by GNU C version 4.7.0 20120131 (experimental) [trunk revision
183758], GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Go (Ubuntu/Linaro 20120131-0ubuntu1) version 4.7.0 20120131 (experimental)
[trunk revision 183758] (arm-linux-gnueabihf)
        compiled by GNU C version 4.7.0 20120131 (experimental) [trunk revision
183758], GMP version 5.0.2, MPFR version 3.1.0-p3, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096

Program received signal SIGSEGV, Segmentation fault.
0x00279eb6 in aggregate_value_p(tree_node const*, tree_node const*) ()

(gdb) bt
#0  0x00279eb6 in aggregate_value_p(tree_node const*, tree_node const*) ()
#1  0x001942d8 in emit_library_call_value_1(int, rtx_def*, rtx_def*,
libcall_type, machine_mode, int, std::__va_list) ()
#2  0x00197994 in emit_library_call_value(rtx_def*, rtx_def*, libcall_type,
machine_mode, int, ...) ()
#3  0x0030f086 in expand_twoval_binop_libfunc(optab_d*, rtx_def*, rtx_def*,
rtx_def*, rtx_def*, rtx_code) ()
#4  0x00217be0 in expand_divmod(int, tree_code, machine_mode, rtx_def*,
rtx_def*, rtx_def*, int) ()
#5  0x00228470 in expand_expr_real_2(separate_ops*, rtx_def*, machine_mode,
expand_modifier) ()
#6  0x0019ce00 in expand_gimple_stmt(gimple_statement_d*) ()
#7  0x0019e20e in expand_gimple_basic_block(basic_block_def*) ()
#8  0x0019f77a in gimple_expand_cfg() ()
#9  0x003201fc in execute_one_pass(opt_pass*) ()
#10 0x0032049c in execute_pass_list(opt_pass*) ()
#11 0x003dd67e in tree_rest_of_compilation(tree_node*) ()
#12 0x001b49ec in cgraph_expand_function(cgraph_node*) ()
#13 0x001b5fa0 in cgraph_optimize() ()
#14 0x001b645a in cgraph_finalize_compilation_unit() ()
#15 0x0012c70e in Gogo::write_globals() ()
#16 0x0039329a in toplev_main(int, char**) ()
#17 0xb6bdcc3a in __libc_start_main () from /lib/arm-linux-gnueabihf/libc.so.6
#18 0x0010a64e in _start ()


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
@ 2012-02-01 13:43 ` jakub at gcc dot gnu.org
  2012-02-01 14:01 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-01 13:43 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-02-01
         AssignedTo|unassigned at gcc dot       |jakub at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-01 13:43:03 UTC ---
Created attachment 26542
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26542
gcc47-pr52079.patch

Untested fix.  While the c-family/fortran/lto/ada
lang_hooks.types.type_for_mode returns non-NULL for TImode (it creates a type
for 2 * HOST_BITS_PER_WIDE_INT bitsize), go (and assuming java too) just return
NULL.
This is an attempt to try harder in this case, another alternative would be for
go/java type_for_mode and type_for_size langhooks to return non-NULL for TImode
resp. 128-bit size (using build_nonstandard_integer_type), at least when
HOST_BITS_PER_WIDE_INT >= 64 (like other FEs do).


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
  2012-02-01 13:43 ` [Bug target/52079] " jakub at gcc dot gnu.org
@ 2012-02-01 14:01 ` jakub at gcc dot gnu.org
  2012-02-01 14:18 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-01 14:01 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-01 14:01:09 UTC ---
Created attachment 26543
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26543
gcc47-pr52079.patch

Alternate patch for the GO FE.  There are hundreds of other
lang_hooks.types.type_for_mode callers, so this variant seems to be safer to
me, at least at this point.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
  2012-02-01 13:43 ` [Bug target/52079] " jakub at gcc dot gnu.org
  2012-02-01 14:01 ` jakub at gcc dot gnu.org
@ 2012-02-01 14:18 ` jakub at gcc dot gnu.org
  2012-02-01 14:22 ` ian at airs dot com
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-01 14:18 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #26543|0                           |1
        is obsolete|                            |

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-01 14:17:54 UTC ---
Created attachment 26544
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26544
gcc47-pr52079-2.patch

The alternate patch for real this time.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-02-01 14:18 ` jakub at gcc dot gnu.org
@ 2012-02-01 14:22 ` ian at airs dot com
  2012-02-01 18:59 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: ian at airs dot com @ 2012-02-01 14:22 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

--- Comment #4 from Ian Lance Taylor <ian at airs dot com> 2012-02-01 14:22:36 UTC ---
The patch to gcc/go/go-lang.c is OK.  You don't need the #if as far as I'm
concerned.

(The whole idea of a frontend hook for type_for_mode is somewhat broken
anyhow.)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2012-02-01 14:22 ` ian at airs dot com
@ 2012-02-01 18:59 ` jakub at gcc dot gnu.org
  2012-02-02  8:31 ` doko at gcc dot gnu.org
  2012-02-02  8:34 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-01 18:59 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-01 18:58:51 UTC ---
Author: jakub
Date: Wed Feb  1 18:58:44 2012
New Revision: 183806

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183806
Log:
    PR target/52079
    * go-lang.c (go_langhook_type_for_mode): For TImode and 64-bit HWI
    return build_nonstandard_integer_type result if possible.

Modified:
    trunk/gcc/go/ChangeLog
    trunk/gcc/go/go-lang.c


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2012-02-01 18:59 ` jakub at gcc dot gnu.org
@ 2012-02-02  8:31 ` doko at gcc dot gnu.org
  2012-02-02  8:34 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2012-02-02  8:31 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

--- Comment #6 from Matthias Klose <doko at gcc dot gnu.org> 2012-02-02 08:30:34 UTC ---
builds with this patch; testsuite still running


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug target/52079] ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf
  2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2012-02-02  8:31 ` doko at gcc dot gnu.org
@ 2012-02-02  8:34 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-02-02  8:34 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52079

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-02 08:34:00 UTC ---
Fixed then.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-02-02  8:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-01  7:54 [Bug target/52079] New: ICE in aggregate_value_p while building libgo on arm-linux-gnueabihf doko at gcc dot gnu.org
2012-02-01 13:43 ` [Bug target/52079] " jakub at gcc dot gnu.org
2012-02-01 14:01 ` jakub at gcc dot gnu.org
2012-02-01 14:18 ` jakub at gcc dot gnu.org
2012-02-01 14:22 ` ian at airs dot com
2012-02-01 18:59 ` jakub at gcc dot gnu.org
2012-02-02  8:31 ` doko at gcc dot gnu.org
2012-02-02  8:34 ` jakub 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).