This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34982] [4.3 regression] calling a function with undefined parameters causes segmentation fault at -O1 or higher
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jan 2008 23:08:37 -0000
- Subject: [Bug target/34982] [4.3 regression] calling a function with undefined parameters causes segmentation fault at -O1 or higher
- References: <bug-34982-5606@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #20 from pinskia at gcc dot gnu dot org 2008-01-30 23:08 -------
(In reply to comment #19)
> Any idea why the test is failing in the test suite?
Yes because main needs a "return 0;"
so the main function should look like:
int main()
{
something(-1);
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34982