Bug 37335 - [4.4 Regression] Boostrap failed on obj-c++ "too many arguments to function 'build_array_ref'"
Summary: [4.4 Regression] Boostrap failed on obj-c++ "too many arguments to function '...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: objc++ (show other bugs)
Version: 4.4.0
: P3 normal
Target Milestone: 4.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords: build
Depends on:
Blocks:
 
Reported: 2008-09-02 16:00 UTC by Ed Smith-Rowland
Modified: 2008-09-04 01:44 UTC (History)
3 users (show)

See Also:
Host: x86_64-redhat-linux
Target: x86_64-redhat-linux
Build: x86_64-redhat-linux
Known to work:
Known to fail:
Last reconfirmed: 2008-09-03 21:10:45


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Smith-Rowland 2008-09-02 16:00:42 UTC
A bootstrap of the trunk failed at stage 2 with the following:

gcc/gcc/../include -I../../gcc/gcc/../libcpp/include -I/usr/local/include -I/usr/local/include -I../../gcc/gcc/../libdecnumber -I../../gcc/gcc/../libdecnumber/bid -I../libdecnumber ../../gcc/gcc/objc/objc-act.c -o objcp/objcp-act.o
../../gcc/gcc/objc/objc-act.c: In function ‘build_typed_selector_reference’:
../../gcc/gcc/objc/objc-act.c:2634: error: too many arguments to function ‘build_array_ref’
../../gcc/gcc/objc/objc-act.c: In function ‘build_selector_reference’:
../../gcc/gcc/objc/objc-act.c:2653: error: too many arguments to function ‘build_array_ref’
../../gcc/gcc/objc/objc-act.c:2667: error: too many arguments to function ‘build_array_ref’
../../gcc/gcc/objc/objc-act.c: In function ‘objc_substitute_decl’:
../../gcc/gcc/objc/objc-act.c:3053: error: too many arguments to function ‘build_array_ref’
make[3]: *** [objcp/objcp-act.o] Error 1
make[3]: Leaving directory `/home/ed/obj/gcc'
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory `/home/ed/obj'
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory `/home/ed/obj'
make: *** [bootstrap] Error 2


Revision 139866 introduced a new argument in objc_substitute_decl in objc-act.c
Comment 1 Ed Smith-Rowland 2008-09-02 17:22:33 UTC
Graphite just went it.

I might just wait till the turbulence dies down and try again.
Comment 2 sebpop@gmail.com 2008-09-02 19:48:36 UTC
Subject: Re:  Boostrap failed on obj-c++ "too many arguments to function 'build_array_ref'"

On Tue, Sep 2, 2008 at 12:22 PM, 3dw4rd at verizon dot net
<gcc-bugzilla@gcc.gnu.org> wrote:
> Graphite just went it.
>
> I might just wait till the turbulence dies down and try again.

This should be another problem:
graphite has not touched the code of build_array_ref,
nor the code of gcc/objc/objc-act.c

Sebastian
Comment 3 Andrew Pinski 2008-09-02 20:01:11 UTC
See http://gcc.gnu.org/ml/gcc-patches/2008-09/msg00042.html .
Comment 4 Andrew Pinski 2008-09-04 01:44:09 UTC
Fixed by:


        * diagnostic.c (error_at): New.
        * toplev.h (error_at): New prototype.
        * c-typeck.c (build_array_ref): Call error_at instead of error.
        Pass location to pedwarn.
cp/
        * typeck.c (build_array_ref): Use new location argument.
        * class.c (build_vtbl_ref_1): Pass location to build_array_ref.
        * call.c (build_new_op): Same.
        * decl2.c (grok_array_decl): Same.
        * cp-tree.h (build_array_ref): Add location argument to prototype.
http://gcc.gnu.org/ml/gcc-cvs/2008-09/msg00082.html