Bug 50555

Summary: G++ throws Internal Compiler Error when compiling the latest TAO ORB distro.
Product: [Retired] Red Hat Linux Reporter: Parag Warudkar <parag.lkml>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-09-06 17:38:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Description Flags
CPP Source file that causes the error : Watch line 893 none

Description Parag Warudkar 2001-08-01 05:09:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010701

Description of problem:
G++ Says : Internal compiler error in scan_region at except.c:2809
while compiling the attached file.

How reproducible:

Steps to Reproduce:
1.Get the latest TAO distro from (cs.wustl.edu/~schmidt/)
3.Watch the error..

Actual Results:  Internal compiler error in scan_region at except.c:2809

Expected Results:  Compilation should go thru.

Additional info:

Used these flags :   g++ -march=i686 -W -Wall -Wpointer-arith -pipe -O3 -g
-Wno-uninitialized -fno-implicit-templates   -D_POSIX_THREADS
-I/home/parag/ace  -DACE_HAS_EXCEPTIONS    -I/home/parag/ace/TAO  -c -fPIC

The -march=i686 option doesn't affect the error. Error occurs with and
without it.

Comment 1 Parag Warudkar 2001-08-01 05:12:06 UTC
Created attachment 25712 [details]
CPP Source file that causes the error : Watch line 893

Comment 2 Parag Warudkar 2001-08-01 07:52:43 UTC
g++ -v :
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-94)

Comment 3 Parag Warudkar 2001-08-01 08:33:31 UTC
This macro is the cause of the problem : (If I define ACE_UNUSED_ARG to empty,
g++ compiles fine)

#if defined (ghs) || defined (__GNUC__) || defined (__hpux) || defined (__sgi)
|| defined (__DECCXX) || defined (__KCC) || defined (__rational__) || defined
(__USLC__) || defined (ACE_RM544)
// Some compilers complain about "statement with no effect" with (a).
// This eliminates the warnings, and no code is generated for the null
// conditional statement.  NOTE: that may only be true if -O is enabled,
// such as with GreenHills (ghs) 1.8.8.
# define ACE_UNUSED_ARG(a) do {/* null */} while (&a == 0)
#else /* ghs || __GNUC__ || ..... */
# define ACE_UNUSED_ARG(a) (a)
#endif /* ghs || __GNUC__ || ..... */

Comment 4 Parag Warudkar 2001-08-16 11:24:14 UTC
Is anything happening with this bug?

Comment 5 Jakub Jelinek 2001-08-20 14:56:52 UTC
Please provide preprocessed testcase (e.g. using -save-temps option).

Comment 6 Parag Warudkar 2001-08-21 03:45:30 UTC
Here is a new source file and its preprocessed testcase
The error :ImplRepoS.cpp: In function `void
(TAO_ServerRequest &, void *, void *, Environment &)':
ImplRepoS.cpp:3526: Internal compiler error in scan_region, at except.c

Comment 7 Jakub Jelinek 2001-09-06 17:37:57 UTC
As the preprocessed testcase is missing, I cannot tell for sure, but I guess
this is a dupe of #48835 fixed in gcc-c++-2.96-97.

Comment 8 Parag Warudkar 2001-09-07 05:59:25 UTC
Yep. fixed in 2.96-97.