ada/6483: ada fails to build under hppa*-hp-hpux*

dave.anglin@nrc.ca dave.anglin@nrc.ca
Fri Apr 26 17:27:00 GMT 2002


>Number:         6483
>Category:       ada
>Synopsis:       ada fails to build under hppa*-hp-hpux*
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 26 16:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dave Anglin
>Release:        gcc 3.1 and 3.2
>Organization:
>Environment:
hppa*-hp-hpux*
>Description:
Segmentation fault in gnat compiling ada.ads in stage 2.
The problem is caused by not specify "-mdisable-indexing"
when building the C files comprising the ada compiling.

The build configuration was changed last October by
this patch:

2001-10-08  Zack Weinberg  <zack@codesourcery.com>

        * aclocal.m4 (gcc_AC_PROG_GNAT): New.
        * configure.in: Use it.
        * configure: Regenerated.
        * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
        config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.

ADA_CFLAGS is used in building both c and ada files in the
ada compiler.  T_ADAFLAGS is only used when compiling ada
files.  The above option needs to be specified for both
c and ada files for correct operation of gnat.

A further problem is that T_ADAFLAGS is a target configuration
flag.  The "-mdisable-indexing" option needs to be specified
for the host not the target.  This was observed recently
when a cross compiler was used to port ada to hppa-linux.

The PR has been marked high-priority because it is a
regression.
>How-To-Repeat:

>Fix:
<http://gcc.gnu.org/ml/gcc-patches/2002-04/msg01625.html>
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list