Bug 677445 - Internal compiler error after bad open curly on prototype
Summary: Internal compiler error after bad open curly on prototype
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gcc
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Jakub Jelinek
QA Contact: qe-baseos-tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-14 20:14 UTC by lcuff
Modified: 2012-06-20 16:18 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-20 16:18:54 UTC
Target Upstream Version:


Attachments (Terms of Use)
Pre-processor output for file that creates the bug (686.48 KB, application/octet-stream)
2011-02-14 20:14 UTC, lcuff
no flags Details

Description lcuff 2011-02-14 20:14:22 UTC
Created attachment 478699 [details]
Pre-processor output for file that creates the bug

Description of problem:

The following error message is emitted by the compiler:

default_research.c:459: internal compiler error: in make_decl_rtl, at varasm.c:799


Version-Release number of selected component (if applicable):

gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)



How reproducible:
 

Here is the compilation line:

gcc -c -Wall -ggdb -MD -DVCM_BUILD_DETAILS=\""`hostname` at `date "+%c"`"\" -fPIC -Werror -rdynamic -ggdb -D_GNU_SOURCE -DPOSIX_C_SOURCE=200112L -DADEX_UID_RESEARCH   -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/config -I/vcm/home/sandbox/ticket_228161/vcm/component/budget/include -I/vcm/home/sandbox/ticket_228161/vcm/component/iplookupd/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2 -I/vcm/home/apps/curl-7.19.6/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/libmemcached/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/memcached/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/libevent/include -I/vcm/home/sandbox/ticket_228161/vcm/component/predictive/src -I/vcm/home/sandbox/ticket_228161/vcm/apps/cunit/include -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/queryparser -I/usr/include/openssl  -I/vcm/home/sandbox/ticket_228161/vcm/apps/lua/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/readline/include -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/include -I/vcm/home/sandbox/ticket_228161/vcm/component/budget/include -I/vcm/home/sandbox/ticket_228161/vcm/component/predictive/src -I/vcm/home/sandbox/ticket_228161/vcm/component/cmedia/src/config -I/vcm/home/sandbox/ticket_228161/vcm/apps/libmemcached/include -I/vcm/home/sandbox/ticket_228161/vcm/component/iplookupd/include -I/vcm/home/sandbox/ticket_228161/vcm/component/libsimpled/include -I/vcm/home/sandbox/ticket_228161/vcm/component/calloutd/include -I/vcm/home/sandbox/ticket_228161/vcm/component/vcmclib/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/liblzf-2.0/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2 -I/vcm/home/sandbox/ticket_228161/vcm/apps/apr/include/apr-1 -I/vcm/home/sandbox/ticket_228161/vcm/apps/apr-util/include/apr-1 -I/vcm/home/sandbox/ticket_228161/vcm/apps/protobuf-c-0.12/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/protobuf-2.3.0/include -I/vcm/home/apps/curl-7.19.6/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/zookeeper/include/c-client-src  -I/vcm/home/sandbox/ticket_228161/vcm/apps/xml/include/libxml2/libxml -I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE -I/vcm/home/sandbox/ticket_228161/vcm/apps/apache_2.2.4/include -I/vcm/home/sandbox/ticket_228161/vcm/component/apache_modules/src/common -I/usr/include/oracle/11.1.0.7/client -I/vcm/home/sandbox/ticket_228161/vcm/apps/spread/include -I/vcm/home/sandbox/ticket_228161/vcm/apps/json/utils/include  default_research.c -o default_research.o


Steps to Reproduce:
1. Compile
2.  ???
3.  Profit
  
Actual results:
default_research.c:459: internal compiler error: in make_decl_rtl, at varasm.c:799



Expected results:

Oh mighty god of C, your program is awesome and compiled perfectly.


Additional info:

$ cat /etc/redhat-release 
Red Hat Enterprise Linux WS release 4 (Nahant Update 8)

Comment 1 lcuff 2011-02-14 20:17:17 UTC
I forgot to say, the problem is that I have a bad prototype at the top of the file, which has an open curly parens on the right hand side instead of a semi-colon. So the whole file ends up inside an unintended function definition. Not a good thing, but still, the compiler should emit a nice error message, not barf.

Comment 2 Jiri Pallich 2012-06-20 16:18:54 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See https://access.redhat.com/support/policy/updates/errata/

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.


Note You need to log in before you can comment on or make changes to this bug.