[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects

2015-12-17 Thread basil at list dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948

--- Comment #5 from Vasily Sukhanov  ---
There is an error in the line:
this->delegate_.store()->RemoveLoginsByOriginAndTime(
origin, base::Time::Time(), base::Time::Max(), base::Closure());

should be

this->delegate_.store()->RemoveLoginsByOriginAndTime(
origin, base::Time(), base::Time::Max(), base::Closure());

Then everything works. For some reason in the template context GCC doesn't
produce an error. If I move it to a standalone function then I get a
compilation error.

[Bug c++/68948] New: G++ voluntarily removes a function call with terrible side effects

2015-12-16 Thread basil at list dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948

Bug ID: 68948
   Summary: G++ voluntarily removes a function call with terrible
side effects
   Product: gcc
   Version: 4.9.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: basil at list dot ru
  Target Milestone: ---

This was reproduced in Chromium on Android in
https://codereview.chromium.org/1480153002/#ps980001. A test calls
RemoveLoginsByOriginAndTime(). The call with all the arguments
construction/destruction is absent from the assembly code. Clang builds it
correctly.

Grep for the line in the code 'base_store->RemoveLoginsByOriginAndTime'. The
call is removed by GCC.

$
/media/SSD/clank/src/third_party/android_tools/ndk//toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-g++
-v -save-temps -MMD -MF
obj/components/password_manager/core/browser/components_unittests.password_store_default_unittest.o.d
-DV8_DEPRECATION_WARNINGS -DCLD_VERSION=2 -D_FILE_OFFSET_BITS=64 -DNO_TCMALLOC
-DDISABLE_NACL -DCHROMIUM_BUILD -DCR_CLANG_REVISION=255169-1 -DCOMPONENT_BUILD
-DUSE_LIBJPEG_TURBO=1 -DENABLE_WEBRTC=1 -DENABLE_MEDIA_ROUTER=1
-DUSE_PROPRIETARY_CODECS -DENABLE_BROWSER_CDMS -DENABLE_CONFIGURATION_POLICY
-DENABLE_NOTIFICATIONS -DDONT_EMBED_BUILD_METADATA -DFIELDTRIAL_TESTING_ENABLED
-DENABLE_AUTOFILL_DIALOG=1 -DENABLE_PRINTING=1 -DENABLE_BASIC_PRINTING=1
-DENABLE_SPELLCHECK=1 -DUSE_BROWSER_SPELLCHECKER=1 -DENABLE_SUPERVISED_USERS=1
-DVIDEO_HOLE=1 -DV8_USE_EXTERNAL_STARTUP_DATA -DENABLE_WEBVR
-DSAFE_BROWSING_DB_REMOTE -DGTEST_HAS_POSIX_RE=0 -DGTEST_LANG_CXX11=0
-DMOJO_USE_SYSTEM_IMPL -DUNIT_TEST -DGTEST_HAS_RTTI=0 -DGTEST_HAS_CLONE=0
-DGTEST_USE_OWN_TR1_TUPLE=1 -DGTEST_HAS_TR1_TUPLE=1 -DU_USING_ICU_NAMESPACE=0
-DU_ENABLE_DYLOAD=0 -DI18N_ADDRESSINPUT_USE_BASICTYPES_OVERRIDE=1
-DFEATURE_ENABLE_SSL -DFEATURE_ENABLE_VOICEMAIL -DEXPAT_RELATIVE_PATH
-DGTEST_RELATIVE_PATH -DNO_MAIN_THREAD_WRAPPING -DNO_SOUND_SYSTEM -DANDROID
-DWEBRTC_POSIX -DXML_STATIC -DI18N_PHONENUMBERS_USE_ICU_REGEXP=1
-DLIBXML_STATIC -DPROTOBUF_USE_DLLS -DGOOGLE_PROTOBUF_NO_RTTI
-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER
'-DPRECACHE_CONFIG_SETTINGS_URL="https://www.gstatic.com/chrome/wifiprefetch/precache_config;'
'-DPRECACHE_MANIFEST_URL_PREFIX="https://www.gstatic.com/chrome/wifiprefetch/hosts/;'
-DAPPCACHE_USE_SIMPLE_CACHE -DV8_SHARED -DUSING_V8_SHARED
-DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DCHROME_PNG_READ_PACK_SUPPORT
-DSKIA_DLL -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_SUPPORT_GPU=1
-DSK_IGNORE_LINEONLY_AA_CONVEX_PATH_OPTS -DSK_BUILD_FOR_ANDROID -DOPENSSL_SMALL
-DBORINGSSL_SHARED_LIBRARY -DUSE_LIBPCI=1 -DUSE_OPENSSL=1 -DUSE_OPENSSL_CERTS=1
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__GNU_SOURCE=1
'-DCHROME_BUILD_ID=""' -DHAVE_SYS_UIO_H -DDYNAMIC_ANNOTATIONS_ENABLED=1
-DWTF_USE_DYNAMIC_ANNOTATIONS=1 -D_DEBUG -Igen -I../.. -I../../skia/config
-I../../third_party/khronos -I../../gpu -Igen/angle
-I../../third_party/WebKit/Source -Igen/protoc_out
-I../../testing/gmock/include -I../../testing/gtest/include
-I../../third_party/icu/source/i18n
-I../../third_party/leveldatabase/src/include
-I../../third_party/leveldatabase/src -I../../third_party/leveldatabase
-I../../third_party/libaddressinput/chromium/override
-I../../third_party/libaddressinput/src/cpp/include
-Igen/third_party/libaddressinput/ -I../../third_party/webrtc_overrides
-I../../third_party/libjingle/overrides -I../../third_party/libjingle/source
-I../../third_party -I../../third_party/expat/files/lib
-Igen/protoc_out/third_party/libphonenumber
-I../../third_party/libphonenumber/src -I../../third_party/libxml/linux/include
-I../../third_party/libxml/src/include -I../../third_party/icu/source/common
-I../../third_party/protobuf -I../../third_party/protobuf/src
-I../../third_party/re2 -Igen/ui/resources
-I../../third_party/dom_distiller_js/dist/proto_gen
-I../../third_party/cacheinvalidation/overrides
-I../../third_party/cacheinvalidation/src
-I../../third_party/cacheinvalidation/google/cacheinvalidation -Igen/components
-Igen/components/strings -I../../third_party/WebKit -I../../third_party/WebKit
-I../../third_party/npapi -I../../third_party/npapi/bindings -I../../v8/include
-I../../third_party/libpng -I../../third_party/zlib -I../../third_party/libwebp
-I../../third_party/ots/include -I../../third_party/qcms/src
-I../../third_party/iccjpeg -I../../third_party/libjpeg_turbo -I../../skia/ext
-I../../third_party/skia/include/core -I../../third_party/skia/include/effects
-I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu
-I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops
-I../../third_party/skia/include/pipe -I../../third_party/skia/include/ports
-I../../third_party/skia/include/utils -I../../breakpad/src
-I../../third_party/android_tools/ndk/sources/android/cpufeatu

[Bug c++/68948] G++ voluntarily removes a function call with terrible side effects

2015-12-16 Thread basil at list dot ru
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68948

--- Comment #1 from Vasily Sukhanov  ---
Created attachment 37051
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37051=edit
compressed preprocessed file

I had to compress the file to fit into 1M.

[Bug c++/56449] New: operator- in a template class can lead to infinite template instantiation

2013-02-25 Thread basil at list dot ru


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



 Bug #: 56449

   Summary: operator- in a template class can lead to infinite

template instantiation

Classification: Unclassified

   Product: gcc

   Version: 4.6.3

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: c++

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: ba...@list.ru





Code example:



templateclass T struct Loop { LoopT* operator-(); };

Loopint i, j = i-something;



The compiler doesn't diagnose infinite Loop instantiation. Even CLI option

ftemplate-depth=n doesn't help.


[Bug c++/49976] Cross (Linux-AIX) GCC crashes with Segmentation fault

2012-03-07 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49976

Vasily Sukhanov basil at list dot ru changed:

   What|Removed |Added

  Attachment #24915|0   |1
is obsolete||

--- Comment #5 from Vasily Sukhanov basil at list dot ru 2012-03-07 08:28:03 
UTC ---
Created attachment 26849
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26849
new preprocessed file


[Bug c++/49976] Cross (Linux-AIX) GCC crashes with Segmentation fault

2012-03-07 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49976

Vasily Sukhanov basil at list dot ru changed:

   What|Removed |Added

 Target|powerpc-ibm-aix5.2.0.0  |powerpc-ibm-aix5.3.0.0
Version|4.6.1   |4.6.3

--- Comment #6 from Vasily Sukhanov basil at list dot ru 2012-03-07 08:34:38 
UTC ---
Bug is still in 4.6 branch:

* Command line **
/emc/sukhav/cross/aix53/gcc463/bin/powerpc-ibm-aix5.3.0.0-g++ -pthread -W -Wall
-DACE_AIX_VERS=503 -maix32 -O2 -g -O2 -DACE_HAS_CUSTOM_EXPORT_MACROS=0
-I/emc/sukhav/cross/aix53/gcc463/ACE580/ACE_wrappers -DACE_HAS_EXCEPTIONS
-D__ACE_INLINE__ -I.. -DACE_BUILD_DLL -c -o .shobj/Log_Msg.o Log_Msg.cpp
-save-temps -v
Using built-in specs.
COLLECT_GCC=/emc/sukhav/cross/aix53/gcc463/bin/powerpc-ibm-aix5.3.0.0-g++
COLLECT_LTO_WRAPPER=/home/sukhav/cross/aix53/gcc463/bin/../libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/lto-wrapper
Target: powerpc-ibm-aix5.3.0.0
Configured with: /emc/sukhav/cross/gcc-4.6.3/configure
--prefix=/emc/sukhav/cross/aix53/gcc463
--with-sysroot=/emc/sukhav/cross/aix53/sysroot --target=powerpc-ibm-aix5.3.0.0
--with-gnu-ld --with-gnu-as --enable-languages=c,c++
Thread model: aix
gcc version 4.6.3 (GCC)
COLLECT_GCC_OPTIONS='-pthread' '-Wextra' '-Wall' '-D' 'ACE_AIX_VERS=503'
'-maix32' '-O2' '-g' '-O2' '-D' 'ACE_HAS_CUSTOM_EXPORT_MACROS=0' '-I'
'/emc/sukhav/cross/aix53/gcc463/ACE580/ACE_wrappers' '-D' 'ACE_HAS_EXCEPTIONS'
'-D' '__ACE_INLINE__' '-I' '..' '-D' 'ACE_BUILD_DLL' '-c' '-o'
'.shobj/Log_Msg.o' '-save-temps' '-v' '-shared-libgcc'

/home/sukhav/cross/aix53/gcc463/bin/../libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/cc1plus
-E -quiet -v -I /emc/sukhav/cross/aix53/gcc463/ACE580/ACE_wrappers -I ..
-imultilib pthread -iprefix
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/
-D_ALL_SOURCE -D_THREAD_SAFE -D ACE_AIX_VERS=503 -D
ACE_HAS_CUSTOM_EXPORT_MACROS=0 -D ACE_HAS_EXCEPTIONS -D __ACE_INLINE__ -D
ACE_BUILD_DLL Log_Msg.cpp -maix32 -Wextra -Wall -g -fworking-directory -O2 -O2
-fpch-preprocess -o Log_Msg.ii
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3/powerpc-ibm-aix5.3.0.0/pthread
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3/backward
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/include
ignoring nonexistent directory
/emc/sukhav/cross/aix53/sysroot/usr/local/include
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/include-fixed
ignoring duplicate directory
/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include
ignoring duplicate directory ..
#include ... search starts here:
#include ... search starts here:
 /emc/sukhav/cross/aix53/gcc463/ACE580/ACE_wrappers

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3/powerpc-ibm-aix5.3.0.0/pthread

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include/c++/4.6.3/backward

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/include

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/include-fixed

/home/sukhav/cross/aix53/gcc463/bin/../lib/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/../../../../powerpc-ibm-aix5.3.0.0/include
 /emc/sukhav/cross/aix53/sysroot/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-pthread' '-Wextra' '-Wall' '-D' 'ACE_AIX_VERS=503'
'-maix32' '-O2' '-g' '-O2' '-D' 'ACE_HAS_CUSTOM_EXPORT_MACROS=0' '-I'
'/emc/sukhav/cross/aix53/gcc463/ACE580/ACE_wrappers' '-D' 'ACE_HAS_EXCEPTIONS'
'-D' '__ACE_INLINE__' '-I' '..' '-D' 'ACE_BUILD_DLL' '-c' '-o'
'.shobj/Log_Msg.o' '-save-temps' '-v' '-shared-libgcc'

/home/sukhav/cross/aix53/gcc463/bin/../libexec/gcc/powerpc-ibm-aix5.3.0.0/4.6.3/cc1plus
-fpreprocessed Log_Msg.ii -quiet -dumpbase Log_Msg.cpp -maix32 -auxbase-strip
.shobj/Log_Msg.o -g -O2 -O2 -Wextra -Wall -version -o Log_Msg.s
GNU C++ (GCC) version 4.6.3 (powerpc-ibm-aix5.3.0.0)
compiled by GNU C version 4.3.2, GMP version 5.0.2, MPFR version 3.0.1,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.6.3 (powerpc

[Bug c++/51951] New: Template function dependent name resolution fails

2012-01-22 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51951

 Bug #: 51951
   Summary: Template function dependent name resolution fails
Classification: Unclassified
   Product: gcc
   Version: 4.7.0
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ba...@list.ru


Created attachment 26417
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26417
test


[Bug c++/51951] Template function dependent name resolution fails

2012-01-22 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51951

--- Comment #2 from Vasily Sukhanov basil at list dot ru 2012-01-22 20:39:41 
UTC ---
Compilation of attached code fails despite it is accepted by previous GCC
versions.

  1 template class T
  2 class Option {
  3 public:
  4   bool m_bValid;
  5   T m_t;
  6 };
  7 
  8 templateclass T
  9 void readSingle(OptionT opt) {
 10 readFromStream(opt.m_bValid);
 11 }
 12 
 13 template class T
 14 void readFromStream(T t) {  }
 15 
 16 int main()
 17 {
 18   Optionint o;
 19   readSingle(o);
 20 }


template_test.cpp: In instantiation of ‘void readSingle(OptionT) [with T =
int]’:
template_test.cpp:19:15:   required from here
template_test.cpp:10:5: error: ‘readFromStream’ was not declared in this scope,
and no declarations were found by argument-dependent lookup at the point of
instantiation [-fpermissive]
template_test.cpp:14:6: note: ‘templateclass T void readFromStream(T)’
declared here, later in the translation unit

I think that instantiation point of readSingleint is line 19. readFromStream
in line 10 is dependent on template parameter. Therefore compiler should
perform lookup in context of template instantiation (14.6.4.2). readFromStream
was defined by this point.  
I'm on revision 183301.


[Bug bootstrap/49986] Compilation of cross GCC (Linux - AIX) fails

2011-11-30 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49986

Vasily Sukhanov basil at list dot ru changed:

   What|Removed |Added

  Component|libgomp |bootstrap

--- Comment #1 from Vasily Sukhanov basil at list dot ru 2011-11-30 18:19:15 
UTC ---
This is error in bootstrap. If I disable libgomp, even elementary program can't
link with libstdc++. Perhaps it contains empty export.
If I configure with --disable-shared, bootstrap passes successfully.


[Bug c++/51221] New: Cross GCC for AIX fails during bootstrap process

2011-11-19 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51221

 Bug #: 51221
   Summary: Cross GCC for AIX fails during bootstrap process
Classification: Unclassified
   Product: gcc
   Version: 4.6.2
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ba...@list.ru
  Host: x86_64-linux-gnu
Target: powerpc-ibm-aix5.2.0.0


Created attachment 25860
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=25860
preprocessed file

GCC was configured with
/emc/sukhav/cross/gcc-4.6.2//configure --prefix=/emc/sukhav/cross/aix/gcc462
--with-sysroot=/emc/sukhav/cross/aix/sysroot --target=powerpc-ibm-aix5.2.0.0
--with-gnu-as --with-gnu-ld --enable-languages=c,c++

Bootstrap failes with
/emc/sukhav/cross/aix/gcc462/temp/./gcc/xgcc
-B/emc/sukhav/cross/aix/gcc462/temp/./gcc/
-B/emc/sukhav/cross/aix/gcc462/powerpc-ibm-aix5.2.0.0/bin/
-B/emc/sukhav/cross/aix/gcc462/powerpc-ibm-aix5.2.0.0/lib/ -isystem
/emc/sukhav/cross/aix/gcc462/powerpc-ibm-aix5.2.0.0/include -isystem
/emc/sukhav/cross/aix/gcc462/powerpc-ibm-aix5.2.0.0/sys-include-g -O2
-pthread -O2  -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE  -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wold-style-definition  -isystem ./include  -mlong-double-128 -g
-DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -fno-stack-protector 
 -I. -I. -I../../.././gcc -I/emc/sukhav/cross/gcc-4.6.2/libgcc
-I/emc/sukhav/cross/gcc-4.6.2/libgcc/.
-I/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc
-I/emc/sukhav/cross/gcc-4.6.2/libgcc/../include  -DHAVE_CC_TLS -DUSE_EMUTLS -o
unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF unwind-dw2.dep -fexceptions -c
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind-dw2.c
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind-dw2.c: In function
âuw_init_context_1â:
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind-dw2.c:1461:5: warning: missing
braces around initializer [-Wmissing-braces]
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind-dw2.c:1461:5: warning: (near
initialization for âonce_regsizes.__on_wordâ) [-Wmissing-braces]
In file included from
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind-dw2.c:1582:0:
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind.inc: In function
â_Unwind_ForcedUnwind_Phase2â:
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind.inc:189:1: error:
unrecognizable insn:
(insn 34 33 35 8 (set (mem/v:DI (plus:DI (reg/f:SI 1 1)
(const_int 20 [0x14])) [0 S8 A8])
(reg:SI 2 2)) /emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind.inc:163
-1
 (nil))
/emc/sukhav/cross/gcc-4.6.2/libgcc/../gcc/unwind.inc:189:1: internal compiler
error: in extract_insn, at recog.c:2109
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html for instructions.

Preprocessed file attached.


[Bug libgomp/49986] New: Compilation of cross GCC (Linux - AIX) fails

2011-08-05 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49986

   Summary: Compilation of cross GCC (Linux - AIX) fails
   Product: gcc
   Version: 4.5.3
Status: UNCONFIRMED
  Severity: critical
  Priority: P3
 Component: libgomp
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ba...@list.ru


Created attachment 24920
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24920
libgomp config log

I tried to build GCC 4.5.3 on linux x86-64 with target powerpc-ibm-aix5.2.0.0.
Compilation of libgomp failed 

* Output 
libtool: link: /emc/sukhav/cross/aix/temp453/./gcc/xgcc
-B/emc/sukhav/cross/aix/temp453/./gcc/
-B/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/bin/
-B/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/lib/ -isystem
/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/include -isystem
/emc/sukhav/cross/aix/powerpc-ibm-aix5.2.0.0/sys-include-shared -o
.libs/libgomp.so.1  .libs/alloc.o .libs/barrier.o .libs/critical.o .libs/env.o
.libs/error.o .libs/iter.o .libs/iter_ull.o .libs/loop.o .libs/loop_ull.o
.libs/ordered.o .libs/parallel.o .libs/sections.o .libs/single.o .libs/task.o
.libs/team.o .libs/work.o .libs/lock.o .libs/mutex.o .libs/proc.o .libs/sem.o
.libs/bar.o .libs/ptrlock.o .libs/time.o .libs/fortran.o .libs/affinity.o   -lc
-Wl,-bnoentry  -pthread -Wl,-O1 -Wl,--version-script
-Wl,../../../../gcc-4.5.3/libgomp/libgomp.map   -Wl,-bE:.libs/libgomp.exp
-Wl,-bernotok
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x4d8): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x588): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x640): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x6c8): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x770): undefined
reference to `.__emutls_get_address'
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0x800): more undefined
references to `.__emutls_get_address' follow
.libs/env.o:../../../../gcc-4.5.3/libgomp/env.c:(.pr+0xf38): undefined
reference to `.__udivdi3'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0xac): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0xc8): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x16c): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1a0): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1d0): undefined
reference to `.__emutls_get_address'
.libs/task.o:../../../../gcc-4.5.3/libgomp/task.c:(.pr+0x1f0): more undefined
references to `.__emutls_get_address' follow
collect2: ld returned 1 exit status
* end of output 

Gcc was configured with:

../../gcc-4.5.3/configure --with-gnu-ld --with-gnu-as
--target=powerpc-ibm-aix5.2.0.0 --prefix=/emc/sukhav/cross/aix
--with-sysroot=/emc/sukhav/cross/aix/sysroot --enable-languages=c,c++


The same error occurs if I build for AIX 5.3.


[Bug c++/49976] New: Cross (Linux-AIX) GCC crashes with Segmentation fault

2011-08-04 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49976

   Summary: Cross (Linux-AIX) GCC crashes with Segmentation fault
   Product: gcc
   Version: 4.6.1
Status: UNCONFIRMED
  Severity: major
  Priority: P3
 Component: c++
AssignedTo: unassig...@gcc.gnu.org
ReportedBy: ba...@list.ru


I am using GCC 4.6.1 on Linux x86_64 to build images for AIX 5.2. It crashes on
specific file from ACE 5.6.8 library. 

 Command line *
/emc/sukhav/cross/aix/bin/powerpc-ibm-aix5.2.0.0-g++ -pthread -W -Wall
-DACE_AIX_VERS=502 -maix32 -O2 -g -O2 -DACE_HAS_CUSTOM_EXPORT_MACROS=0
-I/emc/sukhav/cross/aix/ACE_wrappers -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I..
-DACE_BUILD_DLL -c -o Log_Msg.o -save-temps -v Log_Msg.cpp

 Output ***
Using built-in specs.
COLLECT_GCC=/emc/sukhav/cross/aix/bin/powerpc-ibm-aix5.2.0.0-g++
COLLECT_LTO_WRAPPER=/home/sukhav/cross/aix/bin/../libexec/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/lto-wrapper
Target: powerpc-ibm-aix5.2.0.0
Configured with: ../../gcc-4.6.1/configure --prefix=/emc/sukhav/cross/aix
--with-sysroot=/emc/sukhav/cross/aix/sysroot --target=powerpc-ibm-aix5.2.0.0
--with-gnu-ld --with-gnu-as --enable-languages=c,c++
Thread model: aix
gcc version 4.6.1 (GCC)
COLLECT_GCC_OPTIONS='-pthread' '-Wextra' '-Wall' '-D' 'ACE_AIX_VERS=502'
'-maix32' '-O2' '-g' '-O2' '-D' 'ACE_HAS_CUSTOM_EXPORT_MACROS=0' '-I'
'/emc/sukhav/cross/aix/ACE_wrappers' '-D' 'ACE_HAS_EXCEPTIONS' '-D'
'__ACE_INLINE__' '-I' '..' '-D' 'ACE_BUILD_DLL' '-c' '-o' 'Log_Msg.o'
'-save-temps' '-v' '-shared-libgcc'
 /home/sukhav/cross/aix/bin/../libexec/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/cc1plus
-E -quiet -v -I /emc/sukhav/cross/aix/ACE_wrappers -I .. -imultilib pthread
-iprefix /home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/
-isysroot /home/sukhav/cross/aix/bin/../sysroot -D_ALL_SOURCE -D_THREAD_SAFE -D
ACE_AIX_VERS=502 -D ACE_HAS_CUSTOM_EXPORT_MACROS=0 -D ACE_HAS_EXCEPTIONS -D
__ACE_INLINE__ -D ACE_BUILD_DLL Log_Msg.cpp -maix32 -Wextra -Wall -g
-fworking-directory -O2 -O2 -fpch-preprocess -o Log_Msg.ii
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1/powerpc-ibm-aix5.2.0.0/pthread
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1/backward
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/include
ignoring nonexistent directory
/home/sukhav/cross/aix/bin/../sysroot/usr/local/include
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/include-fixed
ignoring duplicate directory
/home/sukhav/cross/aix/bin/../lib/gcc/../../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include
ignoring duplicate directory ..
#include ... search starts here:
#include ... search starts here:
 /emc/sukhav/cross/aix/ACE_wrappers

/home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1

/home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1/powerpc-ibm-aix5.2.0.0/pthread

/home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include/c++/4.6.1/backward
 /home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/include

/home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/include-fixed

/home/sukhav/cross/aix/bin/../lib/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/../../../../powerpc-ibm-aix5.2.0.0/include
 /home/sukhav/cross/aix/bin/../sysroot/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-pthread' '-Wextra' '-Wall' '-D' 'ACE_AIX_VERS=502'
'-maix32' '-O2' '-g' '-O2' '-D' 'ACE_HAS_CUSTOM_EXPORT_MACROS=0' '-I'
'/emc/sukhav/cross/aix/ACE_wrappers' '-D' 'ACE_HAS_EXCEPTIONS' '-D'
'__ACE_INLINE__' '-I' '..' '-D' 'ACE_BUILD_DLL' '-c' '-o' 'Log_Msg.o'
'-save-temps' '-v' '-shared-libgcc'
 /home/sukhav/cross/aix/bin/../libexec/gcc/powerpc-ibm-aix5.2.0.0/4.6.1/cc1plus
-fpreprocessed Log_Msg.ii -quiet -dumpbase Log_Msg.cpp -maix32 -auxbase-strip
Log_Msg.o -g -O2 -O2 -Wextra -Wall -version -o Log_Msg.s
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.2.0.0)
compiled by GNU C version 4.3.2, GMP version 5.0.2, MPFR version 3.0.1,
MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.6.1 (powerpc-ibm-aix5.2.0.0)
compiled by GNU C version 4.3.2, GMP version 5.0.2, MPFR version 3.0.1,
MPC version 0.8.2
GGC heuristics: 

[Bug c++/49976] Cross (Linux-AIX) GCC crashes with Segmentation fault

2011-08-04 Thread basil at list dot ru
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49976

--- Comment #1 from Vasily basil at list dot ru 2011-08-04 13:37:27 UTC ---
Created attachment 24915
  -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=24915
compressed preprocessed file