OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [eh/] [div.C] - Rev 826

Compare with Previous | Blame | View Log

// { dg-do link }
// { dg-options "-Os" }
/* PR target/28014: main references unsigned divide, and the unwinder
   references signed divide.
   If libgcc contains an object which defines both, and linking is done with
   a space-optimized library that defines these functions in separate objects,
   you end up with the function for unsigned divide defined twice.  */
int
main (int c, char **argv)

{
  return 0xffffU/c;
}

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.