[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-12-26 Thread paolo dot carlini at oracle dot com


--- Comment #7 from paolo dot carlini at oracle dot com  2009-12-26 19:03 
---
Jakub, I guess we can close this?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-12-26 Thread jakub at gcc dot gnu dot org


--- Comment #8 from jakub at gcc dot gnu dot org  2009-12-26 19:26 ---
The feature has been removed.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution||FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-28 Thread jakub at gcc dot gnu dot org


--- Comment #5 from jakub at gcc dot gnu dot org  2009-03-28 17:23 ---
Subject: Bug 39554

Author: jakub
Date: Sat Mar 28 17:23:08 2009
New Revision: 145198

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145198
Log:
PR c++/39554
* opts.c (warning_disallowed_functions, warn_disallowed_functions,
warn_if_disallowed_function_p): Removed.
(common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
* c-parser.c (c_parser_postfix_expression_after_primary): Don't call
warning_if_disallowed_function_p.
* flags.h (warn_if_disallowed_function_p,
warn_disallowed_functions): Removed.
* common.opt (Wdisallowed-function-list=): Removed.
* doc/invoke.texi (-Wdisallowed-function-list=): Removed.

* parser.c (cp_parser_postfix_expression): Don't call
warning_if_disallowed_function_p.

* gcc.dg/wdisallowed-functions-1.c: Removed.
* gcc.dg/wdisallowed-functions-2.c: Removed.
* gcc.dg/wdisallowed-functions-3.c: Removed.
* g++.dg/warn/Wdisallowed-functions-1.C: Removed.
* g++.dg/warn/Wdisallowed-functions-2.C: Removed.
* g++.dg/warn/Wdisallowed-functions-3.C: Removed.

Removed:
trunk/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-1.C
trunk/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-2.C
trunk/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-3.C
trunk/gcc/testsuite/gcc.dg/wdisallowed-functions-1.c
trunk/gcc/testsuite/gcc.dg/wdisallowed-functions-2.c
trunk/gcc/testsuite/gcc.dg/wdisallowed-functions-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-parser.c
trunk/gcc/common.opt
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/doc/invoke.texi
trunk/gcc/flags.h
trunk/gcc/opts.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-28 Thread jakub at gcc dot gnu dot org


--- Comment #6 from jakub at gcc dot gnu dot org  2009-03-28 17:29 ---
Subject: Bug 39554

Author: jakub
Date: Sat Mar 28 17:28:45 2009
New Revision: 145200

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145200
Log:
PR c++/39554
* opts.c (warning_disallowed_functions, warn_disallowed_functions,
warn_if_disallowed_function_p): Removed.
(common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
* c-parser.c (c_parser_postfix_expression_after_primary): Don't call
warning_if_disallowed_function_p.
* flags.h (warn_if_disallowed_function_p,
warn_disallowed_functions): Removed.
* common.opt (Wdisallowed-function-list=): Removed.
* doc/invoke.texi (-Wdisallowed-function-list=): Removed.

* parser.c (cp_parser_postfix_expression): Don't call
warning_if_disallowed_function_p.

* gcc.dg/wdisallowed-functions-1.c: Removed.
* gcc.dg/wdisallowed-functions-2.c: Removed.
* gcc.dg/wdisallowed-functions-3.c: Removed.
* g++.dg/warn/Wdisallowed-functions-1.C: Removed.
* g++.dg/warn/Wdisallowed-functions-2.C: Removed.
* g++.dg/warn/Wdisallowed-functions-3.C: Removed.

Removed:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-1.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-2.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-3.C
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/wdisallowed-functions-1.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/wdisallowed-functions-2.c
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/wdisallowed-functions-3.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/c-parser.c
branches/gcc-4_4-branch/gcc/common.opt
branches/gcc-4_4-branch/gcc/cp/ChangeLog
branches/gcc-4_4-branch/gcc/cp/parser.c
branches/gcc-4_4-branch/gcc/doc/invoke.texi
branches/gcc-4_4-branch/gcc/flags.h
branches/gcc-4_4-branch/gcc/opts.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-26 Thread jakub at gcc dot gnu dot org


--- Comment #3 from jakub at gcc dot gnu dot org  2009-03-26 19:27 ---
Subject: Bug 39554

Author: jakub
Date: Thu Mar 26 19:27:17 2009
New Revision: 145094

URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=145094
Log:
PR c++/39554
* opts.c (warn_if_disallowed_function_p): Don't assume
get_callee_fndecl must return non-NULL.

* gcc.dg/wdisallowed-functions-3.c: New test.
* g++.dg/warn/Wdisallowed-functions-3.C: New test.

Added:
trunk/gcc/testsuite/g++.dg/warn/Wdisallowed-functions-3.C
trunk/gcc/testsuite/gcc.dg/wdisallowed-functions-3.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/opts.c
trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-26 Thread gcc at gaul dot org


--- Comment #4 from gcc at gaul dot org  2009-03-26 20:39 ---
Thanks, r145094 fixed my problem!


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-25 Thread jakub at gcc dot gnu dot org


--- Comment #1 from jakub at gcc dot gnu dot org  2009-03-25 19:45 ---
No need to include any header file:
// PR c++/39554
// { dg-do compile }
// { dg-options -Wdisallowed-function-list=bar }

void
foo (void (*p) ())
{
  p ();
}

ICEs both in C and C++.


-- 

jakub at gcc dot gnu dot org changed:

   What|Removed |Added

 AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
   |dot org |
 Status|UNCONFIRMED |ASSIGNED
 Ever Confirmed|0   |1
   Last reconfirmed|-00-00 00:00:00 |2009-03-25 19:45:51
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554



[Bug c++/39554] -Wdisallowed-function-list fails when #including algorithm

2009-03-25 Thread jakub at gcc dot gnu dot org


--- Comment #2 from jakub at gcc dot gnu dot org  2009-03-25 19:58 ---
Created an attachment (id=17541)
 -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17541action=view)
gcc44-pr39554.patch

Apparently no testing was done on this new feature at all :(.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39554