public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
@ 2005-11-07 6:55 ` phython at gcc dot gnu dot org
2005-11-07 7:02 ` phython at gcc dot gnu dot org
` (11 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-11-07 6:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from phython at gcc dot gnu dot org 2005-11-07 06:55 -------
Subject: Bug 21952
Author: phython
Date: Mon Nov 7 06:54:52 2005
New Revision: 106582
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106582
Log:
2005-11-07 James A. Morrison <phython@gcc.gnu.org>
PR treelang/21952
* treetree.c (LANG_HOOKS_ATTRIBUTE_TABLE): Set to
treelang_attribute_table.
(handle_attribute): New function.
(treelang_attribute_table): New attribute table.
Modified:
trunk/gcc/treelang/ChangeLog
trunk/gcc/treelang/treetree.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
2005-11-07 6:55 ` [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap phython at gcc dot gnu dot org
@ 2005-11-07 7:02 ` phython at gcc dot gnu dot org
2005-12-17 8:50 ` pluto at agmk dot net
` (10 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: phython at gcc dot gnu dot org @ 2005-11-07 7:02 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from phython at gcc dot gnu dot org 2005-11-07 07:02 -------
The last commit was meant for PR24066
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
2005-11-07 6:55 ` [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap phython at gcc dot gnu dot org
2005-11-07 7:02 ` phython at gcc dot gnu dot org
@ 2005-12-17 8:50 ` pluto at agmk dot net
2006-01-09 12:48 ` pinskia at gcc dot gnu dot org
` (9 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: pluto at agmk dot net @ 2005-12-17 8:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pluto at agmk dot net 2005-12-17 08:50 -------
i see these warnings on 4.1 bootstrap on alpha-linux too.
--
pluto at agmk dot net changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2005-12-17 8:50 ` pluto at agmk dot net
@ 2006-01-09 12:48 ` pinskia at gcc dot gnu dot org
2006-01-09 20:14 ` [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap laurent at guerby dot net
` (8 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-09 12:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from pinskia at gcc dot gnu dot org 2006-01-09 12:48 -------
*** Bug 25462 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2006-01-09 12:48 ` pinskia at gcc dot gnu dot org
@ 2006-01-09 20:14 ` laurent at guerby dot net
2006-03-12 9:14 ` pluto at agmk dot net
` (7 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: laurent at guerby dot net @ 2006-01-09 20:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from laurent at guerby dot net 2006-01-09 20:14 -------
<<
So it seems like C-family specific attributes are set for all alpha
builtins, which seems incorrect to me.
Two possible solutions come to mind:
* Make const and nothrow generic to avoid this.
* Only set them for C family languages.
I haven't yet checked how to implement either option, and don't know which
one would actually be preferable.
>>
Anyone with an opinion on this?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (4 preceding siblings ...)
2006-01-09 20:14 ` [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap laurent at guerby dot net
@ 2006-03-12 9:14 ` pluto at agmk dot net
2006-07-02 14:40 ` pluto at agmk dot net
` (6 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: pluto at agmk dot net @ 2006-03-12 9:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pluto at agmk dot net 2006-03-12 09:14 -------
so, 4.1.0 was released with bootstrap blocker.
alpha-linux bootstrap is possible only with configure-hack.
-errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
+errors=`(${CC} -c conftest.adb) 2>/dev/null || echo failure`
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (5 preceding siblings ...)
2006-03-12 9:14 ` pluto at agmk dot net
@ 2006-07-02 14:40 ` pluto at agmk dot net
2006-07-07 13:00 ` ebotcazou at gcc dot gnu dot org
` (5 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: pluto at agmk dot net @ 2006-07-02 14:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from pluto at agmk dot net 2006-07-02 14:40 -------
4.1.2svn still broken.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (6 preceding siblings ...)
2006-07-02 14:40 ` pluto at agmk dot net
@ 2006-07-07 13:00 ` ebotcazou at gcc dot gnu dot org
2006-07-07 13:01 ` ebotcazou at gcc dot gnu dot org
` (4 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-07-07 13:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from ebotcazou at gcc dot gnu dot org 2006-07-07 13:00 -------
I think the Alpha back-end somewhat abuses the "builtin" machinery here.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-07 13:00:29
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (7 preceding siblings ...)
2006-07-07 13:00 ` ebotcazou at gcc dot gnu dot org
@ 2006-07-07 13:01 ` ebotcazou at gcc dot gnu dot org
2006-09-10 16:54 ` [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings jsm28 at gcc dot gnu dot org
` (3 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-07-07 13:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from ebotcazou at gcc dot gnu dot org 2006-07-07 13:01 -------
However we are nice people and the Ada front-end will be change to cope with
it.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |ebotcazou at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-07-07 13:00:29 |2006-07-07 13:01:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (8 preceding siblings ...)
2006-07-07 13:01 ` ebotcazou at gcc dot gnu dot org
@ 2006-09-10 16:54 ` jsm28 at gcc dot gnu dot org
2006-09-13 18:27 ` ebotcazou at gcc dot gnu dot org
` (2 subsequent siblings)
12 siblings, 0 replies; 18+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-09-10 16:54 UTC (permalink / raw)
To: gcc-bugs
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (9 preceding siblings ...)
2006-09-10 16:54 ` [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings jsm28 at gcc dot gnu dot org
@ 2006-09-13 18:27 ` ebotcazou at gcc dot gnu dot org
2006-09-13 18:28 ` ebotcazou at gcc dot gnu dot org
2006-09-13 18:29 ` ebotcazou at gcc dot gnu dot org
12 siblings, 0 replies; 18+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-09-13 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from ebotcazou at gcc dot gnu dot org 2006-09-13 18:27 -------
Subject: Bug 21952
Author: ebotcazou
Date: Wed Sep 13 18:27:24 2006
New Revision: 116926
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116926
Log:
PR ada/21952
* gigi.h (gnat_internal_attribute_table): Declare.
* misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
* utils.c (gnat_internal_attribute_table): New global variable.
(builtin_function): Always call decl_attributes on the builtin.
(handle_const_attribute): New static function.
(handle_nothrow_attribute): Likewise.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gigi.h
trunk/gcc/ada/misc.c
trunk/gcc/ada/utils.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (10 preceding siblings ...)
2006-09-13 18:27 ` ebotcazou at gcc dot gnu dot org
@ 2006-09-13 18:28 ` ebotcazou at gcc dot gnu dot org
2006-09-13 18:29 ` ebotcazou at gcc dot gnu dot org
12 siblings, 0 replies; 18+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-09-13 18:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from ebotcazou at gcc dot gnu dot org 2006-09-13 18:27 -------
Subject: Bug 21952
Author: ebotcazou
Date: Wed Sep 13 18:27:46 2006
New Revision: 116927
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=116927
Log:
PR ada/21952
* gigi.h (gnat_internal_attribute_table): Declare.
* misc.c (LANG_HOOKS_ATTRIBUTE_TABLE): Define to above.
* utils.c (gnat_internal_attribute_table): New global variable.
(builtin_function): Always call decl_attributes on the builtin.
(handle_const_attribute): New static function.
(handle_nothrow_attribute): Likewise.
Modified:
branches/gcc-4_1-branch/gcc/ada/ChangeLog
branches/gcc-4_1-branch/gcc/ada/gigi.h
branches/gcc-4_1-branch/gcc/ada/misc.c
branches/gcc-4_1-branch/gcc/ada/utils.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
` (11 preceding siblings ...)
2006-09-13 18:28 ` ebotcazou at gcc dot gnu dot org
@ 2006-09-13 18:29 ` ebotcazou at gcc dot gnu dot org
12 siblings, 0 replies; 18+ messages in thread
From: ebotcazou at gcc dot gnu dot org @ 2006-09-13 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from ebotcazou at gcc dot gnu dot org 2006-09-13 18:29 -------
Fixed in upcoming 4.1.2 release.
--
ebotcazou at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2006-
| |09/msg00512.html
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
@ 2005-06-07 20:12 gcc-bugzilla at gcc dot gnu dot org
2005-07-05 17:11 ` [Bug ada/21952] " ro at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 18+ messages in thread
From: gcc-bugzilla at gcc dot gnu dot org @ 2005-06-07 20:12 UTC (permalink / raw)
To: gcc-bugs
During a mainline bootstrap with Ada included (and the patch from PR
tree-optimization/21029 to avoid an infinite loop in stage3) on Tru64 UNIX,
there occur many warnings like this:
% stage1/xgcc -Bstage1/ -B/vol/gcc/share/alpha-dec-osf5.1b/bin/ -c -g -O2 -gnatpg -gnata -I- -I. -Iada -I/vol/gnu/src/gcc/gcc-dist/gcc/ada /vol/gnu/src/gcc/gcc-dist/gcc/ada/cstand.adb -o ada/cstand.o
<built-in>:0: warning: 'const' attribute directive ignored
<built-in>:0: warning: 'nothrow' attribute directive ignored
[...]
The warnings stem from from gcc/attribs.c (decl_attributes), e.g. (first
call to decl_attributes):
<built-in>:0: warning: 'const' attribute directive ignored
<built-in>:0: warning: 'nothrow' attribute directive ignored
0x000000012016fadc in builtin_function (name=0x14008b7d8 "__builtin_alpha_implver", type=0x3b6c0, function_code=26, class=BUILT_IN_MD, library_name=0x0, attrs=0x15bc0) at /vol/gnu/src/gcc/gcc-dist/gcc/ada/utils.c:1788
#0 decl_attributes (node=0x11fffbeb8, attributes=0x15bc0, flags=16) at /vol/gnu/src/gcc/gcc-dist/gcc/attribs.c:173
#1 0x000000012016fadc in builtin_function (name=0x14008b7d8 "__builtin_alpha_implver", type=0x3b6c0, function_code=26, class=BUILT_IN_MD, library_name=0x0, attrs=0x15bc0) at /vol/gnu/src/gcc/gcc-dist/gcc/ada/utils.c:1788
#2 0x00000001206e7264 in alpha_init_builtins () at /vol/gnu/src/gcc/gcc-dist/gcc/config/alpha/alpha.c:6271
#3 0x0000000120163eb8 in gnat_install_builtins () at /vol/gnu/src/gcc/gcc-dist/gcc/ada/utils.c:418
#4 0x0000000120163e6c in gnat_init_decl_processing () at /vol/gnu/src/gcc/gcc-dist/gcc/ada/utils.c:406
#5 0x000000012015f5ac in gnat_init () at /vol/gnu/src/gcc/gcc-dist/gcc/ada/misc.c:400
#6 0x0000000120644200 in lang_dependent_init (name=0x11fffe120 "ada/sdefault.adb") at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:2017
#7 0x000000012064457c in do_compile () at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:2122
#8 0x0000000120644640 in toplev_main (argc=10, argv=0x11fffc018) at /vol/gnu/src/gcc/gcc-dist/gcc/toplev.c:2155
#9 0x00000001205e6a38 in main (argc=10, argv=0x11fffc018) at /vol/gnu/src/gcc/gcc-dist/gcc/main.c:35
They originate from this patch:
2005-03-08 Richard Henderson <rth@redhat.com>
* config/alpha/alpha.c (code_for_builtin): Replace special-case
builtin codes with ctzdi2, clzdi2, popcountdi2.
(struct alpha_builtin_def): Add is_const.
(zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
(alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
(alpha_init_builtins): Init them. Set nothrow and const attributes
on builtins.
and occur even with a minimal Ada test program:
procedure conftest is begin null; end conftest;
stage1/gnat1 -I/vol/gnu/src/gcc/gcc-dist/gcc/ada conftest.adb
Environment:
System: OSF1 bartok V5.1 2650 alpha
Machine: alpha
host: alpha-dec-osf5.1b
build: alpha-dec-osf5.1b
target: alpha-dec-osf5.1b
configured with: /vol/gnu/src/gcc/gcc-dist/configure --prefix=/vol/gcc --with-local-prefix=/vol/gcc --disable-nls --host alpha-dec-osf5.1b --build alpha-dec-osf5.1b --target alpha-dec-osf5.1b --with-gmp-dir=/vol/gnu/obj/gmp-4.1.3 --with-mpfr-dir=/vol/gnu/obj/gmp-4.1.3 --enable-languages=c,c++,f95,java,objc,ada --disable-libmudflap
How-To-Repeat:
Bootstrap the compiler as above (which fails building gnattools due to PR
ada/18434).
--
Summary: Many attribute directive ignored warnings during Tru64
UNIX Ada bootstrap
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ro at techfak dot uni-bielefeld dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: alpha-dec-osf5.1b
GCC host triplet: alpha-dec-osf5.1b
GCC target triplet: alpha-dec-osf5.1b
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
2005-06-07 20:12 [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap gcc-bugzilla at gcc dot gnu dot org
@ 2005-07-05 17:11 ` ro at gcc dot gnu dot org
2005-07-05 17:13 ` Andrew Pinski
2005-07-05 17:13 ` pinskia at physics dot uc dot edu
` (2 subsequent siblings)
3 siblings, 1 reply; 18+ messages in thread
From: ro at gcc dot gnu dot org @ 2005-07-05 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ro at gcc dot gnu dot org 2005-07-05 17:11 -------
Richard, maybe you could have a look since this seems to be caused by your patch?
Thanks.
Rainer
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* Re: [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
2005-07-05 17:11 ` [Bug ada/21952] " ro at gcc dot gnu dot org
@ 2005-07-05 17:13 ` Andrew Pinski
0 siblings, 0 replies; 18+ messages in thread
From: Andrew Pinski @ 2005-07-05 17:13 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
>
>
> ------- Additional Comments From ro at gcc dot gnu dot org 2005-07-05 17:11 -------
> Richard, maybe you could have a look since this seems to be caused by your patch?
It is a latent bug in Ada front-end. RTH just exposed the latent bug.
-- Pinski
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
2005-06-07 20:12 [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap gcc-bugzilla at gcc dot gnu dot org
2005-07-05 17:11 ` [Bug ada/21952] " ro at gcc dot gnu dot org
@ 2005-07-05 17:13 ` pinskia at physics dot uc dot edu
2005-07-05 17:15 ` ro at techfak dot uni-bielefeld dot de
2005-07-07 17:11 ` ro at techfak dot uni-bielefeld dot de
3 siblings, 0 replies; 18+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-07-05 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at physics dot uc dot edu 2005-07-05 17:13 -------
Subject: Re: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
>
>
> ------- Additional Comments From ro at gcc dot gnu dot org 2005-07-05 17:11 -------
> Richard, maybe you could have a look since this seems to be caused by your patch?
It is a latent bug in Ada front-end. RTH just exposed the latent bug.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
2005-06-07 20:12 [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap gcc-bugzilla at gcc dot gnu dot org
2005-07-05 17:11 ` [Bug ada/21952] " ro at gcc dot gnu dot org
2005-07-05 17:13 ` pinskia at physics dot uc dot edu
@ 2005-07-05 17:15 ` ro at techfak dot uni-bielefeld dot de
2005-07-07 17:11 ` ro at techfak dot uni-bielefeld dot de
3 siblings, 0 replies; 18+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2005-07-05 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2005-07-05 17:15 -------
Subject: Re: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
pinskia at physics dot uc dot edu writes:
> It is a latent bug in Ada front-end. RTH just exposed the latent bug.
Any hint where to fix this?
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
* [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
2005-06-07 20:12 [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap gcc-bugzilla at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-05 17:15 ` ro at techfak dot uni-bielefeld dot de
@ 2005-07-07 17:11 ` ro at techfak dot uni-bielefeld dot de
3 siblings, 0 replies; 18+ messages in thread
From: ro at techfak dot uni-bielefeld dot de @ 2005-07-07 17:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From ro at techfak dot uni-bielefeld dot de 2005-07-07 17:11 -------
Subject: Re: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap
pinskia at physics dot uc dot edu writes:
> It is a latent bug in Ada front-end. RTH just exposed the latent bug.
After some more digging around, I don't really believe so any longer:
config/alpha/alpha.c (alpha_init_builtins) sets attributes const and/or
nothrow for all alpha builtins. But those attributes are restricted to the
C family: they are defined in c-common.c (c_common_attribute_table) only,
so the C family languages don't have a problem.
For the others, the situation is as follows:
* Ada gives many warnings as this PR describes.
* Fortran 95 isn't affected since fortran/f95-lang.c (builtin_function)
only handles `const' and ignores everything else.
* Java completely ignores attributes in java/decl.c (builtin_function) and
thus isn't affected either.
* Treelang is affected as well since it passes all attributes to
decl_attributes in treelang/treetree.c (builtin_function), but also
doesn't use c_common_attribute_table (and shouldn't). To check this, I
bootstrapped mainline (C and Treelang only) on Tru64 UNIX V5.1B, and as
expected, all treelang tests fail with the same error.
So it seems like C-family specific attributes are set for all alpha
builtins, which seems incorrect to me.
Two possible solutions come to mind:
* Make const and nothrow generic to avoid this.
* Only set them for C family languages.
I haven't yet checked how to implement either option, and don't know which
one would actually be preferable.
Rainer
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21952
^ permalink raw reply [flat|nested] 18+ messages in thread
end of thread, other threads:[~2006-09-13 18:29 UTC | newest]
Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-21952-81@http.gcc.gnu.org/bugzilla/>
2005-11-07 6:55 ` [Bug ada/21952] Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap phython at gcc dot gnu dot org
2005-11-07 7:02 ` phython at gcc dot gnu dot org
2005-12-17 8:50 ` pluto at agmk dot net
2006-01-09 12:48 ` pinskia at gcc dot gnu dot org
2006-01-09 20:14 ` [Bug ada/21952] Many attribute directive ignored warnings during Alpha bootstrap laurent at guerby dot net
2006-03-12 9:14 ` pluto at agmk dot net
2006-07-02 14:40 ` pluto at agmk dot net
2006-07-07 13:00 ` ebotcazou at gcc dot gnu dot org
2006-07-07 13:01 ` ebotcazou at gcc dot gnu dot org
2006-09-10 16:54 ` [Bug ada/21952] [4.1/4.2 regression] Annoying "attribute directive ignored" warnings jsm28 at gcc dot gnu dot org
2006-09-13 18:27 ` ebotcazou at gcc dot gnu dot org
2006-09-13 18:28 ` ebotcazou at gcc dot gnu dot org
2006-09-13 18:29 ` ebotcazou at gcc dot gnu dot org
2005-06-07 20:12 [Bug ada/21952] New: Many attribute directive ignored warnings during Tru64 UNIX Ada bootstrap gcc-bugzilla at gcc dot gnu dot org
2005-07-05 17:11 ` [Bug ada/21952] " ro at gcc dot gnu dot org
2005-07-05 17:13 ` Andrew Pinski
2005-07-05 17:13 ` pinskia at physics dot uc dot edu
2005-07-05 17:15 ` ro at techfak dot uni-bielefeld dot de
2005-07-07 17:11 ` ro at techfak dot uni-bielefeld dot de
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).