public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/30385]  New: [4.3 regression] IMM ERROR while building stage2-libiberty
@ 2007-01-05 16:39 fxcoudert at gcc dot gnu dot org
  2007-01-05 17:08 ` [Bug bootstrap/30385] " pinskia at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2007-01-05 16:39 UTC (permalink / raw)
  To: gcc-bugs

Never seen this error before:

 IMM ERROR : (use_p : tree - 0xca54e4:0xf1e7d0)../../gcc/libiberty/regex.c: In
function 'xre_search_2':
../../gcc/libiberty/regex.c:4952: internal compiler error: Segmentation fault

This happens at the beginning of stage2-libiberty when bootstraping today's
trunk on i386-darwin. The command-line generating this error is:

/tmp/gfortran-20070105/ibin/./prev-gcc/xgcc
-B/tmp/gfortran-20070105/ibin/./prev-gcc/
-B/usr/local/gfortran/i386-apple-darwin8.8.1/bin/ -c -DHAVE_CONFIG_H -O2 -g
-fomit-frame-pointer -I. -I../../gcc/libiberty/../include  -W -Wall -pedantic
-Wwrite-strings -Wstrict-prototypes -Wc++-compat ../../gcc/libiberty/regex.c -o
regex.o

Yesterday's build worked fine, and the new gcc/ ChangeLog entries since that
time are:

2007-01-04  Jan Hubicka  <jh@suse.cz>

        * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
        comitted older version of patch.
        (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
        function, celanup cfg and collect garbage.

2007-01-04  Mike Stump  <mrs@apple.com> 

        * Makefile.in (mostlyclean): Don't remove libgcc anymore.
        (clean): Likewise.

2007-01-04  Eric Christopher  <echristo@apple.com>

        * libgcc2.c (__bswapsi2): Use SItype.
        (__bswapdi2): Use DItype.
        * libgcc2.h: Update for above.

2007-01-04  Paul Brook  <paul@codesourcery.com>

        * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
        mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
        mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
        umulsidi3, umulsidi3adddi, smulsi3_highpart,
        umulsi3_highpart): Make conditional on !arm_arch6.
        (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
        mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
        mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
        umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
        umulsi3_highpart_v6): New insns.

2007-01-04  Roger Sayle  <roger@eyesopen.com>

        * fold-const.c (fold_convert): When casting an expression to void,
        fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
        have a type.  Instead of attempting to build a NOP_EXPR, return
        these "special" trees directly.

2007-01-04  Joseph Myers  <joseph@codesourcery.com>

        * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
        MULT inside MINUS as either argument.  Use rs6000_cost->dmul -
        rs6000_cost->fp not 0 as adjustment for outer NEG.

2007-01-04  Jan Hubicka  <jh@suse.cz>

        * cgraph.c (cgraph_release_function_body): New function.
        (cgraph_remove_node): Use it.
        * cgraph.h (cgraph_release_function_body): Declare.
        * cgraphunit.c (cgraph_expand_function): Use it.
        * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
        * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
        is initialized and while compilation of other function is running.
        * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
        statement CFG annotations from here to ...
        * tree-cfg.c (delete_tree_cfg_annotations): ... here.

2007-01-04  Zdenek Dvorak <dvorakz@suse.cz>

        * cfgloop.h (enum li_flags): Make the constants powers of two.

2007-01-04  Jan Hubicka  <jh@suse.cz>

        * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
        set.
        (fold_marked_statements): New function.
        (optimize_inline_calls, tree_function_versioning): Fold new statements.
        * tree-inline.h (copy_body_data): Add statements_to_fold.

2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>

        * config.gcc: Mention libgcc/config.host.
        * Makefile.in: Update comments mentioning libgcc.
        (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
        (all.cross, start.encap, rest.encap, rest.cross): Update
        dependencies for libgcc move.
        (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
        (clean-target, clean-target-libgcc): Delete.
        (srcdirify, GCC_EXTRA_PARTS): New macros.
        (libgcc-support, libgcc.mvars): New rules.
        (distclean): Remove mention of mklibgcc.
        (install): Don't reference INSTALL_LIBGCC.
        (install-common): Don't reference EXTRA_PARTS.
        (install-libgcc, install-multilib): Delete rules.
        * mklibgcc.in: Delete file.
        * doc/configfiles.texi: Don't mention mklibgcc.

        * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
        * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
        * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
        * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
        (mklibgcc, ldblspecs): Likewise.

        * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
        (posixpre.def): Use $(T).
        (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
        (SHLIB_SRC, SHLIB_INSTALL): Delete.
        (SHLIB_LINK): Make dummy.
        * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.

        * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.

        * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
        * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
        config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
        config/rs6000/t-newas, config/sparc/t-elf: Likewise.

        * configure.ac (all_outputs): Remove mklibgcc.
        * configure: Regenerated.

So, I guess it could be either the libgcc patch or one of Jan's changes.

I can't provide a preprocessed source code, because running this as a two-step
process (first with -E and then the code generation) doesn't segfault any more
:(  But here is the backtrace of the segfault:

Compiler executable checksum: f10b604b634bc6815571f4f2c85a5347
 IMM ERROR : (use_p : tree - 0xca54e4:0xf1e7d0)
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0xa5a5a5a5
0x0015fd37 in dump_generic_node (buffer=0xb14a20, node=0xa5a5a5a5, spc=0,
flags=2, is_stmt=0 '\0') at ../../gcc/gcc/tree-pretty-print.c:450
450       is_expr = EXPR_P (node) || GIMPLE_STMT_P (node);
(gdb) where
#0  0x0015fd37 in dump_generic_node (buffer=0xb14a20, node=0xa5a5a5a5, spc=0,
flags=2, is_stmt=0 '\0') at ../../gcc/gcc/tree-pretty-print.c:450
#1  0x0015df57 in print_generic_expr (file=0xa0001c70, t=0xa5a5a5a5, flags=2)
at ../../gcc/gcc/tree-pretty-print.c:158
#2  0x001a5a32 in verify_imm_links (f=0xa0001c70, var=0xf58630) at
../../gcc/gcc/tree-ssa-operands.c:2664
#3  0x00125acf in verify_use (bb=0xf2e280, def_bb=0x0, use_p=0xf579dc,
stmt=0x42537380, check_abnormal=0 '\0', names_defined_in_bb=0x43841474) at
../../gcc/gcc/tree-ssa.c:228
#4  0x00128087 in verify_ssa (check_modified_stmt=1 '\001') at
../../gcc/gcc/tree-ssa.c:697
#5  0x0079148a in execute_function_todo (data=0x1) at
../../gcc/gcc/passes.c:809
#6  0x00791113 in do_per_function (callback=0x7911f5 <execute_function_todo>,
data=0x1) at ../../gcc/gcc/passes.c:721
#7  0x00791533 in execute_todo (flags=1) at ../../gcc/gcc/passes.c:830
#8  0x007919cd in execute_one_pass (pass=0xae7860) at
../../gcc/gcc/passes.c:954
#9  0x00791a67 in execute_pass_list (pass=0xae7860) at
../../gcc/gcc/passes.c:980
#10 0x00791a83 in execute_pass_list (pass=0xae7440) at
../../gcc/gcc/passes.c:981
#11 0x0012ca47 in tree_rest_of_compilation (fndecl=0xbca000) at
../../gcc/gcc/tree-optimize.c:543
#12 0x0002bee4 in c_expand_body (fndecl=0xbca000) at
../../gcc/gcc/c-decl.c:6855
#13 0x008420e8 in cgraph_expand_function (node=0xddc200) at
../../gcc/gcc/cgraphunit.c:1173
#14 0x008422a1 in cgraph_expand_all_functions () at
../../gcc/gcc/cgraphunit.c:1236
#15 0x00842e8f in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1519
#16 0x0002f2ae in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7969
#17 0x00716323 in compile_file () at ../../gcc/gcc/toplev.c:1040
#18 0x007183fe in do_compile () at ../../gcc/gcc/toplev.c:2091
#19 0x0071847a in toplev_main (argc=33, argv=0xbffff728) at
../../gcc/gcc/toplev.c:2123
#20 0x000e8c9a in main (argc=33, argv=0xbffff728) at ../../gcc/gcc/main.c:35


-- 
           Summary: [4.3 regression] IMM ERROR while building stage2-
                    libiberty
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fxcoudert at gcc dot gnu dot org
 GCC build triplet: i386-apple-darwin8.8.1
  GCC host triplet: i386-apple-darwin8.8.1
GCC target triplet: i386-apple-darwin8.8.1


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


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

* [Bug bootstrap/30385] [4.3 regression] IMM ERROR while building stage2-libiberty
  2007-01-05 16:39 [Bug bootstrap/30385] New: [4.3 regression] IMM ERROR while building stage2-libiberty fxcoudert at gcc dot gnu dot org
@ 2007-01-05 17:08 ` pinskia at gcc dot gnu dot org
  2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
  2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-05 17:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-01-05 17:08 -------
Mine for now as I am going to apply the testcase:
static void g(int t)
{
 int a;
 while (a < f())
  ;
}
void h(int t)
{
 g(t);
}

---------
Which was fixed by:
http://gcc.gnu.org/ml/gcc-patches/2007-01/msg00359.html


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
         AssignedTo|unassigned at gcc dot gnu   |pinskia at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
  GCC build triplet|i386-apple-darwin8.8.1      |
   GCC host triplet|i386-apple-darwin8.8.1      |
 GCC target triplet|i386-apple-darwin8.8.1      |
           Keywords|                            |ice-on-valid-code
   Last reconfirmed|0000-00-00 00:00:00         |2007-01-05 17:08:20
               date|                            |
   Target Milestone|---                         |4.3.0


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


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

* [Bug bootstrap/30385] [4.3 regression] IMM ERROR while building stage2-libiberty
  2007-01-05 16:39 [Bug bootstrap/30385] New: [4.3 regression] IMM ERROR while building stage2-libiberty fxcoudert at gcc dot gnu dot org
  2007-01-05 17:08 ` [Bug bootstrap/30385] " pinskia at gcc dot gnu dot org
@ 2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
  2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-06  0:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2007-01-06 00:26 -------
Fixed.


-- 

pinskia at gcc dot gnu dot org changed:

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


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


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

* [Bug bootstrap/30385] [4.3 regression] IMM ERROR while building stage2-libiberty
  2007-01-05 16:39 [Bug bootstrap/30385] New: [4.3 regression] IMM ERROR while building stage2-libiberty fxcoudert at gcc dot gnu dot org
  2007-01-05 17:08 ` [Bug bootstrap/30385] " pinskia at gcc dot gnu dot org
  2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
@ 2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-01-06  0:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-01-06 00:26 -------
Subject: Bug 30385

Author: pinskia
Date: Sat Jan  6 00:26:24 2007
New Revision: 120519

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120519
Log:
2007-01-05  Andrew Pinski  <Andrew_Pinski@playstation.sony.com>

        PR tree-opt/30385
        * gcc.dg/torture/inline-1.c: New test.



Added:
    trunk/gcc/testsuite/gcc.dg/torture/inline-1.c
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

end of thread, other threads:[~2007-01-06  0:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-05 16:39 [Bug bootstrap/30385] New: [4.3 regression] IMM ERROR while building stage2-libiberty fxcoudert at gcc dot gnu dot org
2007-01-05 17:08 ` [Bug bootstrap/30385] " pinskia at gcc dot gnu dot org
2007-01-06  0:26 ` pinskia at gcc dot gnu dot org
2007-01-06  0:26 ` pinskia at gcc dot gnu dot 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).