public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395
@ 2012-05-23 15:34 linux at carewolf dot com
  2012-05-23 15:37 ` [Bug middle-end/53460] " linux at carewolf dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: linux at carewolf dot com @ 2012-05-23 15:34 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53460
           Summary: Internal compiler error: in calc_dfs_tree, at
                    dominance.c:395
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: linux@carewolf.com


Compiling webkit with either -fprofile-generate or -fprofile-use will cause GCC
to ICE on several different files. Under any other compile flags GCC compiles
the same files without any problems.

There are one other open bug that ICE at the same place in GCC, but seeing that
several older bugs have the same line, I assume that is no guarantee that the
bug is the same, and the other bug is not related to profiling.

I have included two examples, but have not reduced them.


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

* [Bug middle-end/53460] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
@ 2012-05-23 15:37 ` linux at carewolf dot com
  2012-05-23 16:49 ` linux at carewolf dot com
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: linux at carewolf dot com @ 2012-05-23 15:37 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Allan Jensen <linux at carewolf dot com> 2012-05-23 15:34:35 UTC ---
Created attachment 27481
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27481
FontFastPath.ii.gz


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

* [Bug middle-end/53460] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
  2012-05-23 15:37 ` [Bug middle-end/53460] " linux at carewolf dot com
@ 2012-05-23 16:49 ` linux at carewolf dot com
  2012-05-24  7:42 ` rguenth at gcc dot gnu.org
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: linux at carewolf dot com @ 2012-05-23 16:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Allan Jensen <linux at carewolf dot com> 2012-05-23 15:37:32 UTC ---
It appears I am not allowed to make more than one attachment so you will have
to do with one example. Here is the console output:

Using built-in specs.
COLLECT_GCC=/usr/bin/g++
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.0-9'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.0 (Debian 4.7.0-9) 

<SNIP>

COLLECT_GCC_OPTIONS='-Wall' '-Wextra' '-fno-strict-aliasing'
'-Wchar-subscripts' '-Wformat-security' '-Wreturn-type' '-Wno-unused-parameter'
'-Wno-sign-compare' '-Wno-switch' '-Wno-switch-enum' '-Wundef'
'-Wmissing-noreturn' '-Winit-self' '-m64' '-pipe' '-ffunction-sections'
'-fdata-sections' '-Werror' '-Wno-c++0x-compat' '-O2' '-fPIC'
'-fprofile-generate=/tmp/profile-webkit' '-pthread' '-pthread' '-pthread'
'-pthread' '-pthread' '-pthread' '-pthread' '-pthread' '-D' '_REENTRANT' '-D'
'WTF_USE_ICU_UNICODE=1' '-D' 'HAVE_QRAWFONT=1' '-D' 'HAVE_FONTCONFIG=1' '-D'
'WTF_USE_LIBXML2=1' '-D' 'ENABLE_XSLT=1' '-D' 'WTF_USE_QT_IMAGE_DECODER=1' '-D'
'WTF_USE_TILED_BACKING_STORE=1' '-D' 'WTF_USE_LEGACY_VIEWPORT_ADAPTION=1' '-D'
'ENABLE_NETSCAPE_PLUGIN_API=1' '-D' 'PLUGIN_ARCHITECTURE_X11=1' '-D'
'PLUGIN_ARCHITECTURE_UNSUPPORTED=0' '-D' 'ENABLE_PLUGIN_PROCESS=1' '-D'
'HAVE_QSTYLE=1' '-D' 'ENABLE_WEBGL=1' '-D' 'ENABLE_GEOLOCATION=1' '-D'
'ENABLE_ORIENTATION_EVENTS=1' '-D' 'ENABLE_DEVICE_ORIENTATION=1' '-D'
'ENABLE_VIDEO=1' '-D' 'WTF_USE_GSTREAMER=1' '-D' 'ENABLE_FULLSCREEN_API=1' '-D'
'ENABLE_3D_RENDERING=1' '-D' 'ENABLE_ACCELERATED_2D_CANVAS=0' '-D'
'ENABLE_ANIMATION_API=0' '-D' 'ENABLE_BATTERY_STATUS=0' '-D' 'ENABLE_BLOB=1'
'-D' 'ENABLE_CHANNEL_MESSAGING=1' '-D' 'ENABLE_CSS_EXCLUSIONS=0' '-D'
'ENABLE_CSS_FILTERS=1' '-D' 'ENABLE_CSS_GRID_LAYOUT=0' '-D'
'ENABLE_CSS_REGIONS=0' '-D' 'ENABLE_CSS_SHADERS=0' '-D'
'ENABLE_CSS_VARIABLES=0' '-D' 'ENABLE_DASHBOARD_SUPPORT=0' '-D'
'ENABLE_DATAGRID=0' '-D' 'ENABLE_DATALIST=1' '-D'
'ENABLE_DATA_TRANSFER_ITEMS=0' '-D' 'ENABLE_DETAILS=1' '-D'
'ENABLE_DIRECTORY_UPLOAD=0' '-D' 'ENABLE_DOWNLOAD_ATTRIBUTE=0' '-D'
'ENABLE_FAST_MOBILE_SCROLLING=1' '-D' 'ENABLE_FILE_SYSTEM=0' '-D'
'ENABLE_FILTERS=1' '-D' 'ENABLE_FTPDIR=1' '-D' 'ENABLE_GAMEPAD=0' '-D'
'ENABLE_GESTURE_EVENTS=1' '-D' 'ENABLE_HIGH_DPI_CANVAS=0' '-D'
'ENABLE_ICONDATABASE=1' '-D' 'ENABLE_IFRAME_SEAMLESS=1' '-D'
'ENABLE_INDEXED_DATABASE=0' '-D' 'ENABLE_INPUT_SPEECH=0' '-D'
'ENABLE_INPUT_TYPE_COLOR=0' '-D' 'ENABLE_INPUT_TYPE_DATE=0' '-D'
'ENABLE_INPUT_TYPE_DATETIME=0' '-D' 'ENABLE_INPUT_TYPE_DATETIMELOCAL=0' '-D'
'ENABLE_INPUT_TYPE_MONTH=0' '-D' 'ENABLE_INPUT_TYPE_TIME=0' '-D'
'ENABLE_INPUT_TYPE_WEEK=0' '-D' 'ENABLE_INSPECTOR=1' '-D'
'ENABLE_INSPECTOR_SERVER=1' '-D' 'ENABLE_JAVASCRIPT_DEBUGGER=1' '-D'
'ENABLE_LEGACY_CSS_VENDOR_PREFIXES=0' '-D' 'ENABLE_LEGACY_NOTIFICATIONS=1' '-D'
'ENABLE_LEGACY_WEBKIT_BLOB_BUILDER=1' '-D' 'ENABLE_LINK_PREFETCH=0' '-D'
'ENABLE_LINK_PRERENDER=0' '-D' 'ENABLE_MATHML=0' '-D' 'ENABLE_MEDIA_SOURCE=0'
'-D' 'ENABLE_MEDIA_STATISTICS=0' '-D' 'ENABLE_MEDIA_STREAM=0' '-D'
'ENABLE_METER_TAG=1' '-D' 'ENABLE_MHTML=0' '-D' 'ENABLE_MICRODATA=0' '-D'
'ENABLE_MUTATION_OBSERVERS=0' '-D' 'ENABLE_NETWORK_INFO=0' '-D'
'ENABLE_NOTIFICATIONS=1' '-D' 'ENABLE_PAGE_VISIBILITY_API=1' '-D'
'ENABLE_PROGRESS_TAG=1' '-D' 'ENABLE_QUOTA=0' '-D'
'ENABLE_REGISTER_PROTOCOL_HANDLER=0' '-D' 'ENABLE_REQUEST_ANIMATION_FRAME=1'
'-D' 'ENABLE_SCRIPTED_SPEECH=0' '-D' 'ENABLE_SHADOW_DOM=0' '-D'
'ENABLE_SHARED_WORKERS=1' '-D' 'ENABLE_SQL_DATABASE=1' '-D'
'ENABLE_STYLE_SCOPED=0' '-D' 'ENABLE_SVG=1' '-D'
'ENABLE_SVG_DOM_OBJC_BINDINGS=0' '-D' 'ENABLE_SVG_FONTS=1' '-D'
'ENABLE_TEXT_NOTIFICATIONS_ONLY=0' '-D' 'ENABLE_TOUCH_ADJUSTMENT=1' '-D'
'ENABLE_TOUCH_EVENTS=1' '-D' 'ENABLE_TOUCH_ICON_LOADING=0' '-D'
'ENABLE_VIBRATION=0' '-D' 'ENABLE_VIDEO_TRACK=0' '-D' 'ENABLE_WEB_AUDIO=0' '-D'
'ENABLE_WEB_SOCKETS=1' '-D' 'ENABLE_WEB_TIMING=1' '-D' 'ENABLE_WORKERS=1' '-D'
'MOZ_X11' '-D' 'XP_UNIX' '-D' 'ENABLE_NETSCAPE_PLUGIN_METADATA_CACHE=1' '-D'
'ENABLE_GLIB_SUPPORT=1' '-D' 'WTF_USE_TEXTURE_MAPPER=1' '-D'
'WTF_USE_TEXTURE_MAPPER_GL=1' '-D' 'SQLITE_CORE' '-D'
'SQLITE_OMIT_LOAD_EXTENSION' '-D' 'SQLITE_OMIT_COMPLETE' '-D' 'NDEBUG' '-D'
'QT_MAKEDLL' '-D' 'WTF_USE_TEXTURE_MAPPER_GL' '-D' 'QT_OPENGL_SHIMS=1' '-D'
'BUILDING_QT__=1' '-D' 'BUILDING_WebCore' '-D' 'BUILDING_WEBKIT' '-D'
'QT_ASCII_CAST_WARNINGS' '-D' 'ENABLE_GLIB_SUPPORT=1' '-D' 'QT_NO_DEBUG' '-D'
'QT_SCRIPT_LIB' '-D' 'QT_SENSORS_LIB' '-D' 'QT_SQL_LIB' '-D' 'QT_NETWORK_LIB'
'-D' 'QT_GUI_LIB' '-D' 'QT_CORE_LIB' '-D' 'QT_SHARED' '-I'
'/src/qt5/qtbase/mkspecs/linux-g++-64' '-I' '/src/webkit/Source/WebCore' '-I'
'/src/qt5/qtbase/include/QtCore' '-I' '/src/qt5/qtbase/include/QtGui/5.0.0'
'-I' '/src/qt5/qtbase/include/QtGui/5.0.0/QtGui' '-I'
'/src/qt5/qtbase/include/QtGui' '-I' '/src/qt5/qtbase/include/QtNetwork' '-I'
'/src/qt5/qtbase/include/QtSql' '-I' '/src/qt5/qtsensors/include' '-I'
'/src/qt5/qtsensors/include/QtSensors' '-I' '/src/qt5/qtscript/include' '-I'
'/src/qt5/qtscript/include/QtScript' '-I' '/src/qt5/qtbase/include' '-I' '.'
'-I' '/src/webkit/Source/WebCore' '-I'
'/src/webkit/Source/WebCore/Modules/filesystem' '-I'
'/src/webkit/Source/WebCore/Modules/geolocation' '-I'
'/src/webkit/Source/WebCore/Modules/indexeddb' '-I'
'/src/webkit/Source/WebCore/Modules/webaudio' '-I'
'/src/webkit/Source/WebCore/Modules/webdatabase' '-I'
'/src/webkit/Source/WebCore/Modules/websockets' '-I'
'/src/webkit/Source/WebCore/accessibility' '-I'
'/src/webkit/Source/WebCore/bindings' '-I'
'/src/webkit/Source/WebCore/bindings/generic' '-I'
'/src/webkit/Source/WebCore/bridge' '-I' '/src/webkit/Source/WebCore/bridge/qt'
'-I' '/src/webkit/Source/WebCore/css' '-I' '/src/webkit/Source/WebCore/dom'
'-I' '/src/webkit/Source/WebCore/dom/default' '-I'
'/src/webkit/Source/WebCore/editing' '-I' '/src/webkit/Source/WebCore/fileapi'
'-I' '/src/webkit/Source/WebCore/history' '-I'
'/src/webkit/Source/WebCore/html' '-I' '/src/webkit/Source/WebCore/html/canvas'
'-I' '/src/webkit/Source/WebCore/html/parser' '-I'
'/src/webkit/Source/WebCore/html/shadow' '-I'
'/src/webkit/Source/WebCore/html/track' '-I'
'/src/webkit/Source/WebCore/inspector' '-I' '/src/webkit/Source/WebCore/loader'
'-I' '/src/webkit/Source/WebCore/loader/appcache' '-I'
'/src/webkit/Source/WebCore/loader/archive' '-I'
'/src/webkit/Source/WebCore/loader/cache' '-I'
'/src/webkit/Source/WebCore/loader/icon' '-I'
'/src/webkit/Source/WebCore/mathml' '-I'
'/src/webkit/Source/WebCore/notifications' '-I'
'/src/webkit/Source/WebCore/page' '-I'
'/src/webkit/Source/WebCore/page/animation' '-I'
'/src/webkit/Source/WebCore/page/qt' '-I'
'/src/webkit/Source/WebCore/page/scrolling' '-I'
'/src/webkit/Source/WebCore/platform' '-I'
'/src/webkit/Source/WebCore/platform/animation' '-I'
'/src/webkit/Source/WebCore/platform/audio' '-I'
'/src/webkit/Source/WebCore/platform/graphics' '-I'
'/src/webkit/Source/WebCore/platform/graphics/filters' '-I'
'/src/webkit/Source/WebCore/platform/graphics/filters/arm' '-I'
'/src/webkit/Source/WebCore/platform/graphics/opengl' '-I'
'/src/webkit/Source/WebCore/platform/graphics/qt' '-I'
'/src/webkit/Source/WebCore/platform/graphics/surfaces' '-I'
'/src/webkit/Source/WebCore/platform/graphics/texmap' '-I'
'/src/webkit/Source/WebCore/platform/graphics/transforms' '-I'
'/src/webkit/Source/WebCore/platform/image-decoders' '-I'
'/src/webkit/Source/WebCore/platform/leveldb' '-I'
'/src/webkit/Source/WebCore/platform/mock' '-I'
'/src/webkit/Source/WebCore/platform/network' '-I'
'/src/webkit/Source/WebCore/platform/network/qt' '-I'
'/src/webkit/Source/WebCore/platform/qt' '-I'
'/src/webkit/Source/WebCore/platform/sql' '-I'
'/src/webkit/Source/WebCore/platform/text' '-I'
'/src/webkit/Source/WebCore/platform/text/transcoder' '-I'
'/src/webkit/Source/WebCore/plugins' '-I'
'/src/webkit/Source/WebCore/rendering' '-I'
'/src/webkit/Source/WebCore/rendering/mathml' '-I'
'/src/webkit/Source/WebCore/rendering/style' '-I'
'/src/webkit/Source/WebCore/rendering/svg' '-I'
'/src/webkit/Source/WebCore/storage' '-I' '/src/webkit/Source/WebCore/svg' '-I'
'/src/webkit/Source/WebCore/svg/animation' '-I'
'/src/webkit/Source/WebCore/svg/graphics' '-I'
'/src/webkit/Source/WebCore/svg/graphics/filters' '-I'
'/src/webkit/Source/WebCore/svg/properties' '-I'
'/src/webkit/Source/WebCore/testing' '-I'
'/src/webkit/Source/WebCore/websockets' '-I'
'/src/webkit/Source/WebCore/workers' '-I' '/src/webkit/Source/WebCore/xml' '-I'
'/src/webkit/Source/WebCore/xml/parser' '-I' '/src/webkit/Source/ThirdParty'
'-I' '/src/webkit/Source/WebCore/bridge/jsc' '-I'
'/src/webkit/Source/WebCore/bindings/js' '-I'
'/src/webkit/Source/WebCore/bindings/js/specialization' '-I'
'/src/webkit/Source/WebCore/bridge/c' '-I'
'/src/webkit/Source/WebCore/testing/js' '-I' 'generated' '-I'
'/src/webkit/Source/WebCore/platform/graphics/gstreamer' '-I'
'/src/qt5/qtbase/src/3rdparty/sqlite' '-I'
'/src/webkit/Source/WebCore/platform/graphics/gpu' '-I'
'/src/webkit/Source/ThirdParty/ANGLE/src' '-I'
'/src/webkit/Source/ThirdParty/ANGLE/include' '-I' '/src/webkit/Source' '-I'
'../include' '-I' '/src/webkit/Source/JavaScriptCore' '-I' '/src/webkit/Source'
'-I' '/src/webkit/Source/WTF' '-I'
'/src/webkit/Source/JavaScriptCore/assembler' '-I'
'/src/webkit/Source/JavaScriptCore/bytecode' '-I'
'/src/webkit/Source/JavaScriptCore/bytecompiler' '-I'
'/src/webkit/Source/JavaScriptCore/heap' '-I'
'/src/webkit/Source/JavaScriptCore/dfg' '-I'
'/src/webkit/Source/JavaScriptCore/debugger' '-I'
'/src/webkit/Source/JavaScriptCore/interpreter' '-I'
'/src/webkit/Source/JavaScriptCore/jit' '-I'
'/src/webkit/Source/JavaScriptCore/llint' '-I'
'/src/webkit/Source/JavaScriptCore/parser' '-I'
'/src/webkit/Source/JavaScriptCore/profiler' '-I'
'/src/webkit/Source/JavaScriptCore/runtime' '-I'
'/src/webkit/Source/JavaScriptCore/tools' '-I'
'/src/webkit/Source/JavaScriptCore/yarr' '-I'
'/src/webkit/Source/JavaScriptCore/API' '-I'
'/src/webkit/Source/JavaScriptCore/ForwardingHeaders' '-I'
'../JavaScriptCore/generated' '-I' '/src/webkit/Source' '-I'
'/src/webkit/Source/WTF' '-I' '/src/webkit/Source/WTF/gobject' '-I'
'/src/webkit/Source/WTF/qt' '-I' '/src/webkit/Source/WTF/unicode' '-I'
'/src/webkit/Source/WTF/wtf' '-I' '/usr/include/libxml2' '-I'
'/usr/include/glib-2.0' '-I' '/usr/lib/x86_64-linux-gnu/glib-2.0/include' '-I'
'/usr/include/gstreamer-0.10' '-I' '/src/webkit/Source/WebCore' '-I' '.' '-v'
'-save-temps' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus -fpreprocessed FontFastPath.ii
-quiet -dumpbase FontFastPath.cpp -m64 -mtune=generic -march=x86-64 -auxbase
FontFastPath -O2 -Wall -Wextra -Wchar-subscripts -Wformat-security
-Wreturn-type -Wno-unused-parameter -Wno-sign-compare -Wno-switch
-Wno-switch-enum -Wundef -Wmissing-noreturn -Winit-self -Werror
-Wno-c++0x-compat -version -fno-strict-aliasing -ffunction-sections
-fdata-sections -fPIC -fprofile-generate=/tmp/profile-webkit -o FontFastPath.s
GNU C++ (Debian 4.7.0-9) version 4.7.0 (x86_64-linux-gnu)
        compiled by GNU C version 4.7.0, GMP version 5.0.5, MPFR version
3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (Debian 4.7.0-9) version 4.7.0 (x86_64-linux-gnu)
        compiled by GNU C version 4.7.0, GMP version 5.0.5, MPFR version
3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: e505a4b2d5ca5845d4cc48158623de1e
/src/webkit/Source/WebCore/platform/graphics/FontFastPath.cpp: In function
‘float WebCore::offsetToMiddleOfGlyph(const WebCore::SimpleFontData*,
WebCore::Glyph)’:
/src/webkit/Source/WebCore/platform/graphics/FontFastPath.cpp:545:1: internal
compiler error: in calc_dfs_tree, at dominance.c:395
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/cckd4qyM.out file, please attach this to
your bugreport.


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

* [Bug middle-end/53460] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
  2012-05-23 15:37 ` [Bug middle-end/53460] " linux at carewolf dot com
  2012-05-23 16:49 ` linux at carewolf dot com
@ 2012-05-24  7:42 ` rguenth at gcc dot gnu.org
  2012-05-24  9:29 ` rguenth at gcc dot gnu.org
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24  7:42 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-24
     Ever Confirmed|0                           |1
              Build|                            |x86_64-*-*

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 07:40:34 UTC ---
Confirmed, reducing.


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

* [Bug middle-end/53460] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (2 preceding siblings ...)
  2012-05-24  7:42 ` rguenth at gcc dot gnu.org
@ 2012-05-24  9:29 ` rguenth at gcc dot gnu.org
  2012-05-24  9:31 ` [Bug middle-end/53460] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 09:28:07 UTC ---
Created attachment 27486
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27486
autoreduced testcase


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (3 preceding siblings ...)
  2012-05-24  9:29 ` rguenth at gcc dot gnu.org
@ 2012-05-24  9:31 ` rguenth at gcc dot gnu.org
  2012-05-24  9:47 ` rguenth at gcc dot gnu.org
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24  9:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |4.6.3
   Target Milestone|---                         |4.7.1
            Summary|Internal compiler error: in |[4.7/4.8 Regression]
                   |calc_dfs_tree, at           |Internal compiler error: in
                   |dominance.c:395             |calc_dfs_tree, at
                   |                            |dominance.c:395
      Known to fail|                            |4.7.0

--- Comment #5 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 09:29:25 UTC ---
The reduced testcase works with 4.6.  -O -fprofile-generate.


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (4 preceding siblings ...)
  2012-05-24  9:31 ` [Bug middle-end/53460] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
@ 2012-05-24  9:47 ` rguenth at gcc dot gnu.org
  2012-05-24 11:01 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 09:43:13 UTC ---
More reduced:

template<typename T> class OwnPtr {
public:
    ~OwnPtr();
};
template<class T> class GlyphMetricsMap {
public:
    GlyphMetricsMap() { }
    OwnPtr<int> m_pages;
};
class SimpleFontData {
public:
    void boundsForGlyph() const;
};
inline __attribute__((__always_inline__))
void SimpleFontData::boundsForGlyph() const
{
  new GlyphMetricsMap<int>;
}
void offsetToMiddleOfGlyph(const SimpleFontData* fontData)
{
  fontData->boundsForGlyph();
}


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (5 preceding siblings ...)
  2012-05-24  9:47 ` rguenth at gcc dot gnu.org
@ 2012-05-24 11:01 ` rguenth at gcc dot gnu.org
  2012-05-24 11:27 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 11:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 10:50:42 UTC ---
We have an unreachable block:

  # BLOCK 4
  # PRED:
<L0>:
  operator delete (D.2260_4);
  # SUCC: 5 [100.0%]  (fallthru)

after profiling.  Somehow we transform

void offsetToMiddleOfGlyph(const SimpleFontData*) (const struct SimpleFontData
* fontData)
{
  void * D.2260;

  # BLOCK 2 freq:10000
  # PRED: ENTRY [100.0%]  (fallthru,exec)
  D.2260_4 = operator new (1);
  GlyphMetricsMap<int>::GlyphMetricsMap (D.2260_4);
  goto <bb 4>;
  # SUCC: 4 [100.0%]  (fallthru,exec) 3 (eh,exec)

  # BLOCK 3
  # PRED: 2 (eh,exec)
<L0>:
  operator delete (D.2260_4);
  resx 1
  # SUCC:

to

void offsetToMiddleOfGlyph(const SimpleFontData*) (const struct SimpleFontData
* fontData)
{
  void * __gcov_indirect_call_callee.8;
  long int * __gcov_indirect_call_counters.7;
  long int PROF_edge_counter.6;
  void * D.2260;

  # BLOCK 2 freq:10000
  # PRED: ENTRY [100.0%]  (fallthru,exec)
  __gcov_indirect_call_counters.7_15 = __gcov_indirect_call_counters;
  __gcov_indirect_call_callee.8_16 = __gcov_indirect_call_callee;
  __gcov_indirect_call_profiler (__gcov_indirect_call_counters.7_15, 2,
offsetToMiddleOfGlyph, __gcov_indirect_call_callee.8_16);
  __gcov_indirect_call_callee = 0B;
  PROF_edge_counter.6_6 =
__gcov0._Z21offsetToMiddleOfGlyphPK14SimpleFontData[0];
  PROF_edge_counter.6_8 = PROF_edge_counter.6_6 + 1;
  __gcov0._Z21offsetToMiddleOfGlyphPK14SimpleFontData[0] =
PROF_edge_counter.6_8;
  D.2260_4 = operator new (1);
  # SUCC: 3 [100.0%]  (fallthru)

  # BLOCK 3 freq:10000
  # PRED: 2 [100.0%]  (fallthru)
  PROF_edge_counter.6_9 =
__gcov0._Z21offsetToMiddleOfGlyphPK14SimpleFontData[1];
  PROF_edge_counter.6_10 = PROF_edge_counter.6_9 + 1;
  __gcov0._Z21offsetToMiddleOfGlyphPK14SimpleFontData[1] =
PROF_edge_counter.6_10;
  GlyphMetricsMap<int>::GlyphMetricsMap (D.2260_4);
  goto <bb 6>;
  # SUCC: 6 [100.0%]  (fallthru,exec)

  # BLOCK 4
  # PRED:
<L0>:
  operator delete (D.2260_4);
  # SUCC: 5 [100.0%]  (fallthru)



branch_prob () splits the block this way, invalidating EH edges.


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (6 preceding siblings ...)
  2012-05-24 11:01 ` rguenth at gcc dot gnu.org
@ 2012-05-24 11:27 ` rguenth at gcc dot gnu.org
  2012-05-24 12:50 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 11:27 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |rguenth at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #8 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 11:00:53 UTC ---
Mine.


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (7 preceding siblings ...)
  2012-05-24 11:27 ` rguenth at gcc dot gnu.org
@ 2012-05-24 12:50 ` rguenth at gcc dot gnu.org
  2012-05-24 12:50 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 12:50:21 UTC ---
Author: rguenth
Date: Thu May 24 12:50:15 2012
New Revision: 187832

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187832
Log:
2012-05-24  Richard Guenther  <rguenther@suse.de>

    PR middle-end/53460
    * tree-profile.c (tree_profiling): Cleanup the CFG if
    execute_fixup_cfg requests it.

    * g++.dg/tree-prof/pr53460.C: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/tree-prof/pr53460.C
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-profile.c


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (8 preceding siblings ...)
  2012-05-24 12:50 ` rguenth at gcc dot gnu.org
@ 2012-05-24 12:50 ` rguenth at gcc dot gnu.org
  2012-05-24 12:51 ` rguenth at gcc dot gnu.org
  2012-05-24 13:06 ` rguenth at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 12:46:57 UTC ---
Author: rguenth
Date: Thu May 24 12:46:53 2012
New Revision: 187831

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187831
Log:
2012-05-24  Richard Guenther  <rguenther@suse.de>

    PR middle-end/53460
    * tree-profile.c (tree_profiling): Cleanup the CFG if
    execute_fixup_cfg requests it.

    * g++.dg/tree-prof/pr53460.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/tree-prof/pr53460.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-profile.c


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (9 preceding siblings ...)
  2012-05-24 12:50 ` rguenth at gcc dot gnu.org
@ 2012-05-24 12:51 ` rguenth at gcc dot gnu.org
  2012-05-24 13:06 ` rguenth at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 12:51 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #10 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 12:50:21 UTC ---
Author: rguenth
Date: Thu May 24 12:50:15 2012
New Revision: 187832

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187832
Log:
2012-05-24  Richard Guenther  <rguenther@suse.de>

    PR middle-end/53460
    * tree-profile.c (tree_profiling): Cleanup the CFG if
    execute_fixup_cfg requests it.

    * g++.dg/tree-prof/pr53460.C: New testcase.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/tree-prof/pr53460.C
Modified:
    branches/gcc-4_7-branch/gcc/ChangeLog
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_7-branch/gcc/tree-profile.c

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 12:50:30 UTC ---
Fixed.


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

* [Bug middle-end/53460] [4.7/4.8 Regression] Internal compiler error: in calc_dfs_tree, at dominance.c:395
  2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
                   ` (10 preceding siblings ...)
  2012-05-24 12:51 ` rguenth at gcc dot gnu.org
@ 2012-05-24 13:06 ` rguenth at gcc dot gnu.org
  11 siblings, 0 replies; 13+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-24 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-05-24 12:50:30 UTC ---
Fixed.


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

end of thread, other threads:[~2012-05-24 12:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 15:34 [Bug middle-end/53460] New: Internal compiler error: in calc_dfs_tree, at dominance.c:395 linux at carewolf dot com
2012-05-23 15:37 ` [Bug middle-end/53460] " linux at carewolf dot com
2012-05-23 16:49 ` linux at carewolf dot com
2012-05-24  7:42 ` rguenth at gcc dot gnu.org
2012-05-24  9:29 ` rguenth at gcc dot gnu.org
2012-05-24  9:31 ` [Bug middle-end/53460] [4.7/4.8 Regression] " rguenth at gcc dot gnu.org
2012-05-24  9:47 ` rguenth at gcc dot gnu.org
2012-05-24 11:01 ` rguenth at gcc dot gnu.org
2012-05-24 11:27 ` rguenth at gcc dot gnu.org
2012-05-24 12:50 ` rguenth at gcc dot gnu.org
2012-05-24 12:50 ` rguenth at gcc dot gnu.org
2012-05-24 12:51 ` rguenth at gcc dot gnu.org
2012-05-24 13:06 ` rguenth 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).